From 2e1cfacc980fc501a4babb543e6ada01d743df6f Mon Sep 17 00:00:00 2001 From: Pengyuan Bian Date: Sun, 3 May 2020 12:12:35 -0700 Subject: [PATCH 001/287] add getContext function to the Null Vm (#14) * add getContext function to the Null Vm * format --- include/proxy-wasm/null_plugin.h | 2 +- include/proxy-wasm/wasm_api_impl.h | 3 +++ src/null/null_plugin.cc | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 18a567054..ab1f5e3d1 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -107,13 +107,13 @@ class NullPlugin : public NullVmPlugin { void onDelete(uint64_t context_id); null_plugin::RootContext *getRoot(string_view root_id); + null_plugin::Context *getContext(uint64_t context_id); void error(string_view message) { wasm_vm_->error(message); } private: null_plugin::Context *ensureContext(uint64_t context_id, uint64_t root_context_id); null_plugin::RootContext *ensureRootContext(uint64_t context_id); - null_plugin::Context *getContext(uint64_t context_id); null_plugin::RootContext *getRootContext(uint64_t context_id); null_plugin::ContextBase *getContextBase(uint64_t context_id); diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index a0b72b1e1..95286a9e2 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -20,9 +20,11 @@ namespace proxy_wasm { namespace null_plugin { class RootContext; +class Context; } // namespace null_plugin null_plugin::RootContext *nullVmGetRoot(string_view root_id); +null_plugin::Context *nullVmGetContext(uint32_t context_id); namespace null_plugin { @@ -263,6 +265,7 @@ inline WasmResult proxy_call_foreign_function(const char *function_name, size_t #undef WR inline RootContext *getRoot(string_view root_id) { return nullVmGetRoot(root_id); } +inline Context *getContext(uint32_t context_id) { return nullVmGetContext(context_id); } } // namespace null_plugin } // namespace proxy_wasm diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index b232f4643..b394c8719 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -459,4 +459,9 @@ null_plugin::RootContext *nullVmGetRoot(string_view root_id) { return static_cast(null_vm->plugin_.get())->getRoot(root_id); } +null_plugin::Context *nullVmGetContext(uint32_t context_id) { + auto null_vm = static_cast(current_context_->wasmVm()); + return static_cast(null_vm->plugin_.get())->getContext(context_id); +} + } // namespace proxy_wasm From dc2110145789738db0db49035f308d0948377ba1 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Mon, 18 May 2020 10:26:27 -0700 Subject: [PATCH 002/287] Handle foreign results null pointers as non-errors (#15) * Handle foreign results null pointers as non-errors if the foreign function returns no results. Signed-off-by: John Plevyak --- src/exports.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/exports.cc b/src/exports.cc index 430adcf4e..07c79120f 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -231,17 +231,25 @@ Word call_foreign_function(void *raw_context, Word function_name, Word function_ uint64_t address = 0; void *result = nullptr; size_t result_size = 0; - auto res = f(wasm, args, [&wasm, &address, &result, &result_size](size_t s) -> void * { - result = wasm.allocMemory(s, &address); + auto res = f(wasm, args, [&wasm, &address, &result, &result_size, results](size_t s) -> void * { + if (results) { + result = wasm.allocMemory(s, &address); + } else { + // If the caller does not want the results, allocate a temporary buffer for them. + result = ::malloc(s); + } result_size = s; return result; }); - if (!context->wasmVm()->setWord(results, Word(address))) { + if (results && !context->wasmVm()->setWord(results, Word(address))) { return WasmResult::InvalidMemoryAccess; } - if (!context->wasmVm()->setWord(results_size, Word(result_size))) { + if (results_size && !context->wasmVm()->setWord(results_size, Word(result_size))) { return WasmResult::InvalidMemoryAccess; } + if (!results) { + ::free(result); + } return res; } From 8129a5a1b30a857f8b0da9424adc08aba40fb72d Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Mon, 18 May 2020 10:30:17 -0700 Subject: [PATCH 003/287] Cleanup and document Context::onStart. (#16) Signed-off-by: John Plevyak --- src/context.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/context.cc b/src/context.cc index 22064096b..ee0579a7b 100644 --- a/src/context.cc +++ b/src/context.cc @@ -241,17 +241,18 @@ std::string ContextBase::makeRootLogPrefix(string_view vm_id) const { // bool ContextBase::onStart(std::shared_ptr plugin) { DeferAfterCallActions actions(this); - bool result = 0; + bool result = true; if (wasm_->on_context_create_) { plugin_ = plugin; wasm_->on_context_create_(this, id_, 0); plugin_.reset(); } if (wasm_->on_vm_start_) { + // Do not set plugin_ as the on_vm_start handler should be independent of the plugin since the + // specific plugin which ends up calling it is not necessarily known by the Wasm module. result = wasm_->on_vm_start_(this, id_, static_cast(wasm()->vm_configuration().size())) .u64_ != 0; - plugin_.reset(); } return result; } From 77f46caf12064d7b03740382b61a1be6a37cbd19 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Mon, 18 May 2020 10:32:36 -0700 Subject: [PATCH 004/287] Add implmeneation of resolveQueueForTesting. (#18) Signed-off-by: John Plevyak --- src/context.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/context.cc b/src/context.cc index ee0579a7b..0f0abe2d9 100644 --- a/src/context.cc +++ b/src/context.cc @@ -183,6 +183,12 @@ SharedData global_shared_data; } // namespace +// Test support. + +uint32_t resolveQueueForTest(string_view vm_id, string_view queue_name) { + return global_shared_data.resolveQueue(vm_id, queue_name); +} + std::string PluginBase::makeLogPrefix() const { std::string prefix; if (!name_.empty()) { From 6b9a5d8ee85a1bf72d276fef2252b44346464e7b Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Tue, 19 May 2020 15:34:39 -0700 Subject: [PATCH 005/287] Properly convert all headers statuses returned by the WASM. (#19) * Properly convert all headers statuses returned by the WASM. Signed-off-by: Gregory Brail --- WORKSPACE | 2 +- src/context.cc | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index c143e5c32..e3d1ff675 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -6,7 +6,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "proxy_wasm_cpp_sdk", remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", - commit = "c12553951d01bb60cb1448ba1fcfeb8f843aad62", + commit = "96927d814b3ec14893b56793e122125e095654c7", ) http_archive( diff --git a/src/context.cc b/src/context.cc index 0f0abe2d9..4296e1aee 100644 --- a/src/context.cc +++ b/src/context.cc @@ -14,8 +14,8 @@ // limitations under the License. #include -#include #include +#include #include #include #include @@ -394,11 +394,10 @@ FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers) { if (!wasm_->on_request_headers_) { return FilterHeadersStatus::Continue; } - if (static_cast(wasm_->on_request_headers_(this, id_, headers).u64_) == - FilterHeadersStatus::Continue) { - return FilterHeadersStatus::Continue; - } - return FilterHeadersStatus::StopIteration; + auto result = wasm_->on_request_headers_(this, id_, headers).u64_; + if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) + return FilterHeadersStatus::StopAllIterationAndWatermark; + return static_cast(result); } FilterDataStatus ContextBase::onRequestBody(uint32_t data_length, bool end_of_stream) { @@ -450,11 +449,10 @@ FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers) { if (!wasm_->on_response_headers_) { return FilterHeadersStatus::Continue; } - if (static_cast(wasm_->on_response_headers_(this, id_, headers).u64_) == - FilterHeadersStatus::Continue) { - return FilterHeadersStatus::Continue; - } - return FilterHeadersStatus::StopIteration; + auto result = wasm_->on_response_headers_(this, id_, headers).u64_; + if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) + return FilterHeadersStatus::StopAllIterationAndWatermark; + return static_cast(result); } FilterDataStatus ContextBase::onResponseBody(uint32_t body_length, bool end_of_stream) { From f01275714f57987d43fb8e1be2085f4432334f40 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Wed, 20 May 2020 18:11:37 -0700 Subject: [PATCH 006/287] Handle error cases gracefully. WASM -> Wasm. (#20) * Handle error cases gracefully. WASM -> Wasm. Signed-off-by: John Plevyak --- include/proxy-wasm/wasm.h | 9 ++++- include/proxy-wasm/word.h | 1 + src/null/null_plugin.cc | 13 ++++++ src/v8/v8.cc | 22 +++++++--- src/wasm.cc | 84 +++++++++++++++++++++++++-------------- src/wavm/wavm.cc | 2 +- 6 files changed, 93 insertions(+), 38 deletions(-) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 9d914b557..27f2b3727 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -54,7 +54,8 @@ class WasmBase : public std::enable_shared_from_this { bool initialize(const std::string &code, bool allow_precompiled = false); void startVm(ContextBase *root_context); bool configure(ContextBase *root_context, std::shared_ptr plugin); - ContextBase *start(std::shared_ptr plugin); // returns the root ContextBase. + // Returns the root ContextBase or nullptr if onStart returns false. + ContextBase *start(std::shared_ptr plugin); string_view vm_id() const { return vm_id_; } string_view vm_key() const { return vm_key_; } @@ -115,7 +116,8 @@ class WasmBase : public std::enable_shared_from_this { // For testing. void setContext(ContextBase *context) { contexts_[context->id()] = context; } - void startForTesting(std::unique_ptr root_context, + // Returns false if onStart returns false. + bool startForTesting(std::unique_ptr root_context, std::shared_ptr plugin); bool getEmscriptenVersion(uint32_t *emscripten_metadata_major_version, @@ -289,6 +291,9 @@ inline const std::string &WasmBase::vm_configuration() const { } inline void *WasmBase::allocMemory(uint64_t size, uint64_t *address) { + if (!malloc_) { + return nullptr; + } Word a = malloc_(vm_context(), size); if (!a.u64_) { return nullptr; diff --git a/include/proxy-wasm/word.h b/include/proxy-wasm/word.h index d2886a072..1e4ce6734 100644 --- a/include/proxy-wasm/word.h +++ b/include/proxy-wasm/word.h @@ -24,6 +24,7 @@ namespace proxy_wasm { // Represents a Wasm-native word-sized datum. On 32-bit VMs, the high bits are always zero. // The Wasm/VM API treats all bits as significant. struct Word { + Word() : u64_(0) {} Word(uint64_t w) : u64_(w) {} // Implicit conversion into Word. Word(WasmResult r) : u64_(static_cast(r)) {} // Implicit conversion into Word. uint32_t u32() const { return static_cast(u64_); } diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index b394c8719..149541dc4 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -39,6 +39,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<0> *f) { *f = nullptr; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -61,6 +62,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<1> *f) { }; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -88,6 +90,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<2> *f) { }; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -115,6 +118,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<3> *f) { }; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -128,6 +132,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<5> *f) { }; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -149,6 +154,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<1> *f) { }; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -201,6 +207,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<2> *f) { }; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -232,6 +239,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<3> *f) { }; } else { error("Missing getFunction for: " + std::string(function_name)); + *f = nullptr; } } @@ -244,6 +252,7 @@ null_plugin::Context *NullPlugin::ensureContext(uint64_t context_id, uint64_t ro auto factory = registry_->context_factories[root_id]; if (!factory) { error("no context factory for root_id: " + root_id); + return nullptr; } e.first->second = factory(context_id, root); } @@ -254,6 +263,7 @@ null_plugin::RootContext *NullPlugin::ensureRootContext(uint64_t context_id) { auto root_id_opt = null_plugin::getProperty({"plugin_root_id"}); if (!root_id_opt) { error("unable to get root_id"); + return nullptr; } auto root_id = std::move(root_id_opt.value()); auto it = context_map_.find(context_id); @@ -281,6 +291,7 @@ null_plugin::ContextBase *NullPlugin::getContextBase(uint64_t context_id) { auto it = context_map_.find(context_id); if (it == context_map_.end() || !(it->second->asContext() || it->second->asRoot())) { error("no base context context_id: " + std::to_string(context_id)); + return nullptr; } return it->second.get(); } @@ -289,6 +300,7 @@ null_plugin::Context *NullPlugin::getContext(uint64_t context_id) { auto it = context_map_.find(context_id); if (it == context_map_.end() || !it->second->asContext()) { error("no context context_id: " + std::to_string(context_id)); + return nullptr; } return it->second->asContext(); } @@ -297,6 +309,7 @@ null_plugin::RootContext *NullPlugin::getRootContext(uint64_t context_id) { auto it = context_map_.find(context_id); if (it == context_map_.end() || !it->second->asRoot()) { error("no root context_id: " + std::to_string(context_id)); + return nullptr; } return it->second->asRoot(); } diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 7f9b2a871..3cca0a435 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -322,18 +322,21 @@ string_view V8::getCustomSection(string_view name) { const byte_t *end = source_.get() + source_.size(); while (pos < end) { if (pos + 1 > end) { - error("Failed to parse corrupted WASM module"); + error("Failed to parse corrupted Wasm module"); + return ""; } const auto section_type = *pos++; const auto section_len = parseVarint(pos, end); if (section_len == static_cast(-1) || pos + section_len > end) { - error("Failed to parse corrupted WASM module"); + error("Failed to parse corrupted Wasm module"); + return ""; } if (section_type == 0 /* custom section */) { const auto section_data_start = pos; const auto section_name_len = parseVarint(pos, end); if (section_name_len == static_cast(-1) || pos + section_name_len > end) { - error("Failed to parse corrupted WASM module"); + error("Failed to parse corrupted Wasm module"); + return ""; } if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { pos += section_name_len; @@ -379,25 +382,27 @@ void V8::link(string_view debug_name) { case wasm::EXTERN_FUNC: { auto it = host_functions_.find(std::string(module) + "." + std::string(name)); if (it == host_functions_.end()) { - error(std::string("Failed to load WASM module due to a missing import: ") + + error(std::string("Failed to load Wasm module due to a missing import: ") + std::string(module) + "." + std::string(name)); + break; } auto func = it->second.get()->callback_.get(); if (!equalValTypes(import_type->func()->params(), func->type()->params()) || !equalValTypes(import_type->func()->results(), func->type()->results())) { - error(std::string("Failed to load WASM module due to an import type mismatch: ") + + error(std::string("Failed to load Wasm module due to an import type mismatch: ") + std::string(module) + "." + std::string(name) + ", want: " + printValTypes(import_type->func()->params()) + " -> " + printValTypes(import_type->func()->results()) + ", but host exports: " + printValTypes(func->type()->params()) + " -> " + printValTypes(func->type()->results())); + break; } imports.push_back(func); } break; case wasm::EXTERN_GLOBAL: { // TODO(PiotrSikora): add support when/if needed. - error("Failed to load WASM module due to a missing import: " + std::string(module) + "." + + error("Failed to load Wasm module due to a missing import: " + std::string(module) + "." + std::string(name)); } break; @@ -558,6 +563,8 @@ void V8::getModuleFunctionImpl(string_view function_name, if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { error(std::string("Bad function signature for: ") + std::string(function_name)); + *function = nullptr; + return; } *function = [func, function_name, this](ContextBase *context, Args... args) -> void { wasm::Val params[] = {makeVal(args)...}; @@ -582,6 +589,8 @@ void V8::getModuleFunctionImpl(string_view function_name, if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { error("Bad function signature for: " + std::string(function_name)); + *function = nullptr; + return; } *function = [func, function_name, this](ContextBase *context, Args... args) -> R { wasm::Val params[] = {makeVal(args)...}; @@ -591,6 +600,7 @@ void V8::getModuleFunctionImpl(string_view function_name, if (trap) { error("Function: " + std::string(function_name) + " failed: " + std::string(trap->message().get(), trap->message().size())); + return R{}; } R rvalue = results[0].get::type>(); return rvalue; diff --git a/src/wasm.cc b/src/wasm.cc index a6ce33f02..786cba701 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -103,13 +103,6 @@ RegisterForeignFunction::RegisterForeignFunction(std::string name, WasmForeignFu (*foreign_functions)[name] = f; } -WasmBase::WasmBase(std::unique_ptr wasm_vm, string_view vm_id, string_view vm_configuration, - string_view vm_key) - : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), - vm_configuration_(std::string(vm_configuration)) {} - -WasmBase::~WasmBase() {} - void WasmBase::registerCallbacks() { #define _REGISTER(_fn) \ wasm_vm_->registerCallback( \ @@ -241,7 +234,7 @@ void WasmBase::getFunctions() { #undef _GET_PROXY if (!malloc_) { - error("WASM missing malloc"); + error("Wasm missing malloc"); } } @@ -255,12 +248,15 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm } else { wasm_vm_ = factory(); } - if (!initialize(base_wasm_handle->wasm()->code(), - base_wasm_handle->wasm()->allow_precompiled())) { - error("Failed to load WASM code"); - } } +WasmBase::WasmBase(std::unique_ptr wasm_vm, string_view vm_id, string_view vm_configuration, + string_view vm_key) + : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), + vm_configuration_(std::string(vm_configuration)) {} + +WasmBase::~WasmBase() {} + bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { if (!wasm_vm_) { return false; @@ -354,11 +350,13 @@ ContextBase *WasmBase::start(std::shared_ptr plugin) { auto context = std::unique_ptr(createContext(plugin)); auto context_ptr = context.get(); root_contexts_[root_id] = std::move(context); - context_ptr->onStart(plugin); + if (!context_ptr->onStart(plugin)) { + return nullptr; + } return context_ptr; }; -void WasmBase::startForTesting(std::unique_ptr context, +bool WasmBase::startForTesting(std::unique_ptr context, std::shared_ptr plugin) { auto context_ptr = context.get(); if (!context->wasm_) { @@ -367,7 +365,7 @@ void WasmBase::startForTesting(std::unique_ptr context, } root_contexts_[plugin->root_id_] = std::move(context); // Set the current plugin over the lifetime of the onConfigure call to the RootContext. - context_ptr->onStart(plugin); + return context_ptr->onStart(plugin) != 0; } uint32_t WasmBase::allocContextId() { @@ -445,7 +443,7 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, std::shared_ptr plugin, WasmHandleFactory factory, bool allow_precompiled, std::unique_ptr root_context_for_testing) { - std::shared_ptr wasm; + std::shared_ptr wasm_handle; { std::lock_guard guard(base_wasms_mutex); if (!base_wasms) { @@ -453,36 +451,64 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, } auto it = base_wasms->find(vm_key); if (it != base_wasms->end()) { - wasm = it->second.lock(); - if (!wasm) { + wasm_handle = it->second.lock(); + if (!wasm_handle) { base_wasms->erase(it); } } - if (wasm) - return wasm; - wasm = factory(vm_key); - (*base_wasms)[vm_key] = wasm; + if (wasm_handle) { + return wasm_handle; + } + wasm_handle = factory(vm_key); + if (!wasm_handle) { + return nullptr; + } + (*base_wasms)[vm_key] = wasm_handle; } - if (!wasm->wasm()->initialize(code, allow_precompiled)) { - wasm->wasm()->error("Failed to initialize WASM code"); + if (!wasm_handle->wasm()->initialize(code, allow_precompiled)) { + wasm_handle->wasm()->error("Failed to initialize Wasm code"); return nullptr; } + ContextBase *root_context = root_context_for_testing.get(); if (!root_context_for_testing) { - wasm->wasm()->start(plugin); + root_context = wasm_handle->wasm()->start(plugin); + if (!root_context) { + wasm_handle->wasm()->error("Failed to start base Wasm"); + return nullptr; + } } else { - wasm->wasm()->startForTesting(std::move(root_context_for_testing), plugin); + if (!wasm_handle->wasm()->startForTesting(std::move(root_context_for_testing), plugin)) { + wasm_handle->wasm()->error("Failed to start base Wasm"); + return nullptr; + } } - return wasm; + if (!wasm_handle->wasm()->configure(root_context, plugin)) { + wasm_handle->wasm()->error("Failed to configure base Wasm plugin"); + return nullptr; + } + return wasm_handle; }; static std::shared_ptr createThreadLocalWasm(std::shared_ptr &base_wasm, std::shared_ptr plugin, WasmHandleCloneFactory factory) { auto wasm_handle = factory(base_wasm); + if (!wasm_handle) { + return nullptr; + } + if (!wasm_handle->wasm()->initialize(base_wasm->wasm()->code(), + base_wasm->wasm()->allow_precompiled())) { + base_wasm->wasm()->error("Failed to load Wasm code"); + return nullptr; + } ContextBase *root_context = wasm_handle->wasm()->start(plugin); + if (!root_context) { + base_wasm->wasm()->error("Failed to start thread-local Wasm"); + return nullptr; + } if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->error("Failed to configure WASM code"); + base_wasm->wasm()->error("Failed to configure thread-local Wasm plugin"); return nullptr; } local_wasms[std::string(wasm_handle->wasm()->vm_key())] = wasm_handle; @@ -508,7 +534,7 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, if (wasm_handle) { auto root_context = wasm_handle->wasm()->getOrCreateRootContext(plugin); if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->error("Failed to configure WASM code"); + base_wasm->wasm()->error("Failed to configure thread-local Wasm code"); return nullptr; } return wasm_handle; diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 4fc8cf5e0..86ee52ba1 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -124,7 +124,7 @@ class RootResolver : public WAVM::Runtime::Resolver, public Logger::Loggableerror("Failed to load WASM module due to a missing import: " + std::string(module_name) + + vm_->error("Failed to load Wasm module due to a missing import: " + std::string(module_name) + "." + std::string(export_name) + " " + asString(type)); } From 65652f008f9f19be958d84b023ce2511c0dca3ae Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Thu, 21 May 2020 13:42:02 -0700 Subject: [PATCH 007/287] Add the "end_of_stream" flag to header processing. (#21) Add the "end_of_stream" flag to onRequestHeaders and onResponseHeaders to match the signature in Envoy. It's ignored for new. We'll use another commit to pass this field on to WASM. This begins to address: https://github.com/envoyproxy/envoy-wasm/issues/446 Signed-off-by: Gregory Brail --- include/proxy-wasm/context.h | 11 ++++++----- include/proxy-wasm/context_interface.h | 4 ++-- src/context.cc | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 2af575b4c..3d5f66d1a 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -15,10 +15,8 @@ #pragma once -#include "include/proxy-wasm/compat.h" -#include "include/proxy-wasm/context_interface.h" - #include + #include #include #include @@ -27,6 +25,9 @@ #include #include +#include "include/proxy-wasm/compat.h" +#include "include/proxy-wasm/context_interface.h" + namespace proxy_wasm { #include "proxy_wasm_common.h" @@ -132,11 +133,11 @@ class ContextBase : public RootInterface, void onQueueReady(SharedQueueDequeueToken token) override; // HTTP - FilterHeadersStatus onRequestHeaders(uint32_t headers) override; + FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) override; FilterDataStatus onRequestBody(uint32_t body_buffer_length, bool end_of_stream) override; FilterTrailersStatus onRequestTrailers(uint32_t trailers) override; FilterMetadataStatus onRequestMetadata(uint32_t elements) override; - FilterHeadersStatus onResponseHeaders(uint32_t headers) override; + FilterHeadersStatus onResponseHeaders(uint32_t headers, bool end_of_stream) override; FilterDataStatus onResponseBody(uint32_t body_buffer_length, bool end_of_stream) override; FilterTrailersStatus onResponseTrailers(uint32_t trailers) override; FilterMetadataStatus onResponseMetadata(uint32_t elements) override; diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 0839f18dc..4a0cb8946 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -223,7 +223,7 @@ struct HttpInterface { * Call on a stream context to indicate that the request headers have arrived. Calls * onCreate() to create a Context in the VM first. */ - virtual FilterHeadersStatus onRequestHeaders(uint32_t headers) = 0; + virtual FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) = 0; // Call on a stream context to indicate that body data has arrived. virtual FilterDataStatus onRequestBody(uint32_t body_buffer_length, bool end_of_stream) = 0; @@ -235,7 +235,7 @@ struct HttpInterface { virtual FilterMetadataStatus onRequestMetadata(uint32_t elements) = 0; // Call on a stream context to indicate that the request trailers have arrived. - virtual FilterHeadersStatus onResponseHeaders(uint32_t trailers) = 0; + virtual FilterHeadersStatus onResponseHeaders(uint32_t trailers, bool end_of_stream) = 0; // Call on a stream context to indicate that body data has arrived. virtual FilterDataStatus onResponseBody(uint32_t body_buffer_length, bool end_of_stream) = 0; diff --git a/src/context.cc b/src/context.cc index 4296e1aee..91c7ceb5b 100644 --- a/src/context.cc +++ b/src/context.cc @@ -387,7 +387,7 @@ void ContextBase::onUpstreamConnectionClose(CloseType close_type) { // Empty headers/trailers have zero size. template static uint32_t headerSize(const P &p) { return p ? p->size() : 0; } -FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers) { +FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool) { DeferAfterCallActions actions(this); onCreate(root_context_id_); in_vm_context_created_ = true; @@ -436,7 +436,7 @@ FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { return FilterMetadataStatus::Continue; // This is currently the only return code. } -FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers) { +FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool) { DeferAfterCallActions actions(this); if (!in_vm_context_created_) { // If the request is invalid then onRequestHeaders() will not be called and neither will From b55f5baa55c2af7965e3dc4f6788cdd6b5f5a27f Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Mon, 1 Jun 2020 12:25:06 -0700 Subject: [PATCH 008/287] Pass end_of-stream flag to request and response headers. (#24) This propagates the end_of_stream flag to the plugin for both of the header callbacks. Signed-off-by: Gregory Brail --- WORKSPACE | 12 ++++++----- include/proxy-wasm/null_plugin.h | 7 +++---- include/proxy-wasm/wasm.h | 7 +++---- src/context.cc | 10 +++++---- src/null/null_plugin.cc | 35 +++++++++++++++++--------------- 5 files changed, 38 insertions(+), 33 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index e3d1ff675..a685ccd81 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,8 +5,8 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "proxy_wasm_cpp_sdk", + commit = "b273b07ae0cfa9cc76dfe38236b163e9e3a2ab49", remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", - commit = "96927d814b3ec14893b56793e122125e095654c7", ) http_archive( @@ -20,19 +20,21 @@ http_archive( # required by com_google_protobuf http_archive( name = "bazel_skylib", + sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", - ], - sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", - ) + ], +) + load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") + bazel_skylib_workspace() git_repository( name = "com_google_protobuf", - remote = "https://github.com/protocolbuffers/protobuf", commit = "655310ca192a6e3a050e0ca0b7084a2968072260", + remote = "https://github.com/protocolbuffers/protobuf", ) http_archive( diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index ab1f5e3d1..8d4bc2b96 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -17,11 +17,10 @@ #include +#include "google/protobuf/message.h" #include "include/proxy-wasm/null_vm_plugin.h" #include "include/proxy-wasm/wasm.h" -#include "google/protobuf/message.h" - namespace proxy_wasm { namespace null_plugin { #include "proxy_wasm_enums.h" @@ -84,12 +83,12 @@ class NullPlugin : public NullVmPlugin { void onDownstreamConnectionClose(uint64_t context_id, uint64_t close_type); void onUpstreamConnectionClose(uint64_t context_id, uint64_t close_type); - uint64_t onRequestHeaders(uint64_t context_id, uint64_t headers); + uint64_t onRequestHeaders(uint64_t context_id, uint64_t headers, uint64_t end_of_stream); uint64_t onRequestBody(uint64_t context_id, uint64_t body_buffer_length, uint64_t end_of_stream); uint64_t onRequestTrailers(uint64_t context_id, uint64_t trailers); uint64_t onRequestMetadata(uint64_t context_id, uint64_t elements); - uint64_t onResponseHeaders(uint64_t context_id, uint64_t headers); + uint64_t onResponseHeaders(uint64_t context_id, uint64_t headers, uint64_t end_of_stream); uint64_t onResponseBody(uint64_t context_id, uint64_t body_buffer_length, uint64_t end_of_stream); uint64_t onResponseTrailers(uint64_t context_id, uint64_t trailers); uint64_t onResponseMetadata(uint64_t context_id, uint64_t elements); diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 27f2b3727..0bede8433 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -20,12 +20,11 @@ #include #include #include +#include #include #include -#include #include "include/proxy-wasm/compat.h" - #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/exports.h" #include "include/proxy-wasm/wasm_vm.h" @@ -206,12 +205,12 @@ class WasmBase : public std::enable_shared_from_this { WasmCallVoid<2> on_downstream_connection_close_; WasmCallVoid<2> on_upstream_connection_close_; - WasmCallWord<2> on_request_headers_; + WasmCallWord<3> on_request_headers_; WasmCallWord<3> on_request_body_; WasmCallWord<2> on_request_trailers_; WasmCallWord<2> on_request_metadata_; - WasmCallWord<2> on_response_headers_; + WasmCallWord<3> on_response_headers_; WasmCallWord<3> on_response_body_; WasmCallWord<2> on_response_trailers_; WasmCallWord<2> on_response_metadata_; diff --git a/src/context.cc b/src/context.cc index 91c7ceb5b..13b28589f 100644 --- a/src/context.cc +++ b/src/context.cc @@ -387,14 +387,15 @@ void ContextBase::onUpstreamConnectionClose(CloseType close_type) { // Empty headers/trailers have zero size. template static uint32_t headerSize(const P &p) { return p ? p->size() : 0; } -FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool) { +FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_stream) { DeferAfterCallActions actions(this); onCreate(root_context_id_); in_vm_context_created_ = true; if (!wasm_->on_request_headers_) { return FilterHeadersStatus::Continue; } - auto result = wasm_->on_request_headers_(this, id_, headers).u64_; + auto result = + wasm_->on_request_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) return FilterHeadersStatus::StopAllIterationAndWatermark; return static_cast(result); @@ -436,7 +437,7 @@ FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { return FilterMetadataStatus::Continue; // This is currently the only return code. } -FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool) { +FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of_stream) { DeferAfterCallActions actions(this); if (!in_vm_context_created_) { // If the request is invalid then onRequestHeaders() will not be called and neither will @@ -449,7 +450,8 @@ FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool) { if (!wasm_->on_response_headers_) { return FilterHeadersStatus::Continue; } - auto result = wasm_->on_response_headers_(this, id_, headers).u64_; + auto result = + wasm_->on_response_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) return FilterHeadersStatus::StopAllIterationAndWatermark; return static_cast(result); diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index 149541dc4..ab014ab20 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -13,8 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "include/proxy-wasm/null_plugin.h" - #include #include @@ -25,6 +23,7 @@ #include #include +#include "include/proxy-wasm/null_plugin.h" #include "include/proxy-wasm/null_vm.h" #include "include/proxy-wasm/wasm.h" @@ -175,11 +174,6 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<2> *f) { SaveRestoreContext saved_context(context); return Word(plugin->validateConfiguration(context_id, configuration_size)); }; - } else if (function_name == "proxy_on_request_headers") { - *f = [plugin](ContextBase *context, Word context_id, Word headers) -> Word { - SaveRestoreContext saved_context(context); - return Word(plugin->onRequestHeaders(context_id, headers)); - }; } else if (function_name == "proxy_on_request_trailers") { *f = [plugin](ContextBase *context, Word context_id, Word trailers) -> Word { SaveRestoreContext saved_context(context); @@ -190,11 +184,6 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<2> *f) { SaveRestoreContext saved_context(context); return Word(plugin->onRequestMetadata(context_id, elements)); }; - } else if (function_name == "proxy_on_response_headers") { - *f = [plugin](ContextBase *context, Word context_id, Word headers) -> Word { - SaveRestoreContext saved_context(context); - return Word(plugin->onResponseHeaders(context_id, headers)); - }; } else if (function_name == "proxy_on_response_trailers") { *f = [plugin](ContextBase *context, Word context_id, Word trailers) -> Word { SaveRestoreContext saved_context(context); @@ -225,12 +214,22 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<3> *f) { SaveRestoreContext saved_context(context); return Word(plugin->onUpstreamData(context_id, body_buffer_length, end_of_stream)); }; + } else if (function_name == "proxy_on_request_headers") { + *f = [plugin](ContextBase *context, Word context_id, Word headers, Word end_of_stream) -> Word { + SaveRestoreContext saved_context(context); + return Word(plugin->onRequestHeaders(context_id, headers, end_of_stream)); + }; } else if (function_name == "proxy_on_request_body") { *f = [plugin](ContextBase *context, Word context_id, Word body_buffer_length, Word end_of_stream) -> Word { SaveRestoreContext saved_context(context); return Word(plugin->onRequestBody(context_id, body_buffer_length, end_of_stream)); }; + } else if (function_name == "proxy_on_response_headers") { + *f = [plugin](ContextBase *context, Word context_id, Word headers, Word end_of_stream) -> Word { + SaveRestoreContext saved_context(context); + return Word(plugin->onResponseHeaders(context_id, headers, end_of_stream)); + }; } else if (function_name == "proxy_on_response_body") { *f = [plugin](ContextBase *context, Word context_id, Word body_buffer_length, Word end_of_stream) -> Word { @@ -384,8 +383,10 @@ void NullPlugin::onUpstreamConnectionClose(uint64_t context_id, uint64_t close_t getContext(context_id)->onUpstreamConnectionClose(static_cast(close_type)); } -uint64_t NullPlugin::onRequestHeaders(uint64_t context_id, uint64_t headers) { - return static_cast(getContext(context_id)->onRequestHeaders(headers)); +uint64_t NullPlugin::onRequestHeaders(uint64_t context_id, uint64_t headers, + uint64_t end_of_stream) { + return static_cast( + getContext(context_id)->onRequestHeaders(headers, end_of_stream != 0)); } uint64_t NullPlugin::onRequestBody(uint64_t context_id, uint64_t body_buffer_length, @@ -403,8 +404,10 @@ uint64_t NullPlugin::onRequestMetadata(uint64_t context_id, uint64_t elements) { return static_cast(getContext(context_id)->onRequestMetadata(elements)); } -uint64_t NullPlugin::onResponseHeaders(uint64_t context_id, uint64_t headers) { - return static_cast(getContext(context_id)->onResponseHeaders(headers)); +uint64_t NullPlugin::onResponseHeaders(uint64_t context_id, uint64_t headers, + uint64_t end_of_stream) { + return static_cast( + getContext(context_id)->onResponseHeaders(headers, end_of_stream != 0)); } uint64_t NullPlugin::onResponseBody(uint64_t context_id, uint64_t body_buffer_length, From f54a861968a961b95a1787b62f1d5df9cc936632 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Fri, 5 Jun 2020 14:33:36 -0700 Subject: [PATCH 009/287] Move control of the in-VM context lifecycle to the host specific code. (#17) * Move control of the in-VM context lifecycle to the host specific code. Signed-off-by: John Plevyak --- WORKSPACE | 2 +- include/proxy-wasm/null_plugin.h | 2 +- src/context.cc | 32 +++++++++++++------------------- 3 files changed, 15 insertions(+), 21 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index a685ccd81..9a09ed781 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,7 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "proxy_wasm_cpp_sdk", - commit = "b273b07ae0cfa9cc76dfe38236b163e9e3a2ab49", + commit = "f750d1f5da6a2f20cc55da75dd9772b7ba1650ca", remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", ) diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 8d4bc2b96..1f3ff7333 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -42,7 +42,7 @@ template using Optional = optional; struct NullPluginRegistry { uint32_t (*proxy_validate_configuration_)(uint32_t root_context_id, uint32_t plugin_configuration_size) = nullptr; - uint32_t (*proxy_on_context_create_)(uint32_t context_id, uint32_t parent_context_id) = nullptr; + void (*proxy_on_context_create_)(uint32_t context_id, uint32_t parent_context_id) = nullptr; uint32_t (*proxy_on_vm_start_)(uint32_t root_context_id, uint32_t vm_configuration_size) = nullptr; uint32_t (*proxy_on_configure_)(uint32_t root_context_id, diff --git a/src/context.cc b/src/context.cc index 13b28589f..df2688666 100644 --- a/src/context.cc +++ b/src/context.cc @@ -251,6 +251,7 @@ bool ContextBase::onStart(std::shared_ptr plugin) { if (wasm_->on_context_create_) { plugin_ = plugin; wasm_->on_context_create_(this, id_, 0); + in_vm_context_created_ = true; plugin_.reset(); } if (wasm_->on_vm_start_) { @@ -277,10 +278,14 @@ bool ContextBase::onConfigure(std::shared_ptr plugin) { } void ContextBase::onCreate(uint32_t parent_context_id) { - if (wasm_->on_context_create_) { + if (!in_vm_context_created_ && wasm_->on_context_create_) { DeferAfterCallActions actions(this); wasm_->on_context_create_(this, id_, parent_context_id); + in_vm_context_created_ = true; } + // NB: If no on_context_create function is registered the in-VM SDK is responsible for + // managing any required in-VM state. + in_vm_context_created_ = true; } // Shared Data @@ -337,11 +342,10 @@ void ContextBase::onTick(uint32_t) { } FilterStatus ContextBase::onNetworkNewConnection() { - DeferAfterCallActions actions(this); - onCreate(root_context_id_); if (!wasm_->on_new_connection_) { return FilterStatus::Continue; } + DeferAfterCallActions actions(this); if (wasm_->on_new_connection_(this, id_).u64_ == 0) { return FilterStatus::Continue; } @@ -388,12 +392,10 @@ void ContextBase::onUpstreamConnectionClose(CloseType close_type) { template static uint32_t headerSize(const P &p) { return p ? p->size() : 0; } FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_stream) { - DeferAfterCallActions actions(this); - onCreate(root_context_id_); - in_vm_context_created_ = true; if (!wasm_->on_request_headers_) { return FilterHeadersStatus::Continue; } + DeferAfterCallActions actions(this); auto result = wasm_->on_request_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) @@ -438,18 +440,10 @@ FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { } FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of_stream) { - DeferAfterCallActions actions(this); - if (!in_vm_context_created_) { - // If the request is invalid then onRequestHeaders() will not be called and neither will - // onCreate() then sendLocalReply be called which will call this function. In this case we - // need to call onCreate() so that the Context inside the VM is created before the - // onResponseHeaders() call. - onCreate(root_context_id_); - in_vm_context_created_ = true; - } if (!wasm_->on_response_headers_) { return FilterHeadersStatus::Continue; } + DeferAfterCallActions actions(this); auto result = wasm_->on_response_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) @@ -542,23 +536,23 @@ void ContextBase::onGrpcClose(uint32_t token, uint32_t status_code) { } bool ContextBase::onDone() { - DeferAfterCallActions actions(this); if (wasm_->on_done_) { + DeferAfterCallActions actions(this); return wasm_->on_done_(this, id_).u64_ != 0; } return true; } void ContextBase::onLog() { - DeferAfterCallActions actions(this); if (wasm_->on_log_) { + DeferAfterCallActions actions(this); wasm_->on_log_(this, id_); } } void ContextBase::onDelete() { - DeferAfterCallActions actions(this); - if (wasm_->on_delete_) { + if (in_vm_context_created_ && wasm_->on_delete_) { + DeferAfterCallActions actions(this); wasm_->on_delete_(this, id_); } } From a6b0f83ead71306cefa615e87fd53df360b5f717 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Tue, 23 Jun 2020 13:38:40 -0700 Subject: [PATCH 010/287] Add support for closing of connections in the ABI/SDK. (#26) * Add support for closing of connections in the ABI/SDK. Signed-off-by: John Plevyak --- WORKSPACE | 2 +- include/proxy-wasm/context.h | 5 +++-- include/proxy-wasm/context_interface.h | 30 ++++++-------------------- include/proxy-wasm/exports.h | 4 ++-- include/proxy-wasm/wasm_api_impl.h | 8 +++---- src/exports.cc | 16 ++++++++------ src/null/null_plugin.cc | 4 ++-- src/wasm.cc | 4 ++-- 8 files changed, 30 insertions(+), 43 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 9a09ed781..390535bf4 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,7 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "proxy_wasm_cpp_sdk", - commit = "f750d1f5da6a2f20cc55da75dd9772b7ba1650ca", + commit = "f44562520bca7bfeee77d6284a96d2900f2f13ac", remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", ) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 3d5f66d1a..03a15becc 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -195,7 +195,7 @@ class ContextBase : public RootInterface, unimplemented(); return nullptr; } - bool endOfStream(StreamType /* type */) override { + bool endOfStream(WasmStreamType /* type */) override { unimplemented(); return true; } @@ -254,7 +254,8 @@ class ContextBase : public RootInterface, } // Continue - WasmResult continueStream(StreamType /* stream_type */) override { return unimplemented(); } + WasmResult continueStream(WasmStreamType /* stream_type */) override { return unimplemented(); } + WasmResult closeStream(WasmStreamType /* stream_type */) override { return unimplemented(); } WasmResult sendLocalResponse(uint32_t /* response_code */, string_view /* body_text */, Pairs /* additional_headers */, GrpcStatusCode /* grpc_status */, string_view /* details */) override { diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 4a0cb8946..0c8f2c06f 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -40,14 +40,6 @@ using GrpcStatusCode = uint32_t; using SharedQueueDequeueToken = uint32_t; using SharedQueueEnqueueToken = uint32_t; -// TODO: move to SDK. -enum StreamType { - Request, - Response, - Downstream, - Upstream, -}; - // TODO: update SDK and use this. enum class ProxyAction : uint32_t { Illegal = 0, @@ -55,19 +47,6 @@ enum class ProxyAction : uint32_t { Pause = 2, }; -/* - * The source of the close event. - * Unknown is when the source is not known. - * Local is when the close was initiated by the proxy. - * Remote is when the close was received from the peer. - */ -// TODO: update SDK. -enum class CloseType : uint32_t { - Unknown = 0, - Local = 1, - Remote = 2, -}; - struct PluginBase; class WasmBase; @@ -331,8 +310,11 @@ struct NetworkInterface { **/ struct StreamInterface { virtual ~StreamInterface() = default; - // Continue processing a request e.g. after returning ProxyAction::Pause. - virtual WasmResult continueStream(StreamType type) = 0; + // Continue processing e.g. after returning ProxyAction::Pause. + virtual WasmResult continueStream(WasmStreamType type) = 0; + + // Close a stream. + virtual WasmResult closeStream(WasmStreamType type) = 0; /** * Provides a BufferInterface to be used to return buffered data to the VM. @@ -345,7 +327,7 @@ struct StreamInterface { * when a connection is closed (or half-closed) either locally or remotely. * @param stream_type is the flow */ - virtual bool endOfStream(StreamType type) = 0; + virtual bool endOfStream(WasmStreamType type) = 0; }; // Header/Trailer/Metadata Maps diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 786350e6b..e9470720f 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -29,8 +29,8 @@ Word log(void *raw_context, Word level, Word address, Word size); Word get_property(void *raw_context, Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_size_ptr); Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, Word value_size); -Word continue_request(void *raw_context); -Word continue_response(void *raw_context); +Word continue_stream(void *raw_context, Word stream_type); +Word close_stream(void *raw_context, Word stream_type); Word send_local_response(void *raw_context, Word response_code, Word response_code_details_ptr, Word response_code_details_size, Word body_ptr, Word body_size, Word additional_response_header_pairs_ptr, diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index 95286a9e2..d0f4c97e3 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -65,11 +65,11 @@ inline WasmResult proxy_set_property(const char *key_ptr, size_t key_size, const } // Continue -inline WasmResult proxy_continue_request() { - return wordToWasmResult(exports::continue_request(current_context_)); +inline WasmResult proxy_continue_stream(WasmStreamType stream_type) { + return wordToWasmResult(exports::continue_stream(current_context_, WS(stream_type))); } -inline WasmResult proxy_continue_response() { - return wordToWasmResult(exports::continue_response(current_context_)); +inline WasmResult proxy_close_stream(WasmStreamType stream_type) { + return wordToWasmResult(exports::close_stream(current_context_, WS(stream_type))); } inline WasmResult proxy_send_local_response(uint32_t response_code, const char *response_code_details_ptr, diff --git a/src/exports.cc b/src/exports.cc index 07c79120f..9e115dcf8 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -164,16 +164,20 @@ Word get_status(void *raw_context, Word code_ptr, Word value_ptr_ptr, Word value // HTTP // Continue/Reply/Route -Word continue_request(void *raw_context) { +Word continue_stream(void *raw_context, Word type) { auto context = WASM_CONTEXT(raw_context); - context->continueStream(StreamType::Request); - return WasmResult::Ok; + if (type > static_cast(WasmStreamType::MAX)) { + return WasmResult::BadArgument; + } + return context->continueStream(static_cast(type.u64_)); } -Word continue_response(void *raw_context) { +Word close_stream(void *raw_context, Word type) { auto context = WASM_CONTEXT(raw_context); - context->continueStream(StreamType::Response); - return WasmResult::Ok; + if (type > static_cast(WasmStreamType::MAX)) { + return WasmResult::BadArgument; + } + return context->closeStream(static_cast(type.u64_)); } Word send_local_response(void *raw_context, Word response_code, Word response_code_details_ptr, diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index ab014ab20..871727c9f 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -376,11 +376,11 @@ uint64_t NullPlugin::onUpstreamData(uint64_t context_id, uint64_t data_length, } void NullPlugin::onDownstreamConnectionClose(uint64_t context_id, uint64_t close_type) { - getContext(context_id)->onDownstreamConnectionClose(static_cast(close_type)); + getContext(context_id)->onDownstreamConnectionClose(static_cast(close_type)); } void NullPlugin::onUpstreamConnectionClose(uint64_t context_id, uint64_t close_type) { - getContext(context_id)->onUpstreamConnectionClose(static_cast(close_type)); + getContext(context_id)->onUpstreamConnectionClose(static_cast(close_type)); } uint64_t NullPlugin::onRequestHeaders(uint64_t context_id, uint64_t headers, diff --git a/src/wasm.cc b/src/wasm.cc index 786cba701..731bc4349 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -146,8 +146,8 @@ void WasmBase::registerCallbacks() { _REGISTER_PROXY(set_property); _REGISTER_PROXY(get_property); - _REGISTER_PROXY(continue_request); - _REGISTER_PROXY(continue_response); + _REGISTER_PROXY(continue_stream); + _REGISTER_PROXY(close_stream); _REGISTER_PROXY(send_local_response); _REGISTER_PROXY(get_shared_data); From f25f824b250957599a6ae94eac24b6d43d4eb520 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Thu, 25 Jun 2020 08:51:23 -0700 Subject: [PATCH 011/287] Remove bad check during buffer write. (#27) Signed-off-by: John Plevyak --- src/exports.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/exports.cc b/src/exports.cc index 9e115dcf8..f6b084b30 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -514,10 +514,6 @@ Word set_buffer_bytes(void *raw_context, Word type, Word start, Word length, Wor if (!data) { return WasmResult::InvalidMemoryAccess; } - // check for overflow. - if (buffer->size() < start + length || start > start + length) { - return WasmResult::BadArgument; - } return buffer->copyFrom(start, length, data.value()); } From 1de015a7c1357a82b174501edaffe8d0376fb39c Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Fri, 26 Jun 2020 14:06:37 -0700 Subject: [PATCH 012/287] Enable onForeignFunction and proxy-specific extensions to the ABI. (#23) * Enable onForeignFunction and proxy-specific extensions to the ABI. Signed-off-by: John Plevyak --- WORKSPACE | 2 +- include/proxy-wasm/context.h | 80 ++++++++++++++++++++++---- include/proxy-wasm/context_interface.h | 12 +++- include/proxy-wasm/exports.h | 10 ++++ include/proxy-wasm/null_plugin.h | 14 +++-- include/proxy-wasm/wasm.h | 47 ++++++++------- include/proxy-wasm/wasm_api_impl.h | 14 ++--- include/proxy-wasm/wasm_vm.h | 15 +++++ include/proxy-wasm/word.h | 4 +- src/context.cc | 62 ++++++++++++++------ src/exports.cc | 19 +++--- src/null/null_plugin.cc | 36 +++++++++--- src/wasm.cc | 3 +- 13 files changed, 225 insertions(+), 93 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 390535bf4..8fb4ce211 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,7 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "proxy_wasm_cpp_sdk", - commit = "f44562520bca7bfeee77d6284a96d2900f2f13ac", + commit = "35163bbf32fccfbde7b95d909a392dc1dc562596", remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", ) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 03a15becc..1a495d006 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -63,6 +63,46 @@ struct PluginBase { std::string log_prefix_; }; +struct BufferBase : public BufferInterface { + BufferBase() = default; + ~BufferBase() override = default; + + // BufferInterface + size_t size() const override { + if (owned_data_) { + return owned_data_size_; + } + return data_.size(); + } + WasmResult copyTo(WasmBase *wasm, size_t start, size_t length, uint64_t ptr_ptr, + uint64_t size_ptr) const override; + WasmResult copyFrom(size_t /* start */, size_t /* length */, string_view /* data */) override { + // Setting a string buffer not supported (no use case). + return WasmResult::BadArgument; + } + + virtual void clear() { + data_ = ""; + owned_data_ = nullptr; + } + BufferBase *set(string_view data) { + clear(); + data_ = data; + return this; + } + BufferBase *set(std::unique_ptr owned_data, uint32_t owned_data_size) { + clear(); + owned_data_ = std::move(owned_data); + owned_data_size_ = owned_data_size; + return this; + } + +protected: + string_view data_; + std::unique_ptr owned_data_; + uint32_t owned_data_size_; +}; + /** * ContextBase is the interface between the VM host and the VM. It has several uses: * @@ -94,7 +134,7 @@ class ContextBase : public RootInterface, ContextBase(); // Testing. ContextBase(WasmBase *wasm); // Vm Context. ContextBase(WasmBase *wasm, std::shared_ptr plugin); // Root Context. - ContextBase(WasmBase *wasm, uint32_t root_context_id, + ContextBase(WasmBase *wasm, uint32_t parent_context_id, std::shared_ptr plugin); // Stream context. virtual ~ContextBase(); @@ -103,8 +143,17 @@ class ContextBase : public RootInterface, // The VM Context used for calling "malloc" has an id_ == 0. bool isVmContext() const { return id_ == 0; } // Root Contexts have the VM Context as a parent. - bool isRootContext() const { return root_context_id_ == 0; } - ContextBase *root_context() const { return root_context_; } + bool isRootContext() const { return parent_context_id_ == 0; } + ContextBase *parent_context() const { return parent_context_; } + ContextBase *root_context() const { + const ContextBase *previous = this; + ContextBase *parent = parent_context_; + while (parent != previous) { + previous = parent; + parent = parent->parent_context_; + } + return parent; + } string_view root_id() const { return isRootContext() ? root_id_ : plugin_->root_id_; } string_view log_prefix() const { return isRootContext() ? root_log_prefix_ : plugin_->log_prefix(); @@ -121,10 +170,11 @@ class ContextBase : public RootInterface, */ // Context - void onCreate(uint32_t parent_context_id) override; + void onCreate() override; bool onDone() override; void onLog() override; void onDelete() override; + void onForeignFunction(uint32_t foreign_function_id, uint32_t data_size) override; // Root bool onStart(std::shared_ptr plugin) override; @@ -173,10 +223,6 @@ class ContextBase : public RootInterface, WasmResult log(uint32_t /* level */, string_view /* message */) override { return unimplemented(); } - WasmResult setTimerPeriod(std::chrono::milliseconds /* period */, - uint32_t * /* timer_token_ptr */) override { - return unimplemented(); - } uint64_t getCurrentTimeNanoseconds() override { struct timespec tpe; clock_gettime(CLOCK_REALTIME, &tpe); @@ -189,6 +235,7 @@ class ContextBase : public RootInterface, unimplemented(); return std::make_pair(1, "unimplmemented"); } + WasmResult setTimerPeriod(std::chrono::milliseconds period, uint32_t *timer_token_ptr) override; // Buffer BufferInterface *getBuffer(WasmBufferType /* type */) override { @@ -316,15 +363,24 @@ class ContextBase : public RootInterface, WasmBase *wasm_{nullptr}; uint32_t id_{0}; - uint32_t root_context_id_{0}; // 0 for roots and the general context. - ContextBase *root_context_{nullptr}; // set in all contexts. - std::string root_id_; // set only in root context. - std::string root_log_prefix_; // set only in root context. + uint32_t parent_context_id_{0}; // 0 for roots and the general context. + ContextBase *parent_context_{nullptr}; // set in all contexts. + std::string root_id_; // set only in root context. + std::string root_log_prefix_; // set only in root context. std::shared_ptr plugin_; bool in_vm_context_created_ = false; bool destroyed_ = false; }; +class DeferAfterCallActions { +public: + DeferAfterCallActions(ContextBase *context) : wasm_(context->wasm()) {} + ~DeferAfterCallActions(); + +private: + WasmBase *const wasm_; +}; + uint32_t resolveQueueForTest(string_view vm_id, string_view queue_name); } // namespace proxy_wasm diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 0c8f2c06f..3a92a2307 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -133,10 +133,9 @@ struct RootInterface : public RootGrpcInterface { /** * Call on a host Context to create a corresponding Context in the VM. Note: * onNetworkNewConnection and onRequestHeaders() call onCreate(). - * @param parent_context_id is the parent Context id for the context being created. For a * stream Context this will be a Root Context id (or sub-Context thereof). */ - virtual void onCreate(uint32_t parent_context_id) = 0; + virtual void onCreate() = 0; /** * Call on a Root Context when a VM first starts up. @@ -564,6 +563,15 @@ struct GeneralInterface { * serialized.. */ virtual WasmResult setProperty(string_view key, string_view value) = 0; + + /** + * Custom extension call into the VM. Data is provided as WasmBufferType::CallData. + * @param foreign_function_id a unique identifier for the calling foreign function. These are + * defined and allocated by the foreign function implementor. + * @param data_size is the size of the WasmBufferType::CallData buffer containing data for this + * foreign function call. + */ + virtual void onForeignFunction(uint32_t foreign_function_id, uint32_t data_size) = 0; }; /** diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index e9470720f..3b8d67961 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -20,6 +20,11 @@ #include "include/proxy-wasm/word.h" namespace proxy_wasm { + +class ContextBase; + +extern thread_local ContextBase *current_context_; + namespace exports { // ABI functions exported from envoy to wasm. @@ -107,5 +112,10 @@ void wasi_unstable_proc_exit(void *, Word); void wasi_unstable_proc_exit(void *, Word); Word pthread_equal(void *, Word left, Word right); +// Support for embedders, not exported to Wasm. + +// Any currently executing Wasm call context. +::proxy_wasm::ContextBase *ContextOrEffectiveContext(::proxy_wasm::ContextBase *context); + } // namespace exports } // namespace proxy_wasm diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 1f3ff7333..6f12323c1 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -20,9 +20,12 @@ #include "google/protobuf/message.h" #include "include/proxy-wasm/null_vm_plugin.h" #include "include/proxy-wasm/wasm.h" +#include "include/proxy-wasm/exports.h" namespace proxy_wasm { namespace null_plugin { +template using Optional = optional; +using StringView = string_view; #include "proxy_wasm_enums.h" } // namespace null_plugin } // namespace proxy_wasm @@ -30,11 +33,6 @@ namespace null_plugin { #include "include/proxy-wasm/wasm_api_impl.h" namespace proxy_wasm { -namespace null_plugin { -using StringView = string_view; -template using Optional = optional; -#include "proxy_wasm_api.h" -} // namespace null_plugin /** * Registry for Plugin implementation. @@ -48,6 +46,8 @@ struct NullPluginRegistry { uint32_t (*proxy_on_configure_)(uint32_t root_context_id, uint32_t plugin_configuration_size) = nullptr; void (*proxy_on_tick_)(uint32_t context_id) = nullptr; + void (*proxy_on_foreign_function_)(uint32_t context_id, uint32_t token, + uint32_t data_size) = nullptr; uint32_t (*proxy_on_done_)(uint32_t context_id) = nullptr; void (*proxy_on_delete_)(uint32_t context_id) = nullptr; std::unordered_map root_factories; @@ -74,6 +74,8 @@ class NullPlugin : public NullVmPlugin { bool onConfigure(uint64_t root_context_id, uint64_t plugin_configuration_size); void onTick(uint64_t root_context_id); void onQueueReady(uint64_t root_context_id, uint64_t token); + void onForeignFunction(uint64_t root_context_id, uint64_t foreign_function_id, + uint64_t data_size); void onCreate(uint64_t context_id, uint64_t root_context_id); @@ -110,12 +112,12 @@ class NullPlugin : public NullVmPlugin { void error(string_view message) { wasm_vm_->error(message); } -private: null_plugin::Context *ensureContext(uint64_t context_id, uint64_t root_context_id); null_plugin::RootContext *ensureRootContext(uint64_t context_id); null_plugin::RootContext *getRootContext(uint64_t context_id); null_plugin::ContextBase *getContextBase(uint64_t context_id); +private: NullPluginRegistry *registry_{}; std::unordered_map root_context_map_; std::unordered_map> context_map_; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 0bede8433..37dfebfac 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -76,6 +76,17 @@ class WasmBase : public std::enable_shared_from_this { const std::string &vm_configuration() const; bool allow_precompiled() const { return allow_precompiled_; } + void timerReady(uint32_t root_context_id); + void queueReady(uint32_t root_context_id, uint32_t token); + + void startShutdown(); + WasmResult done(ContextBase *root_context); + void finishShutdown(); + + // Proxy specific extension points. + // + virtual void registerCallbacks(); // Register functions called out from Wasm. + virtual void getFunctions(); // Get functions call into Wasm. virtual CallOnThreadFunction callOnThreadFunction() { unimplemented(); return nullptr; @@ -86,18 +97,17 @@ class WasmBase : public std::enable_shared_from_this { return new ContextBase(this, plugin); return new ContextBase(this); } - - virtual void setTickPeriod(uint32_t root_context_id, std::chrono::milliseconds tick_period) { - tick_period_[root_context_id] = tick_period; + virtual void setTimerPeriod(uint32_t root_context_id, std::chrono::milliseconds period) { + timer_period_[root_context_id] = period; } - void tick(uint32_t root_context_id); - void queueReady(uint32_t root_context_id, uint32_t token); - - void startShutdown(); - WasmResult done(ContextBase *root_context); - void finishShutdown(); + virtual void error(string_view message) { + std::cerr << message << "\n"; + abort(); + } + virtual void unimplemented() { error("unimplemented proxy-wasm API"); } // Support functions. + // void *allocMemory(uint64_t size, uint64_t *address); // Allocate a null-terminated string in the VM and return the pointer to use as a call arguments. uint64_t copyString(string_view s); @@ -107,14 +117,9 @@ class WasmBase : public std::enable_shared_from_this { WasmForeignFunction getForeignFunction(string_view function_name); - virtual void error(string_view message) { - std::cerr << message << "\n"; - abort(); - } - virtual void unimplemented() { error("unimplemented proxy-wasm API"); } - // For testing. - void setContext(ContextBase *context) { contexts_[context->id()] = context; } + // + void setContextForTesting(ContextBase *context) { contexts_[context->id()] = context; } // Returns false if onStart returns false. bool startForTesting(std::unique_ptr root_context, std::shared_ptr plugin); @@ -146,8 +151,6 @@ class WasmBase : public std::enable_shared_from_this { } } - // These are the same as the values of the MetricType enum, here separately for - // convenience. static const uint32_t kMetricTypeMask = 0x3; // Enough to cover the 3 types. static const uint32_t kMetricIdIncrement = 0x4; // Enough to cover the 3 types. bool isCounterMetricId(uint32_t metric_id) { @@ -166,9 +169,8 @@ class WasmBase : public std::enable_shared_from_this { protected: friend class ContextBase; class ShutdownHandle; - void registerCallbacks(); // Register functions called out from WASM. + void establishEnvironment(); // Language specific environments. - void getFunctions(); // Get functions call into WASM. std::string vm_id_; // User-provided vm_id. std::string vm_key_; // vm_id + hash of code. @@ -179,8 +181,8 @@ class WasmBase : public std::enable_shared_from_this { std::shared_ptr vm_context_; // Context unrelated to any specific root or stream // (e.g. for global constructors). std::unordered_map> root_contexts_; - std::unordered_map contexts_; // Contains all contexts. - std::unordered_map tick_period_; // per root_id. + std::unordered_map contexts_; // Contains all contexts. + std::unordered_map timer_period_; // per root_id. std::unique_ptr shutdown_handle_; std::unordered_set pending_done_; // Root contexts not done during shutdown. @@ -224,6 +226,7 @@ class WasmBase : public std::enable_shared_from_this { WasmCallVoid<3> on_grpc_receive_trailing_metadata_; WasmCallVoid<2> on_queue_ready_; + WasmCallVoid<3> on_foreign_function_; WasmCallWord<1> on_done_; WasmCallVoid<1> on_log_; diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index d0f4c97e3..ab1486095 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -18,14 +18,6 @@ #include "include/proxy-wasm/compat.h" namespace proxy_wasm { -namespace null_plugin { -class RootContext; -class Context; -} // namespace null_plugin - -null_plugin::RootContext *nullVmGetRoot(string_view root_id); -null_plugin::Context *nullVmGetContext(uint32_t context_id); - namespace null_plugin { #define WS(_x) Word(static_cast(_x)) @@ -264,8 +256,10 @@ inline WasmResult proxy_call_foreign_function(const char *function_name, size_t #undef WS #undef WR -inline RootContext *getRoot(string_view root_id) { return nullVmGetRoot(root_id); } -inline Context *getContext(uint32_t context_id) { return nullVmGetContext(context_id); } +#include "proxy_wasm_api.h" + +RootContext *getRoot(string_view root_id); +Context *getContext(uint32_t context_id); } // namespace null_plugin } // namespace proxy_wasm diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 381580920..759132069 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -102,11 +102,26 @@ enum class Cloneable { InstantiatedModule // VMs can be cloned from an instantiated module. }; +class NullPlugin; + // Integrator specific WasmVm operations. struct WasmVmIntegration { virtual ~WasmVmIntegration() {} virtual WasmVmIntegration *clone() = 0; virtual void error(string_view message) = 0; + // Get a NullVm implementation of a function. + // @param function_name is the name of the function with the implementation specific prefix. + // @param returns_word is true if the function returns a Word and false if it returns void. + // @param number_of_arguments is the number of Word arguments to the function. + // @param plugin is the Null VM plugin on which the function will be called. + // @param ptr_to_function_return is the location to write the function e.g. of type + // WasmCallWord<3>. + // @return true if the function was found. ptr_to_function_return could still be set to nullptr + // (of the correct type) if the function has no implementation. Returning true will prevent a + // "Missing getFunction" error. + virtual bool getNullVmFunction(string_view function_name, bool returns_word, + int number_of_arguments, NullPlugin *plugin, + void *ptr_to_function_return) = 0; }; // Wasm VM instance. Provides the low level WASM interface. diff --git a/include/proxy-wasm/word.h b/include/proxy-wasm/word.h index 1e4ce6734..e96fdfb94 100644 --- a/include/proxy-wasm/word.h +++ b/include/proxy-wasm/word.h @@ -17,10 +17,10 @@ #include -#include "proxy_wasm_common.h" - namespace proxy_wasm { +#include "proxy_wasm_common.h" + // Represents a Wasm-native word-sized datum. On 32-bit VMs, the high bits are always zero. // The Wasm/VM API treats all bits as significant. struct Word { diff --git a/src/context.cc b/src/context.cc index df2688666..2814188fc 100644 --- a/src/context.cc +++ b/src/context.cc @@ -27,15 +27,6 @@ namespace proxy_wasm { namespace { -class DeferAfterCallActions { -public: - DeferAfterCallActions(ContextBase *context) : wasm_(context->wasm()) {} - ~DeferAfterCallActions() { wasm_->doAfterVmCallActions(); } - -private: - WasmBase *const wasm_; -}; - using CallOnThreadFunction = std::function)>; class SharedData { @@ -183,6 +174,24 @@ SharedData global_shared_data; } // namespace +DeferAfterCallActions::~DeferAfterCallActions() { wasm_->doAfterVmCallActions(); } + +WasmResult BufferBase::copyTo(WasmBase *wasm, size_t start, size_t length, uint64_t ptr_ptr, + uint64_t size_ptr) const { + if (owned_data_) { + string_view s(owned_data_.get() + start, length); + if (!wasm->copyToPointerSize(s, ptr_ptr, size_ptr)) { + return WasmResult::InvalidMemoryAccess; + } + return WasmResult::Ok; + } + string_view s = data_.substr(start, length); + if (!wasm->copyToPointerSize(s, ptr_ptr, size_ptr)) { + return WasmResult::InvalidMemoryAccess; + } + return WasmResult::Ok; +} + // Test support. uint32_t resolveQueueForTest(string_view vm_id, string_view queue_name) { @@ -203,9 +212,9 @@ std::string PluginBase::makeLogPrefix() const { return prefix; } -ContextBase::ContextBase() : root_context_(this) {} +ContextBase::ContextBase() : parent_context_(this) {} -ContextBase::ContextBase(WasmBase *wasm) : wasm_(wasm), root_context_(this) { +ContextBase::ContextBase(WasmBase *wasm) : wasm_(wasm), parent_context_(this) { wasm_->contexts_[id_] = this; } @@ -213,11 +222,12 @@ ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) { initializeRootBase(wasm, plugin); } -ContextBase::ContextBase(WasmBase *wasm, uint32_t root_context_id, +ContextBase::ContextBase(WasmBase *wasm, uint32_t parent_context_id, std::shared_ptr plugin) - : wasm_(wasm), id_(wasm->allocContextId()), root_context_id_(root_context_id), plugin_(plugin) { + : wasm_(wasm), id_(wasm->allocContextId()), parent_context_id_(parent_context_id), + plugin_(plugin) { wasm_->contexts_[id_] = this; - root_context_ = wasm_->contexts_[root_context_id_]; + parent_context_ = wasm_->contexts_[parent_context_id_]; } WasmVm *ContextBase::wasmVm() const { return wasm_->wasm_vm(); } @@ -227,7 +237,7 @@ void ContextBase::initializeRootBase(WasmBase *wasm, std::shared_ptr id_ = wasm->allocContextId(); root_id_ = plugin->root_id_; root_log_prefix_ = makeRootLogPrefix(plugin->vm_id_); - root_context_ = this; + parent_context_ = this; wasm_->contexts_[id_] = this; } @@ -277,10 +287,10 @@ bool ContextBase::onConfigure(std::shared_ptr plugin) { return result; } -void ContextBase::onCreate(uint32_t parent_context_id) { +void ContextBase::onCreate() { if (!in_vm_context_created_ && wasm_->on_context_create_) { DeferAfterCallActions actions(this); - wasm_->on_context_create_(this, id_, parent_context_id); + wasm_->on_context_create_(this, id_, parent_context_ ? parent_context()->id() : 0); in_vm_context_created_ = true; } // NB: If no on_context_create function is registered the in-VM SDK is responsible for @@ -304,7 +314,7 @@ WasmResult ContextBase::registerSharedQueue(string_view queue_name, // Get the id of the root context if this is a stream context because onQueueReady is on the // root. *result = global_shared_data.registerQueue(wasm_->vm_id(), queue_name, - isRootContext() ? id_ : root_context_id_, + isRootContext() ? id_ : parent_context_id_, wasm_->callOnThreadFunction()); return WasmResult::Ok; } @@ -341,6 +351,13 @@ void ContextBase::onTick(uint32_t) { } } +void ContextBase::onForeignFunction(uint32_t foreign_function_id, uint32_t data_size) { + if (wasm_->on_foreign_function_) { + DeferAfterCallActions actions(this); + wasm_->on_foreign_function_(this, id_, foreign_function_id, data_size); + } +} + FilterStatus ContextBase::onNetworkNewConnection() { if (!wasm_->on_new_connection_) { return FilterStatus::Continue; @@ -557,9 +574,16 @@ void ContextBase::onDelete() { } } +WasmResult ContextBase::setTimerPeriod(std::chrono::milliseconds period, + uint32_t *timer_token_ptr) { + wasm()->setTimerPeriod(root_context()->id(), period); + *timer_token_ptr = 0; + return WasmResult::Ok; +} + ContextBase::~ContextBase() { // Do not remove vm or root contexts which have the same lifetime as wasm_. - if (root_context_id_) { + if (parent_context_id_) { wasm_->contexts_.erase(id_); } } diff --git a/src/exports.cc b/src/exports.cc index f6b084b30..95eeddf28 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -15,20 +15,17 @@ // #include "include/proxy-wasm/wasm.h" +#define WASM_CONTEXT(_c) \ + (ContextOrEffectiveContext(static_cast((void)_c, current_context_))) + namespace proxy_wasm { +// The id of the context which should be used for calls out of the VM in place +// of current_context_. extern thread_local uint32_t effective_context_id_; namespace exports { -// Any currently executing Wasm call context. -#define WASM_CONTEXT(_c) \ - (ContextOrEffectiveContext(static_cast((void)_c, current_context_))) -// The id of the context which should be used for calls out of the VM in place -// of current_context_ above. - -namespace { - ContextBase *ContextOrEffectiveContext(ContextBase *context) { if (effective_context_id_ == 0) { return context; @@ -41,6 +38,8 @@ ContextBase *ContextOrEffectiveContext(ContextBase *context) { return context; } +namespace { + Pairs toPairs(string_view buffer) { Pairs result; const char *b = buffer.data(); @@ -811,10 +810,10 @@ void wasi_unstable_proc_exit(void *raw_context, Word) { Word pthread_equal(void *, Word left, Word right) { return left == right; } -Word set_tick_period_milliseconds(void *raw_context, Word tick_period_milliseconds) { +Word set_tick_period_milliseconds(void *raw_context, Word period_milliseconds) { TimerToken token = 0; return WASM_CONTEXT(raw_context) - ->setTimerPeriod(std::chrono::milliseconds(tick_period_milliseconds), &token); + ->setTimerPeriod(std::chrono::milliseconds(period_milliseconds), &token); } Word get_current_time_nanoseconds(void *raw_context, Word result_uint64_ptr) { diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index 871727c9f..d96c62ef3 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -13,6 +13,9 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include "include/proxy-wasm/null_plugin.h" + +#include #include #include @@ -36,7 +39,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<0> *f) { *f = nullptr; } else if (function_name == "__wasm_call_ctors") { *f = nullptr; - } else { + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, false, 0, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -59,7 +62,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<1> *f) { SaveRestoreContext saved_context(context); plugin->onDelete(context_id); }; - } else { + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, false, 1, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -87,7 +90,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<2> *f) { SaveRestoreContext saved_context(context); plugin->onQueueReady(context_id, token); }; - } else { + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, false, 2, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -115,7 +118,12 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<3> *f) { SaveRestoreContext saved_context(context); plugin->onGrpcReceiveTrailingMetadata(context_id, token, trailers); }; - } else { + } else if (function_name == "proxy_on_foreign_function") { + *f = [plugin](ContextBase *context, Word context_id, Word foreign_function_id, Word data_size) { + SaveRestoreContext saved_context(context); + plugin->onForeignFunction(context_id, foreign_function_id, data_size); + }; + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, false, 3, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -129,7 +137,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<5> *f) { SaveRestoreContext saved_context(context); plugin->onHttpCallResponse(context_id, token, headers, body_size, trailers); }; - } else { + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, false, 5, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -151,7 +159,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<1> *f) { SaveRestoreContext saved_context(context); return Word(plugin->onDone(context_id)); }; - } else { + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, true, 1, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -194,7 +202,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<2> *f) { SaveRestoreContext saved_context(context); return Word(plugin->onResponseMetadata(context_id, elements)); }; - } else { + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, true, 2, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -236,7 +244,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<3> *f) { SaveRestoreContext saved_context(context); return Word(plugin->onResponseBody(context_id, body_buffer_length, end_of_stream)); }; - } else { + } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, true, 3, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; } @@ -452,6 +460,14 @@ void NullPlugin::onQueueReady(uint64_t context_id, uint64_t token) { getRootContext(context_id)->onQueueReady(token); } +void NullPlugin::onForeignFunction(uint64_t context_id, uint64_t foreign_function_id, + uint64_t data_size) { + if (registry_->proxy_on_foreign_function_) { + return registry_->proxy_on_foreign_function_(context_id, foreign_function_id, data_size); + } + getContextBase(context_id)->onForeignFunction(foreign_function_id, data_size); +} + void NullPlugin::onLog(uint64_t context_id) { getContext(context_id)->onLog(); } uint64_t NullPlugin::onDone(uint64_t context_id) { @@ -480,4 +496,8 @@ null_plugin::Context *nullVmGetContext(uint32_t context_id) { return static_cast(null_vm->plugin_.get())->getContext(context_id); } +null_plugin::RootContext *getRoot(string_view root_id) { return nullVmGetRoot(root_id); } + +null_plugin::Context *getContext(uint32_t context_id) { return nullVmGetContext(context_id); } + } // namespace proxy_wasm diff --git a/src/wasm.cc b/src/wasm.cc index 731bc4349..86f736919 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -205,6 +205,7 @@ void WasmBase::getFunctions() { _GET_PROXY(on_vm_start); _GET_PROXY(on_configure); _GET_PROXY(on_tick); + _GET_PROXY(on_foreign_function); _GET_PROXY(on_context_create); @@ -378,7 +379,7 @@ uint32_t WasmBase::allocContextId() { } } -void WasmBase::tick(uint32_t root_context_id) { +void WasmBase::timerReady(uint32_t root_context_id) { if (on_tick_) { auto it = contexts_.find(root_context_id); if (it == contexts_.end() || !it->second->isRootContext()) { From bf829e5d5c04d2924509d10848cac237c26d2fd6 Mon Sep 17 00:00:00 2001 From: Pengyuan Bian Date: Mon, 29 Jun 2020 11:35:50 -0700 Subject: [PATCH 013/287] move getContext into null_plugin namespace (#30) Signed-off-by: Pengyuan Bian --- src/null/null_plugin.cc | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index d96c62ef3..4b981b34b 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -486,18 +486,21 @@ void NullPlugin::onDelete(uint64_t context_id) { context_map_.erase(context_id); } -null_plugin::RootContext *nullVmGetRoot(string_view root_id) { +namespace null_plugin { + +RootContext *nullVmGetRoot(string_view root_id) { auto null_vm = static_cast(current_context_->wasmVm()); return static_cast(null_vm->plugin_.get())->getRoot(root_id); } -null_plugin::Context *nullVmGetContext(uint32_t context_id) { +Context *nullVmGetContext(uint32_t context_id) { auto null_vm = static_cast(current_context_->wasmVm()); return static_cast(null_vm->plugin_.get())->getContext(context_id); } -null_plugin::RootContext *getRoot(string_view root_id) { return nullVmGetRoot(root_id); } +RootContext *getRoot(string_view root_id) { return nullVmGetRoot(root_id); } -null_plugin::Context *getContext(uint32_t context_id) { return nullVmGetContext(context_id); } +Context *getContext(uint32_t context_id) { return nullVmGetContext(context_id); } +} // namespace null_plugin } // namespace proxy_wasm From b6c4b8183afaada2cd4b6c79948d72b9426952f8 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Mon, 29 Jun 2020 16:35:14 -0700 Subject: [PATCH 014/287] Handle Wasm errors by failing closed or open. (#29) Signed-off-by: John Plevyak --- include/proxy-wasm/context.h | 14 +-- include/proxy-wasm/context_interface.h | 3 + include/proxy-wasm/null_vm.h | 2 +- include/proxy-wasm/wasm.h | 45 ++++++---- include/proxy-wasm/wasm_vm.h | 15 +++- src/context.cc | 115 +++++++++++++------------ src/null/null_vm.cc | 2 +- src/v8/v8.cc | 47 +++++----- src/wasm.cc | 111 +++++++++++------------- 9 files changed, 191 insertions(+), 163 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 1a495d006..e2a6abd8d 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -44,17 +44,19 @@ class WasmVm; * @param root_id is an identifier for the in VM handlers for this plugin. * @param vm_id is a string used to differentiate VMs with the same code and VM configuration. * @param plugin_configuration is configuration for this plugin. + * @param fail_open if true the plugin will pass traffic as opposed to close all streams. */ struct PluginBase { PluginBase(string_view name, string_view root_id, string_view vm_id, - string_view plugin_configuration) + string_view plugin_configuration, bool fail_open) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), - plugin_configuration_(plugin_configuration) {} + plugin_configuration_(plugin_configuration), fail_open_(fail_open) {} const std::string name_; const std::string root_id_; const std::string vm_id_; std::string plugin_configuration_; + const bool fail_open_; const std::string &log_prefix() const { return log_prefix_; } private: @@ -216,6 +218,8 @@ class ContextBase : public RootInterface, error("unimplemented proxy-wasm API"); return WasmResult::Unimplemented; } + bool isFailed(); + bool isFailOpen() { return plugin_->fail_open_; } // // General Callbacks. @@ -308,6 +312,7 @@ class ContextBase : public RootInterface, string_view /* details */) override { return unimplemented(); } + void failStream(WasmStreamType stream_type) override { closeStream(stream_type); } // Shared Data WasmResult getSharedData(string_view key, @@ -353,12 +358,7 @@ class ContextBase : public RootInterface, protected: friend class WasmBase; - // NB: initializeRootBase is non-virtual and can be called in the constructor without ambiguity. void initializeRootBase(WasmBase *wasm, std::shared_ptr plugin); - // NB: initializeRoot is virtual and should be called only outside of the constructor. - virtual void initializeRoot(WasmBase *wasm, std::shared_ptr plugin) { - initializeRootBase(wasm, plugin); - } std::string makeRootLogPrefix(string_view vm_id) const; WasmBase *wasm_{nullptr}; diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 3a92a2307..0f9c02e08 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -315,6 +315,9 @@ struct StreamInterface { // Close a stream. virtual WasmResult closeStream(WasmStreamType type) = 0; + // Called when a Wasm VM has failed and the plugin is set to fail closed. + virtual void failStream(WasmStreamType) = 0; + /** * Provides a BufferInterface to be used to return buffered data to the VM. * @param type is the type of buffer to provide. diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index bec145669..de75d2e6b 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -36,7 +36,7 @@ struct NullVm : public WasmVm { Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(const std::string &code, bool allow_precompiled) override; - void link(string_view debug_name) override; + bool link(string_view debug_name) override; uint64_t getMemorySize() override; optional getMemory(uint64_t pointer, uint64_t size) override; bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 37dfebfac..e8364acb0 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -71,6 +71,7 @@ class WasmBase : public std::enable_shared_from_this { return nullptr; } uint32_t allocContextId(); + bool isFailed() { return failed_; } const std::string &code() const { return code_; } const std::string &vm_configuration() const; @@ -91,20 +92,17 @@ class WasmBase : public std::enable_shared_from_this { unimplemented(); return nullptr; } - // NB: if plugin is nullptr, then a VM Context is returned. - virtual ContextBase *createContext(std::shared_ptr plugin) { - if (plugin) - return new ContextBase(this, plugin); - return new ContextBase(this); + + virtual ContextBase *createVmContext() { return new ContextBase(this); } + virtual ContextBase *createRootContext(const std::shared_ptr &plugin) { + return new ContextBase(this, plugin); + } + virtual ContextBase *createContext(const std::shared_ptr &plugin) { + return new ContextBase(this, plugin); } virtual void setTimerPeriod(uint32_t root_context_id, std::chrono::milliseconds period) { timer_period_[root_context_id] = period; } - virtual void error(string_view message) { - std::cerr << message << "\n"; - abort(); - } - virtual void unimplemented() { error("unimplemented proxy-wasm API"); } // Support functions. // @@ -117,12 +115,12 @@ class WasmBase : public std::enable_shared_from_this { WasmForeignFunction getForeignFunction(string_view function_name); - // For testing. - // - void setContextForTesting(ContextBase *context) { contexts_[context->id()] = context; } - // Returns false if onStart returns false. - bool startForTesting(std::unique_ptr root_context, - std::shared_ptr plugin); + void fail(string_view message) { + error(message); + failed_ = true; + } + virtual void error(string_view message) { std::cerr << message << "\n"; } + virtual void unimplemented() { error("unimplemented proxy-wasm API"); } bool getEmscriptenVersion(uint32_t *emscripten_metadata_major_version, uint32_t *emscripten_metadata_minor_version, @@ -238,6 +236,7 @@ class WasmBase : public std::enable_shared_from_this { std::string code_; std::string vm_configuration_; bool allow_precompiled_ = false; + bool failed_ = false; // The Wasm VM has experienced a fatal error. bool is_emscripten_ = false; uint32_t emscripten_metadata_major_version_ = 0; @@ -259,7 +258,13 @@ class WasmBase : public std::enable_shared_from_this { class WasmHandleBase : public std::enable_shared_from_this { public: explicit WasmHandleBase(std::shared_ptr wasm_base) : wasm_base_(wasm_base) {} - ~WasmHandleBase() { wasm_base_->startShutdown(); } + ~WasmHandleBase() { + if (wasm_base_) { + wasm_base_->startShutdown(); + } + } + + void kill() { wasm_base_ = nullptr; } std::shared_ptr &wasm() { return wasm_base_; } @@ -276,8 +281,7 @@ using WasmHandleCloneFactory = // Returns nullptr on failure (i.e. initialization of the VM fails). std::shared_ptr createWasm(std::string vm_key, std::string code, std::shared_ptr plugin, - WasmHandleFactory factory, bool allow_precompiled, - std::unique_ptr root_context_for_testing = nullptr); + WasmHandleFactory factory, WasmHandleCloneFactory clone_factory, bool allow_precompiled); // Get an existing ThreadLocal VM matching 'vm_id' or nullptr if there isn't one. std::shared_ptr getThreadLocalWasm(string_view vm_id); // Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wavm' by cloning or by @@ -286,6 +290,9 @@ std::shared_ptr getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, std::shared_ptr plugin, WasmHandleCloneFactory factory); +// Clear Base Wasm cache and the thread-local Wasm sandbox cache for the calling thread. +void clearWasmCachesForTesting(); + inline const std::string &WasmBase::vm_configuration() const { if (base_wasm_handle_) return base_wasm_handle_->wasm()->vm_configuration_; diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 759132069..1511a5ed4 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -171,8 +171,9 @@ class WasmVm { * should be loaded and the ABI callbacks registered (see above). Linking should be done once * after load(). * @param debug_name user-provided name for use in log and error messages. + * @return whether or not the link was successful. */ - virtual void link(string_view debug_name) = 0; + virtual bool link(string_view debug_name) = 0; /** * Get size of the currently allocated memory in the VM. @@ -249,12 +250,24 @@ class WasmVm { FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK + bool isFailed() { return failed_; } + void fail(string_view message) { + error(message); + failed_ = true; + if (fail_callback_) { + fail_callback_(); + } + } + void setFailCallback(std::function fail_callback) { fail_callback_ = fail_callback; } + // Integrator operations. std::unique_ptr &integration() { return integration_; } void error(string_view message) { integration()->error(message); } private: std::unique_ptr integration_; + bool failed_ = false; + std::function fail_callback_; }; // Thread local state set during a call into a WASM VM so that calls coming out of the diff --git a/src/context.cc b/src/context.cc index 2814188fc..6eb514c5a 100644 --- a/src/context.cc +++ b/src/context.cc @@ -23,6 +23,25 @@ #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm.h" +#define CHECK_FAIL(_call, _stream_type, _return_open, _return_closed) \ + if (isFailed()) { \ + if (plugin_->fail_open_) { \ + return _return_open; \ + } else { \ + failStream(_stream_type); \ + return _return_closed; \ + } \ + } else { \ + if (!wasm_->_call) { \ + return _return_open; \ + } \ + } + +#define CHECK_HTTP(_call, _return_open, _return_closed) \ + CHECK_FAIL(_call, WasmStreamType::Request, _return_open, _return_closed) +#define CHECK_NET(_call, _return_open, _return_closed) \ + CHECK_FAIL(_call, WasmStreamType::Downstream, _return_open, _return_closed) + namespace proxy_wasm { namespace { @@ -120,7 +139,10 @@ class SharedData { it->second.call_on_thread([vm_id, context_id, token] { auto wasm = getThreadLocalWasm(vm_id); if (wasm) { - wasm->wasm()->queueReady(context_id, token); + auto context = wasm->wasm()->getContext(context_id); + if (context) { + context->onQueueReady(token); + } } }); return WasmResult::Ok; @@ -222,16 +244,21 @@ ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) { initializeRootBase(wasm, plugin); } +// NB: wasm can be nullptr if it failed to be created successfully. ContextBase::ContextBase(WasmBase *wasm, uint32_t parent_context_id, std::shared_ptr plugin) - : wasm_(wasm), id_(wasm->allocContextId()), parent_context_id_(parent_context_id), + : wasm_(wasm), id_(wasm ? wasm->allocContextId() : 0), parent_context_id_(parent_context_id), plugin_(plugin) { - wasm_->contexts_[id_] = this; - parent_context_ = wasm_->contexts_[parent_context_id_]; + if (wasm_) { + wasm_->contexts_[id_] = this; + parent_context_ = wasm_->contexts_[parent_context_id_]; + } } WasmVm *ContextBase::wasmVm() const { return wasm_->wasm_vm(); } +bool ContextBase::isFailed() { return !wasm_ || wasm_->isFailed(); } + void ContextBase::initializeRootBase(WasmBase *wasm, std::shared_ptr plugin) { wasm_ = wasm; id_ = wasm->allocContextId(); @@ -275,7 +302,7 @@ bool ContextBase::onStart(std::shared_ptr plugin) { } bool ContextBase::onConfigure(std::shared_ptr plugin) { - if (!wasm_->on_configure_) { + if (isFailed() || !wasm_->on_configure_) { return true; } DeferAfterCallActions actions(this); @@ -288,10 +315,9 @@ bool ContextBase::onConfigure(std::shared_ptr plugin) { } void ContextBase::onCreate() { - if (!in_vm_context_created_ && wasm_->on_context_create_) { + if (!isFailed() && !in_vm_context_created_ && wasm_->on_context_create_) { DeferAfterCallActions actions(this); wasm_->on_context_create_(this, id_, parent_context_ ? parent_context()->id() : 0); - in_vm_context_created_ = true; } // NB: If no on_context_create function is registered the in-VM SDK is responsible for // managing any required in-VM state. @@ -322,7 +348,7 @@ WasmResult ContextBase::registerSharedQueue(string_view queue_name, WasmResult ContextBase::lookupSharedQueue(string_view vm_id, string_view queue_name, uint32_t *token_ptr) { uint32_t token = global_shared_data.resolveQueue(vm_id, queue_name); - if (!token) { + if (isFailed() || !token) { return WasmResult::NotFound; } *token_ptr = token; @@ -345,7 +371,7 @@ void ContextBase::destroy() { } void ContextBase::onTick(uint32_t) { - if (wasm_->on_tick_) { + if (!isFailed() && wasm_->on_tick_) { DeferAfterCallActions actions(this); wasm_->on_tick_(this, id_); } @@ -359,9 +385,7 @@ void ContextBase::onForeignFunction(uint32_t foreign_function_id, uint32_t data_ } FilterStatus ContextBase::onNetworkNewConnection() { - if (!wasm_->on_new_connection_) { - return FilterStatus::Continue; - } + CHECK_NET(on_new_connection_, FilterStatus::Continue, FilterStatus::StopIteration); DeferAfterCallActions actions(this); if (wasm_->on_new_connection_(this, id_).u64_ == 0) { return FilterStatus::Continue; @@ -370,9 +394,7 @@ FilterStatus ContextBase::onNetworkNewConnection() { } FilterStatus ContextBase::onDownstreamData(uint32_t data_length, bool end_of_stream) { - if (!wasm_->on_downstream_data_) { - return FilterStatus::Continue; - } + CHECK_NET(on_downstream_data_, FilterStatus::Continue, FilterStatus::StopIteration); DeferAfterCallActions actions(this); auto result = wasm_->on_downstream_data_(this, id_, static_cast(data_length), static_cast(end_of_stream)); @@ -381,9 +403,7 @@ FilterStatus ContextBase::onDownstreamData(uint32_t data_length, bool end_of_str } FilterStatus ContextBase::onUpstreamData(uint32_t data_length, bool end_of_stream) { - if (!wasm_->on_upstream_data_) { - return FilterStatus::Continue; - } + CHECK_NET(on_upstream_data_, FilterStatus::Continue, FilterStatus::StopIteration); DeferAfterCallActions actions(this); auto result = wasm_->on_upstream_data_(this, id_, static_cast(data_length), static_cast(end_of_stream)); @@ -392,14 +412,14 @@ FilterStatus ContextBase::onUpstreamData(uint32_t data_length, bool end_of_strea } void ContextBase::onDownstreamConnectionClose(CloseType close_type) { - if (wasm_->on_downstream_connection_close_) { + if (!isFailed() && wasm_->on_downstream_connection_close_) { DeferAfterCallActions actions(this); wasm_->on_downstream_connection_close_(this, id_, static_cast(close_type)); } } void ContextBase::onUpstreamConnectionClose(CloseType close_type) { - if (wasm_->on_upstream_connection_close_) { + if (!isFailed() && wasm_->on_upstream_connection_close_) { DeferAfterCallActions actions(this); wasm_->on_upstream_connection_close_(this, id_, static_cast(close_type)); } @@ -409,9 +429,8 @@ void ContextBase::onUpstreamConnectionClose(CloseType close_type) { template static uint32_t headerSize(const P &p) { return p ? p->size() : 0; } FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_stream) { - if (!wasm_->on_request_headers_) { - return FilterHeadersStatus::Continue; - } + CHECK_HTTP(on_request_headers_, FilterHeadersStatus::Continue, + FilterHeadersStatus::StopIteration); DeferAfterCallActions actions(this); auto result = wasm_->on_request_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; @@ -421,9 +440,7 @@ FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_ } FilterDataStatus ContextBase::onRequestBody(uint32_t data_length, bool end_of_stream) { - if (!wasm_->on_request_body_) { - return FilterDataStatus::Continue; - } + CHECK_HTTP(on_request_body_, FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); DeferAfterCallActions actions(this); auto result = wasm_->on_request_body_(this, id_, data_length, static_cast(end_of_stream)).u64_; @@ -433,9 +450,8 @@ FilterDataStatus ContextBase::onRequestBody(uint32_t data_length, bool end_of_st } FilterTrailersStatus ContextBase::onRequestTrailers(uint32_t trailers) { - if (!wasm_->on_request_trailers_) { - return FilterTrailersStatus::Continue; - } + CHECK_HTTP(on_request_trailers_, FilterTrailersStatus::Continue, + FilterTrailersStatus::StopIteration); DeferAfterCallActions actions(this); if (static_cast(wasm_->on_request_trailers_(this, id_, trailers).u64_) == FilterTrailersStatus::Continue) { @@ -445,9 +461,7 @@ FilterTrailersStatus ContextBase::onRequestTrailers(uint32_t trailers) { } FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { - if (!wasm_->on_request_metadata_) { - return FilterMetadataStatus::Continue; - } + CHECK_HTTP(on_request_metadata_, FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); DeferAfterCallActions actions(this); if (static_cast(wasm_->on_request_metadata_(this, id_, elements).u64_) == FilterMetadataStatus::Continue) { @@ -457,9 +471,8 @@ FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { } FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of_stream) { - if (!wasm_->on_response_headers_) { - return FilterHeadersStatus::Continue; - } + CHECK_HTTP(on_response_headers_, FilterHeadersStatus::Continue, + FilterHeadersStatus::StopIteration); DeferAfterCallActions actions(this); auto result = wasm_->on_response_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; @@ -469,9 +482,8 @@ FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of } FilterDataStatus ContextBase::onResponseBody(uint32_t body_length, bool end_of_stream) { - if (!wasm_->on_response_body_) { - return FilterDataStatus::Continue; - } + CHECK_HTTP(on_response_body_, FilterDataStatus::Continue, + FilterDataStatus::StopIterationNoBuffer); DeferAfterCallActions actions(this); auto result = wasm_->on_response_body_(this, id_, body_length, static_cast(end_of_stream)).u64_; @@ -481,9 +493,8 @@ FilterDataStatus ContextBase::onResponseBody(uint32_t body_length, bool end_of_s } FilterTrailersStatus ContextBase::onResponseTrailers(uint32_t trailers) { - if (!wasm_->on_response_trailers_) { - return FilterTrailersStatus::Continue; - } + CHECK_HTTP(on_response_trailers_, FilterTrailersStatus::Continue, + FilterTrailersStatus::StopIteration); DeferAfterCallActions actions(this); if (static_cast(wasm_->on_response_trailers_(this, id_, trailers).u64_) == FilterTrailersStatus::Continue) { @@ -493,9 +504,7 @@ FilterTrailersStatus ContextBase::onResponseTrailers(uint32_t trailers) { } FilterMetadataStatus ContextBase::onResponseMetadata(uint32_t elements) { - if (!wasm_->on_response_metadata_) { - return FilterMetadataStatus::Continue; - } + CHECK_HTTP(on_response_metadata_, FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); DeferAfterCallActions actions(this); if (static_cast(wasm_->on_response_metadata_(this, id_, elements).u64_) == FilterMetadataStatus::Continue) { @@ -506,7 +515,7 @@ FilterMetadataStatus ContextBase::onResponseMetadata(uint32_t elements) { void ContextBase::onHttpCallResponse(uint32_t token, uint32_t headers, uint32_t body_size, uint32_t trailers) { - if (!wasm_->on_http_call_response_) { + if (isFailed() || !wasm_->on_http_call_response_) { return; } DeferAfterCallActions actions(this); @@ -514,14 +523,14 @@ void ContextBase::onHttpCallResponse(uint32_t token, uint32_t headers, uint32_t } void ContextBase::onQueueReady(uint32_t token) { - if (wasm_->on_queue_ready_) { + if (!isFailed() && wasm_->on_queue_ready_) { DeferAfterCallActions actions(this); wasm_->on_queue_ready_(this, id_, token); } } void ContextBase::onGrpcReceiveInitialMetadata(uint32_t token, uint32_t elements) { - if (!wasm_->on_grpc_receive_initial_metadata_) { + if (isFailed() || !wasm_->on_grpc_receive_initial_metadata_) { return; } DeferAfterCallActions actions(this); @@ -529,7 +538,7 @@ void ContextBase::onGrpcReceiveInitialMetadata(uint32_t token, uint32_t elements } void ContextBase::onGrpcReceiveTrailingMetadata(uint32_t token, uint32_t trailers) { - if (!wasm_->on_grpc_receive_trailing_metadata_) { + if (isFailed() || !wasm_->on_grpc_receive_trailing_metadata_) { return; } DeferAfterCallActions actions(this); @@ -537,7 +546,7 @@ void ContextBase::onGrpcReceiveTrailingMetadata(uint32_t token, uint32_t trailer } void ContextBase::onGrpcReceive(uint32_t token, uint32_t response_size) { - if (!wasm_->on_grpc_receive_) { + if (isFailed() || !wasm_->on_grpc_receive_) { return; } DeferAfterCallActions actions(this); @@ -545,7 +554,7 @@ void ContextBase::onGrpcReceive(uint32_t token, uint32_t response_size) { } void ContextBase::onGrpcClose(uint32_t token, uint32_t status_code) { - if (!wasm_->on_grpc_close_) { + if (isFailed() || !wasm_->on_grpc_close_) { return; } DeferAfterCallActions actions(this); @@ -553,7 +562,7 @@ void ContextBase::onGrpcClose(uint32_t token, uint32_t status_code) { } bool ContextBase::onDone() { - if (wasm_->on_done_) { + if (!isFailed() && wasm_->on_done_) { DeferAfterCallActions actions(this); return wasm_->on_done_(this, id_).u64_ != 0; } @@ -561,14 +570,14 @@ bool ContextBase::onDone() { } void ContextBase::onLog() { - if (wasm_->on_log_) { + if (!isFailed() && wasm_->on_log_) { DeferAfterCallActions actions(this); wasm_->on_log_(this, id_); } } void ContextBase::onDelete() { - if (in_vm_context_created_ && wasm_->on_delete_) { + if (in_vm_context_created_ && !isFailed() && wasm_->on_delete_) { DeferAfterCallActions actions(this); wasm_->on_delete_(this, id_); } diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index 16d3d7293..8b732d867 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -57,7 +57,7 @@ bool NullVm::load(const std::string &name, bool /* allow_precompiled */) { return true; } -void NullVm::link(string_view /* name */) {} +bool NullVm::link(string_view /* name */) { return true; } uint64_t NullVm::getMemorySize() { return std::numeric_limits::max(); } diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 3cca0a435..f13f91a7f 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -56,7 +56,7 @@ class V8 : public WasmVm { bool load(const std::string &code, bool allow_precompiled) override; string_view getCustomSection(string_view name) override; string_view getPrecompiledSectionName() override; - void link(string_view debug_name) override; + bool link(string_view debug_name) override; Cloneable cloneable() override { return Cloneable::CompiledBytecode; } std::unique_ptr clone() override; @@ -322,20 +322,20 @@ string_view V8::getCustomSection(string_view name) { const byte_t *end = source_.get() + source_.size(); while (pos < end) { if (pos + 1 > end) { - error("Failed to parse corrupted Wasm module"); + fail("Failed to parse corrupted Wasm module"); return ""; } const auto section_type = *pos++; const auto section_len = parseVarint(pos, end); if (section_len == static_cast(-1) || pos + section_len > end) { - error("Failed to parse corrupted Wasm module"); + fail("Failed to parse corrupted Wasm module"); return ""; } if (section_type == 0 /* custom section */) { const auto section_data_start = pos; const auto section_name_len = parseVarint(pos, end); if (section_name_len == static_cast(-1) || pos + section_name_len > end) { - error("Failed to parse corrupted Wasm module"); + fail("Failed to parse corrupted Wasm module"); return ""; } if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { @@ -366,7 +366,7 @@ string_view V8::getPrecompiledSectionName() { return name; } -void V8::link(string_view debug_name) { +bool V8::link(string_view debug_name) { assert(module_ != nullptr); const auto import_types = module_.get()->imports(); @@ -382,19 +382,19 @@ void V8::link(string_view debug_name) { case wasm::EXTERN_FUNC: { auto it = host_functions_.find(std::string(module) + "." + std::string(name)); if (it == host_functions_.end()) { - error(std::string("Failed to load Wasm module due to a missing import: ") + - std::string(module) + "." + std::string(name)); + fail(std::string("Failed to load Wasm module due to a missing import: ") + + std::string(module) + "." + std::string(name)); break; } auto func = it->second.get()->callback_.get(); if (!equalValTypes(import_type->func()->params(), func->type()->params()) || !equalValTypes(import_type->func()->results(), func->type()->results())) { - error(std::string("Failed to load Wasm module due to an import type mismatch: ") + - std::string(module) + "." + std::string(name) + - ", want: " + printValTypes(import_type->func()->params()) + " -> " + - printValTypes(import_type->func()->results()) + - ", but host exports: " + printValTypes(func->type()->params()) + " -> " + - printValTypes(func->type()->results())); + fail(std::string("Failed to load Wasm module due to an import type mismatch: ") + + std::string(module) + "." + std::string(name) + + ", want: " + printValTypes(import_type->func()->params()) + " -> " + + printValTypes(import_type->func()->results()) + + ", but host exports: " + printValTypes(func->type()->params()) + " -> " + + printValTypes(func->type()->results())); break; } imports.push_back(func); @@ -402,8 +402,8 @@ void V8::link(string_view debug_name) { case wasm::EXTERN_GLOBAL: { // TODO(PiotrSikora): add support when/if needed. - error("Failed to load Wasm module due to a missing import: " + std::string(module) + "." + - std::string(name)); + fail("Failed to load Wasm module due to a missing import: " + std::string(module) + "." + + std::string(name)); } break; case wasm::EXTERN_MEMORY: { @@ -424,7 +424,9 @@ void V8::link(string_view debug_name) { } } - assert(import_types.size() == imports.size()); + if (import_types.size() != imports.size()) { + return false; + } instance_ = wasm::Instance::make(store_.get(), module_.get(), imports.data()); @@ -460,6 +462,7 @@ void V8::link(string_view debug_name) { } break; } } + return !isFailed(); } uint64_t V8::getMemorySize() { return memory_->data_size(); } @@ -562,7 +565,7 @@ void V8::getModuleFunctionImpl(string_view function_name, const wasm::Func *func = it->second.get(); if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { - error(std::string("Bad function signature for: ") + std::string(function_name)); + fail(std::string("Bad function signature for: ") + std::string(function_name)); *function = nullptr; return; } @@ -571,8 +574,8 @@ void V8::getModuleFunctionImpl(string_view function_name, SaveRestoreContext saved_context(context); auto trap = func->call(params, nullptr); if (trap) { - error("Function: " + std::string(function_name) + - " failed: " + std::string(trap->message().get(), trap->message().size())); + fail("Function: " + std::string(function_name) + + " failed: " + std::string(trap->message().get(), trap->message().size())); } }; } @@ -588,7 +591,7 @@ void V8::getModuleFunctionImpl(string_view function_name, const wasm::Func *func = it->second.get(); if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { - error("Bad function signature for: " + std::string(function_name)); + fail("Bad function signature for: " + std::string(function_name)); *function = nullptr; return; } @@ -598,8 +601,8 @@ void V8::getModuleFunctionImpl(string_view function_name, SaveRestoreContext saved_context(context); auto trap = func->call(params, results); if (trap) { - error("Function: " + std::string(function_name) + - " failed: " + std::string(trap->message().get(), trap->message().size())); + fail("Function: " + std::string(function_name) + + " failed: " + std::string(trap->message().get(), trap->message().size())); return R{}; } R rvalue = results[0].get::type>(); diff --git a/src/wasm.cc b/src/wasm.cc index 86f736919..59844daaa 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -235,7 +235,7 @@ void WasmBase::getFunctions() { #undef _GET_PROXY if (!malloc_) { - error("Wasm missing malloc"); + fail("Wasm missing malloc"); } } @@ -249,12 +249,23 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm } else { wasm_vm_ = factory(); } + if (!wasm_vm_) { + failed_ = true; + } else { + wasm_vm_->setFailCallback([this] { failed_ = true; }); + } } WasmBase::WasmBase(std::unique_ptr wasm_vm, string_view vm_id, string_view vm_configuration, string_view vm_key) : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), - vm_configuration_(std::string(vm_configuration)) {} + vm_configuration_(std::string(vm_configuration)) { + if (!wasm_vm_) { + failed_ = true; + } else { + wasm_vm_->setFailCallback([this] { failed_ = true; }); + } +} WasmBase::~WasmBase() {} @@ -307,7 +318,7 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { wasm_vm_->link(vm_id_); } - vm_context_.reset(createContext(nullptr)); + vm_context_.reset(createVmContext()); getFunctions(); if (started_from_ != Cloneable::InstantiatedModule) { @@ -315,13 +326,13 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { startVm(vm_context_.get()); } - return true; + return !isFailed(); } ContextBase *WasmBase::getOrCreateRootContext(const std::shared_ptr &plugin) { auto root_context = getRootContext(plugin->root_id_); if (!root_context) { - auto context = std::unique_ptr(createContext(plugin)); + auto context = std::unique_ptr(createRootContext(plugin)); root_context = context.get(); root_contexts_[plugin->root_id_] = std::move(context); } @@ -348,7 +359,7 @@ ContextBase *WasmBase::start(std::shared_ptr plugin) { it->second->onStart(plugin); return it->second.get(); } - auto context = std::unique_ptr(createContext(plugin)); + auto context = std::unique_ptr(createRootContext(plugin)); auto context_ptr = context.get(); root_contexts_[root_id] = std::move(context); if (!context_ptr->onStart(plugin)) { @@ -357,18 +368,6 @@ ContextBase *WasmBase::start(std::shared_ptr plugin) { return context_ptr; }; -bool WasmBase::startForTesting(std::unique_ptr context, - std::shared_ptr plugin) { - auto context_ptr = context.get(); - if (!context->wasm_) { - // Initialization was delayed till the Wasm object was created. - context->initializeRoot(this, plugin); - } - root_contexts_[plugin->root_id_] = std::move(context); - // Set the current plugin over the lifetime of the onConfigure call to the RootContext. - return context_ptr->onStart(plugin) != 0; -} - uint32_t WasmBase::allocContextId() { while (true) { auto id = next_context_id_++; @@ -379,16 +378,6 @@ uint32_t WasmBase::allocContextId() { } } -void WasmBase::timerReady(uint32_t root_context_id) { - if (on_tick_) { - auto it = contexts_.find(root_context_id); - if (it == contexts_.end() || !it->second->isRootContext()) { - return; - } - it->second->onTick(0); - } -} - void WasmBase::startShutdown() { bool all_done = true; for (auto &p : root_contexts_) { @@ -424,14 +413,6 @@ void WasmBase::finishShutdown() { } } -void WasmBase::queueReady(uint32_t root_context_id, uint32_t token) { - auto it = contexts_.find(root_context_id); - if (it == contexts_.end() || !it->second->isRootContext()) { - return; - } - it->second->onQueueReady(token); -} - WasmForeignFunction WasmBase::getForeignFunction(string_view function_name) { auto it = foreign_functions->find(std::string(function_name)); if (it != foreign_functions->end()) { @@ -442,8 +423,9 @@ WasmForeignFunction WasmBase::getForeignFunction(string_view function_name) { std::shared_ptr createWasm(std::string vm_key, std::string code, std::shared_ptr plugin, - WasmHandleFactory factory, bool allow_precompiled, - std::unique_ptr root_context_for_testing) { + WasmHandleFactory factory, + WasmHandleCloneFactory clone_factory, + bool allow_precompiled) { std::shared_ptr wasm_handle; { std::lock_guard guard(base_wasms_mutex); @@ -468,26 +450,28 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, } if (!wasm_handle->wasm()->initialize(code, allow_precompiled)) { - wasm_handle->wasm()->error("Failed to initialize Wasm code"); + wasm_handle->wasm()->fail("Failed to initialize Wasm code"); return nullptr; } - ContextBase *root_context = root_context_for_testing.get(); - if (!root_context_for_testing) { - root_context = wasm_handle->wasm()->start(plugin); - if (!root_context) { - wasm_handle->wasm()->error("Failed to start base Wasm"); - return nullptr; - } - } else { - if (!wasm_handle->wasm()->startForTesting(std::move(root_context_for_testing), plugin)) { - wasm_handle->wasm()->error("Failed to start base Wasm"); - return nullptr; - } + auto configuration_canary_handle = clone_factory(wasm_handle); + if (!configuration_canary_handle) { + wasm_handle->wasm()->fail("Failed to clone Base Wasm"); + return nullptr; } - if (!wasm_handle->wasm()->configure(root_context, plugin)) { - wasm_handle->wasm()->error("Failed to configure base Wasm plugin"); + if (!configuration_canary_handle->wasm()->initialize(code, allow_precompiled)) { + wasm_handle->wasm()->fail("Failed to initialize Wasm code"); return nullptr; } + auto root_context = configuration_canary_handle->wasm()->start(plugin); + if (!root_context) { + configuration_canary_handle->wasm()->fail("Failed to start base Wasm"); + return nullptr; + } + if (!configuration_canary_handle->wasm()->configure(root_context, plugin)) { + configuration_canary_handle->wasm()->fail("Failed to configure base Wasm plugin"); + return nullptr; + } + configuration_canary_handle->kill(); return wasm_handle; }; @@ -498,18 +482,18 @@ createThreadLocalWasm(std::shared_ptr &base_wasm, if (!wasm_handle) { return nullptr; } - if (!wasm_handle->wasm()->initialize(base_wasm->wasm()->code(), - base_wasm->wasm()->allow_precompiled())) { - base_wasm->wasm()->error("Failed to load Wasm code"); + if (!wasm_handle->wasm()->initialize(wasm_handle->wasm()->code(), + wasm_handle->wasm()->allow_precompiled())) { + wasm_handle->wasm()->fail("Failed to initialize Wasm code"); return nullptr; } ContextBase *root_context = wasm_handle->wasm()->start(plugin); if (!root_context) { - base_wasm->wasm()->error("Failed to start thread-local Wasm"); + base_wasm->wasm()->fail("Failed to start thread-local Wasm"); return nullptr; } if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->error("Failed to configure thread-local Wasm plugin"); + base_wasm->wasm()->fail("Failed to configure thread-local Wasm plugin"); return nullptr; } local_wasms[std::string(wasm_handle->wasm()->vm_key())] = wasm_handle; @@ -535,7 +519,7 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, if (wasm_handle) { auto root_context = wasm_handle->wasm()->getOrCreateRootContext(plugin); if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->error("Failed to configure thread-local Wasm code"); + base_wasm->wasm()->fail("Failed to configure thread-local Wasm code"); return nullptr; } return wasm_handle; @@ -543,4 +527,13 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, return createThreadLocalWasm(base_wasm, plugin, factory); } +void clearWasmCachesForTesting() { + local_wasms.clear(); + std::lock_guard guard(base_wasms_mutex); + if (base_wasms) { + delete base_wasms; + base_wasms = nullptr; + } +} + } // namespace proxy_wasm From cc6ef26643a134019b28cc65b9f98bf6a1e2e843 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Tue, 14 Jul 2020 11:02:01 -0700 Subject: [PATCH 015/287] Add support for more WASM_EXPORT overrides in the Null VM (#31) Signed-off-by: John Plevyak --- include/proxy-wasm/null_plugin.h | 11 ++++++++++- src/null/null_plugin.cc | 8 +++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 6f12323c1..71eec3c50 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -38,6 +38,8 @@ namespace proxy_wasm { * Registry for Plugin implementation. */ struct NullPluginRegistry { + void (*proxy_abi_version_0_1_0_)() = nullptr; + void (*proxy_on_log_)(uint32_t context_id) = nullptr; uint32_t (*proxy_validate_configuration_)(uint32_t root_context_id, uint32_t plugin_configuration_size) = nullptr; void (*proxy_on_context_create_)(uint32_t context_id, uint32_t parent_context_id) = nullptr; @@ -127,7 +129,7 @@ class NullPlugin : public NullVmPlugin { extern NullPluginRegistry *context_registry_; \ struct RegisterContextFactory { \ explicit RegisterContextFactory(null_plugin::ContextFactory context_factory, \ - null_plugin::RootFactory root_factory = nullptr, \ + null_plugin::RootFactory root_factory, \ StringView root_id = "") { \ if (!context_registry_) { \ context_registry_ = new NullPluginRegistry; \ @@ -135,6 +137,13 @@ class NullPlugin : public NullVmPlugin { context_registry_->context_factories[std::string(root_id)] = context_factory; \ context_registry_->root_factories[std::string(root_id)] = root_factory; \ } \ + explicit RegisterContextFactory(null_plugin::ContextFactory context_factory, \ + StringView root_id = "") { \ + if (!context_registry_) { \ + context_registry_ = new NullPluginRegistry; \ + } \ + context_registry_->context_factories[std::string(root_id)] = context_factory; \ + } \ explicit RegisterContextFactory(null_plugin::RootFactory root_factory, \ StringView root_id = "") { \ if (!context_registry_) { \ diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index 4b981b34b..395852ba3 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -468,7 +468,13 @@ void NullPlugin::onForeignFunction(uint64_t context_id, uint64_t foreign_functio getContextBase(context_id)->onForeignFunction(foreign_function_id, data_size); } -void NullPlugin::onLog(uint64_t context_id) { getContext(context_id)->onLog(); } +void NullPlugin::onLog(uint64_t context_id) { + if (registry_->proxy_on_log_) { + registry_->proxy_on_log_(context_id); + return; + } + getContext(context_id)->onLog(); +} uint64_t NullPlugin::onDone(uint64_t context_id) { if (registry_->proxy_on_done_) { From bd1c2858e7882c8f7f0de45633991c8cac5f6b6e Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Tue, 21 Jul 2020 14:50:57 -0700 Subject: [PATCH 016/287] Fix broken build on OS X (#35) Signed-off-by: Gregory Brail --- .gitignore | 1 + WORKSPACE | 1 + include/proxy-wasm/compat.h | 20 ++++++++++---------- 3 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..a6ef824c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bazel-* diff --git a/WORKSPACE b/WORKSPACE index 8fb4ce211..b1a37f15f 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -35,6 +35,7 @@ git_repository( name = "com_google_protobuf", commit = "655310ca192a6e3a050e0ca0b7084a2968072260", remote = "https://github.com/protocolbuffers/protobuf", + shallow_since = "1565024848 -0700", ) http_archive( diff --git a/include/proxy-wasm/compat.h b/include/proxy-wasm/compat.h index f92732c71..87819ae86 100644 --- a/include/proxy-wasm/compat.h +++ b/include/proxy-wasm/compat.h @@ -26,21 +26,21 @@ #endif namespace proxy_wasm { -#ifndef __cpp_lib_optional -template using optional = absl::optional; -// Only available in C++17 -// inline constexpr absl::nullopt_t nullopt = absl::nullopt; -#define PROXY_WASM_NULLOPT absl::nullopt -#else +#if __cplusplus >= 201703L + template using optional = std::optional; // Only available in C++17 // inline constexpr std::nullopt_t nullopt = std::nullopt; #define PROXY_WASM_NULLOPT std::nullopt -#endif +using string_view = std::string_view; -#ifndef __cpp_lib_string_view -using string_view = absl::string_view; #else -using string_view = std::string_view; + +template using optional = absl::optional; +// Only available in C++17 +// inline constexpr absl::nullopt_t nullopt = absl::nullopt; +#define PROXY_WASM_NULLOPT absl::nullopt +using string_view = absl::string_view; + #endif } // namespace proxy_wasm From e18b651faff3fad4cb2f18effad7e0e426b65d5a Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Wed, 22 Jul 2020 13:00:00 -0700 Subject: [PATCH 017/287] Pass up the reason for failure for telemetry. (#33) Signed-off-by: John Plevyak --- include/proxy-wasm/context.h | 6 +++-- include/proxy-wasm/wasm.h | 9 ++++---- include/proxy-wasm/wasm_vm.h | 29 +++++++++++++++++------- src/v8/v8.cc | 43 ++++++++++++++++++++---------------- src/wasm.cc | 31 ++++++++++++++------------ 5 files changed, 71 insertions(+), 47 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index e2a6abd8d..9623a498b 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -47,14 +47,16 @@ class WasmVm; * @param fail_open if true the plugin will pass traffic as opposed to close all streams. */ struct PluginBase { - PluginBase(string_view name, string_view root_id, string_view vm_id, + PluginBase(string_view name, string_view root_id, string_view vm_id, string_view runtime, string_view plugin_configuration, bool fail_open) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), - plugin_configuration_(plugin_configuration), fail_open_(fail_open) {} + runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), + fail_open_(fail_open) {} const std::string name_; const std::string root_id_; const std::string vm_id_; + const std::string runtime_; std::string plugin_configuration_; const bool fail_open_; const std::string &log_prefix() const { return log_prefix_; } diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index e8364acb0..e9454ea6a 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -71,7 +71,8 @@ class WasmBase : public std::enable_shared_from_this { return nullptr; } uint32_t allocContextId(); - bool isFailed() { return failed_; } + bool isFailed() { return failed_ != FailState::Ok; } + FailState fail_state() { return failed_; } const std::string &code() const { return code_; } const std::string &vm_configuration() const; @@ -115,9 +116,9 @@ class WasmBase : public std::enable_shared_from_this { WasmForeignFunction getForeignFunction(string_view function_name); - void fail(string_view message) { + void fail(FailState fail_state, string_view message) { error(message); - failed_ = true; + failed_ = fail_state; } virtual void error(string_view message) { std::cerr << message << "\n"; } virtual void unimplemented() { error("unimplemented proxy-wasm API"); } @@ -236,7 +237,7 @@ class WasmBase : public std::enable_shared_from_this { std::string code_; std::string vm_configuration_; bool allow_precompiled_ = false; - bool failed_ = false; // The Wasm VM has experienced a fatal error. + FailState failed_ = FailState::Ok; // Wasm VM fatal error. bool is_emscripten_ = false; uint32_t emscripten_metadata_major_version_ = 0; diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 1511a5ed4..64d3865a1 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -124,6 +124,17 @@ struct WasmVmIntegration { void *ptr_to_function_return) = 0; }; +enum class FailState : int { + Ok = 0, + UnableToCreateVM = 1, + UnableToCloneVM = 2, + MissingFunction = 3, + UnableToInitializeCode = 4, + StartFailed = 5, + ConfigureFailed = 6, + RuntimeError = 7, +}; + // Wasm VM instance. Provides the low level WASM interface. class WasmVm { public: @@ -250,24 +261,26 @@ class WasmVm { FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK - bool isFailed() { return failed_; } - void fail(string_view message) { + bool isFailed() { return failed_ != FailState::Ok; } + void fail(FailState fail_state, string_view message) { error(message); - failed_ = true; + failed_ = fail_state; if (fail_callback_) { - fail_callback_(); + fail_callback_(fail_state); } } - void setFailCallback(std::function fail_callback) { fail_callback_ = fail_callback; } + void setFailCallback(std::function fail_callback) { + fail_callback_ = fail_callback; + } // Integrator operations. std::unique_ptr &integration() { return integration_; } void error(string_view message) { integration()->error(message); } -private: +protected: std::unique_ptr integration_; - bool failed_ = false; - std::function fail_callback_; + FailState failed_ = FailState::Ok; + std::function fail_callback_; }; // Thread local state set during a call into a WASM VM so that calls coming out of the diff --git a/src/v8/v8.cc b/src/v8/v8.cc index f13f91a7f..c4664f039 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -322,20 +322,20 @@ string_view V8::getCustomSection(string_view name) { const byte_t *end = source_.get() + source_.size(); while (pos < end) { if (pos + 1 > end) { - fail("Failed to parse corrupted Wasm module"); + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); return ""; } const auto section_type = *pos++; const auto section_len = parseVarint(pos, end); if (section_len == static_cast(-1) || pos + section_len > end) { - fail("Failed to parse corrupted Wasm module"); + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); return ""; } if (section_type == 0 /* custom section */) { const auto section_data_start = pos; const auto section_name_len = parseVarint(pos, end); if (section_name_len == static_cast(-1) || pos + section_name_len > end) { - fail("Failed to parse corrupted Wasm module"); + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); return ""; } if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { @@ -382,19 +382,21 @@ bool V8::link(string_view debug_name) { case wasm::EXTERN_FUNC: { auto it = host_functions_.find(std::string(module) + "." + std::string(name)); if (it == host_functions_.end()) { - fail(std::string("Failed to load Wasm module due to a missing import: ") + - std::string(module) + "." + std::string(name)); + fail(FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to a missing import: ") + + std::string(module) + "." + std::string(name)); break; } auto func = it->second.get()->callback_.get(); if (!equalValTypes(import_type->func()->params(), func->type()->params()) || !equalValTypes(import_type->func()->results(), func->type()->results())) { - fail(std::string("Failed to load Wasm module due to an import type mismatch: ") + - std::string(module) + "." + std::string(name) + - ", want: " + printValTypes(import_type->func()->params()) + " -> " + - printValTypes(import_type->func()->results()) + - ", but host exports: " + printValTypes(func->type()->params()) + " -> " + - printValTypes(func->type()->results())); + fail(FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to an import type mismatch: ") + + std::string(module) + "." + std::string(name) + + ", want: " + printValTypes(import_type->func()->params()) + " -> " + + printValTypes(import_type->func()->results()) + + ", but host exports: " + printValTypes(func->type()->params()) + " -> " + + printValTypes(func->type()->results())); break; } imports.push_back(func); @@ -402,8 +404,9 @@ bool V8::link(string_view debug_name) { case wasm::EXTERN_GLOBAL: { // TODO(PiotrSikora): add support when/if needed. - fail("Failed to load Wasm module due to a missing import: " + std::string(module) + "." + - std::string(name)); + fail(FailState::UnableToInitializeCode, + "Failed to load Wasm module due to a missing import: " + std::string(module) + "." + + std::string(name)); } break; case wasm::EXTERN_MEMORY: { @@ -565,7 +568,8 @@ void V8::getModuleFunctionImpl(string_view function_name, const wasm::Func *func = it->second.get(); if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { - fail(std::string("Bad function signature for: ") + std::string(function_name)); + fail(FailState::UnableToInitializeCode, + std::string("Bad function signature for: ") + std::string(function_name)); *function = nullptr; return; } @@ -574,8 +578,8 @@ void V8::getModuleFunctionImpl(string_view function_name, SaveRestoreContext saved_context(context); auto trap = func->call(params, nullptr); if (trap) { - fail("Function: " + std::string(function_name) + - " failed: " + std::string(trap->message().get(), trap->message().size())); + fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed: " + + std::string(trap->message().get(), trap->message().size())); } }; } @@ -591,7 +595,8 @@ void V8::getModuleFunctionImpl(string_view function_name, const wasm::Func *func = it->second.get(); if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { - fail("Bad function signature for: " + std::string(function_name)); + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name)); *function = nullptr; return; } @@ -601,8 +606,8 @@ void V8::getModuleFunctionImpl(string_view function_name, SaveRestoreContext saved_context(context); auto trap = func->call(params, results); if (trap) { - fail("Function: " + std::string(function_name) + - " failed: " + std::string(trap->message().get(), trap->message().size())); + fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed: " + + std::string(trap->message().get(), trap->message().size())); return R{}; } R rvalue = results[0].get::type>(); diff --git a/src/wasm.cc b/src/wasm.cc index 59844daaa..64c64e52a 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -235,7 +235,7 @@ void WasmBase::getFunctions() { #undef _GET_PROXY if (!malloc_) { - fail("Wasm missing malloc"); + fail(FailState::MissingFunction, "Wasm missing malloc"); } } @@ -250,9 +250,9 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm wasm_vm_ = factory(); } if (!wasm_vm_) { - failed_ = true; + failed_ = FailState::UnableToCreateVM; } else { - wasm_vm_->setFailCallback([this] { failed_ = true; }); + wasm_vm_->setFailCallback([this](FailState fail_state) { failed_ = fail_state; }); } } @@ -261,9 +261,9 @@ WasmBase::WasmBase(std::unique_ptr wasm_vm, string_view vm_id, string_vi : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), vm_configuration_(std::string(vm_configuration)) { if (!wasm_vm_) { - failed_ = true; + failed_ = FailState::UnableToCreateVM; } else { - wasm_vm_->setFailCallback([this] { failed_ = true; }); + wasm_vm_->setFailCallback([this](FailState fail_state) { failed_ = fail_state; }); } } @@ -450,25 +450,26 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, } if (!wasm_handle->wasm()->initialize(code, allow_precompiled)) { - wasm_handle->wasm()->fail("Failed to initialize Wasm code"); + wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } auto configuration_canary_handle = clone_factory(wasm_handle); if (!configuration_canary_handle) { - wasm_handle->wasm()->fail("Failed to clone Base Wasm"); + wasm_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); return nullptr; } if (!configuration_canary_handle->wasm()->initialize(code, allow_precompiled)) { - wasm_handle->wasm()->fail("Failed to initialize Wasm code"); + wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } auto root_context = configuration_canary_handle->wasm()->start(plugin); if (!root_context) { - configuration_canary_handle->wasm()->fail("Failed to start base Wasm"); + configuration_canary_handle->wasm()->fail(FailState::StartFailed, "Failed to start base Wasm"); return nullptr; } if (!configuration_canary_handle->wasm()->configure(root_context, plugin)) { - configuration_canary_handle->wasm()->fail("Failed to configure base Wasm plugin"); + configuration_canary_handle->wasm()->fail(FailState::ConfigureFailed, + "Failed to configure base Wasm plugin"); return nullptr; } configuration_canary_handle->kill(); @@ -484,16 +485,17 @@ createThreadLocalWasm(std::shared_ptr &base_wasm, } if (!wasm_handle->wasm()->initialize(wasm_handle->wasm()->code(), wasm_handle->wasm()->allow_precompiled())) { - wasm_handle->wasm()->fail("Failed to initialize Wasm code"); + wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } ContextBase *root_context = wasm_handle->wasm()->start(plugin); if (!root_context) { - base_wasm->wasm()->fail("Failed to start thread-local Wasm"); + base_wasm->wasm()->fail(FailState::StartFailed, "Failed to start thread-local Wasm"); return nullptr; } if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->fail("Failed to configure thread-local Wasm plugin"); + base_wasm->wasm()->fail(FailState::ConfigureFailed, + "Failed to configure thread-local Wasm plugin"); return nullptr; } local_wasms[std::string(wasm_handle->wasm()->vm_key())] = wasm_handle; @@ -519,7 +521,8 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, if (wasm_handle) { auto root_context = wasm_handle->wasm()->getOrCreateRootContext(plugin); if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->fail("Failed to configure thread-local Wasm code"); + base_wasm->wasm()->fail(FailState::ConfigureFailed, + "Failed to configure thread-local Wasm code"); return nullptr; } return wasm_handle; From 1cb51cf262bc18ad81002bfa0701acf319570467 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Thu, 23 Jul 2020 14:46:51 -0700 Subject: [PATCH 018/287] Remove range check for metric type in order to allow proxy-specific (#32) extensions. Signed-off-by: John Plevyak --- include/proxy-wasm/context.h | 2 +- include/proxy-wasm/context_interface.h | 6 ++++-- src/exports.cc | 5 +---- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 9623a498b..d712da6f7 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -284,7 +284,7 @@ class ContextBase : public RootInterface, } // Metrics - WasmResult defineMetric(MetricType /* type */, string_view /* name */, + WasmResult defineMetric(uint32_t /* type */, string_view /* name */, uint32_t * /* metric_id_ptr */) override { return unimplemented(); } diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 0f9c02e08..4093dd91a 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -483,12 +483,14 @@ struct MetricsInterface { virtual ~MetricsInterface() = default; /** * Define a metric (Stat). - * @param type is the type of metric (e.g. Counter). + * @param type is the type of metric (e.g. Counter). This may be an element of MetricType from the + * SDK or some proxy-specific extension. It is the responsibility of the proxy-specific + * implementation to validate this parameter. * @param name is a string uniquely identifying the metric. * @param metric_id_ptr is a location to store a token used for subsequent operations on the * metric. */ - virtual WasmResult defineMetric(MetricType /* type */, string_view /* name */, + virtual WasmResult defineMetric(uint32_t /* type */, string_view /* name */, uint32_t * /* metric_id_ptr */) = 0; /** diff --git a/src/exports.cc b/src/exports.cc index 95eeddf28..21d8eff12 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -543,9 +543,6 @@ Word http_call(void *raw_context, Word uri_ptr, Word uri_size, Word header_pairs Word define_metric(void *raw_context, Word metric_type, Word name_ptr, Word name_size, Word metric_id_ptr) { - if (metric_type > static_cast(MetricType::Max)) { - return WasmResult::BadArgument; - } auto context = WASM_CONTEXT(raw_context); auto name = context->wasmVm()->getMemory(name_ptr, name_size); if (!name) { @@ -553,7 +550,7 @@ Word define_metric(void *raw_context, Word metric_type, Word name_ptr, Word name } uint32_t metric_id = 0; auto result = - context->defineMetric(static_cast(metric_type.u64_), name.value(), &metric_id); + context->defineMetric(static_cast(metric_type.u64_), name.value(), &metric_id); if (result != WasmResult::Ok) { return result; } From eb4b3faea257fa06f298367e28ffc13f4e88fe70 Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Tue, 28 Jul 2020 09:56:52 -0700 Subject: [PATCH 019/287] Fix selection of thread-local wasm when enqueuing (#36) Signed-off-by: Gregory Brail --- src/context.cc | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/src/context.cc b/src/context.cc index 6eb514c5a..12d9b57be 100644 --- a/src/context.cc +++ b/src/context.cc @@ -87,7 +87,7 @@ class SharedData { } uint32_t registerQueue(string_view vm_id, string_view queue_name, uint32_t context_id, - CallOnThreadFunction call_on_thread) { + CallOnThreadFunction call_on_thread, string_view vm_key) { std::lock_guard lock(mutex_); auto key = std::make_pair(std::string(vm_id), std::string(queue_name)); auto it = queue_tokens_.insert(std::make_pair(key, static_cast(0))); @@ -97,7 +97,7 @@ class SharedData { } uint32_t token = it.first->second; auto &q = queues_[token]; - q.vm_id = std::string(vm_id); + q.vm_key = std::string(vm_key); q.context_id = context_id; q.call_on_thread = std::move(call_on_thread); // Preserve any existing data. @@ -127,17 +127,29 @@ class SharedData { it->second.queue.pop_front(); return WasmResult::Ok; } + WasmResult enqueue(uint32_t token, string_view value) { - std::lock_guard lock(mutex_); - auto it = queues_.find(token); - if (it == queues_.end()) { - return WasmResult::NotFound; + std::string vm_key; + uint32_t context_id; + CallOnThreadFunction call_on_thread; + + { + std::lock_guard lock(mutex_); + auto it = queues_.find(token); + if (it == queues_.end()) { + return WasmResult::NotFound; + } + Queue *target_queue = &(it->second); + vm_key = target_queue->vm_key; + context_id = target_queue->context_id; + call_on_thread = target_queue->call_on_thread; + target_queue->queue.push_back(std::string(value)); } - it->second.queue.push_back(std::string(value)); - auto vm_id = it->second.vm_id; - auto context_id = it->second.context_id; - it->second.call_on_thread([vm_id, context_id, token] { - auto wasm = getThreadLocalWasm(vm_id); + + call_on_thread([vm_key, context_id, token] { + // This code may or may not execute in another thread. + // Make sure that the lock is no longer held here. + auto wasm = getThreadLocalWasm(vm_key); if (wasm) { auto context = wasm->wasm()->getContext(context_id); if (context) { @@ -171,7 +183,7 @@ class SharedData { } struct Queue { - std::string vm_id; + std::string vm_key; uint32_t context_id; CallOnThreadFunction call_on_thread; std::deque queue; @@ -341,7 +353,7 @@ WasmResult ContextBase::registerSharedQueue(string_view queue_name, // root. *result = global_shared_data.registerQueue(wasm_->vm_id(), queue_name, isRootContext() ? id_ : parent_context_id_, - wasm_->callOnThreadFunction()); + wasm_->callOnThreadFunction(), wasm_->vm_key()); return WasmResult::Ok; } From d8fe20b3625d3c1b0e59937833bbb0b9adf0f2a7 Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Tue, 28 Jul 2020 14:08:28 -0700 Subject: [PATCH 020/287] Begin to add support for a proxy_get_log_level ABI function (#37) The intent of this function is to return the current log level in the host. This way, WASM modules can avoid calling proxy_log at all for certain log levels if they are sure that nothing will be logged. This will be important in WASM modules that wish to support "debug" and "trace" logging but which also want to reduce the cost of generating log messages that will never be output. Signed-off-by: Gregory Brail Co-authored-by: John Plevyak --- include/proxy-wasm/context.h | 1 + include/proxy-wasm/context_interface.h | 3 +++ include/proxy-wasm/exports.h | 1 + src/exports.cc | 9 +++++++++ src/wasm.cc | 1 + 5 files changed, 15 insertions(+) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index d712da6f7..9299e51dc 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -229,6 +229,7 @@ class ContextBase : public RootInterface, WasmResult log(uint32_t /* level */, string_view /* message */) override { return unimplemented(); } + uint32_t getLogLevel() override { return static_cast(LogLevel::info); } uint64_t getCurrentTimeNanoseconds() override { struct timespec tpe; clock_gettime(CLOCK_REALTIME, &tpe); diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 4093dd91a..558252eff 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -532,6 +532,9 @@ struct GeneralInterface { // Log a message. virtual WasmResult log(uint32_t level, string_view message) = 0; + // Return the current log level in the host + virtual uint32_t getLogLevel() = 0; + /** * Enables a periodic timer with the given period or sets the period of an existing timer. Note: * the timer is associated with the Root Context of whatever Context this call was made on. diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 3b8d67961..a5bacb7f1 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -31,6 +31,7 @@ namespace exports { Word get_status(void *raw_context, Word status_code, Word address, Word size); Word log(void *raw_context, Word level, Word address, Word size); +Word get_log_level(void *raw_context, Word result_level_uint32_ptr); Word get_property(void *raw_context, Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_size_ptr); Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, Word value_size); diff --git a/src/exports.cc b/src/exports.cc index 21d8eff12..feb0c9205 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -834,5 +834,14 @@ Word log(void *raw_context, Word level, Word address, Word size) { return context->log(level, message.value()); } +Word get_log_level(void *raw_context, Word result_level_uint32_ptr) { + auto context = WASM_CONTEXT(raw_context); + uint32_t level = context->getLogLevel(); + if (!context->wasm()->setDatatype(result_level_uint32_ptr, level)) { + return WasmResult::InvalidMemoryAccess; + } + return WasmResult::Ok; +} + } // namespace exports } // namespace proxy_wasm diff --git a/src/wasm.cc b/src/wasm.cc index 64c64e52a..103b18cf0 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -140,6 +140,7 @@ void WasmBase::registerCallbacks() { &ConvertFunctionWordToUint32::convertFunctionWordToUint32); _REGISTER_PROXY(log); + _REGISTER_PROXY(get_log_level); _REGISTER_PROXY(get_status); From c80b8733559f39b2fb42a1083b28d33569f87a24 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Wed, 29 Jul 2020 12:34:18 -0700 Subject: [PATCH 021/287] Ensure that we report cloning failures. (#39) Signed-off-by: John Plevyak --- src/wasm.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/wasm.cc b/src/wasm.cc index 103b18cf0..e47bc1946 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -479,9 +479,10 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, static std::shared_ptr createThreadLocalWasm(std::shared_ptr &base_wasm, - std::shared_ptr plugin, WasmHandleCloneFactory factory) { - auto wasm_handle = factory(base_wasm); + std::shared_ptr plugin, WasmHandleCloneFactory clone_factory) { + auto wasm_handle = clone_factory(base_wasm); if (!wasm_handle) { + wasm_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); return nullptr; } if (!wasm_handle->wasm()->initialize(wasm_handle->wasm()->code(), @@ -517,7 +518,8 @@ std::shared_ptr getThreadLocalWasm(string_view vm_key) { std::shared_ptr getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, - std::shared_ptr plugin, WasmHandleCloneFactory factory) { + std::shared_ptr plugin, + WasmHandleCloneFactory clone_factory) { auto wasm_handle = getThreadLocalWasm(base_wasm->wasm()->vm_key()); if (wasm_handle) { auto root_context = wasm_handle->wasm()->getOrCreateRootContext(plugin); @@ -528,7 +530,7 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, } return wasm_handle; } - return createThreadLocalWasm(base_wasm, plugin, factory); + return createThreadLocalWasm(base_wasm, plugin, clone_factory); } void clearWasmCachesForTesting() { From 350af8e4b616ac20c350c289fc3f59f808463c07 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Wed, 29 Jul 2020 12:46:25 -0700 Subject: [PATCH 022/287] Use string_view instead of absl::string_view. (#40) Signed-off-by: John Plevyak --- src/foreign.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/foreign.cc b/src/foreign.cc index 73c1049a6..759d577bf 100644 --- a/src/foreign.cc +++ b/src/foreign.cc @@ -40,7 +40,7 @@ RegisterForeignFunction compressFunction( RegisterForeignFunction uncompressFunction("uncompress", - [](WasmBase &, absl::string_view arguments, + [](WasmBase &, string_view arguments, std::function alloc_result) -> WasmResult { unsigned long dest_len = arguments.size() * 2 + 2; // output estimate. while (1) { From 68a319b0b9d0aa73834f73067ed01473179e5df7 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Fri, 31 Jul 2020 09:49:46 -0700 Subject: [PATCH 023/287] Remove c++14 support in proxy-wasm. (#41) Signed-off-by: John Plevyak --- BUILD | 39 ------ WORKSPACE | 2 +- context_test.cc | 7 +- include/proxy-wasm/compat.h | 46 ------- include/proxy-wasm/context.h | 78 ++++++------ include/proxy-wasm/context_interface.h | 73 +++++------ include/proxy-wasm/null_plugin.h | 14 +-- include/proxy-wasm/null_vm.h | 14 +-- include/proxy-wasm/null_vm_plugin.h | 4 +- include/proxy-wasm/wasm.h | 34 ++--- include/proxy-wasm/wasm_api_impl.h | 4 +- include/proxy-wasm/wasm_vm.h | 28 ++--- src/context.cc | 32 ++--- src/exports.cc | 12 +- src/foreign.cc | 4 +- src/null/null_plugin.cc | 22 ++-- src/null/null_vm.cc | 14 +-- src/v8/v8.cc | 49 ++++---- src/wasm.cc | 15 +-- src/wavm/wavm.cc | 166 +++++++++++++------------ wasm_vm_test.cc | 4 +- 21 files changed, 290 insertions(+), 371 deletions(-) delete mode 100644 include/proxy-wasm/compat.h diff --git a/BUILD b/BUILD index 7dc8fafd0..ce2ad35cb 100644 --- a/BUILD +++ b/BUILD @@ -27,30 +27,6 @@ cc_library( ], ) -# TODO: remove when dependent projects have been upgraded. -cc_library( - name = "lib14", - srcs = glob( - ["src/**/*.cc"], - exclude = [ - "src/**/wavm*", - "src/**/v8*", - ], - ) + glob(["src/**/*.h"]), - copts = [ - "-std=c++14", - "-DWITHOUT_ZLIB=1", - ], - deps = [ - ":include", - "@com_google_absl//absl/base", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:optional", - "@com_google_protobuf//:protobuf_lite", - "@proxy_wasm_cpp_sdk//:api_lib", - ], -) - cc_test( name = "wasm_vm_test", srcs = ["wasm_vm_test.cc"], @@ -70,18 +46,3 @@ cc_test( "@com_google_googletest//:gtest_main", ], ) - -# TODO: remove when dependent projects have been upgraded. -cc_test( - name = "context_14_test", - srcs = ["context_test.cc"], - copts = ["-std=c++14"], - deps = [ - ":include", - "@com_google_absl//absl/base", - "@com_google_absl//absl/strings", - "@com_google_absl//absl/types:optional", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", - ], -) diff --git a/WORKSPACE b/WORKSPACE index b1a37f15f..e932f250c 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,7 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "proxy_wasm_cpp_sdk", - commit = "35163bbf32fccfbde7b95d909a392dc1dc562596", + commit = "aea22d74befc1bb34d2b8c35f0558e53ba5d1cd5", remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", ) diff --git a/context_test.cc b/context_test.cc index 73d83c5e5..bd4b3283b 100644 --- a/context_test.cc +++ b/context_test.cc @@ -21,11 +21,12 @@ namespace { class Context : public ContextBase { public: - Context(std::function error_function) : error_function_(error_function) {} - void error(string_view message) { error_function_(message); } + Context(std::function error_function) + : error_function_(error_function) {} + void error(std::string_view message) { error_function_(message); } private: - std::function error_function_; + std::function error_function_; }; TEST(Context, IncludeParses) {} diff --git a/include/proxy-wasm/compat.h b/include/proxy-wasm/compat.h deleted file mode 100644 index 87819ae86..000000000 --- a/include/proxy-wasm/compat.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -// Provide compatibiliby for projects which have not yet moved to C++17. -// TODO: remove this when all dependent projects have upgraded. - -#if __cplusplus >= 201703L -#include -#include -#else -#include "absl/types/optional.h" -#include "absl/strings/string_view.h" -#endif - -namespace proxy_wasm { -#if __cplusplus >= 201703L - -template using optional = std::optional; -// Only available in C++17 -// inline constexpr std::nullopt_t nullopt = std::nullopt; -#define PROXY_WASM_NULLOPT std::nullopt -using string_view = std::string_view; - -#else - -template using optional = absl::optional; -// Only available in C++17 -// inline constexpr absl::nullopt_t nullopt = absl::nullopt; -#define PROXY_WASM_NULLOPT absl::nullopt -using string_view = absl::string_view; - -#endif -} // namespace proxy_wasm diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 9299e51dc..9c1189cbe 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -25,7 +25,6 @@ #include #include -#include "include/proxy-wasm/compat.h" #include "include/proxy-wasm/context_interface.h" namespace proxy_wasm { @@ -47,8 +46,8 @@ class WasmVm; * @param fail_open if true the plugin will pass traffic as opposed to close all streams. */ struct PluginBase { - PluginBase(string_view name, string_view root_id, string_view vm_id, string_view runtime, - string_view plugin_configuration, bool fail_open) + PluginBase(std::string_view name, std::string_view root_id, std::string_view vm_id, + std::string_view runtime, std::string_view plugin_configuration, bool fail_open) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), fail_open_(fail_open) {} @@ -80,7 +79,8 @@ struct BufferBase : public BufferInterface { } WasmResult copyTo(WasmBase *wasm, size_t start, size_t length, uint64_t ptr_ptr, uint64_t size_ptr) const override; - WasmResult copyFrom(size_t /* start */, size_t /* length */, string_view /* data */) override { + WasmResult copyFrom(size_t /* start */, size_t /* length */, + std::string_view /* data */) override { // Setting a string buffer not supported (no use case). return WasmResult::BadArgument; } @@ -89,7 +89,7 @@ struct BufferBase : public BufferInterface { data_ = ""; owned_data_ = nullptr; } - BufferBase *set(string_view data) { + BufferBase *set(std::string_view data) { clear(); data_ = data; return this; @@ -102,7 +102,7 @@ struct BufferBase : public BufferInterface { } protected: - string_view data_; + std::string_view data_; std::unique_ptr owned_data_; uint32_t owned_data_size_; }; @@ -158,8 +158,8 @@ class ContextBase : public RootInterface, } return parent; } - string_view root_id() const { return isRootContext() ? root_id_ : plugin_->root_id_; } - string_view log_prefix() const { + std::string_view root_id() const { return isRootContext() ? root_id_ : plugin_->root_id_; } + std::string_view log_prefix() const { return isRootContext() ? root_log_prefix_ : plugin_->log_prefix(); } WasmVm *wasmVm() const; @@ -212,7 +212,7 @@ class ContextBase : public RootInterface, void onGrpcReceiveTrailingMetadata(GrpcToken token, uint32_t trailers) override; void onGrpcClose(GrpcToken token, GrpcStatusCode status_code) override; - void error(string_view message) override { + void error(std::string_view message) override { std::cerr << message << "\n"; abort(); } @@ -226,7 +226,7 @@ class ContextBase : public RootInterface, // // General Callbacks. // - WasmResult log(uint32_t /* level */, string_view /* message */) override { + WasmResult log(uint32_t /* level */, std::string_view /* message */) override { return unimplemented(); } uint32_t getLogLevel() override { return static_cast(LogLevel::info); } @@ -238,7 +238,7 @@ class ContextBase : public RootInterface, t += tpe.tv_nsec; return t; } - std::pair getStatus() override { + std::pair getStatus() override { unimplemented(); return std::make_pair(1, "unimplmemented"); } @@ -255,21 +255,21 @@ class ContextBase : public RootInterface, } // HTTP - WasmResult httpCall(string_view /* target */, const Pairs & /*request_headers */, - string_view /* request_body */, const Pairs & /* request_trailers */, + WasmResult httpCall(std::string_view /* target */, const Pairs & /*request_headers */, + std::string_view /* request_body */, const Pairs & /* request_trailers */, int /* timeout_millisconds */, uint32_t * /* token_ptr */) override { return unimplemented(); } // gRPC - WasmResult grpcCall(string_view /* grpc_service */, string_view /* service_name */, - string_view /* method_name */, const Pairs & /* initial_metadata */, - string_view /* request */, std::chrono::milliseconds /* timeout */, + WasmResult grpcCall(std::string_view /* grpc_service */, std::string_view /* service_name */, + std::string_view /* method_name */, const Pairs & /* initial_metadata */, + std::string_view /* request */, std::chrono::milliseconds /* timeout */, GrpcToken * /* token_ptr */) override { return unimplemented(); } - WasmResult grpcStream(string_view /* grpc_service */, string_view /* service_name */, - string_view /* method_name */, const Pairs & /* initial_metadata */, + WasmResult grpcStream(std::string_view /* grpc_service */, std::string_view /* service_name */, + std::string_view /* method_name */, const Pairs & /* initial_metadata */, GrpcToken * /* token_ptr */) override { return unimplemented(); } @@ -279,13 +279,13 @@ class ContextBase : public RootInterface, WasmResult grpcCancel(uint32_t /* token */) override { // cancel on call, reset on stream. return unimplemented(); } - WasmResult grpcSend(uint32_t /* token */, string_view /* message */, + WasmResult grpcSend(uint32_t /* token */, std::string_view /* message */, bool /* end_stream */) override { // stream only return unimplemented(); } // Metrics - WasmResult defineMetric(uint32_t /* type */, string_view /* name */, + WasmResult defineMetric(uint32_t /* type */, std::string_view /* name */, uint32_t * /* metric_id_ptr */) override { return unimplemented(); } @@ -300,43 +300,44 @@ class ContextBase : public RootInterface, } // Properties - WasmResult getProperty(string_view /* path */, std::string * /* result */) override { + WasmResult getProperty(std::string_view /* path */, std::string * /* result */) override { return unimplemented(); } - WasmResult setProperty(string_view /* key */, string_view /* serialized_value */) override { + WasmResult setProperty(std::string_view /* key */, + std::string_view /* serialized_value */) override { return unimplemented(); } // Continue WasmResult continueStream(WasmStreamType /* stream_type */) override { return unimplemented(); } WasmResult closeStream(WasmStreamType /* stream_type */) override { return unimplemented(); } - WasmResult sendLocalResponse(uint32_t /* response_code */, string_view /* body_text */, + WasmResult sendLocalResponse(uint32_t /* response_code */, std::string_view /* body_text */, Pairs /* additional_headers */, GrpcStatusCode /* grpc_status */, - string_view /* details */) override { + std::string_view /* details */) override { return unimplemented(); } void failStream(WasmStreamType stream_type) override { closeStream(stream_type); } // Shared Data - WasmResult getSharedData(string_view key, + WasmResult getSharedData(std::string_view key, std::pair *data) override; - WasmResult setSharedData(string_view key, string_view value, uint32_t cas) override; + WasmResult setSharedData(std::string_view key, std::string_view value, uint32_t cas) override; // Shared Queue - WasmResult registerSharedQueue(string_view queue_name, + WasmResult registerSharedQueue(std::string_view queue_name, SharedQueueDequeueToken *token_ptr) override; - WasmResult lookupSharedQueue(string_view vm_id, string_view queue_name, + WasmResult lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, SharedQueueEnqueueToken *token) override; WasmResult dequeueSharedQueue(uint32_t token, std::string *data) override; - WasmResult enqueueSharedQueue(uint32_t token, string_view value) override; + WasmResult enqueueSharedQueue(uint32_t token, std::string_view value) override; // Header/Trailer/Metadata Maps - WasmResult addHeaderMapValue(WasmHeaderMapType /* type */, string_view /* key */, - string_view /* value */) override { + WasmResult addHeaderMapValue(WasmHeaderMapType /* type */, std::string_view /* key */, + std::string_view /* value */) override { return unimplemented(); } - WasmResult getHeaderMapValue(WasmHeaderMapType /* type */, string_view /* key */, - string_view * /*result */) override { + WasmResult getHeaderMapValue(WasmHeaderMapType /* type */, std::string_view /* key */, + std::string_view * /*result */) override { return unimplemented(); } WasmResult getHeaderMapPairs(WasmHeaderMapType /* type */, Pairs * /* result */) override { @@ -346,11 +347,12 @@ class ContextBase : public RootInterface, return unimplemented(); } - WasmResult removeHeaderMapValue(WasmHeaderMapType /* type */, string_view /* key */) override { + WasmResult removeHeaderMapValue(WasmHeaderMapType /* type */, + std::string_view /* key */) override { return unimplemented(); } - WasmResult replaceHeaderMapValue(WasmHeaderMapType /* type */, string_view /* key */, - string_view /* value */) override { + WasmResult replaceHeaderMapValue(WasmHeaderMapType /* type */, std::string_view /* key */, + std::string_view /* value */) override { return unimplemented(); } @@ -362,7 +364,7 @@ class ContextBase : public RootInterface, friend class WasmBase; void initializeRootBase(WasmBase *wasm, std::shared_ptr plugin); - std::string makeRootLogPrefix(string_view vm_id) const; + std::string makeRootLogPrefix(std::string_view vm_id) const; WasmBase *wasm_{nullptr}; uint32_t id_{0}; @@ -384,6 +386,6 @@ class DeferAfterCallActions { WasmBase *const wasm_; }; -uint32_t resolveQueueForTest(string_view vm_id, string_view queue_name); +uint32_t resolveQueueForTest(std::string_view vm_id, std::string_view queue_name); } // namespace proxy_wasm diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 558252eff..9f6fd6ca3 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -15,8 +15,6 @@ #pragma once -#include "include/proxy-wasm/compat.h" - #include #include #include @@ -31,8 +29,8 @@ namespace proxy_wasm { #include "proxy_wasm_common.h" #include "proxy_wasm_enums.h" -using Pairs = std::vector>; -using PairsWithStringValues = std::vector>; +using Pairs = std::vector>; +using PairsWithStringValues = std::vector>; using TimerToken = uint32_t; using HttpCallToken = uint32_t; using GrpcToken = uint32_t; @@ -80,7 +78,7 @@ struct BufferInterface { * @param data the data to copy over the replaced region. * @return a WasmResult with any error or WasmResult::Ok. */ - virtual WasmResult copyFrom(size_t start, size_t length, string_view data) = 0; + virtual WasmResult copyFrom(size_t start, size_t length, std::string_view data) = 0; }; /** @@ -175,8 +173,8 @@ struct RootInterface : public RootGrpcInterface { * shutting down. * @return true for stream contexts or for Root Context(s) if the VM can shutdown, false for Root * Context(s) if the VM should wait until the Root Context calls the proxy_done() ABI call. Note: - * the VM may (optionally) shutdown after some configured timeout even if the Root Context does - * not call proxy_done(). + * the VM may (std::optionally) shutdown after some configured timeout even if the Root Context + * does not call proxy_done(). */ virtual bool onDone() = 0; @@ -229,12 +227,12 @@ struct HttpInterface { * @param response_code is the response code to send. * @param body is the body of the response. * @param additional_headers are additional headers to send in the response. - * @param grpc_status is an optional gRPC status if the connection is a gRPC connection. + * @param grpc_status is an std::optional gRPC status if the connection is a gRPC connection. * @param details are details of any (gRPC) error. */ - virtual WasmResult sendLocalResponse(uint32_t response_code, string_view body, + virtual WasmResult sendLocalResponse(uint32_t response_code, std::string_view body, Pairs additional_headers, uint32_t grpc_status, - string_view details) = 0; + std::string_view details) = 0; // Call when the stream closes. See RootInterface. virtual bool onDone() = 0; @@ -341,8 +339,8 @@ struct HeaderInterface { * @param key is the key (header). * @param value is the value (header value). */ - virtual WasmResult addHeaderMapValue(WasmHeaderMapType type, string_view key, - string_view value) = 0; + virtual WasmResult addHeaderMapValue(WasmHeaderMapType type, std::string_view key, + std::string_view value) = 0; /** * Get a value from to a header map. @@ -350,8 +348,8 @@ struct HeaderInterface { * @param key is the key (header). * @param result is a pointer to the returned header value. */ - virtual WasmResult getHeaderMapValue(WasmHeaderMapType type, string_view key, - string_view *result) = 0; + virtual WasmResult getHeaderMapValue(WasmHeaderMapType type, std::string_view key, + std::string_view *result) = 0; /** * Get all the key-value pairs in a header map. @@ -372,7 +370,7 @@ struct HeaderInterface { * @param type of the header map. * @param key of the header map. */ - virtual WasmResult removeHeaderMapValue(WasmHeaderMapType type, string_view key) = 0; + virtual WasmResult removeHeaderMapValue(WasmHeaderMapType type, std::string_view key) = 0; /** * Replace (or set) a value in a header map. @@ -380,8 +378,8 @@ struct HeaderInterface { * @param key of the header map. * @param value to set in the header map. */ - virtual WasmResult replaceHeaderMapValue(WasmHeaderMapType type, string_view key, - string_view value) = 0; + virtual WasmResult replaceHeaderMapValue(WasmHeaderMapType type, std::string_view key, + std::string_view value) = 0; /** * Returns the number of entries in a header map. @@ -407,8 +405,8 @@ struct HttpCallInterface { * Note: the response arrives on the ancestor RootContext as this call may outlive any stream. * Plugin writers should use the VM SDK setEffectiveContext() to switch to any waiting streams. */ - virtual WasmResult httpCall(string_view target, const Pairs &request_headers, - string_view request_body, const Pairs &request_trailers, + virtual WasmResult httpCall(std::string_view target, const Pairs &request_headers, + std::string_view request_body, const Pairs &request_trailers, int timeout_milliseconds, HttpCallToken *token_ptr) = 0; }; @@ -425,9 +423,11 @@ struct GrpcCallInterface { * @param token_ptr contains a pointer to a location to store the token which will be used with * the corresponding onGrpc and grpc calls. */ - virtual WasmResult grpcCall(string_view /* grpc_service */, string_view /* service_name */, - string_view /* method_name */, const Pairs & /* initial_metadata */, - string_view /* request */, std::chrono::milliseconds /* timeout */, + virtual WasmResult grpcCall(std::string_view /* grpc_service */, + std::string_view /* service_name */, + std::string_view /* method_name */, + const Pairs & /* initial_metadata */, std::string_view /* request */, + std::chrono::milliseconds /* timeout */, GrpcToken * /* token_ptr */) = 0; /** @@ -456,8 +456,8 @@ struct GrpcStreamInterface { * @param token_ptr contains a pointer to a location to store the token which will be used with * the corresponding onGrpc and grpc calls. */ - virtual WasmResult grpcStream(string_view grpc_service, string_view service_name, - string_view method_name, const Pairs & /* initial_metadata */, + virtual WasmResult grpcStream(std::string_view grpc_service, std::string_view service_name, + std::string_view method_name, const Pairs & /* initial_metadata */, GrpcToken *token_ptr) = 0; /** @@ -467,7 +467,7 @@ struct GrpcStreamInterface { * @param end_stream indicates that the stream is now end_of_stream (e.g. WriteLast() or * WritesDone). */ - virtual WasmResult grpcSend(GrpcToken token, string_view message, bool end_stream) = 0; + virtual WasmResult grpcSend(GrpcToken token, std::string_view message, bool end_stream) = 0; // See GrpcCallInterface. virtual WasmResult grpcClose(GrpcToken token) = 0; @@ -490,7 +490,7 @@ struct MetricsInterface { * @param metric_id_ptr is a location to store a token used for subsequent operations on the * metric. */ - virtual WasmResult defineMetric(uint32_t /* type */, string_view /* name */, + virtual WasmResult defineMetric(uint32_t /* type */, std::string_view /* name */, uint32_t * /* metric_id_ptr */) = 0; /** @@ -521,7 +521,7 @@ struct GeneralInterface { * Will be called on severe Wasm errors. Callees may report and handle the error (e.g. via an * Exception) to prevent the proxy from crashing. */ - virtual void error(string_view message) = 0; + virtual void error(std::string_view message) = 0; /** * Called by all functions which are not overridden with a proxy-specific implementation. @@ -530,7 +530,7 @@ struct GeneralInterface { virtual WasmResult unimplemented() = 0; // Log a message. - virtual WasmResult log(uint32_t level, string_view message) = 0; + virtual WasmResult log(uint32_t level, std::string_view message) = 0; // Return the current log level in the host virtual uint32_t getLogLevel() = 0; @@ -554,7 +554,7 @@ struct GeneralInterface { * Provides the status of the last call into the VM or out of the VM, similar to errno. * @return the status code and a descriptive string. */ - virtual std::pair getStatus() = 0; + virtual std::pair getStatus() = 0; /** * Get the value of a property. Some properties are proxy-independent (e.g. ["plugin_root_id"]) @@ -562,7 +562,7 @@ struct GeneralInterface { * @param path is a sequence of strings describing a path to a property. * @param result is a location to write the value of the property. */ - virtual WasmResult getProperty(string_view path, std::string *result) = 0; + virtual WasmResult getProperty(std::string_view path, std::string *result) = 0; /** * Set the value of a property. @@ -570,7 +570,7 @@ struct GeneralInterface { * @param value the value to set. For non-string, non-integral types, the value may be * serialized.. */ - virtual WasmResult setProperty(string_view key, string_view value) = 0; + virtual WasmResult setProperty(std::string_view key, std::string_view value) = 0; /** * Custom extension call into the VM. Data is provided as WasmBufferType::CallData. @@ -597,7 +597,8 @@ struct SharedDataInterface { * compare-and-swap value which can be used with setSharedData for safe concurrent updates. */ virtual WasmResult - getSharedData(string_view key, std::pair *data) = 0; + getSharedData(std::string_view key, + std::pair *data) = 0; /** * Set a key-value data shared between VMs. @@ -606,7 +607,7 @@ struct SharedDataInterface { * the cas associated with the value. * @param data is a location to store the returned value. */ - virtual WasmResult setSharedData(string_view key, string_view value, uint32_t cas) = 0; + virtual WasmResult setSharedData(std::string_view key, std::string_view value, uint32_t cas) = 0; }; // namespace proxy_wasm struct SharedQueueInterface { @@ -617,7 +618,7 @@ struct SharedQueueInterface { * to make a unique identifier for the queue. * @param token_ptr a location to store a token corresponding to the queue. */ - virtual WasmResult registerSharedQueue(string_view queue_name, + virtual WasmResult registerSharedQueue(std::string_view queue_name, SharedQueueDequeueToken *token_ptr) = 0; /** @@ -627,7 +628,7 @@ struct SharedQueueInterface { * to make a unique identifier for the queue. * @param token_ptr a location to store a token corresponding to the queue. */ - virtual WasmResult lookupSharedQueue(string_view vm_id, string_view queue_name, + virtual WasmResult lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, SharedQueueEnqueueToken *token_ptr) = 0; /** @@ -642,7 +643,7 @@ struct SharedQueueInterface { * @param token is a token returned by resolveSharedQueue(); * @param data is the data to be queued. */ - virtual WasmResult enqueueSharedQueue(SharedQueueEnqueueToken token, string_view data) = 0; + virtual WasmResult enqueueSharedQueue(SharedQueueEnqueueToken token, std::string_view data) = 0; }; } // namespace proxy_wasm diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 71eec3c50..9c8120892 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -24,8 +24,6 @@ namespace proxy_wasm { namespace null_plugin { -template using Optional = optional; -using StringView = string_view; #include "proxy_wasm_enums.h" } // namespace null_plugin } // namespace proxy_wasm @@ -67,7 +65,7 @@ class NullPlugin : public NullVmPlugin { explicit NullPlugin(NullPluginRegistry *registry) : registry_(registry) {} NullPlugin(const NullPlugin &other) : registry_(other.registry_) {} -#define _DECLARE_OVERRIDE(_t) void getFunction(string_view function_name, _t *f) override; +#define _DECLARE_OVERRIDE(_t) void getFunction(std::string_view function_name, _t *f) override; FOR_ALL_WASM_VM_EXPORTS(_DECLARE_OVERRIDE) #undef _DECLARE_OVERRIDE @@ -109,10 +107,10 @@ class NullPlugin : public NullVmPlugin { uint64_t onDone(uint64_t context_id); void onDelete(uint64_t context_id); - null_plugin::RootContext *getRoot(string_view root_id); + null_plugin::RootContext *getRoot(std::string_view root_id); null_plugin::Context *getContext(uint64_t context_id); - void error(string_view message) { wasm_vm_->error(message); } + void error(std::string_view message) { wasm_vm_->error(message); } null_plugin::Context *ensureContext(uint64_t context_id, uint64_t root_context_id); null_plugin::RootContext *ensureRootContext(uint64_t context_id); @@ -130,7 +128,7 @@ class NullPlugin : public NullVmPlugin { struct RegisterContextFactory { \ explicit RegisterContextFactory(null_plugin::ContextFactory context_factory, \ null_plugin::RootFactory root_factory, \ - StringView root_id = "") { \ + std::string_view root_id = "") { \ if (!context_registry_) { \ context_registry_ = new NullPluginRegistry; \ } \ @@ -138,14 +136,14 @@ class NullPlugin : public NullVmPlugin { context_registry_->root_factories[std::string(root_id)] = root_factory; \ } \ explicit RegisterContextFactory(null_plugin::ContextFactory context_factory, \ - StringView root_id = "") { \ + std::string_view root_id = "") { \ if (!context_registry_) { \ context_registry_ = new NullPluginRegistry; \ } \ context_registry_->context_factories[std::string(root_id)] = context_factory; \ } \ explicit RegisterContextFactory(null_plugin::RootFactory root_factory, \ - StringView root_id = "") { \ + std::string_view root_id = "") { \ if (!context_registry_) { \ context_registry_ = new NullPluginRegistry; \ } \ diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index de75d2e6b..f86ba1038 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -32,21 +32,21 @@ struct NullVm : public WasmVm { NullVm(const NullVm &other) : plugin_name_(other.plugin_name_) {} // WasmVm - string_view runtime() override { return "null"; } + std::string_view runtime() override { return "null"; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(const std::string &code, bool allow_precompiled) override; - bool link(string_view debug_name) override; + bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; - optional getMemory(uint64_t pointer, uint64_t size) override; + std::optional getMemory(uint64_t pointer, uint64_t size) override; bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; bool setWord(uint64_t pointer, Word data) override; bool getWord(uint64_t pointer, Word *data) override; - string_view getCustomSection(string_view name) override; - string_view getPrecompiledSectionName() override; + std::string_view getCustomSection(std::string_view name) override; + std::string_view getPrecompiledSectionName() override; #define _FORWARD_GET_FUNCTION(_T) \ - void getFunction(string_view function_name, _T *f) override { \ + void getFunction(std::string_view function_name, _T *f) override { \ plugin_->getFunction(function_name, f); \ } FOR_ALL_WASM_VM_EXPORTS(_FORWARD_GET_FUNCTION) @@ -54,7 +54,7 @@ struct NullVm : public WasmVm { // These are not needed for NullVm which invokes the handlers directly. #define _REGISTER_CALLBACK(_T) \ - void registerCallback(string_view, string_view, _T, \ + void registerCallback(std::string_view, std::string_view, _T, \ typename ConvertFunctionTypeWordToUint32<_T>::type) override{}; FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK diff --git a/include/proxy-wasm/null_vm_plugin.h b/include/proxy-wasm/null_vm_plugin.h index 02e8ebdd8..f01ddaaee 100644 --- a/include/proxy-wasm/null_vm_plugin.h +++ b/include/proxy-wasm/null_vm_plugin.h @@ -28,7 +28,7 @@ class NullVmPlugin { // NB: These are defined rather than declared PURE because gmock uses __LINE__ internally for // uniqueness, making it impossible to use FOR_ALL_WASM_VM_EXPORTS with MOCK_METHOD. #define _DEFINE_GET_FUNCTION(_T) \ - virtual void getFunction(string_view, _T *f) { *f = nullptr; } + virtual void getFunction(std::string_view, _T *f) { *f = nullptr; } FOR_ALL_WASM_VM_EXPORTS(_DEFINE_GET_FUNCTION) #undef _DEFIN_GET_FUNCTIONE @@ -38,7 +38,7 @@ class NullVmPlugin { using NullVmPluginFactory = std::function()>; struct RegisterNullVmPluginFactory { - RegisterNullVmPluginFactory(string_view name, NullVmPluginFactory factory); + RegisterNullVmPluginFactory(std::string_view name, NullVmPluginFactory factory); }; } // namespace proxy_wasm diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index e9454ea6a..4b7bb7d76 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -24,7 +24,6 @@ #include #include -#include "include/proxy-wasm/compat.h" #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/exports.h" #include "include/proxy-wasm/wasm_vm.h" @@ -38,15 +37,15 @@ class WasmBase; class WasmHandleBase; using WasmForeignFunction = - std::function)>; + std::function)>; using WasmVmFactory = std::function()>; using CallOnThreadFunction = std::function)>; // Wasm execution instance. Manages the host side of the Wasm interface. class WasmBase : public std::enable_shared_from_this { public: - WasmBase(std::unique_ptr wasm_vm, string_view vm_id, string_view vm_configuration, - string_view vm_key); + WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, + std::string_view vm_configuration, std::string_view vm_key); WasmBase(const std::shared_ptr &other, WasmVmFactory factory); virtual ~WasmBase(); @@ -56,11 +55,11 @@ class WasmBase : public std::enable_shared_from_this { // Returns the root ContextBase or nullptr if onStart returns false. ContextBase *start(std::shared_ptr plugin); - string_view vm_id() const { return vm_id_; } - string_view vm_key() const { return vm_key_; } + std::string_view vm_id() const { return vm_id_; } + std::string_view vm_key() const { return vm_key_; } WasmVm *wasm_vm() const { return wasm_vm_.get(); } ContextBase *vm_context() const { return vm_context_.get(); } - ContextBase *getRootContext(string_view root_id) { + ContextBase *getRootContext(std::string_view root_id) { return root_contexts_[std::string(root_id)].get(); } ContextBase *getOrCreateRootContext(const std::shared_ptr &plugin); @@ -109,18 +108,18 @@ class WasmBase : public std::enable_shared_from_this { // void *allocMemory(uint64_t size, uint64_t *address); // Allocate a null-terminated string in the VM and return the pointer to use as a call arguments. - uint64_t copyString(string_view s); + uint64_t copyString(std::string_view s); // Copy the data in 's' into the VM along with the pointer-size pair. Returns true on success. - bool copyToPointerSize(string_view s, uint64_t ptr_ptr, uint64_t size_ptr); + bool copyToPointerSize(std::string_view s, uint64_t ptr_ptr, uint64_t size_ptr); template bool setDatatype(uint64_t ptr, const T &t); - WasmForeignFunction getForeignFunction(string_view function_name); + WasmForeignFunction getForeignFunction(std::string_view function_name); - void fail(FailState fail_state, string_view message) { + void fail(FailState fail_state, std::string_view message) { error(message); failed_ = fail_state; } - virtual void error(string_view message) { std::cerr << message << "\n"; } + virtual void error(std::string_view message) { std::cerr << message << "\n"; } virtual void unimplemented() { error("unimplemented proxy-wasm API"); } bool getEmscriptenVersion(uint32_t *emscripten_metadata_major_version, @@ -273,9 +272,10 @@ class WasmHandleBase : public std::enable_shared_from_this { std::shared_ptr wasm_base_; }; -std::string makeVmKey(string_view vm_id, string_view configuration, string_view code); +std::string makeVmKey(std::string_view vm_id, std::string_view configuration, + std::string_view code); -using WasmHandleFactory = std::function(string_view vm_id)>; +using WasmHandleFactory = std::function(std::string_view vm_id)>; using WasmHandleCloneFactory = std::function(std::shared_ptr wasm)>; @@ -284,7 +284,7 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, std::shared_ptr plugin, WasmHandleFactory factory, WasmHandleCloneFactory clone_factory, bool allow_precompiled); // Get an existing ThreadLocal VM matching 'vm_id' or nullptr if there isn't one. -std::shared_ptr getThreadLocalWasm(string_view vm_id); +std::shared_ptr getThreadLocalWasm(std::string_view vm_id); // Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wavm' by cloning or by // using it it as a template. std::shared_ptr @@ -316,7 +316,7 @@ inline void *WasmBase::allocMemory(uint64_t size, uint64_t *address) { return const_cast(reinterpret_cast(memory.value().data())); } -inline uint64_t WasmBase::copyString(string_view s) { +inline uint64_t WasmBase::copyString(std::string_view s) { if (s.empty()) { return 0; // nullptr } @@ -327,7 +327,7 @@ inline uint64_t WasmBase::copyString(string_view s) { return pointer; } -inline bool WasmBase::copyToPointerSize(string_view s, uint64_t ptr_ptr, uint64_t size_ptr) { +inline bool WasmBase::copyToPointerSize(std::string_view s, uint64_t ptr_ptr, uint64_t size_ptr) { uint64_t pointer = 0; uint64_t size = s.size(); void *p = nullptr; diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index ab1486095..0e1f72844 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -15,8 +15,6 @@ #pragma once -#include "include/proxy-wasm/compat.h" - namespace proxy_wasm { namespace null_plugin { @@ -258,7 +256,7 @@ inline WasmResult proxy_call_foreign_function(const char *function_name, size_t #include "proxy_wasm_api.h" -RootContext *getRoot(string_view root_id); +RootContext *getRoot(std::string_view root_id); Context *getContext(uint32_t context_id); } // namespace null_plugin diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 64d3865a1..5ae676346 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -15,8 +15,6 @@ #pragma once -#include "include/proxy-wasm/compat.h" - #include #include @@ -108,7 +106,7 @@ class NullPlugin; struct WasmVmIntegration { virtual ~WasmVmIntegration() {} virtual WasmVmIntegration *clone() = 0; - virtual void error(string_view message) = 0; + virtual void error(std::string_view message) = 0; // Get a NullVm implementation of a function. // @param function_name is the name of the function with the implementation specific prefix. // @param returns_word is true if the function returns a Word and false if it returns void. @@ -119,7 +117,7 @@ struct WasmVmIntegration { // @return true if the function was found. ptr_to_function_return could still be set to nullptr // (of the correct type) if the function has no implementation. Returning true will prevent a // "Missing getFunction" error. - virtual bool getNullVmFunction(string_view function_name, bool returns_word, + virtual bool getNullVmFunction(std::string_view function_name, bool returns_word, int number_of_arguments, NullPlugin *plugin, void *ptr_to_function_return) = 0; }; @@ -143,7 +141,7 @@ class WasmVm { * Return the runtime identifier. * @return one of WasmRuntimeValues from well_known_names.h (e.g. "v8"). */ - virtual string_view runtime() = 0; + virtual std::string_view runtime() = 0; /** * Whether or not the VM implementation supports cloning. Cloning is VM system dependent. @@ -184,7 +182,7 @@ class WasmVm { * @param debug_name user-provided name for use in log and error messages. * @return whether or not the link was successful. */ - virtual bool link(string_view debug_name) = 0; + virtual bool link(std::string_view debug_name) = 0; /** * Get size of the currently allocated memory in the VM. @@ -193,13 +191,13 @@ class WasmVm { virtual uint64_t getMemorySize() = 0; /** - * Convert a block of memory in the VM to a string_view. + * Convert a block of memory in the VM to a std::string_view. * @param pointer the offset into VM memory of the requested VM memory block. * @param size the size of the requested VM memory block. * @return if std::nullopt then the pointer/size pair were invalid, otherwise returns - * a host string_view pointing to the pointer/size pair in VM memory. + * a host std::string_view pointing to the pointer/size pair in VM memory. */ - virtual optional getMemory(uint64_t pointer, uint64_t size) = 0; + virtual std::optional getMemory(uint64_t pointer, uint64_t size) = 0; /** * Set a block of memory in the VM, returns true on success, false if the pointer/size is invalid. @@ -237,18 +235,18 @@ class WasmVm { * @return the contents of the custom section (if any). The result will be empty if there * is no such section. */ - virtual string_view getCustomSection(string_view name) = 0; + virtual std::string_view getCustomSection(std::string_view name) = 0; /** * Get the name of the custom section that contains precompiled module. * @return the name of the custom section that contains precompiled module. */ - virtual string_view getPrecompiledSectionName() = 0; + virtual std::string_view getPrecompiledSectionName() = 0; /** * Get typed function exported by the WASM module. */ -#define _GET_FUNCTION(_T) virtual void getFunction(string_view function_name, _T *f) = 0; +#define _GET_FUNCTION(_T) virtual void getFunction(std::string_view function_name, _T *f) = 0; FOR_ALL_WASM_VM_EXPORTS(_GET_FUNCTION) #undef _GET_FUNCTION @@ -256,13 +254,13 @@ class WasmVm { * Register typed callbacks exported by the host environment. */ #define _REGISTER_CALLBACK(_T) \ - virtual void registerCallback(string_view moduleName, string_view function_name, _T f, \ + virtual void registerCallback(std::string_view moduleName, std::string_view function_name, _T f, \ typename ConvertFunctionTypeWordToUint32<_T>::type) = 0; FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK bool isFailed() { return failed_ != FailState::Ok; } - void fail(FailState fail_state, string_view message) { + void fail(FailState fail_state, std::string_view message) { error(message); failed_ = fail_state; if (fail_callback_) { @@ -275,7 +273,7 @@ class WasmVm { // Integrator operations. std::unique_ptr &integration() { return integration_; } - void error(string_view message) { integration()->error(message); } + void error(std::string_view message) { integration()->error(message); } protected: std::unique_ptr integration_; diff --git a/src/context.cc b/src/context.cc index 12d9b57be..b7b8d4d1f 100644 --- a/src/context.cc +++ b/src/context.cc @@ -50,7 +50,7 @@ using CallOnThreadFunction = std::function)>; class SharedData { public: - WasmResult get(string_view vm_id, const string_view key, + WasmResult get(std::string_view vm_id, const std::string_view key, std::pair *result) { std::lock_guard lock(mutex_); auto map = data_.find(std::string(vm_id)); @@ -65,7 +65,8 @@ class SharedData { return WasmResult::NotFound; } - WasmResult set(string_view vm_id, string_view key, string_view value, uint32_t cas) { + WasmResult set(std::string_view vm_id, std::string_view key, std::string_view value, + uint32_t cas) { std::lock_guard lock(mutex_); std::unordered_map> *map; auto map_it = data_.find(std::string(vm_id)); @@ -86,8 +87,8 @@ class SharedData { return WasmResult::Ok; } - uint32_t registerQueue(string_view vm_id, string_view queue_name, uint32_t context_id, - CallOnThreadFunction call_on_thread, string_view vm_key) { + uint32_t registerQueue(std::string_view vm_id, std::string_view queue_name, uint32_t context_id, + CallOnThreadFunction call_on_thread, std::string_view vm_key) { std::lock_guard lock(mutex_); auto key = std::make_pair(std::string(vm_id), std::string(queue_name)); auto it = queue_tokens_.insert(std::make_pair(key, static_cast(0))); @@ -104,7 +105,7 @@ class SharedData { return token; } - uint32_t resolveQueue(string_view vm_id, string_view queue_name) { + uint32_t resolveQueue(std::string_view vm_id, std::string_view queue_name) { std::lock_guard lock(mutex_); auto key = std::make_pair(std::string(vm_id), std::string(queue_name)); auto it = queue_tokens_.find(key); @@ -128,7 +129,7 @@ class SharedData { return WasmResult::Ok; } - WasmResult enqueue(uint32_t token, string_view value) { + WasmResult enqueue(uint32_t token, std::string_view value) { std::string vm_key; uint32_t context_id; CallOnThreadFunction call_on_thread; @@ -213,13 +214,13 @@ DeferAfterCallActions::~DeferAfterCallActions() { wasm_->doAfterVmCallActions(); WasmResult BufferBase::copyTo(WasmBase *wasm, size_t start, size_t length, uint64_t ptr_ptr, uint64_t size_ptr) const { if (owned_data_) { - string_view s(owned_data_.get() + start, length); + std::string_view s(owned_data_.get() + start, length); if (!wasm->copyToPointerSize(s, ptr_ptr, size_ptr)) { return WasmResult::InvalidMemoryAccess; } return WasmResult::Ok; } - string_view s = data_.substr(start, length); + std::string_view s = data_.substr(start, length); if (!wasm->copyToPointerSize(s, ptr_ptr, size_ptr)) { return WasmResult::InvalidMemoryAccess; } @@ -228,7 +229,7 @@ WasmResult BufferBase::copyTo(WasmBase *wasm, size_t start, size_t length, uint6 // Test support. -uint32_t resolveQueueForTest(string_view vm_id, string_view queue_name) { +uint32_t resolveQueueForTest(std::string_view vm_id, std::string_view queue_name) { return global_shared_data.resolveQueue(vm_id, queue_name); } @@ -280,7 +281,7 @@ void ContextBase::initializeRootBase(WasmBase *wasm, std::shared_ptr wasm_->contexts_[id_] = this; } -std::string ContextBase::makeRootLogPrefix(string_view vm_id) const { +std::string ContextBase::makeRootLogPrefix(std::string_view vm_id) const { std::string prefix; if (!root_id_.empty()) { prefix = prefix + " " + std::string(root_id_); @@ -337,17 +338,18 @@ void ContextBase::onCreate() { } // Shared Data -WasmResult ContextBase::getSharedData(string_view key, std::pair *data) { +WasmResult ContextBase::getSharedData(std::string_view key, + std::pair *data) { return global_shared_data.get(wasm_->vm_id(), key, data); } -WasmResult ContextBase::setSharedData(string_view key, string_view value, uint32_t cas) { +WasmResult ContextBase::setSharedData(std::string_view key, std::string_view value, uint32_t cas) { return global_shared_data.set(wasm_->vm_id(), key, value, cas); } // Shared Queue -WasmResult ContextBase::registerSharedQueue(string_view queue_name, +WasmResult ContextBase::registerSharedQueue(std::string_view queue_name, SharedQueueDequeueToken *result) { // Get the id of the root context if this is a stream context because onQueueReady is on the // root. @@ -357,7 +359,7 @@ WasmResult ContextBase::registerSharedQueue(string_view queue_name, return WasmResult::Ok; } -WasmResult ContextBase::lookupSharedQueue(string_view vm_id, string_view queue_name, +WasmResult ContextBase::lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, uint32_t *token_ptr) { uint32_t token = global_shared_data.resolveQueue(vm_id, queue_name); if (isFailed() || !token) { @@ -371,7 +373,7 @@ WasmResult ContextBase::dequeueSharedQueue(uint32_t token, std::string *data) { return global_shared_data.dequeue(token, data); } -WasmResult ContextBase::enqueueSharedQueue(uint32_t token, string_view value) { +WasmResult ContextBase::enqueueSharedQueue(uint32_t token, std::string_view value) { return global_shared_data.enqueue(token, value); } void ContextBase::destroy() { diff --git a/src/exports.cc b/src/exports.cc index feb0c9205..7ad07b93e 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -40,7 +40,7 @@ ContextBase *ContextOrEffectiveContext(ContextBase *context) { namespace { -Pairs toPairs(string_view buffer) { +Pairs toPairs(std::string_view buffer) { Pairs result; const char *b = buffer.data(); if (buffer.size() < sizeof(uint32_t)) { @@ -53,15 +53,15 @@ Pairs toPairs(string_view buffer) { } result.resize(size); for (uint32_t i = 0; i < size; i++) { - result[i].first = string_view(nullptr, *reinterpret_cast(b)); + result[i].first = std::string_view(nullptr, *reinterpret_cast(b)); b += sizeof(uint32_t); - result[i].second = string_view(nullptr, *reinterpret_cast(b)); + result[i].second = std::string_view(nullptr, *reinterpret_cast(b)); b += sizeof(uint32_t); } for (auto &p : result) { - p.first = string_view(b, p.first.size()); + p.first = std::string_view(b, p.first.size()); b += p.first.size() + 1; - p.second = string_view(b, p.second.size()); + p.second = std::string_view(b, p.second.size()); b += p.second.size() + 1; } return result; @@ -374,7 +374,7 @@ Word get_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_s if (!key) { return WasmResult::InvalidMemoryAccess; } - string_view value; + std::string_view value; auto result = context->getHeaderMapValue(static_cast(type.u64_), key.value(), &value); if (result != WasmResult::Ok) { diff --git a/src/foreign.cc b/src/foreign.cc index 759d577bf..34335697c 100644 --- a/src/foreign.cc +++ b/src/foreign.cc @@ -25,7 +25,7 @@ namespace { #ifndef WITHOUT_ZLIB RegisterForeignFunction compressFunction( "compress", - [](WasmBase &, string_view arguments, + [](WasmBase &, std::string_view arguments, std::function alloc_result) -> WasmResult { unsigned long dest_len = compressBound(arguments.size()); std::unique_ptr b(new unsigned char[dest_len]); @@ -40,7 +40,7 @@ RegisterForeignFunction compressFunction( RegisterForeignFunction uncompressFunction("uncompress", - [](WasmBase &, string_view arguments, + [](WasmBase &, std::string_view arguments, std::function alloc_result) -> WasmResult { unsigned long dest_len = arguments.size() * 2 + 2; // output estimate. while (1) { diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index 395852ba3..dbac0e9cf 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -32,7 +32,7 @@ namespace proxy_wasm { -void NullPlugin::getFunction(string_view function_name, WasmCallVoid<0> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<0> *f) { if (function_name == "proxy_abi_version_0_1_0") { *f = [](ContextBase *) { /* dummy function */ }; } else if (function_name == "_start") { @@ -45,7 +45,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<0> *f) { } } -void NullPlugin::getFunction(string_view function_name, WasmCallVoid<1> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<1> *f) { auto plugin = this; if (function_name == "proxy_on_tick") { *f = [plugin](ContextBase *context, Word context_id) { @@ -68,7 +68,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<1> *f) { } } -void NullPlugin::getFunction(string_view function_name, WasmCallVoid<2> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<2> *f) { auto plugin = this; if (function_name == "proxy_on_context_create") { *f = [plugin](ContextBase *context, Word context_id, Word parent_context_id) { @@ -96,7 +96,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<2> *f) { } } -void NullPlugin::getFunction(string_view function_name, WasmCallVoid<3> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<3> *f) { auto plugin = this; if (function_name == "proxy_on_grpc_close") { *f = [plugin](ContextBase *context, Word context_id, Word token, Word status_code) { @@ -129,7 +129,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<3> *f) { } } -void NullPlugin::getFunction(string_view function_name, WasmCallVoid<5> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<5> *f) { auto plugin = this; if (function_name == "proxy_on_http_call_response") { *f = [plugin](ContextBase *context, Word context_id, Word token, Word headers, Word body_size, @@ -143,7 +143,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallVoid<5> *f) { } } -void NullPlugin::getFunction(string_view function_name, WasmCallWord<1> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<1> *f) { auto plugin = this; if (function_name == "malloc") { *f = [](ContextBase *, Word size) -> Word { @@ -165,7 +165,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<1> *f) { } } -void NullPlugin::getFunction(string_view function_name, WasmCallWord<2> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<2> *f) { auto plugin = this; if (function_name == "proxy_on_vm_start") { *f = [plugin](ContextBase *context, Word context_id, Word configuration_size) { @@ -208,7 +208,7 @@ void NullPlugin::getFunction(string_view function_name, WasmCallWord<2> *f) { } } -void NullPlugin::getFunction(string_view function_name, WasmCallWord<3> *f) { +void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<3> *f) { auto plugin = this; if (function_name == "proxy_on_downstream_data") { *f = [plugin](ContextBase *context, Word context_id, Word body_buffer_length, @@ -321,7 +321,7 @@ null_plugin::RootContext *NullPlugin::getRootContext(uint64_t context_id) { return it->second->asRoot(); } -null_plugin::RootContext *NullPlugin::getRoot(string_view root_id) { +null_plugin::RootContext *NullPlugin::getRoot(std::string_view root_id) { auto it = root_context_map_.find(std::string(root_id)); if (it == root_context_map_.end()) { return nullptr; @@ -494,7 +494,7 @@ void NullPlugin::onDelete(uint64_t context_id) { namespace null_plugin { -RootContext *nullVmGetRoot(string_view root_id) { +RootContext *nullVmGetRoot(std::string_view root_id) { auto null_vm = static_cast(current_context_->wasmVm()); return static_cast(null_vm->plugin_.get())->getRoot(root_id); } @@ -504,7 +504,7 @@ Context *nullVmGetContext(uint32_t context_id) { return static_cast(null_vm->plugin_.get())->getContext(context_id); } -RootContext *getRoot(string_view root_id) { return nullVmGetRoot(root_id); } +RootContext *getRoot(std::string_view root_id) { return nullVmGetRoot(root_id); } Context *getContext(uint32_t context_id) { return nullVmGetContext(context_id); } diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index 8b732d867..c5d24ed27 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -28,7 +28,7 @@ namespace proxy_wasm { std::unordered_map *null_vm_plugin_factories_ = nullptr; -RegisterNullVmPluginFactory::RegisterNullVmPluginFactory(string_view name, +RegisterNullVmPluginFactory::RegisterNullVmPluginFactory(std::string_view name, NullVmPluginFactory factory) { if (!null_vm_plugin_factories_) null_vm_plugin_factories_ = @@ -57,16 +57,16 @@ bool NullVm::load(const std::string &name, bool /* allow_precompiled */) { return true; } -bool NullVm::link(string_view /* name */) { return true; } +bool NullVm::link(std::string_view /* name */) { return true; } uint64_t NullVm::getMemorySize() { return std::numeric_limits::max(); } // NulVm pointers are just native pointers. -optional NullVm::getMemory(uint64_t pointer, uint64_t size) { +std::optional NullVm::getMemory(uint64_t pointer, uint64_t size) { if (pointer == 0 && size != 0) { - return PROXY_WASM_NULLOPT; + return std::nullopt; } - return string_view(reinterpret_cast(pointer), static_cast(size)); + return std::string_view(reinterpret_cast(pointer), static_cast(size)); } bool NullVm::setMemory(uint64_t pointer, uint64_t size, const void *data) { @@ -100,12 +100,12 @@ bool NullVm::getWord(uint64_t pointer, Word *data) { return true; } -string_view NullVm::getCustomSection(string_view /* name */) { +std::string_view NullVm::getCustomSection(std::string_view /* name */) { // Return nothing: there is no WASM file. return {}; } -string_view NullVm::getPrecompiledSectionName() { +std::string_view NullVm::getPrecompiledSectionName() { // Return nothing: there is no WASM file. return {}; } diff --git a/src/v8/v8.cc b/src/v8/v8.cc index c4664f039..671c36ddc 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -13,7 +13,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "include/proxy-wasm/compat.h" #include "include/proxy-wasm/v8.h" #include @@ -51,24 +50,24 @@ class V8 : public WasmVm { V8() {} // WasmVm - string_view runtime() override { return "v8"; } + std::string_view runtime() override { return "v8"; } bool load(const std::string &code, bool allow_precompiled) override; - string_view getCustomSection(string_view name) override; - string_view getPrecompiledSectionName() override; - bool link(string_view debug_name) override; + std::string_view getCustomSection(std::string_view name) override; + std::string_view getPrecompiledSectionName() override; + bool link(std::string_view debug_name) override; Cloneable cloneable() override { return Cloneable::CompiledBytecode; } std::unique_ptr clone() override; uint64_t getMemorySize() override; - optional getMemory(uint64_t pointer, uint64_t size) override; + std::optional getMemory(uint64_t pointer, uint64_t size) override; bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; bool getWord(uint64_t pointer, Word *word) override; bool setWord(uint64_t pointer, Word word) override; #define _REGISTER_HOST_FUNCTION(T) \ - void registerCallback(string_view module_name, string_view function_name, T, \ + void registerCallback(std::string_view module_name, std::string_view function_name, T, \ typename ConvertFunctionTypeWordToUint32::type f) override { \ registerHostFunctionImpl(module_name, function_name, f); \ }; @@ -76,7 +75,7 @@ class V8 : public WasmVm { #undef _REGISTER_HOST_FUNCTION #define _GET_MODULE_FUNCTION(T) \ - void getFunction(string_view function_name, T *f) override { \ + void getFunction(std::string_view function_name, T *f) override { \ getModuleFunctionImpl(function_name, f); \ }; FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) @@ -86,19 +85,19 @@ class V8 : public WasmVm { wasm::vec getStrippedSource(); template - void registerHostFunctionImpl(string_view module_name, string_view function_name, + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, void (*function)(void *, Args...)); template - void registerHostFunctionImpl(string_view module_name, string_view function_name, + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, R (*function)(void *, Args...)); template - void getModuleFunctionImpl(string_view function_name, + void getModuleFunctionImpl(std::string_view function_name, std::function *function); template - void getModuleFunctionImpl(string_view function_name, + void getModuleFunctionImpl(std::string_view function_name, std::function *function); wasm::vec source_ = wasm::vec::invalid(); @@ -315,7 +314,7 @@ wasm::vec V8::getStrippedSource() { return wasm::vec::make(stripped.size(), stripped.data()); } -string_view V8::getCustomSection(string_view name) { +std::string_view V8::getCustomSection(std::string_view name) { assert(source_.get() != nullptr); const byte_t *pos = source_.get() + 8 /* Wasm header */; @@ -356,7 +355,7 @@ string_view V8::getCustomSection(string_view name) { #define WEE8_PLATFORM "" #endif -string_view V8::getPrecompiledSectionName() { +std::string_view V8::getPrecompiledSectionName() { static const auto name = sizeof(WEE8_PLATFORM) - 1 > 0 ? ("precompiled_wee8_v" + std::to_string(V8_MAJOR_VERSION) + "." + @@ -366,15 +365,15 @@ string_view V8::getPrecompiledSectionName() { return name; } -bool V8::link(string_view debug_name) { +bool V8::link(std::string_view debug_name) { assert(module_ != nullptr); const auto import_types = module_.get()->imports(); std::vector imports; for (size_t i = 0; i < import_types.size(); i++) { - string_view module(import_types[i]->module().get(), import_types[i]->module().size()); - string_view name(import_types[i]->name().get(), import_types[i]->name().size()); + std::string_view module(import_types[i]->module().get(), import_types[i]->module().size()); + std::string_view name(import_types[i]->name().get(), import_types[i]->name().size()); auto import_type = import_types[i]->type(); switch (import_type->kind()) { @@ -438,7 +437,7 @@ bool V8::link(string_view debug_name) { assert(export_types.size() == exports.size()); for (size_t i = 0; i < export_types.size(); i++) { - string_view name(export_types[i]->name().get(), export_types[i]->name().size()); + std::string_view name(export_types[i]->name().get(), export_types[i]->name().size()); auto export_type = export_types[i]->type(); auto export_item = exports[i].get(); assert(export_type->kind() == export_item->kind()); @@ -470,12 +469,12 @@ bool V8::link(string_view debug_name) { uint64_t V8::getMemorySize() { return memory_->data_size(); } -optional V8::getMemory(uint64_t pointer, uint64_t size) { +std::optional V8::getMemory(uint64_t pointer, uint64_t size) { assert(memory_ != nullptr); if (pointer + size > memory_->data_size()) { - return PROXY_WASM_NULLOPT; + return std::nullopt; } - return string_view(memory_->data() + pointer, size); + return std::string_view(memory_->data() + pointer, size); } bool V8::setMemory(uint64_t pointer, uint64_t size, const void *data) { @@ -509,7 +508,7 @@ bool V8::setWord(uint64_t pointer, Word word) { } template -void V8::registerHostFunctionImpl(string_view module_name, string_view function_name, +void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, void (*function)(void *, Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); @@ -533,7 +532,7 @@ void V8::registerHostFunctionImpl(string_view module_name, string_view function_ } template -void V8::registerHostFunctionImpl(string_view module_name, string_view function_name, +void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, R (*function)(void *, Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); @@ -558,7 +557,7 @@ void V8::registerHostFunctionImpl(string_view module_name, string_view function_ } template -void V8::getModuleFunctionImpl(string_view function_name, +void V8::getModuleFunctionImpl(std::string_view function_name, std::function *function) { auto it = module_functions_.find(std::string(function_name)); if (it == module_functions_.end()) { @@ -585,7 +584,7 @@ void V8::getModuleFunctionImpl(string_view function_name, } template -void V8::getModuleFunctionImpl(string_view function_name, +void V8::getModuleFunctionImpl(std::string_view function_name, std::function *function) { auto it = module_functions_.find(std::string(function_name)); if (it == module_functions_.end()) { diff --git a/src/wasm.cc b/src/wasm.cc index e47bc1946..a874d1ace 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -60,13 +60,13 @@ const uint8_t *decodeVarint(const uint8_t *pos, const uint8_t *end, uint32_t *ou return pos; } -std::string Sha256(string_view data) { +std::string Sha256(std::string_view data) { std::vector hash(picosha2::k_digest_size); picosha2::hash256(data.begin(), data.end(), hash.begin(), hash.end()); return std::string(reinterpret_cast(&hash[0]), hash.size()); } -std::string Xor(string_view a, string_view b) { +std::string Xor(std::string_view a, std::string_view b) { assert(a.size() == b.size()); std::string result; result.reserve(a.size()); @@ -78,7 +78,8 @@ std::string Xor(string_view a, string_view b) { } // namespace -std::string makeVmKey(string_view vm_id, string_view vm_configuration, string_view code) { +std::string makeVmKey(std::string_view vm_id, std::string_view vm_configuration, + std::string_view code) { std::string vm_key = Sha256(vm_id); vm_key = Xor(vm_key, Sha256(vm_configuration)); vm_key = Xor(vm_key, Sha256(code)); @@ -257,8 +258,8 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm } } -WasmBase::WasmBase(std::unique_ptr wasm_vm, string_view vm_id, string_view vm_configuration, - string_view vm_key) +WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, + std::string_view vm_configuration, std::string_view vm_key) : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), vm_configuration_(std::string(vm_configuration)) { if (!wasm_vm_) { @@ -414,7 +415,7 @@ void WasmBase::finishShutdown() { } } -WasmForeignFunction WasmBase::getForeignFunction(string_view function_name) { +WasmForeignFunction WasmBase::getForeignFunction(std::string_view function_name) { auto it = foreign_functions->find(std::string(function_name)); if (it != foreign_functions->end()) { return it->second; @@ -504,7 +505,7 @@ createThreadLocalWasm(std::shared_ptr &base_wasm, return wasm_handle; } -std::shared_ptr getThreadLocalWasm(string_view vm_key) { +std::shared_ptr getThreadLocalWasm(std::string_view vm_key) { auto it = local_wasms.find(std::string(vm_key)); if (it == local_wasms.end()) { return nullptr; diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 86ee52ba1..dc19c154a 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -58,14 +58,14 @@ namespace proxy_wasm { // Forward declarations. template -void getFunctionWavm(WasmVm *vm, string_view function_name, +void getFunctionWavm(WasmVm *vm, std::string_view function_name, std::function *function); template -void registerCallbackWavm(WasmVm *vm, string_view module_name, string_view function_name, +void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, R (*)(Args...)); template -void registerCallbackWavm(WasmVm *vm, string_view module_name, string_view function_name, F, - R (*)(Args...)); +void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, + F, R (*)(Args...)); namespace Wavm { @@ -177,28 +177,28 @@ struct Wavm : public WasmVmBase { ~Wavm() override; // WasmVm - string_view runtime() override { return WasmRuntimeNames::get().Wavm; } + std::string_view runtime() override { return WasmRuntimeNames::get().Wavm; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(const std::string &code, bool allow_precompiled) override; - void link(string_view debug_name) override; + void link(std::string_view debug_name) override; uint64_t getMemorySize() override; - optional getMemory(uint64_t pointer, uint64_t size) override; + std::optional getMemory(uint64_t pointer, uint64_t size) override; bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; bool getWord(uint64_t pointer, Word *data) override; bool setWord(uint64_t pointer, Word data) override; - string_view getCustomSection(string_view name) override; - string_view getPrecompiledSectionName() override; + std::string_view getCustomSection(std::string_view name) override; + std::string_view getPrecompiledSectionName() override; #define _GET_FUNCTION(_T) \ - void getFunction(string_view function_name, _T *f) override { \ + void getFunction(std::string_view function_name, _T *f) override { \ getFunctionWavm(this, function_name, f); \ }; FOR_ALL_WASM_VM_EXPORTS(_GET_FUNCTION) #undef _GET_FUNCTION #define _REGISTER_CALLBACK(_T) \ - void registerCallback(string_view module_name, string_view function_name, _T, \ + void registerCallback(std::string_view module_name, std::string_view function_name, _T, \ typename ConvertFunctionTypeWordToUint32<_T>::type f) override { \ registerCallbackWavm(this, module_name, function_name, f); \ }; @@ -271,7 +271,7 @@ bool Wavm::load(const std::string &code, bool allow_precompiled) { return true; } -void Wavm::link(string_view debug_name) { +void Wavm::link(std::string_view debug_name) { RootResolver rootResolver(compartment_); for (auto &p : intrinsic_modules_) { auto instance = Intrinsics::instantiateModule(compartment_, {&intrinsic_modules_[p.first]}, @@ -288,12 +288,12 @@ void Wavm::link(string_view debug_name) { uint64_t Wavm::getMemorySize() { return WAVM::Runtime::getMemoryNumPages(memory_) * WasmPageSize; } -optional Wavm::getMemory(uint64_t pointer, uint64_t size) { +std::optional Wavm::getMemory(uint64_t pointer, uint64_t size) { auto memory_num_bytes = WAVM::Runtime::getMemoryNumPages(memory_) * WasmPageSize; if (pointer + size > memory_num_bytes) { - return PROXY_WASM_NULLOPT; + return std::nullopt; } - return string_view(reinterpret_cast(memory_base_ + pointer), size); + return std::string_view(reinterpret_cast(memory_base_ + pointer), size); } bool Wavm::setMemory(uint64_t pointer, uint64_t size, const void *data) { @@ -323,7 +323,7 @@ bool Wavm::setWord(uint64_t pointer, Word data) { return setMemory(pointer, sizeof(uint32_t), &data32); } -string_view Wavm::getCustomSection(string_view name) { +std::string_view Wavm::getCustomSection(string_view name) { for (auto §ion : ir_module_.customSections) { if (section.name == name) { return {reinterpret_cast(section.data.data()), section.data.size()}; @@ -332,7 +332,7 @@ string_view Wavm::getCustomSection(string_view name) { return {}; } -string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_object"; } +std::string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_object"; } std::unique_ptr createVm(Stats::ScopeSharedPtr scope) { return std::make_unique(scope); @@ -349,7 +349,7 @@ IR::FunctionType inferEnvoyFunctionType(R (*)(void *, Args...)) { using namespace Wavm; template -void registerCallbackWavm(WasmVm *vm, string_view module_name, string_view function_name, +void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, R (*f)(Args...)) { auto wavm = static_cast(vm); wavm->envoyFunctions_.emplace_back( @@ -357,82 +357,84 @@ void registerCallbackWavm(WasmVm *vm, string_view module_name, string_view funct reinterpret_cast(f), inferEnvoyFunctionType(f))); } -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, void (*f)(void *)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, void (*f)(void *)); +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, void (*f)(void *, U32)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, void (*f)(void *, U32, U32)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, + std::string_view module_name, + std::string_view function_name, void (*f)(void *, U32, U32, U32)); template void -registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, void (*f)(void *, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, void (*f)(void *, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, void (*f)(void *, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, void (*f)(void *, U32, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, void (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, void (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, void (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, U32 (*f)(void *)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, U32 (*f)(void *)); +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, U32 (*f)(void *, U32)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, U32 (*f)(void *, U32, U32)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, + std::string_view module_name, + std::string_view function_name, U32 (*f)(void *, U32, U32, U32)); template void -registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, U32 (*f)(void *, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, U32 (*f)(void *, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, U32 (*f)(void *, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32)); template void registerCallbackWavm( - WasmVm *vm, string_view module_name, string_view function_name, + WasmVm *vm, std::string_view module_name, std::string_view function_name, U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, U64 (*f)(void *, U32)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, void (*f)(void *, U32, I64)); -template void registerCallbackWavm(WasmVm *vm, string_view module_name, - string_view function_name, +template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, + std::string_view function_name, void (*f)(void *, U32, U64)); template @@ -445,7 +447,7 @@ static bool checkFunctionType(WAVM::Runtime::Function *f, IR::FunctionType t) { } template -void getFunctionWavmReturn(WasmVm *vm, string_view function_name, +void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, std::function *function, uint32_t) { auto wavm = static_cast(vm); auto f = @@ -476,7 +478,7 @@ void getFunctionWavmReturn(WasmVm *vm, string_view function_name, struct Void {}; template -void getFunctionWavmReturn(WasmVm *vm, string_view function_name, +void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, std::function *function, Void) { auto wavm = static_cast(vm); auto f = @@ -505,80 +507,82 @@ void getFunctionWavmReturn(WasmVm *vm, string_view function_name, // we use 'Void' for template matching. Note that the template implementation above // which matchers on 'bool' does not use 'Void' in the implemenation. template -void getFunctionWavm(WasmVm *vm, string_view function_name, +void getFunctionWavm(WasmVm *vm, std::string_view function_name, std::function *function) { typename std::conditional::value, Void, uint32_t>::type x{}; getFunctionWavmReturn(vm, function_name, function, x); } -template void getFunctionWavm(WasmVm *, string_view, std::function *); -template void getFunctionWavm(WasmVm *, string_view, +template void getFunctionWavm(WasmVm *, std::string_view, + std::function *); +template void getFunctionWavm(WasmVm *, std::string_view, std::function *); template void -getFunctionWavm(WasmVm *, string_view, +getFunctionWavm(WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, std::function *); + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); -template void getFunctionWavm(WasmVm *, string_view, +template void getFunctionWavm(WasmVm *, std::string_view, std::function *); template void -getFunctionWavm(WasmVm *, string_view, +getFunctionWavm(WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, std::function *); + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, std::function *); + WasmVm *, std::string_view, + std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); template void getFunctionWavm( - WasmVm *, string_view, + WasmVm *, std::string_view, std::function *); diff --git a/wasm_vm_test.cc b/wasm_vm_test.cc index 2f6293295..26d45473d 100644 --- a/wasm_vm_test.cc +++ b/wasm_vm_test.cc @@ -35,13 +35,13 @@ RegisterNullVmPluginFactory register_test_null_vm_plugin("test_null_vm_plugin", }); TEST(WasmVm, Compat) { - string_view foo = "foo"; + std::string_view foo = "foo"; std::string bar = "bar"; EXPECT_NE(foo, bar); EXPECT_EQ(foo, "foo"); - optional o = PROXY_WASM_NULLOPT; + std::optional o = std::nullopt; EXPECT_FALSE(o); o = 1; From fd88c4899475f4e476414da13212f691c453a45b Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Sun, 2 Aug 2020 17:33:03 -0700 Subject: [PATCH 024/287] Enable GitHub Actions for envoy-release/** branches. (#43) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 4a75297b9..dfd30a1a5 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -19,10 +19,12 @@ on: pull_request: branches: - master + - 'envoy-release/**' push: branches: - master + - 'envoy-release/**' jobs: From 5d8775b77332c13671c592f90d2067d010291970 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Mon, 3 Aug 2020 14:21:28 -0700 Subject: [PATCH 025/287] Add missing optional include. (#46) Signed-off-by: John Plevyak --- include/proxy-wasm/context_interface.h | 1 + include/proxy-wasm/wasm_vm.h | 1 + src/v8/v8.cc | 1 + src/wavm/wavm.cc | 1 + 4 files changed, 4 insertions(+) diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 9f6fd6ca3..b7c252fbe 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 5ae676346..5aaca8ced 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -17,6 +17,7 @@ #include #include +#include #include "include/proxy-wasm/word.h" diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 671c36ddc..faa2a6e6e 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -18,6 +18,7 @@ #include #include +#include #include #include diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index dc19c154a..03c9f299b 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -17,6 +17,7 @@ #include #include +#include #include #include #include From c15a8ff3e52e6e858b6c3015460b3e7bab69f5c6 Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Tue, 4 Aug 2020 09:42:31 -0700 Subject: [PATCH 026/287] Add proxy_get_log_level to the NullVm. (#48) Signed-off-by: Gregory Brail --- include/proxy-wasm/wasm_api_impl.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index 0e1f72844..d145fad67 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -32,6 +32,9 @@ inline WasmResult proxy_log(LogLevel level, const char *logMessage, size_t messa return wordToWasmResult( exports::log(current_context_, WS(level), WR(logMessage), WS(messageSize))); } +inline WasmResult proxy_get_log_level(LogLevel *level) { + return wordToWasmResult(exports::get_log_level(current_context_, WR(level))); +} // Timer inline WasmResult proxy_set_tick_period_milliseconds(uint64_t millisecond) { From e73c498e64c654c06a68ea54243e0cc9e2299464 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 4 Aug 2020 11:10:42 -0700 Subject: [PATCH 027/287] Support multiple versions of the Proxy-Wasm ABI. (#42) Signed-off-by: Piotr Sikora --- include/proxy-wasm/context.h | 5 ++++ include/proxy-wasm/context_interface.h | 6 ++++ include/proxy-wasm/exports.h | 4 +++ include/proxy-wasm/null_plugin.h | 1 + include/proxy-wasm/null_vm.h | 1 + include/proxy-wasm/wasm.h | 13 ++++++--- include/proxy-wasm/wasm_api_impl.h | 17 +++++++++++ include/proxy-wasm/wasm_vm.h | 8 ++++++ src/context.cc | 40 ++++++++++++++++++++------ src/exports.cc | 25 ++++++++++++++++ src/null/null_plugin.cc | 4 +-- src/null/null_vm.cc | 2 ++ src/v8/v8.cc | 19 ++++++++++++ src/wasm.cc | 36 +++++++++++++++++------ src/wavm/wavm.cc | 2 ++ 15 files changed, 160 insertions(+), 23 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 9c1189cbe..53717f5b2 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -238,6 +238,10 @@ class ContextBase : public RootInterface, t += tpe.tv_nsec; return t; } + std::string_view getConfiguration() override { + unimplemented(); + return ""; + } std::pair getStatus() override { unimplemented(); return std::make_pair(1, "unimplmemented"); @@ -316,6 +320,7 @@ class ContextBase : public RootInterface, std::string_view /* details */) override { return unimplemented(); } + void clearRouteCache() override { unimplemented(); } void failStream(WasmStreamType stream_type) override { closeStream(stream_type); } // Shared Data diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index b7c252fbe..2fdc9087a 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -235,6 +235,9 @@ struct HttpInterface { Pairs additional_headers, uint32_t grpc_status, std::string_view details) = 0; + // Clears the route cache for the current request. + virtual void clearRouteCache() = 0; + // Call when the stream closes. See RootInterface. virtual bool onDone() = 0; @@ -551,6 +554,9 @@ struct GeneralInterface { // Provides the current time in nanoseconds since the Unix epoch. virtual uint64_t getCurrentTimeNanoseconds() = 0; + // Returns plugin configuration. + virtual std::string_view getConfiguration() = 0; + /** * Provides the status of the last call into the VM or out of the VM, similar to errno. * @return the status code and a descriptive string. diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index a5bacb7f1..5d4df20dd 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -29,18 +29,22 @@ namespace exports { // ABI functions exported from envoy to wasm. +Word get_configuration(void *raw_context, Word address, Word size); Word get_status(void *raw_context, Word status_code, Word address, Word size); Word log(void *raw_context, Word level, Word address, Word size); Word get_log_level(void *raw_context, Word result_level_uint32_ptr); Word get_property(void *raw_context, Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_size_ptr); Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, Word value_size); +Word continue_request(void *raw_context); +Word continue_response(void *raw_context); Word continue_stream(void *raw_context, Word stream_type); Word close_stream(void *raw_context, Word stream_type); Word send_local_response(void *raw_context, Word response_code, Word response_code_details_ptr, Word response_code_details_size, Word body_ptr, Word body_size, Word additional_response_header_pairs_ptr, Word additional_response_header_pairs_size, Word grpc_status); +Word clear_route_cache(void *raw_context); Word get_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ptr_ptr, Word value_size_ptr, Word cas_ptr); Word set_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 9c8120892..9d8d01068 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -37,6 +37,7 @@ namespace proxy_wasm { */ struct NullPluginRegistry { void (*proxy_abi_version_0_1_0_)() = nullptr; + void (*proxy_abi_version_0_2_0_)() = nullptr; void (*proxy_on_log_)(uint32_t context_id) = nullptr; uint32_t (*proxy_validate_configuration_)(uint32_t root_context_id, uint32_t plugin_configuration_size) = nullptr; diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index f86ba1038..bfa62d896 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -36,6 +36,7 @@ struct NullVm : public WasmVm { Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(const std::string &code, bool allow_precompiled) override; + AbiVersion getAbiVersion() override; bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 4b7bb7d76..90347f6f0 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -122,6 +122,8 @@ class WasmBase : public std::enable_shared_from_this { virtual void error(std::string_view message) { std::cerr << message << "\n"; } virtual void unimplemented() { error("unimplemented proxy-wasm API"); } + AbiVersion abiVersion() { return abi_version_; } + bool getEmscriptenVersion(uint32_t *emscripten_metadata_major_version, uint32_t *emscripten_metadata_minor_version, uint32_t *emscripten_abi_major_version, @@ -184,8 +186,6 @@ class WasmBase : public std::enable_shared_from_this { std::unique_ptr shutdown_handle_; std::unordered_set pending_done_; // Root contexts not done during shutdown. - WasmCallVoid<0> abi_version_0_1_0_; - WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ WasmCallVoid<0> __wasm_call_ctors_; @@ -205,12 +205,14 @@ class WasmBase : public std::enable_shared_from_this { WasmCallVoid<2> on_downstream_connection_close_; WasmCallVoid<2> on_upstream_connection_close_; - WasmCallWord<3> on_request_headers_; + WasmCallWord<2> on_request_headers_abi_01_; + WasmCallWord<3> on_request_headers_abi_02_; WasmCallWord<3> on_request_body_; WasmCallWord<2> on_request_trailers_; WasmCallWord<2> on_request_metadata_; - WasmCallWord<3> on_response_headers_; + WasmCallWord<2> on_response_headers_abi_01_; + WasmCallWord<3> on_response_headers_abi_02_; WasmCallWord<3> on_response_body_; WasmCallWord<2> on_response_trailers_; WasmCallWord<2> on_response_metadata_; @@ -238,6 +240,9 @@ class WasmBase : public std::enable_shared_from_this { bool allow_precompiled_ = false; FailState failed_ = FailState::Ok; // Wasm VM fatal error. + // ABI version. + AbiVersion abi_version_ = AbiVersion::Unknown; + bool is_emscripten_ = false; uint32_t emscripten_metadata_major_version_ = 0; uint32_t emscripten_metadata_minor_version_ = 0; diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index d145fad67..78518a7d6 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -23,6 +23,13 @@ namespace null_plugin { inline WasmResult wordToWasmResult(Word w) { return static_cast(w.u64_); } +// Configuration and Status +inline WasmResult proxy_get_configuration(const char **configuration_ptr, + size_t *configuration_size) { + return wordToWasmResult( + exports::get_configuration(current_context_, WR(configuration_ptr), WR(configuration_size))); +} + inline WasmResult proxy_get_status(uint32_t *code_ptr, const char **ptr, size_t *size) { return wordToWasmResult(exports::get_status(current_context_, WR(code_ptr), WR(ptr), WR(size))); } @@ -58,6 +65,12 @@ inline WasmResult proxy_set_property(const char *key_ptr, size_t key_size, const } // Continue +inline WasmResult proxy_continue_request() { + return wordToWasmResult(exports::continue_request(current_context_)); +} +inline WasmResult proxy_continue_response() { + return wordToWasmResult(exports::continue_response(current_context_)); +} inline WasmResult proxy_continue_stream(WasmStreamType stream_type) { return wordToWasmResult(exports::continue_stream(current_context_, WS(stream_type))); } @@ -76,6 +89,10 @@ proxy_send_local_response(uint32_t response_code, const char *response_code_deta WS(grpc_status))); } +inline WasmResult proxy_clear_route_cache() { + return wordToWasmResult(exports::clear_route_cache(current_context_)); +} + // SharedData inline WasmResult proxy_get_shared_data(const char *key_ptr, size_t key_size, const char **value_ptr, size_t *value_size, uint32_t *cas) { diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 5aaca8ced..354b4ba01 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -101,6 +101,8 @@ enum class Cloneable { InstantiatedModule // VMs can be cloned from an instantiated module. }; +enum class AbiVersion { ProxyWasm_0_1_0, ProxyWasm_0_2_0, Unknown }; + class NullPlugin; // Integrator specific WasmVm operations. @@ -185,6 +187,12 @@ class WasmVm { */ virtual bool link(std::string_view debug_name) = 0; + /** + * Get ABI version of the module. + * @return the ABI version. + */ + virtual AbiVersion getAbiVersion() = 0; + /** * Get size of the currently allocated memory in the VM. * @return the size of memory in bytes. diff --git a/src/context.cc b/src/context.cc index b7b8d4d1f..4b31f6075 100644 --- a/src/context.cc +++ b/src/context.cc @@ -37,8 +37,24 @@ } \ } +#define CHECK_FAIL2(_call1, _call2, _stream_type, _return_open, _return_closed) \ + if (isFailed()) { \ + if (plugin_->fail_open_) { \ + return _return_open; \ + } else { \ + failStream(_stream_type); \ + return _return_closed; \ + } \ + } else { \ + if (!wasm_->_call1 && !wasm_->_call2) { \ + return _return_open; \ + } \ + } + #define CHECK_HTTP(_call, _return_open, _return_closed) \ CHECK_FAIL(_call, WasmStreamType::Request, _return_open, _return_closed) +#define CHECK_HTTP2(_call1, _call2, _return_open, _return_closed) \ + CHECK_FAIL2(_call1, _call2, WasmStreamType::Request, _return_open, _return_closed) #define CHECK_NET(_call, _return_open, _return_closed) \ CHECK_FAIL(_call, WasmStreamType::Downstream, _return_open, _return_closed) @@ -443,11 +459,15 @@ void ContextBase::onUpstreamConnectionClose(CloseType close_type) { template static uint32_t headerSize(const P &p) { return p ? p->size() : 0; } FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_stream) { - CHECK_HTTP(on_request_headers_, FilterHeadersStatus::Continue, - FilterHeadersStatus::StopIteration); + CHECK_HTTP2(on_request_headers_abi_01_, on_request_headers_abi_02_, FilterHeadersStatus::Continue, + FilterHeadersStatus::StopIteration); DeferAfterCallActions actions(this); - auto result = - wasm_->on_request_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; + auto result = wasm_->on_request_headers_abi_01_ + ? wasm_->on_request_headers_abi_01_(this, id_, headers).u64_ + : wasm_ + ->on_request_headers_abi_02_(this, id_, headers, + static_cast(end_of_stream)) + .u64_; if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) return FilterHeadersStatus::StopAllIterationAndWatermark; return static_cast(result); @@ -485,11 +505,15 @@ FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { } FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of_stream) { - CHECK_HTTP(on_response_headers_, FilterHeadersStatus::Continue, - FilterHeadersStatus::StopIteration); + CHECK_HTTP2(on_response_headers_abi_01_, on_response_headers_abi_02_, + FilterHeadersStatus::Continue, FilterHeadersStatus::StopIteration); DeferAfterCallActions actions(this); - auto result = - wasm_->on_response_headers_(this, id_, headers, static_cast(end_of_stream)).u64_; + auto result = wasm_->on_response_headers_abi_01_ + ? wasm_->on_response_headers_abi_01_(this, id_, headers).u64_ + : wasm_ + ->on_response_headers_abi_02_(this, id_, headers, + static_cast(end_of_stream)) + .u64_; if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) return FilterHeadersStatus::StopAllIterationAndWatermark; return static_cast(result); diff --git a/src/exports.cc b/src/exports.cc index 7ad07b93e..07ce7956a 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -148,6 +148,15 @@ Word get_property(void *raw_context, Word path_ptr, Word path_size, Word value_p return WasmResult::Ok; } +Word get_configuration(void *raw_context, Word value_ptr_ptr, Word value_size_ptr) { + auto context = WASM_CONTEXT(raw_context); + auto value = context->getConfiguration(); + if (!context->wasm()->copyToPointerSize(value, value_ptr_ptr, value_size_ptr)) { + return WasmResult::InvalidMemoryAccess; + } + return WasmResult::Ok; +} + Word get_status(void *raw_context, Word code_ptr, Word value_ptr_ptr, Word value_size_ptr) { auto context = WASM_CONTEXT(raw_context); auto status = context->getStatus(); @@ -163,6 +172,16 @@ Word get_status(void *raw_context, Word code_ptr, Word value_ptr_ptr, Word value // HTTP // Continue/Reply/Route +Word continue_request(void *raw_context) { + auto context = WASM_CONTEXT(raw_context); + return context->continueStream(WasmStreamType::Request); +} + +Word continue_response(void *raw_context) { + auto context = WASM_CONTEXT(raw_context); + return context->continueStream(WasmStreamType::Response); +} + Word continue_stream(void *raw_context, Word type) { auto context = WASM_CONTEXT(raw_context); if (type > static_cast(WasmStreamType::MAX)) { @@ -198,6 +217,12 @@ Word send_local_response(void *raw_context, Word response_code, Word response_co return WasmResult::Ok; } +Word clear_route_cache(void *raw_context) { + auto context = WASM_CONTEXT(raw_context); + context->clearRouteCache(); + return WasmResult::Ok; +} + Word set_effective_context(void *raw_context, Word context_id) { auto context = WASM_CONTEXT(raw_context); uint32_t cid = static_cast(context_id); diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index dbac0e9cf..0b2974015 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -33,9 +33,7 @@ namespace proxy_wasm { void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<0> *f) { - if (function_name == "proxy_abi_version_0_1_0") { - *f = [](ContextBase *) { /* dummy function */ }; - } else if (function_name == "_start") { + if (function_name == "_start") { *f = nullptr; } else if (function_name == "__wasm_call_ctors") { *f = nullptr; diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index c5d24ed27..aa7549357 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -57,6 +57,8 @@ bool NullVm::load(const std::string &name, bool /* allow_precompiled */) { return true; } +AbiVersion NullVm::getAbiVersion() { return AbiVersion::ProxyWasm_0_2_0; } + bool NullVm::link(std::string_view /* name */) { return true; } uint64_t NullVm::getMemorySize() { return std::numeric_limits::max(); } diff --git a/src/v8/v8.cc b/src/v8/v8.cc index faa2a6e6e..789e29cc3 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -54,6 +54,7 @@ class V8 : public WasmVm { std::string_view runtime() override { return "v8"; } bool load(const std::string &code, bool allow_precompiled) override; + AbiVersion getAbiVersion() override; std::string_view getCustomSection(std::string_view name) override; std::string_view getPrecompiledSectionName() override; bool link(std::string_view debug_name) override; @@ -366,6 +367,24 @@ std::string_view V8::getPrecompiledSectionName() { return name; } +AbiVersion V8::getAbiVersion() { + assert(module_ != nullptr); + + const auto export_types = module_.get()->exports(); + for (size_t i = 0; i < export_types.size(); i++) { + if (export_types[i]->type()->kind() == wasm::EXTERN_FUNC) { + std::string_view name(export_types[i]->name().get(), export_types[i]->name().size()); + if (name == "proxy_abi_version_0_1_0") { + return AbiVersion::ProxyWasm_0_1_0; + } else if (name == "proxy_abi_version_0_2_0") { + return AbiVersion::ProxyWasm_0_2_0; + } + } + } + + return AbiVersion::Unknown; +} + bool V8::link(std::string_view debug_name) { assert(module_ != nullptr); diff --git a/src/wasm.cc b/src/wasm.cc index a874d1ace..9be5938bc 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -148,8 +148,6 @@ void WasmBase::registerCallbacks() { _REGISTER_PROXY(set_property); _REGISTER_PROXY(get_property); - _REGISTER_PROXY(continue_stream); - _REGISTER_PROXY(close_stream); _REGISTER_PROXY(send_local_response); _REGISTER_PROXY(get_shared_data); @@ -191,6 +189,16 @@ void WasmBase::registerCallbacks() { _REGISTER_PROXY(set_effective_context); _REGISTER_PROXY(done); _REGISTER_PROXY(call_foreign_function); + + if (abiVersion() == AbiVersion::ProxyWasm_0_1_0) { + _REGISTER_PROXY(get_configuration); + _REGISTER_PROXY(continue_request); + _REGISTER_PROXY(continue_response); + _REGISTER_PROXY(clear_route_cache); + } else if (abiVersion() == AbiVersion::ProxyWasm_0_2_0) { + _REGISTER_PROXY(continue_stream); + _REGISTER_PROXY(close_stream); + } #undef _REGISTER_PROXY } @@ -200,14 +208,17 @@ void WasmBase::getFunctions() { _GET(__wasm_call_ctors); _GET(malloc); + if (!malloc_) { + fail(FailState::MissingFunction, "Wasm module is missing malloc function."); + } #undef _GET #define _GET_PROXY(_fn) wasm_vm_->getFunction("proxy_" #_fn, &_fn##_); +#define _GET_PROXY_ABI(_fn, _abi) wasm_vm_->getFunction("proxy_" #_fn, &_fn##_abi##_); _GET_PROXY(validate_configuration); _GET_PROXY(on_vm_start); _GET_PROXY(on_configure); _GET_PROXY(on_tick); - _GET_PROXY(on_foreign_function); _GET_PROXY(on_context_create); @@ -217,11 +228,9 @@ void WasmBase::getFunctions() { _GET_PROXY(on_downstream_connection_close); _GET_PROXY(on_upstream_connection_close); - _GET_PROXY(on_request_headers); _GET_PROXY(on_request_body); _GET_PROXY(on_request_trailers); _GET_PROXY(on_request_metadata); - _GET_PROXY(on_response_headers); _GET_PROXY(on_response_body); _GET_PROXY(on_response_trailers); _GET_PROXY(on_response_metadata); @@ -234,11 +243,17 @@ void WasmBase::getFunctions() { _GET_PROXY(on_done); _GET_PROXY(on_log); _GET_PROXY(on_delete); -#undef _GET_PROXY - if (!malloc_) { - fail(FailState::MissingFunction, "Wasm missing malloc"); + if (abiVersion() == AbiVersion::ProxyWasm_0_1_0) { + _GET_PROXY_ABI(on_request_headers, _abi_01); + _GET_PROXY_ABI(on_response_headers, _abi_01); + } else if (abiVersion() == AbiVersion::ProxyWasm_0_2_0) { + _GET_PROXY_ABI(on_request_headers, _abi_02); + _GET_PROXY_ABI(on_response_headers, _abi_02); + _GET_PROXY(on_foreign_function); } +#undef _GET_PROXY_ABI +#undef _GET_PROXY } WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, WasmVmFactory factory) @@ -315,6 +330,11 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { allow_precompiled_ = allow_precompiled; } + abi_version_ = wasm_vm_->getAbiVersion(); + if (abi_version_ == AbiVersion::Unknown) { + return false; + } + if (started_from_ != Cloneable::InstantiatedModule) { registerCallbacks(); wasm_vm_->link(vm_id_); diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 03c9f299b..f883656f6 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -272,6 +272,8 @@ bool Wavm::load(const std::string &code, bool allow_precompiled) { return true; } +AbiVersion Wavm::getAbiVersion() { return AbiVersion::Unknown; } + void Wavm::link(std::string_view debug_name) { RootResolver rootResolver(compartment_); for (auto &p : intrinsic_modules_) { From d1e7040328a0833e841719adc4bb80ab3c9d42bb Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Tue, 4 Aug 2020 22:55:32 -0700 Subject: [PATCH 028/287] Move get_log_level to ABI version 0.2.1 (#50) Signed-off-by: Gregory Brail --- include/proxy-wasm/wasm_vm.h | 2 +- src/null/null_vm.cc | 2 +- src/v8/v8.cc | 2 ++ src/wasm.cc | 8 ++++++-- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 354b4ba01..d0a0358dc 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -101,7 +101,7 @@ enum class Cloneable { InstantiatedModule // VMs can be cloned from an instantiated module. }; -enum class AbiVersion { ProxyWasm_0_1_0, ProxyWasm_0_2_0, Unknown }; +enum class AbiVersion { ProxyWasm_0_1_0, ProxyWasm_0_2_0, ProxyWasm_0_2_1, Unknown }; class NullPlugin; diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index aa7549357..2159c1223 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -57,7 +57,7 @@ bool NullVm::load(const std::string &name, bool /* allow_precompiled */) { return true; } -AbiVersion NullVm::getAbiVersion() { return AbiVersion::ProxyWasm_0_2_0; } +AbiVersion NullVm::getAbiVersion() { return AbiVersion::ProxyWasm_0_2_1; } bool NullVm::link(std::string_view /* name */) { return true; } diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 789e29cc3..0de616757 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -378,6 +378,8 @@ AbiVersion V8::getAbiVersion() { return AbiVersion::ProxyWasm_0_1_0; } else if (name == "proxy_abi_version_0_2_0") { return AbiVersion::ProxyWasm_0_2_0; + } else if (name == "proxy_abi_version_0_2_1") { + return AbiVersion::ProxyWasm_0_2_1; } } } diff --git a/src/wasm.cc b/src/wasm.cc index 9be5938bc..bd3f96b88 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -141,7 +141,6 @@ void WasmBase::registerCallbacks() { &ConvertFunctionWordToUint32::convertFunctionWordToUint32); _REGISTER_PROXY(log); - _REGISTER_PROXY(get_log_level); _REGISTER_PROXY(get_status); @@ -198,6 +197,10 @@ void WasmBase::registerCallbacks() { } else if (abiVersion() == AbiVersion::ProxyWasm_0_2_0) { _REGISTER_PROXY(continue_stream); _REGISTER_PROXY(close_stream); + } else if (abiVersion() == AbiVersion::ProxyWasm_0_2_1) { + _REGISTER_PROXY(continue_stream); + _REGISTER_PROXY(close_stream); + _REGISTER_PROXY(get_log_level); } #undef _REGISTER_PROXY } @@ -247,7 +250,8 @@ void WasmBase::getFunctions() { if (abiVersion() == AbiVersion::ProxyWasm_0_1_0) { _GET_PROXY_ABI(on_request_headers, _abi_01); _GET_PROXY_ABI(on_response_headers, _abi_01); - } else if (abiVersion() == AbiVersion::ProxyWasm_0_2_0) { + } else if (abiVersion() == AbiVersion::ProxyWasm_0_2_0 || + abiVersion() == AbiVersion::ProxyWasm_0_2_1) { _GET_PROXY_ABI(on_request_headers, _abi_02); _GET_PROXY_ABI(on_response_headers, _abi_02); _GET_PROXY(on_foreign_function); From 5afe9bdc9d3dc833522332b5c0b87e1339fd2da2 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Wed, 5 Aug 2020 10:37:34 -0700 Subject: [PATCH 029/287] Fix WAVM support. (#47) Signed-off-by: John Plevyak --- src/wasm.cc | 4 +- src/wavm/wavm.cc | 167 ++++++++++++++++++++++++++++++----------------- 2 files changed, 109 insertions(+), 62 deletions(-) diff --git a/src/wasm.cc b/src/wasm.cc index bd3f96b88..70f758057 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -341,7 +341,9 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { if (started_from_ != Cloneable::InstantiatedModule) { registerCallbacks(); - wasm_vm_->link(vm_id_); + if (!wasm_vm_->link(vm_id_)) { + return false; + } } vm_context_.reset(createVmContext()); diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index f883656f6..d6b6b67a1 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -15,7 +15,9 @@ #include "include/proxy-wasm/wavm.h" +#include #include +#include #include #include #include @@ -43,8 +45,16 @@ #include "WAVM/Runtime/Runtime.h" #include "WAVM/WASM/WASM.h" #include "WAVM/WASTParse/WASTParse.h" -#include "absl/container/node_hash_map.h" -#include "absl/strings/match.h" + +#ifdef NDEBUG +#define ASSERT(_x) _x +#else +#define ASSERT(_x) \ + do { \ + if (!_x) \ + ::exit(1); \ + } while (0) +#endif using namespace WAVM; using namespace WAVM::IR; @@ -74,15 +84,21 @@ struct Wavm; namespace { -#define CALL_WITH_CONTEXT(_x, _context) \ +#define CALL_WITH_CONTEXT(_x, _context, _wavm) \ do { \ - SaveRestoreContext _saved_context(static_cast(_context)); \ - WAVM::Runtime::catchRuntimeExceptions([&] { _x; }, \ - [&](WAVM::Runtime::Exception *exception) { \ - auto description = describeException(exception); \ - destroyException(exception); \ - throw WasmException(description); \ - }); \ + try { \ + SaveRestoreContext _saved_context(static_cast(_context)); \ + WAVM::Runtime::catchRuntimeExceptions( \ + [&] { _x; }, \ + [&](WAVM::Runtime::Exception *exception) { \ + auto description = describeException(exception); \ + _wavm->fail(FailState::RuntimeError, \ + "Function: " + std::string(function_name) + " failed: " + description); \ + destroyException(exception); \ + throw std::exception(); \ + }); \ + } catch (...) { \ + } \ } while (0) struct WasmUntaggedValue : public WAVM::IR::UntaggedValue { @@ -96,11 +112,9 @@ struct WasmUntaggedValue : public WAVM::IR::UntaggedValue { WasmUntaggedValue(F64 inF64) { f64 = inF64; } }; -const Logger::Id wasmId = Logger::Id::wasm; - -class RootResolver : public WAVM::Runtime::Resolver, public Logger::Loggable { +class RootResolver : public WAVM::Runtime::Resolver { public: - RootResolver(WAVM::Runtime::Compartment *, WavmVm *vm) : vm_(vm) {} + RootResolver(WAVM::Runtime::Compartment *, WasmVm *vm) : vm_(vm) {} virtual ~RootResolver() { module_name_to_instance_map_.clear(); } @@ -113,10 +127,12 @@ class RootResolver : public WAVM::Runtime::Resolver, public Logger::Loggableerror("Failed to load WASM module due to a type mismatch in an import: " + - std::string(module_name) + "." + export_name + " " + - asString(WAVM::Runtime::getExternType(out_object)) + - " but was expecting type: " + asString(type)); + vm_->fail(FailState::UnableToInitializeCode, + "Failed to load WASM module due to a type mismatch in an import: " + + std::string(module_name) + "." + export_name + " " + + asString(WAVM::Runtime::getExternType(out_object)) + + " but was expecting type: " + asString(type)); + return false; } } } @@ -125,19 +141,21 @@ class RootResolver : public WAVM::Runtime::Resolver, public Logger::Loggableerror("Failed to load Wasm module due to a missing import: " + std::string(module_name) + - "." + std::string(export_name) + " " + asString(type)); + vm_->fail(FailState::MissingFunction, + "Failed to load Wasm module due to a missing import: " + std::string(module_name) + + "." + std::string(export_name) + " " + asString(type)); + return false; } - HashMap &moduleNameToInstanceMap() { + HashMap &moduleNameToInstanceMap() { return module_name_to_instance_map_; } void addResolver(WAVM::Runtime::Resolver *r) { resolvers_.push_back(r); } private: - WavmVm *vm_; - HashMap module_name_to_instance_map_; + WasmVm *vm_; + HashMap module_name_to_instance_map_; std::vector resolvers_; }; @@ -173,16 +191,16 @@ struct PairHash { } }; -struct Wavm : public WasmVmBase { - Wavm(Stats::ScopeSharedPtr scope) : WasmVmBase(scope, WasmRuntimeNames::get().Wavm) {} +struct Wavm : public WasmVm { + Wavm() : WasmVm() {} ~Wavm() override; // WasmVm - std::string_view runtime() override { return WasmRuntimeNames::get().Wavm; } + std::string_view runtime() override { return "wavm"; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(const std::string &code, bool allow_precompiled) override; - void link(std::string_view debug_name) override; + bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; @@ -190,6 +208,7 @@ struct Wavm : public WasmVmBase { bool setWord(uint64_t pointer, Word data) override; std::string_view getCustomSection(std::string_view name) override; std::string_view getPrecompiledSectionName() override; + AbiVersion getAbiVersion() override; #define _GET_FUNCTION(_T) \ void getFunction(std::string_view function_name, _T *f) override { \ @@ -209,15 +228,16 @@ struct Wavm : public WasmVmBase { bool has_instantiated_module_ = false; IR::Module ir_module_; WAVM::Runtime::ModuleRef module_ = nullptr; - WAVM::Runtime::GCPointer module_instance_; + WAVM::Runtime::GCPointer module_instance_; WAVM::Runtime::Memory *memory_; WAVM::Runtime::GCPointer compartment_; WAVM::Runtime::GCPointer context_; - node_hash_map intrinsic_modules_; - node_hash_map> + std::map intrinsic_modules_; + std::map> intrinsic_module_instances_; std::vector> envoyFunctions_; uint8_t *memory_base_ = nullptr; + AbiVersion abi_version_ = AbiVersion::Unknown; }; Wavm::~Wavm() { @@ -232,11 +252,12 @@ Wavm::~Wavm() { } std::unique_ptr Wavm::clone() { - auto wavm = std::make_unique(scope_); + auto wavm = std::make_unique(); wavm->compartment_ = WAVM::Runtime::cloneCompartment(compartment_); wavm->memory_ = WAVM::Runtime::remapToClonedCompartment(memory_, wavm->compartment_); wavm->memory_base_ = WAVM::Runtime::getMemoryBaseAddress(wavm->memory_); wavm->context_ = WAVM::Runtime::createContext(wavm->compartment_); + wavm->abi_version_ = abi_version_; for (auto &p : intrinsic_module_instances_) { wavm->intrinsic_module_instances_.emplace( p.first, WAVM::Runtime::remapToClonedCompartment(p.second, wavm->compartment_)); @@ -254,7 +275,7 @@ bool Wavm::load(const std::string &code, bool allow_precompiled) { if (!loadModule(code, ir_module_)) { return false; } - // todo check percompiled section is permitted + getAbiVersion(); // Cache ABI version. const CustomSection *precompiled_object_section = nullptr; if (allow_precompiled) { for (const CustomSection &customSection : ir_module_.customSections) { @@ -272,10 +293,29 @@ bool Wavm::load(const std::string &code, bool allow_precompiled) { return true; } -AbiVersion Wavm::getAbiVersion() { return AbiVersion::Unknown; } +AbiVersion Wavm::getAbiVersion() { + if (abi_version_ != AbiVersion::Unknown) { + return abi_version_; + } + for (auto &e : ir_module_.exports) { + if (e.name == "proxy_abi_version_0_1_0") { + abi_version_ = AbiVersion::ProxyWasm_0_1_0; + return abi_version_; + } + if (e.name == "proxy_abi_version_0_2_0") { + abi_version_ = AbiVersion::ProxyWasm_0_2_0; + return abi_version_; + } + if (e.name == "proxy_abi_version_0_2_1") { + abi_version_ = AbiVersion::ProxyWasm_0_2_1; + return abi_version_; + } + } + return AbiVersion::Unknown; +} -void Wavm::link(std::string_view debug_name) { - RootResolver rootResolver(compartment_); +bool Wavm::link(std::string_view debug_name) { + RootResolver rootResolver(compartment_, this); for (auto &p : intrinsic_modules_) { auto instance = Intrinsics::instantiateModule(compartment_, {&intrinsic_modules_[p.first]}, std::string(p.first)); @@ -283,10 +323,18 @@ void Wavm::link(std::string_view debug_name) { rootResolver.moduleNameToInstanceMap().set(p.first, instance); } WAVM::Runtime::LinkResult link_result = linkModule(ir_module_, rootResolver); + if (!link_result.missingImports.empty()) { + for (auto &i : link_result.missingImports) { + error("Missing Wasm import " + i.moduleName + " " + i.exportName); + } + fail(FailState::MissingFunction, "Failed to load Wasm module due to a missing import(s)"); + return false; + } module_instance_ = instantiateModule( compartment_, module_, std::move(link_result.resolvedImports), std::string(debug_name)); memory_ = getDefaultMemory(module_instance_); memory_base_ = WAVM::Runtime::getMemoryBaseAddress(memory_); + return true; } uint64_t Wavm::getMemorySize() { return WAVM::Runtime::getMemoryNumPages(memory_) * WasmPageSize; } @@ -326,7 +374,7 @@ bool Wavm::setWord(uint64_t pointer, Word data) { return setMemory(pointer, sizeof(uint32_t), &data32); } -std::string_view Wavm::getCustomSection(string_view name) { +std::string_view Wavm::getCustomSection(std::string_view name) { for (auto §ion : ir_module_.customSections) { if (section.name == name) { return {reinterpret_cast(section.data.data()), section.data.size()}; @@ -337,12 +385,10 @@ std::string_view Wavm::getCustomSection(string_view name) { std::string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_object"; } -std::unique_ptr createVm(Stats::ScopeSharedPtr scope) { - return std::make_unique(scope); -} - } // namespace Wavm +std::unique_ptr createWavmVm() { return std::make_unique(); } + template IR::FunctionType inferEnvoyFunctionType(R (*)(void *, Args...)) { return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...}), @@ -354,10 +400,10 @@ using namespace Wavm; template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, R (*f)(Args...)) { - auto wavm = static_cast(vm); - wavm->envoyFunctions_.emplace_back( - new Intrinsics::Function(&wavm->intrinsic_modules_[module_name], function_name.data(), - reinterpret_cast(f), inferEnvoyFunctionType(f))); + auto wavm = static_cast(vm); + wavm->envoyFunctions_.emplace_back(new Intrinsics::Function( + &wavm->intrinsic_modules_[std::string(module_name)], function_name.data(), + reinterpret_cast(f), inferEnvoyFunctionType(f))); } template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, @@ -452,7 +498,7 @@ static bool checkFunctionType(WAVM::Runtime::Function *f, IR::FunctionType t) { template void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, std::function *function, uint32_t) { - auto wavm = static_cast(vm); + auto wavm = static_cast(vm); auto f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); if (!f) @@ -462,18 +508,19 @@ void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, return; } if (!checkFunctionType(f, inferStdFunctionType(function))) { - error("Bad function signature for: " + std::string(function_name)); + wavm->fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name)); } - *function = [wavm, f, function_name, this](ContextBase *context, Args... args) -> R { + *function = [wavm, f, function_name](ContextBase *context, Args... args) -> R { WasmUntaggedValue values[] = {args...}; WasmUntaggedValue return_value; - try { - CALL_WITH_CONTEXT( - invokeFunction(wavm->context_, f, getFunctionType(f), &values[0], &return_value), - context); + CALL_WITH_CONTEXT( + invokeFunction(wavm->context_, f, getFunctionType(f), &values[0], &return_value), context, + wavm); + if (!wavm->isFailed()) { return static_cast(return_value.i32); - } catch (const std::exception &e) { - error("Function: " + std::string(function_name) + " failed: " + e.what()); + } else { + return 0; } }; } @@ -483,7 +530,7 @@ struct Void {}; template void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, std::function *function, Void) { - auto wavm = static_cast(vm); + auto wavm = static_cast(vm); auto f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); if (!f) @@ -493,15 +540,13 @@ void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, return; } if (!checkFunctionType(f, inferStdFunctionType(function))) { - vm->error("Bad function signature for: " + std::string(function_name)); + wavm->fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name)); } - *function = [wavm, f, function_name, this](ContextBase *context, Args... args) -> R { + *function = [wavm, f, function_name](ContextBase *context, Args... args) -> R { WasmUntaggedValue values[] = {args...}; - try { - CALL_WITH_CONTEXT(invokeFunction(wavm->context_, f, getFunctionType(f), &values[0]), context); - } catch (const std::exception &e) { - error("Function: " + std::string(function_name) + " failed: " + e.what()); - } + CALL_WITH_CONTEXT(invokeFunction(wavm->context_, f, getFunctionType(f), &values[0]), context, + wavm); }; } From 4598dc3d0d3b731be1dcccb400732c72bebb1380 Mon Sep 17 00:00:00 2001 From: Greg Brail Date: Thu, 6 Aug 2020 13:43:18 -0700 Subject: [PATCH 030/287] Add a missing include for 0_2_1 version. (#51) Signed-off-by: Gregory Brail --- include/proxy-wasm/null_plugin.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 9d8d01068..8385ee000 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -38,6 +38,7 @@ namespace proxy_wasm { struct NullPluginRegistry { void (*proxy_abi_version_0_1_0_)() = nullptr; void (*proxy_abi_version_0_2_0_)() = nullptr; + void (*proxy_abi_version_0_2_1_)() = nullptr; void (*proxy_on_log_)(uint32_t context_id) = nullptr; uint32_t (*proxy_validate_configuration_)(uint32_t root_context_id, uint32_t plugin_configuration_size) = nullptr; From 073b92a35de16f920881965685011b795fe540da Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 7 Aug 2020 11:28:43 -0700 Subject: [PATCH 031/287] Allow proxy_get_buffer_byts(0, MAX, ...). (#52) This convention is already allowed in proxy_set_buffer_bytes(), and it was previously allowed for proxy_get_buffer_byts(). Signed-off-by: Piotr Sikora --- src/exports.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/exports.cc b/src/exports.cc index 07ce7956a..8e94c329e 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -494,10 +494,14 @@ Word get_buffer_bytes(void *raw_context, Word type, Word start, Word length, Wor if (!buffer) { return WasmResult::NotFound; } - // check for overflow. - if (buffer->size() < start + length || start > start + length) { + // Check for overflow. + if (start > start + length) { return WasmResult::BadArgument; } + // Don't overread. + if (start + length > buffer->size()) { + length = buffer->size() - start; + } if (length > 0) { return buffer->copyTo(context->wasm(), start, length, ptr_ptr, size_ptr); } From c0fac1b988ca18dcc5208b295398863f82448541 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Tue, 18 Aug 2020 10:35:19 -0700 Subject: [PATCH 032/287] Do not use get_clock on windows where it is not supported. (#55) Signed-off-by: John Plevyak --- include/proxy-wasm/context.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 53717f5b2..322a5d210 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -231,12 +231,17 @@ class ContextBase : public RootInterface, } uint32_t getLogLevel() override { return static_cast(LogLevel::info); } uint64_t getCurrentTimeNanoseconds() override { +#if !defined(_MSC_VER) struct timespec tpe; clock_gettime(CLOCK_REALTIME, &tpe); uint64_t t = tpe.tv_sec; t *= 1000000000; t += tpe.tv_nsec; return t; +#else + unimplemented(); + return 0; +#endif } std::string_view getConfiguration() override { unimplemented(); From 42c49d8d12b2a75b26eb182360235704fa27ca5d Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Thu, 20 Aug 2020 13:13:52 -0700 Subject: [PATCH 033/287] Windows build fixes. (#56) Signed-off-by: John Plevyak --- .bazelrc | 1 - BUILD | 15 ++++++++++++++- include/proxy-wasm/context.h | 4 ++-- include/proxy-wasm/wasm_vm.h | 1 + 4 files changed, 17 insertions(+), 4 deletions(-) delete mode 100644 .bazelrc diff --git a/.bazelrc b/.bazelrc deleted file mode 100644 index f64d0a7fd..000000000 --- a/.bazelrc +++ /dev/null @@ -1 +0,0 @@ -build --cxxopt="-std=c++17" diff --git a/BUILD b/BUILD index ce2ad35cb..cb621c3f2 100644 --- a/BUILD +++ b/BUILD @@ -2,6 +2,17 @@ licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) +COPTS = select({ + "@bazel_tools//src/conditions:windows": [ + "/std:c++17", + "-DWITHOUT_ZLIB", + ], + "//conditions:default": [ + "-std=c++17", + "-DWITHOUT_ZLIB", + ], +}) + cc_library( name = "include", hdrs = glob(["include/proxy-wasm/**/*.h"]), @@ -19,7 +30,7 @@ cc_library( "src/**/v8*", ], ) + glob(["src/**/*.h"]), - copts = ["-DWITHOUT_ZLIB=1"], + copts = COPTS, deps = [ ":include", "@com_google_protobuf//:protobuf_lite", @@ -30,6 +41,7 @@ cc_library( cc_test( name = "wasm_vm_test", srcs = ["wasm_vm_test.cc"], + copts = COPTS, deps = [ ":lib", "@com_google_googletest//:gtest", @@ -40,6 +52,7 @@ cc_test( cc_test( name = "context_test", srcs = ["context_test.cc"], + copts = COPTS, deps = [ ":include", "@com_google_googletest//:gtest", diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 322a5d210..ddad88e83 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -15,14 +15,14 @@ #pragma once -#include - #include #include +#include #include #include #include #include +#include #include #include "include/proxy-wasm/context_interface.h" diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index d0a0358dc..ba6aaeb7a 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -17,6 +17,7 @@ #include #include +#include #include #include "include/proxy-wasm/word.h" From a21abb5565d471da7e73ae00becde2e6bc27caf7 Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Thu, 27 Aug 2020 16:09:23 -0700 Subject: [PATCH 034/287] Fix an integer coersion that bothers VC++. (#57) Signed-off-by: John Plevyak --- src/null/null_plugin.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index 0b2974015..ac1f50675 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -285,7 +285,8 @@ null_plugin::RootContext *NullPlugin::ensureRootContext(uint64_t context_id) { context_map_[context_id] = std::move(context); } else { // Default handlers. - auto context = std::make_unique(context_id, root_id->view()); + auto context = std::make_unique(static_cast(context_id), + root_id->view()); root_context = context->asRoot(); context_map_[context_id] = std::move(context); } From 6d065f8cfbc453d10bf66888f4b9cc685018545a Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Tue, 1 Sep 2020 14:37:14 -0700 Subject: [PATCH 035/287] Fixup onLog for null vm for non-stream (Root) context. (#58) Signed-off-by: John Plevyak --- WORKSPACE | 2 +- include/proxy-wasm/context_interface.h | 3 +++ src/null/null_plugin.cc | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index e932f250c..07645ef6e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,7 +5,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") git_repository( name = "proxy_wasm_cpp_sdk", - commit = "aea22d74befc1bb34d2b8c35f0558e53ba5d1cd5", + commit = "1b5f69ce1535b0c21f88c4af4ebf0ec51d255abe", remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", ) diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 2fdc9087a..1a6f738d9 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -179,6 +179,9 @@ struct RootInterface : public RootGrpcInterface { */ virtual bool onDone() = 0; + // Call for logging not associated with a stream lifecycle (e.g. logging only plugin). + virtual void onLog() = 0; + /** * Call when no further stream calls will occur. This will cause the corresponding Context in the * VM to be deleted. diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index ac1f50675..cea740707 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -472,7 +472,7 @@ void NullPlugin::onLog(uint64_t context_id) { registry_->proxy_on_log_(context_id); return; } - getContext(context_id)->onLog(); + getContextBase(context_id)->onLog(); } uint64_t NullPlugin::onDone(uint64_t context_id) { From 0a1fcd4e339a3a13d381a6a4dbd0532ca09702af Mon Sep 17 00:00:00 2001 From: John Plevyak Date: Tue, 8 Sep 2020 13:01:15 -0700 Subject: [PATCH 036/287] Fix return values. (#59) Signed-off-by: John Plevyak --- src/exports.cc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/exports.cc b/src/exports.cc index 8e94c329e..c1ea49c32 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -385,8 +385,8 @@ Word add_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_s if (!key || !value) { return WasmResult::InvalidMemoryAccess; } - context->addHeaderMapValue(static_cast(type.u64_), key.value(), value.value()); - return WasmResult::Ok; + return context->addHeaderMapValue(static_cast(type.u64_), key.value(), + value.value()); } Word get_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size, @@ -405,7 +405,9 @@ Word get_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_s if (result != WasmResult::Ok) { return result; } - context->wasm()->copyToPointerSize(value, value_ptr_ptr, value_size_ptr); + if (!context->wasm()->copyToPointerSize(value, value_ptr_ptr, value_size_ptr)) { + return WasmResult::InvalidMemoryAccess; + } return WasmResult::Ok; } @@ -420,9 +422,8 @@ Word replace_header_map_value(void *raw_context, Word type, Word key_ptr, Word k if (!key || !value) { return WasmResult::InvalidMemoryAccess; } - context->replaceHeaderMapValue(static_cast(type.u64_), key.value(), - value.value()); - return WasmResult::Ok; + return context->replaceHeaderMapValue(static_cast(type.u64_), key.value(), + value.value()); } Word remove_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size) { @@ -434,8 +435,7 @@ Word remove_header_map_value(void *raw_context, Word type, Word key_ptr, Word ke if (!key) { return WasmResult::InvalidMemoryAccess; } - context->removeHeaderMapValue(static_cast(type.u64_), key.value()); - return WasmResult::Ok; + return context->removeHeaderMapValue(static_cast(type.u64_), key.value()); } Word get_header_map_pairs(void *raw_context, Word type, Word ptr_ptr, Word size_ptr) { @@ -463,8 +463,8 @@ Word set_header_map_pairs(void *raw_context, Word type, Word ptr, Word size) { if (!data) { return WasmResult::InvalidMemoryAccess; } - context->setHeaderMapPairs(static_cast(type.u64_), toPairs(data.value())); - return WasmResult::Ok; + return context->setHeaderMapPairs(static_cast(type.u64_), + toPairs(data.value())); } Word get_header_map_size(void *raw_context, Word type, Word result_ptr) { From 772c55797a6a07aff540a875e84bcee4f5dae985 Mon Sep 17 00:00:00 2001 From: Kuat Date: Thu, 10 Sep 2020 11:18:45 -0700 Subject: [PATCH 037/287] export pair marshalling (#60) --- include/proxy-wasm/exports.h | 5 +++++ src/exports.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 5d4df20dd..914176b80 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -27,6 +27,11 @@ extern thread_local ContextBase *current_context_; namespace exports { +template size_t pairsSize(const Pairs &result); +template void marshalPairs(const Pairs &result, char *buffer); +template +bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint64_t size_ptr); + // ABI functions exported from envoy to wasm. Word get_configuration(void *raw_context, Word address, Word size); diff --git a/src/exports.cc b/src/exports.cc index c1ea49c32..0e6353811 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -67,6 +67,8 @@ Pairs toPairs(std::string_view buffer) { return result; } +} // namespace + template size_t pairsSize(const Pairs &result) { size_t size = 4; // number of headers for (auto &p : result) { @@ -115,8 +117,6 @@ bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint6 return true; } -} // namespace - // General ABI. Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, Word value_size) { From 49ed20e895b728aae6b811950a2939ecbaf76f7c Mon Sep 17 00:00:00 2001 From: Kuat Date: Thu, 10 Sep 2020 17:02:58 -0700 Subject: [PATCH 038/287] move to header files (#61) Signed-off-by: Kuat Yessenov --- include/proxy-wasm/exports.h | 33 +++++++++++++++++++++++++++++---- src/exports.cc | 34 ++-------------------------------- 2 files changed, 31 insertions(+), 36 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 914176b80..a2d7df842 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -27,10 +27,35 @@ extern thread_local ContextBase *current_context_; namespace exports { -template size_t pairsSize(const Pairs &result); -template void marshalPairs(const Pairs &result, char *buffer); -template -bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint64_t size_ptr); +template size_t pairsSize(const Pairs &result) { + size_t size = 4; // number of headers + for (auto &p : result) { + size += 8; // size of key, size of value + size += p.first.size() + 1; // null terminated key + size += p.second.size() + 1; // null terminated value + } + return size; +} + +template void marshalPairs(const Pairs &result, char *buffer) { + char *b = buffer; + *reinterpret_cast(b) = result.size(); + b += sizeof(uint32_t); + for (auto &p : result) { + *reinterpret_cast(b) = p.first.size(); + b += sizeof(uint32_t); + *reinterpret_cast(b) = p.second.size(); + b += sizeof(uint32_t); + } + for (auto &p : result) { + memcpy(b, p.first.data(), p.first.size()); + b += p.first.size(); + *b++ = 0; + memcpy(b, p.second.data(), p.second.size()); + b += p.second.size(); + *b++ = 0; + } +} // ABI functions exported from envoy to wasm. diff --git a/src/exports.cc b/src/exports.cc index 0e6353811..72cebaeb7 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -67,38 +67,6 @@ Pairs toPairs(std::string_view buffer) { return result; } -} // namespace - -template size_t pairsSize(const Pairs &result) { - size_t size = 4; // number of headers - for (auto &p : result) { - size += 8; // size of key, size of value - size += p.first.size() + 1; // null terminated key - size += p.second.size() + 1; // null terminated value - } - return size; -} - -template void marshalPairs(const Pairs &result, char *buffer) { - char *b = buffer; - *reinterpret_cast(b) = result.size(); - b += sizeof(uint32_t); - for (auto &p : result) { - *reinterpret_cast(b) = p.first.size(); - b += sizeof(uint32_t); - *reinterpret_cast(b) = p.second.size(); - b += sizeof(uint32_t); - } - for (auto &p : result) { - memcpy(b, p.first.data(), p.first.size()); - b += p.first.size(); - *b++ = 0; - memcpy(b, p.second.data(), p.second.size()); - b += p.second.size(); - *b++ = 0; - } -} - template bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint64_t size_ptr) { if (result.empty()) { @@ -117,6 +85,8 @@ bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint6 return true; } +} // namespace + // General ABI. Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, Word value_size) { From 92f02c0001592199d99f946cea34637ff095a8ba Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 9 Oct 2020 15:06:16 -0700 Subject: [PATCH 039/287] Fix initialization of NotCloneable VMs. (#63) Signed-off-by: Piotr Sikora --- src/wasm.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wasm.cc b/src/wasm.cc index 70f758057..e80d48a9c 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -512,8 +512,8 @@ createThreadLocalWasm(std::shared_ptr &base_wasm, wasm_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); return nullptr; } - if (!wasm_handle->wasm()->initialize(wasm_handle->wasm()->code(), - wasm_handle->wasm()->allow_precompiled())) { + if (!wasm_handle->wasm()->initialize(base_wasm->wasm()->code(), + base_wasm->wasm()->allow_precompiled())) { wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } From 46364868c47920050259f8731f47fa6fd8b613d7 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 14 Oct 2020 10:56:42 +0900 Subject: [PATCH 040/287] export wasi_clock_time_get (#65) Signed-off-by: mathetake --- include/proxy-wasm/exports.h | 2 +- include/proxy-wasm/wasm_vm.h | 6 ++++-- src/exports.cc | 16 ++++++++++++++++ src/wasm.cc | 1 + 4 files changed, 22 insertions(+), 3 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index a2d7df842..24b41d9c6 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -144,7 +144,7 @@ Word wasi_unstable_environ_sizes_get(void *raw_context, Word count_ptr, Word buf Word wasi_unstable_args_get(void *raw_context, Word argc_ptr, Word argv_buf_size_ptr); Word wasi_unstable_args_sizes_get(void *raw_context, Word argc_ptr, Word argv_buf_size_ptr); void wasi_unstable_proc_exit(void *, Word); -void wasi_unstable_proc_exit(void *, Word); +Word wasi_unstable_clock_time_get(void *, Word, uint64_t, Word); Word pthread_equal(void *, Word left, Word right); // Support for embedders, not exported to Wasm. diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index ba6aaeb7a..45119a0d9 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -17,8 +17,8 @@ #include #include -#include #include +#include #include "include/proxy-wasm/word.h" @@ -78,6 +78,7 @@ template using WasmCallbackWord = WasmFuncType using WasmCallback_WWl = Word (*)(void *, Word, int64_t); using WasmCallback_WWlWW = Word (*)(void *, Word, int64_t, Word, Word); using WasmCallback_WWm = Word (*)(void *, Word, uint64_t); +using WasmCallback_WWmW = Word (*)(void *, Word, uint64_t, Word); using WasmCallback_dd = double (*)(void *, double); #define FOR_ALL_WASM_VM_IMPORTS(_f) \ @@ -94,7 +95,8 @@ using WasmCallback_dd = double (*)(void *, double); _f(proxy_wasm::WasmCallback_WWl) \ _f(proxy_wasm::WasmCallback_WWlWW) \ _f(proxy_wasm::WasmCallback_WWm) \ - _f(proxy_wasm::WasmCallback_dd) + _f(proxy_wasm::WasmCallback_WWmW) \ + _f(proxy_wasm::WasmCallback_dd) enum class Cloneable { NotCloneable, // VMs can not be cloned and should be created from scratch. diff --git a/src/exports.cc b/src/exports.cc index 72cebaeb7..73a44c550 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -798,6 +798,22 @@ Word wasi_unstable_args_sizes_get(void *raw_context, Word argc_ptr, Word argv_bu return 0; // __WASI_ESUCCESS } +// __wasi_errno_t __wasi_clock_time_get(uint32_t id, uint64_t precision, uint64_t* time); +Word wasi_unstable_clock_time_get(void *raw_context, Word clock_id, uint64_t precision, + Word result_time_uint64_ptr) { + + if (clock_id != 0 /* realtime */) { + return 58; // __WASI_ENOTSUP + } + + auto context = WASM_CONTEXT(raw_context); + uint64_t result = context->getCurrentTimeNanoseconds(); + if (!context->wasm()->setDatatype(result_time_uint64_ptr, result)) { + return 21; // __WASI_EFAULT + } + return 0; // __WASI_ESUCCESS +} + // void __wasi_proc_exit(__wasi_exitcode_t rval); void wasi_unstable_proc_exit(void *raw_context, Word) { auto context = WASM_CONTEXT(raw_context); diff --git a/src/wasm.cc b/src/wasm.cc index e80d48a9c..e3eb23298 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -131,6 +131,7 @@ void WasmBase::registerCallbacks() { _REGISTER_WASI(environ_sizes_get); _REGISTER_WASI(args_get); _REGISTER_WASI(args_sizes_get); + _REGISTER_WASI(clock_time_get); _REGISTER_WASI(proc_exit); #undef _REGISTER_WASI From 6a75b623da6f83038c07c90c66b872e25da822a8 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 15 Oct 2020 22:01:48 -0700 Subject: [PATCH 041/287] Export wasi_random_get(). (#68) Signed-off-by: Piotr Sikora --- BUILD | 1 + WORKSPACE | 7 +++++++ include/proxy-wasm/exports.h | 1 + src/exports.cc | 13 +++++++++++++ src/wasm.cc | 1 + 5 files changed, 23 insertions(+) diff --git a/BUILD b/BUILD index cb621c3f2..1aa823d91 100644 --- a/BUILD +++ b/BUILD @@ -33,6 +33,7 @@ cc_library( copts = COPTS, deps = [ ":include", + "@boringssl//:crypto", "@com_google_protobuf//:protobuf_lite", "@proxy_wasm_cpp_sdk//:api_lib", ], diff --git a/WORKSPACE b/WORKSPACE index 07645ef6e..bc20f1fa5 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -38,6 +38,13 @@ git_repository( shallow_since = "1565024848 -0700", ) +http_archive( + name = "boringssl", + sha256 = "bb55b0ed2f0cb548b5dce6a6b8307ce37f7f748eb9f1be6bfe2d266ff2b4d52b", + strip_prefix = "boringssl-2192bbc878822cf6ab5977d4257a1339453d9d39", + urls = ["https://github.com/google/boringssl/archive/2192bbc878822cf6ab5977d4257a1339453d9d39.tar.gz"], +) + http_archive( name = "com_google_googletest", sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 24b41d9c6..f0fa5dbf0 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -145,6 +145,7 @@ Word wasi_unstable_args_get(void *raw_context, Word argc_ptr, Word argv_buf_size Word wasi_unstable_args_sizes_get(void *raw_context, Word argc_ptr, Word argv_buf_size_ptr); void wasi_unstable_proc_exit(void *, Word); Word wasi_unstable_clock_time_get(void *, Word, uint64_t, Word); +Word wasi_unstable_random_get(void *, Word, Word); Word pthread_equal(void *, Word left, Word right); // Support for embedders, not exported to Wasm. diff --git a/src/exports.cc b/src/exports.cc index 73a44c550..cda125140 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -15,6 +15,8 @@ // #include "include/proxy-wasm/wasm.h" +#include + #define WASM_CONTEXT(_c) \ (ContextOrEffectiveContext(static_cast((void)_c, current_context_))) @@ -814,6 +816,17 @@ Word wasi_unstable_clock_time_get(void *raw_context, Word clock_id, uint64_t pre return 0; // __WASI_ESUCCESS } +// __wasi_errno_t __wasi_random_get(uint8_t *buf, size_t buf_len); +Word wasi_unstable_random_get(void *raw_context, Word result_buf_ptr, Word buf_len) { + auto context = WASM_CONTEXT(raw_context); + std::vector random(buf_len); + RAND_bytes(random.data(), random.size()); + if (!context->wasmVm()->setMemory(result_buf_ptr, random.size(), random.data())) { + return 21; // __WASI_EFAULT + } + return 0; // __WASI_ESUCCESS +} + // void __wasi_proc_exit(__wasi_exitcode_t rval); void wasi_unstable_proc_exit(void *raw_context, Word) { auto context = WASM_CONTEXT(raw_context); diff --git a/src/wasm.cc b/src/wasm.cc index e3eb23298..3a055c522 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -132,6 +132,7 @@ void WasmBase::registerCallbacks() { _REGISTER_WASI(args_get); _REGISTER_WASI(args_sizes_get); _REGISTER_WASI(clock_time_get); + _REGISTER_WASI(random_get); _REGISTER_WASI(proc_exit); #undef _REGISTER_WASI From c5658d34979abece30882b1eeaa95b6ee965d825 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Fri, 16 Oct 2020 18:03:06 +0900 Subject: [PATCH 042/287] invoke on_context_create_ for all root contexts with a same VM ID (#64) Signed-off-by: mathetake --- src/context.cc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/context.cc b/src/context.cc index 4b31f6075..c1929e14a 100644 --- a/src/context.cc +++ b/src/context.cc @@ -331,9 +331,24 @@ bool ContextBase::onStart(std::shared_ptr plugin) { } bool ContextBase::onConfigure(std::shared_ptr plugin) { - if (isFailed() || !wasm_->on_configure_) { + if (isFailed()) { return true; } + + // on_context_create is yet to be executed for all the root contexts except the first one + if (!in_vm_context_created_ && wasm_->on_context_create_) { + DeferAfterCallActions actions(this); + wasm_->on_context_create_(this, id_, 0); + } + + // NB: If no on_context_create function is registered the in-VM SDK is responsible for + // managing any required in-VM state. + in_vm_context_created_ = true; + + if (!wasm_->on_configure_) { + return true; + } + DeferAfterCallActions actions(this); plugin_ = plugin; auto result = From 2d4bfe9c29fc957c3c4e81e6575773801eedade1 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 20 Oct 2020 19:11:41 -0700 Subject: [PATCH 043/287] Remove no longer needed Emscripten metadata. (#70) Signed-off-by: Piotr Sikora --- include/proxy-wasm/wasm.h | 21 ------------------ src/wasm.cc | 46 --------------------------------------- 2 files changed, 67 deletions(-) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 90347f6f0..4f81bd1ad 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -124,20 +124,6 @@ class WasmBase : public std::enable_shared_from_this { AbiVersion abiVersion() { return abi_version_; } - bool getEmscriptenVersion(uint32_t *emscripten_metadata_major_version, - uint32_t *emscripten_metadata_minor_version, - uint32_t *emscripten_abi_major_version, - uint32_t *emscripten_abi_minor_version) { - if (!is_emscripten_) { - return false; - } - *emscripten_metadata_major_version = emscripten_metadata_major_version_; - *emscripten_metadata_minor_version = emscripten_metadata_minor_version_; - *emscripten_abi_major_version = emscripten_abi_major_version_; - *emscripten_abi_minor_version = emscripten_abi_minor_version_; - return true; - } - void addAfterVmCallAction(std::function f) { after_vm_call_actions_.push_back(f); } void doAfterVmCallActions() { // NB: this may be deleted by a delayed function unless prevented. @@ -243,13 +229,6 @@ class WasmBase : public std::enable_shared_from_this { // ABI version. AbiVersion abi_version_ = AbiVersion::Unknown; - bool is_emscripten_ = false; - uint32_t emscripten_metadata_major_version_ = 0; - uint32_t emscripten_metadata_minor_version_ = 0; - uint32_t emscripten_abi_major_version_ = 0; - uint32_t emscripten_abi_minor_version_ = 0; - uint32_t emscripten_standalone_wasm_ = 0; - // Plugin Stats/Metrics uint32_t next_counter_metric_id_ = static_cast(MetricType::Counter); uint32_t next_gauge_metric_id_ = static_cast(MetricType::Gauge); diff --git a/src/wasm.cc b/src/wasm.cc index 3a055c522..496041cf4 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -44,22 +44,6 @@ std::unordered_map *foreign_functions = nullpt const std::string INLINE_STRING = ""; -const uint8_t *decodeVarint(const uint8_t *pos, const uint8_t *end, uint32_t *out) { - uint32_t ret = 0; - int shift = 0; - while (pos < end && (*pos & 0x80)) { - ret |= (*pos & 0x7f) << shift; - shift += 7; - pos++; - } - if (pos < end) { - ret |= *pos << shift; - pos++; - } - *out = ret; - return pos; -} - std::string Sha256(std::string_view data) { std::vector hash(picosha2::k_digest_size); picosha2::hash256(data.begin(), data.end(), hash.begin(), hash.end()); @@ -302,36 +286,6 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { if (!ok) { return false; } - auto metadata = wasm_vm_->getCustomSection("emscripten_metadata"); - if (!metadata.empty()) { - // See https://github.com/emscripten-core/emscripten/blob/incoming/tools/shared.py#L3059 - is_emscripten_ = true; - auto start = reinterpret_cast(metadata.data()); - auto end = reinterpret_cast(metadata.data() + metadata.size()); - start = decodeVarint(start, end, &emscripten_metadata_major_version_); - start = decodeVarint(start, end, &emscripten_metadata_minor_version_); - start = decodeVarint(start, end, &emscripten_abi_major_version_); - start = decodeVarint(start, end, &emscripten_abi_minor_version_); - uint32_t temp; - if (emscripten_metadata_major_version_ > 0 || emscripten_metadata_minor_version_ > 1) { - // metadata 0.2 - added: wasm_backend. - start = decodeVarint(start, end, &temp); - } - start = decodeVarint(start, end, &temp); - start = decodeVarint(start, end, &temp); - if (emscripten_metadata_major_version_ > 0 || emscripten_metadata_minor_version_ > 0) { - // metadata 0.1 - added: global_base, dynamic_base, dynamictop_ptr and tempdouble_ptr. - start = decodeVarint(start, end, &temp); - start = decodeVarint(start, end, &temp); - start = decodeVarint(start, end, &temp); - decodeVarint(start, end, &temp); - if (emscripten_metadata_major_version_ > 0 || emscripten_metadata_minor_version_ > 2) { - // metadata 0.3 - added: standalone_wasm. - start = decodeVarint(start, end, &emscripten_standalone_wasm_); - } - } - } - code_ = code; allow_precompiled_ = allow_precompiled; } From 5e79871aa470781dfb114f859d3122b429f7fb07 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 21 Oct 2020 18:46:35 -0700 Subject: [PATCH 044/287] Add CODEOWNERS. (#71) Signed-off-by: Piotr Sikora --- CODEOWNERS | 1 + 1 file changed, 1 insertion(+) create mode 100644 CODEOWNERS diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 000000000..f1f3bca02 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1 @@ +* @PiotrSikora From d54b3795e7c3e61015dac2c2110b0da2be999b8e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 22 Oct 2020 02:41:29 -0700 Subject: [PATCH 045/287] Add support for the _initialize() crt1 startup function. (#72) Signed-off-by: Piotr Sikora --- include/proxy-wasm/wasm.h | 3 ++- src/null/null_plugin.cc | 4 +++- src/wasm.cc | 6 ++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 4f81bd1ad..2b4291709 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -172,7 +172,8 @@ class WasmBase : public std::enable_shared_from_this { std::unique_ptr shutdown_handle_; std::unordered_set pending_done_; // Root contexts not done during shutdown. - WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ + WasmCallVoid<0> _initialize_; /* Emscripten v1.39.17+ */ + WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ WasmCallVoid<0> __wasm_call_ctors_; WasmCallWord<1> malloc_; diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index cea740707..dfc2dbfaa 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -33,7 +33,9 @@ namespace proxy_wasm { void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<0> *f) { - if (function_name == "_start") { + if (function_name == "_initialize") { + *f = nullptr; + } else if (function_name == "_start") { *f = nullptr; } else if (function_name == "__wasm_call_ctors") { *f = nullptr; diff --git a/src/wasm.cc b/src/wasm.cc index 496041cf4..5f8b7652f 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -193,6 +193,7 @@ void WasmBase::registerCallbacks() { void WasmBase::getFunctions() { #define _GET(_fn) wasm_vm_->getFunction(#_fn, &_fn##_); + _GET(_initialize); _GET(_start); _GET(__wasm_call_ctors); @@ -324,8 +325,9 @@ ContextBase *WasmBase::getOrCreateRootContext(const std::shared_ptr } void WasmBase::startVm(ContextBase *root_context) { - /* Call "_start" function, and fallback to "__wasm_call_ctors" if the former is not available. */ - if (_start_) { + if (_initialize_) { + _initialize_(root_context); + } else if (_start_) { _start_(root_context); } else if (__wasm_call_ctors_) { __wasm_call_ctors_(root_context); From ca141b9a1ea4d545e9f5fedba8d8ba2984c1f6ed Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 26 Oct 2020 02:54:53 -0700 Subject: [PATCH 046/287] Fix getRootContext(). (#79) Previously, getRootContext() was adding an empty entry to the map. Signed-off-by: Piotr Sikora --- include/proxy-wasm/wasm.h | 4 +--- src/wasm.cc | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 2b4291709..b2c694dbd 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -59,9 +59,7 @@ class WasmBase : public std::enable_shared_from_this { std::string_view vm_key() const { return vm_key_; } WasmVm *wasm_vm() const { return wasm_vm_.get(); } ContextBase *vm_context() const { return vm_context_.get(); } - ContextBase *getRootContext(std::string_view root_id) { - return root_contexts_[std::string(root_id)].get(); - } + ContextBase *getRootContext(std::string_view root_id); ContextBase *getOrCreateRootContext(const std::shared_ptr &plugin); ContextBase *getContext(uint32_t id) { auto it = contexts_.find(id); diff --git a/src/wasm.cc b/src/wasm.cc index 5f8b7652f..8ded8473b 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -314,6 +314,14 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { return !isFailed(); } +ContextBase *WasmBase::getRootContext(std::string_view root_id) { + auto it = root_contexts_.find(std::string(root_id)); + if (it == root_contexts_.end()) { + return nullptr; + } + return it->second.get(); +} + ContextBase *WasmBase::getOrCreateRootContext(const std::shared_ptr &plugin) { auto root_context = getRootContext(plugin->root_id_); if (!root_context) { From 7bd429da9729ea450ab0ad244dfa6424f42031a6 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 26 Oct 2020 04:14:10 -0700 Subject: [PATCH 047/287] Use proxy_on_memory_allocate() as a fallback for malloc(). (#80) On some targets (e.g. Rust's wasm32-wasi), it's impossible to export malloc due to a collision with libc's malloc. Signed-off-by: Piotr Sikora --- src/wasm.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/wasm.cc b/src/wasm.cc index 8ded8473b..9472873d7 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -193,14 +193,19 @@ void WasmBase::registerCallbacks() { void WasmBase::getFunctions() { #define _GET(_fn) wasm_vm_->getFunction(#_fn, &_fn##_); +#define _GET_ALIAS(_fn, _alias) wasm_vm_->getFunction(#_alias, &_fn##_); _GET(_initialize); _GET(_start); _GET(__wasm_call_ctors); _GET(malloc); + if (!malloc_) { + _GET_ALIAS(malloc, proxy_on_memory_allocate); + } if (!malloc_) { fail(FailState::MissingFunction, "Wasm module is missing malloc function."); } +#undef _GET_ALIAS #undef _GET #define _GET_PROXY(_fn) wasm_vm_->getFunction("proxy_" #_fn, &_fn##_); From 3ab843bbbbac028292153f0e3262094544ab7894 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 27 Oct 2020 19:43:48 +0900 Subject: [PATCH 048/287] wavm: clone integration in Wavm::clone() (#83) Signed-off-by: mathetake --- src/wavm/wavm.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index d6b6b67a1..b7b6783bd 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -14,6 +14,7 @@ // limitations under the License. #include "include/proxy-wasm/wavm.h" +#include "include/proxy-wasm/wasm_vm.h" #include #include @@ -24,8 +25,6 @@ #include #include -#include "include/proxy-wasm/wasm_vm.h" - #include "WAVM/IR/Module.h" #include "WAVM/IR/Operators.h" #include "WAVM/IR/Types.h" @@ -253,6 +252,8 @@ Wavm::~Wavm() { std::unique_ptr Wavm::clone() { auto wavm = std::make_unique(); + wavm->integration().reset(integration()->clone()); + wavm->compartment_ = WAVM::Runtime::cloneCompartment(compartment_); wavm->memory_ = WAVM::Runtime::remapToClonedCompartment(memory_, wavm->compartment_); wavm->memory_base_ = WAVM::Runtime::getMemoryBaseAddress(wavm->memory_); From 8d0727f6a67808a691f03385cf7a8a054c7780e4 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 27 Oct 2020 19:57:19 +0900 Subject: [PATCH 049/287] v8: enhance signature mimatch message in getModuleFunction (#82) Signed-off-by: mathetake --- src/v8/v8.cc | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 0de616757..45fb0de59 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -587,10 +587,15 @@ void V8::getModuleFunctionImpl(std::string_view function_name, return; } const wasm::Func *func = it->second.get(); - if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || - !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { + auto arg_valtypes = convertArgsTupleToValTypes>(); + auto result_valtypes = convertArgsTupleToValTypes>(); + if (!equalValTypes(func->type()->params(), arg_valtypes) || + !equalValTypes(func->type()->results(), result_valtypes)) { fail(FailState::UnableToInitializeCode, - std::string("Bad function signature for: ") + std::string(function_name)); + "Bad function signature for: " + std::string(function_name) + + ", want: " + printValTypes(arg_valtypes) + " -> " + printValTypes(result_valtypes) + + ", but the module exports: " + printValTypes(func->type()->params()) + " -> " + + printValTypes(result_valtypes)); *function = nullptr; return; } @@ -614,10 +619,15 @@ void V8::getModuleFunctionImpl(std::string_view function_name, return; } const wasm::Func *func = it->second.get(); - if (!equalValTypes(func->type()->params(), convertArgsTupleToValTypes>()) || - !equalValTypes(func->type()->results(), convertArgsTupleToValTypes>())) { + auto arg_valtypes = convertArgsTupleToValTypes>(); + auto result_valtypes = convertArgsTupleToValTypes>(); + if (!equalValTypes(func->type()->params(), arg_valtypes) || + !equalValTypes(func->type()->results(), result_valtypes)) { fail(FailState::UnableToInitializeCode, - "Bad function signature for: " + std::string(function_name)); + "Bad function signature for: " + std::string(function_name) + + ", want: " + printValTypes(arg_valtypes) + " -> " + printValTypes(result_valtypes) + + ", but the module exports: " + printValTypes(func->type()->params()) + " -> " + + printValTypes(result_valtypes)); *function = nullptr; return; } From 40fd3d03842c07d65fed907a6b6ed0f89d68d531 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 27 Oct 2020 04:04:29 -0700 Subject: [PATCH 050/287] Strip only Custom Sections with precompiled Wasm modules. (#81) Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 45fb0de59..648f277e1 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -296,14 +296,28 @@ wasm::vec V8::getStrippedSource() { if (section_len == static_cast(-1) || pos + section_len > end) { return wasm::vec::invalid(); } - pos += section_len; if (section_type == 0 /* custom section */) { - if (stripped.empty()) { - const byte_t *start = source_.get(); - stripped.insert(stripped.end(), start, section_start); + const auto section_data_start = pos; + const auto section_name_len = parseVarint(pos, end); + if (section_name_len == static_cast(-1) || pos + section_name_len > end) { + return wasm::vec::invalid(); + } + auto section_name = std::string_view(pos, section_name_len); + if (section_name.find("precompiled_") != std::string::npos) { + // If this is the first "precompiled_" section, then save everything + // before it, otherwise skip it. + if (stripped.empty()) { + const byte_t *start = source_.get(); + stripped.insert(stripped.end(), start, section_start); + } + } + pos = section_data_start + section_len; + } else { + pos += section_len; + // Save this section if we already saw a custom "precompiled_" section. + if (!stripped.empty()) { + stripped.insert(stripped.end(), section_start, pos /* section end */); } - } else if (!stripped.empty()) { - stripped.insert(stripped.end(), section_start, pos /* section end */); } } From 015b16186ccbcc7c60b717191333d8d8d9f7dbe6 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Thu, 29 Oct 2020 20:00:35 +0900 Subject: [PATCH 051/287] wavm: emit stack trace when an exception happens (#84) Signed-off-by: mathetake --- src/wavm/wavm.cc | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index b7b6783bd..f068ae31f 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -17,10 +17,12 @@ #include "include/proxy-wasm/wasm_vm.h" #include +#include #include #include #include #include +#include #include #include #include @@ -42,6 +44,7 @@ #include "WAVM/Runtime/Intrinsics.h" #include "WAVM/Runtime/Linker.h" #include "WAVM/Runtime/Runtime.h" +#include "WAVM/RuntimeABI/RuntimeABI.h" #include "WAVM/WASM/WASM.h" #include "WAVM/WASTParse/WASTParse.h" @@ -90,16 +93,37 @@ namespace { WAVM::Runtime::catchRuntimeExceptions( \ [&] { _x; }, \ [&](WAVM::Runtime::Exception *exception) { \ - auto description = describeException(exception); \ - _wavm->fail(FailState::RuntimeError, \ - "Function: " + std::string(function_name) + " failed: " + description); \ - destroyException(exception); \ + _wavm->fail(FailState::RuntimeError, getFailMessage(function_name, exception)); \ throw std::exception(); \ }); \ } catch (...) { \ } \ } while (0) +std::string getFailMessage(std::string_view function_name, WAVM::Runtime::Exception *exception) { + std::string message = "Function " + std::string(function_name) + + " failed: " + WAVM::Runtime::describeExceptionType(exception->type) + + "\nProxy-Wasm plugin in-VM backtrace:\n"; + std::vector callstack_descriptions = + WAVM::Runtime::describeCallStack(exception->callStack); + + // Since the first frame is on host and useless for developers, e.g.: `host!envoy+112901013` + // we start with index 1 here + for (size_t i = 1; i < callstack_descriptions.size(); i++) { + std::ostringstream oss; + std::string description = callstack_descriptions[i]; + if (description.find("wasm!") == std::string::npos) { + // end of WASM's call stack + break; + } + oss << std::setw(3) << std::setfill(' ') << std::to_string(i); + message += oss.str() + ": " + description + "\n"; + } + + WAVM::Runtime::destroyException(exception); + return message; +} + struct WasmUntaggedValue : public WAVM::IR::UntaggedValue { WasmUntaggedValue() = default; WasmUntaggedValue(I32 inI32) { i32 = inI32; } From f08baacadbe656674414f0878e18852bed67b795 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 30 Oct 2020 01:45:21 -0700 Subject: [PATCH 052/287] Allow execution of multiple instances of the same plugin. (#78) Signed-off-by: Piotr Sikora --- include/proxy-wasm/context.h | 21 ++++---- include/proxy-wasm/wasm.h | 9 ++-- src/context.cc | 27 ++++------ src/wasm.cc | 100 +++++++++++++++++++++-------------- 4 files changed, 86 insertions(+), 71 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index ddad88e83..375ac80d6 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -50,20 +50,23 @@ struct PluginBase { std::string_view runtime, std::string_view plugin_configuration, bool fail_open) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), - fail_open_(fail_open) {} + fail_open_(fail_open), key_(root_id_ + "||" + plugin_configuration_) {} const std::string name_; const std::string root_id_; const std::string vm_id_; const std::string runtime_; - std::string plugin_configuration_; + const std::string plugin_configuration_; const bool fail_open_; + + const std::string &key() const { return key_; } const std::string &log_prefix() const { return log_prefix_; } private: std::string makeLogPrefix() const; - std::string log_prefix_; + const std::string key_; + const std::string log_prefix_; }; struct BufferBase : public BufferInterface { @@ -373,16 +376,16 @@ class ContextBase : public RootInterface, protected: friend class WasmBase; - void initializeRootBase(WasmBase *wasm, std::shared_ptr plugin); std::string makeRootLogPrefix(std::string_view vm_id) const; WasmBase *wasm_{nullptr}; uint32_t id_{0}; - uint32_t parent_context_id_{0}; // 0 for roots and the general context. - ContextBase *parent_context_{nullptr}; // set in all contexts. - std::string root_id_; // set only in root context. - std::string root_log_prefix_; // set only in root context. - std::shared_ptr plugin_; + uint32_t parent_context_id_{0}; // 0 for roots and the general context. + ContextBase *parent_context_{nullptr}; // set in all contexts. + std::string root_id_; // set only in root context. + std::string root_log_prefix_; // set only in root context. + std::shared_ptr plugin_; // set in root and stream contexts. + std::shared_ptr temp_plugin_; // Remove once ABI v0.1.0 is gone. bool in_vm_context_created_ = false; bool destroyed_ = false; }; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index b2c694dbd..a3896fc48 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -59,8 +59,7 @@ class WasmBase : public std::enable_shared_from_this { std::string_view vm_key() const { return vm_key_; } WasmVm *wasm_vm() const { return wasm_vm_.get(); } ContextBase *vm_context() const { return vm_context_.get(); } - ContextBase *getRootContext(std::string_view root_id); - ContextBase *getOrCreateRootContext(const std::shared_ptr &plugin); + ContextBase *getRootContext(const std::shared_ptr &plugin, bool allow_closed); ContextBase *getContext(uint32_t id) { auto it = contexts_.find(id); if (it != contexts_.end()) @@ -78,6 +77,7 @@ class WasmBase : public std::enable_shared_from_this { void timerReady(uint32_t root_context_id); void queueReady(uint32_t root_context_id, uint32_t token); + void startShutdown(const std::shared_ptr &plugin); void startShutdown(); WasmResult done(ContextBase *root_context); void finishShutdown(); @@ -164,11 +164,12 @@ class WasmBase : public std::enable_shared_from_this { uint32_t next_context_id_ = 1; // 0 is reserved for the VM context. std::shared_ptr vm_context_; // Context unrelated to any specific root or stream // (e.g. for global constructors). - std::unordered_map> root_contexts_; + std::unordered_map> root_contexts_; // Root contexts. + std::unordered_map> pending_done_; // Root contexts. + std::unordered_set> pending_delete_; // Root contexts. std::unordered_map contexts_; // Contains all contexts. std::unordered_map timer_period_; // per root_id. std::unique_ptr shutdown_handle_; - std::unordered_set pending_done_; // Root contexts not done during shutdown. WasmCallVoid<0> _initialize_; /* Emscripten v1.39.17+ */ WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ diff --git a/src/context.cc b/src/context.cc index c1929e14a..a90db8494 100644 --- a/src/context.cc +++ b/src/context.cc @@ -269,8 +269,10 @@ ContextBase::ContextBase(WasmBase *wasm) : wasm_(wasm), parent_context_(this) { wasm_->contexts_[id_] = this; } -ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) { - initializeRootBase(wasm, plugin); +ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) + : wasm_(wasm), id_(wasm->allocContextId()), parent_context_(this), root_id_(plugin->root_id_), + root_log_prefix_(makeRootLogPrefix(plugin->vm_id_)), plugin_(plugin) { + wasm_->contexts_[id_] = this; } // NB: wasm can be nullptr if it failed to be created successfully. @@ -288,15 +290,6 @@ WasmVm *ContextBase::wasmVm() const { return wasm_->wasm_vm(); } bool ContextBase::isFailed() { return !wasm_ || wasm_->isFailed(); } -void ContextBase::initializeRootBase(WasmBase *wasm, std::shared_ptr plugin) { - wasm_ = wasm; - id_ = wasm->allocContextId(); - root_id_ = plugin->root_id_; - root_log_prefix_ = makeRootLogPrefix(plugin->vm_id_); - parent_context_ = this; - wasm_->contexts_[id_] = this; -} - std::string ContextBase::makeRootLogPrefix(std::string_view vm_id) const { std::string prefix; if (!root_id_.empty()) { @@ -315,10 +308,10 @@ bool ContextBase::onStart(std::shared_ptr plugin) { DeferAfterCallActions actions(this); bool result = true; if (wasm_->on_context_create_) { - plugin_ = plugin; + temp_plugin_ = plugin; wasm_->on_context_create_(this, id_, 0); in_vm_context_created_ = true; - plugin_.reset(); + temp_plugin_.reset(); } if (wasm_->on_vm_start_) { // Do not set plugin_ as the on_vm_start handler should be independent of the plugin since the @@ -350,11 +343,11 @@ bool ContextBase::onConfigure(std::shared_ptr plugin) { } DeferAfterCallActions actions(this); - plugin_ = plugin; + temp_plugin_ = plugin; auto result = wasm_->on_configure_(this, id_, static_cast(plugin->plugin_configuration_.size())) .u64_ != 0; - plugin_.reset(); + temp_plugin_.reset(); return result; } @@ -644,8 +637,8 @@ WasmResult ContextBase::setTimerPeriod(std::chrono::milliseconds period, } ContextBase::~ContextBase() { - // Do not remove vm or root contexts which have the same lifetime as wasm_. - if (parent_context_id_) { + // Do not remove vm context which has the same lifetime as wasm_. + if (id_) { wasm_->contexts_.erase(id_); } } diff --git a/src/wasm.cc b/src/wasm.cc index 9472873d7..939fd0a40 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -280,7 +280,11 @@ WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, } } -WasmBase::~WasmBase() {} +WasmBase::~WasmBase() { + root_contexts_.clear(); + pending_done_.clear(); + pending_delete_.clear(); +} bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { if (!wasm_vm_) { @@ -319,22 +323,19 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { return !isFailed(); } -ContextBase *WasmBase::getRootContext(std::string_view root_id) { - auto it = root_contexts_.find(std::string(root_id)); - if (it == root_contexts_.end()) { - return nullptr; +ContextBase *WasmBase::getRootContext(const std::shared_ptr &plugin, + bool allow_closed) { + auto it = root_contexts_.find(plugin->key()); + if (it != root_contexts_.end()) { + return it->second.get(); } - return it->second.get(); -} - -ContextBase *WasmBase::getOrCreateRootContext(const std::shared_ptr &plugin) { - auto root_context = getRootContext(plugin->root_id_); - if (!root_context) { - auto context = std::unique_ptr(createRootContext(plugin)); - root_context = context.get(); - root_contexts_[plugin->root_id_] = std::move(context); + if (allow_closed) { + it = pending_done_.find(plugin->key()); + if (it != pending_done_.end()) { + return it->second.get(); + } } - return root_context; + return nullptr; } void WasmBase::startVm(ContextBase *root_context) { @@ -352,15 +353,14 @@ bool WasmBase::configure(ContextBase *root_context, std::shared_ptr } ContextBase *WasmBase::start(std::shared_ptr plugin) { - auto root_id = plugin->root_id_; - auto it = root_contexts_.find(root_id); + auto it = root_contexts_.find(plugin->key()); if (it != root_contexts_.end()) { it->second->onStart(plugin); return it->second.get(); } auto context = std::unique_ptr(createRootContext(plugin)); auto context_ptr = context.get(); - root_contexts_[root_id] = std::move(context); + root_contexts_[plugin->key()] = std::move(context); if (!context_ptr->onStart(plugin)) { return nullptr; } @@ -377,38 +377,49 @@ uint32_t WasmBase::allocContextId() { } } -void WasmBase::startShutdown() { - bool all_done = true; - for (auto &p : root_contexts_) { - if (!p.second->onDone()) { - all_done = false; - pending_done_.insert(p.second.get()); +void WasmBase::startShutdown(const std::shared_ptr &plugin) { + auto it = root_contexts_.find(plugin->key()); + if (it != root_contexts_.end()) { + if (it->second->onDone()) { + it->second->onDelete(); + } else { + pending_done_[it->first] = std::move(it->second); } + root_contexts_.erase(it); } - if (!all_done) { - shutdown_handle_ = std::make_unique(shared_from_this()); - } else { - finishShutdown(); +} + +void WasmBase::startShutdown() { + auto it = root_contexts_.begin(); + while (it != root_contexts_.end()) { + if (it->second->onDone()) { + it->second->onDelete(); + } else { + pending_done_[it->first] = std::move(it->second); + } + it = root_contexts_.erase(it); } } WasmResult WasmBase::done(ContextBase *root_context) { - auto it = pending_done_.find(root_context); + auto it = pending_done_.find(root_context->plugin_->key()); if (it == pending_done_.end()) { return WasmResult::NotFound; } + pending_delete_.insert(std::move(it->second)); pending_done_.erase(it); - if (pending_done_.empty() && shutdown_handle_) { - // Defer the delete so that onDelete is not called from within the done() handler. - addAfterVmCallAction( - [shutdown_handle = shutdown_handle_.release()]() { delete shutdown_handle; }); - } + // Defer the delete so that onDelete is not called from within the done() handler. + shutdown_handle_ = std::make_unique(shared_from_this()); + addAfterVmCallAction( + [shutdown_handle = shutdown_handle_.release()]() { delete shutdown_handle; }); return WasmResult::Ok; } void WasmBase::finishShutdown() { - for (auto &p : root_contexts_) { - p.second->onDelete(); + auto it = pending_delete_.begin(); + while (it != pending_delete_.end()) { + (*it)->onDelete(); + it = pending_delete_.erase(it); } } @@ -520,11 +531,18 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, WasmHandleCloneFactory clone_factory) { auto wasm_handle = getThreadLocalWasm(base_wasm->wasm()->vm_key()); if (wasm_handle) { - auto root_context = wasm_handle->wasm()->getOrCreateRootContext(plugin); - if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->fail(FailState::ConfigureFailed, - "Failed to configure thread-local Wasm code"); - return nullptr; + auto root_context = wasm_handle->wasm()->getRootContext(plugin, false); + if (!root_context) { + root_context = wasm_handle->wasm()->start(plugin); + if (!root_context) { + base_wasm->wasm()->fail(FailState::StartFailed, "Failed to start thread-local Wasm"); + return nullptr; + } + if (!wasm_handle->wasm()->configure(root_context, plugin)) { + base_wasm->wasm()->fail(FailState::ConfigureFailed, + "Failed to configure thread-local Wasm plugin"); + return nullptr; + } } return wasm_handle; } From d981c850d2bdd5eb497ff7cac65712092e2cb42b Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 2 Nov 2020 14:48:27 +0900 Subject: [PATCH 053/287] wavm: rename envoyFunction to hostFunction (#85) Signed-off-by: mathetake --- src/wavm/wavm.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index f068ae31f..b9890bc76 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -258,7 +258,7 @@ struct Wavm : public WasmVm { std::map intrinsic_modules_; std::map> intrinsic_module_instances_; - std::vector> envoyFunctions_; + std::vector> host_functions_; uint8_t *memory_base_ = nullptr; AbiVersion abi_version_ = AbiVersion::Unknown; }; @@ -268,7 +268,7 @@ Wavm::~Wavm() { context_ = nullptr; intrinsic_module_instances_.clear(); intrinsic_modules_.clear(); - envoyFunctions_.clear(); + host_functions_.clear(); if (compartment_) { ASSERT(tryCollectCompartment(std::move(compartment_))); } @@ -415,7 +415,7 @@ std::string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_ob std::unique_ptr createWavmVm() { return std::make_unique(); } template -IR::FunctionType inferEnvoyFunctionType(R (*)(void *, Args...)) { +IR::FunctionType inferHostFunctionType(R (*)(void *, Args...)) { return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...}), IR::CallingConvention::intrinsic); } @@ -426,9 +426,9 @@ template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, R (*f)(Args...)) { auto wavm = static_cast(vm); - wavm->envoyFunctions_.emplace_back(new Intrinsics::Function( + wavm->host_functions_.emplace_back(new Intrinsics::Function( &wavm->intrinsic_modules_[std::string(module_name)], function_name.data(), - reinterpret_cast(f), inferEnvoyFunctionType(f))); + reinterpret_cast(f), inferHostFunctionType(f))); } template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, From 31f3184f180dad0f1cb33ba43db5cbc0162fbb7e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 2 Nov 2020 00:33:01 -0800 Subject: [PATCH 054/287] wavm: simplify get/register templates. (#87) Signed-off-by: Piotr Sikora --- src/wavm/wavm.cc | 195 +++-------------------------------------------- 1 file changed, 10 insertions(+), 185 deletions(-) diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index b9890bc76..e656fa653 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -70,15 +70,15 @@ template <> constexpr ValueType inferValueType() { return Valu namespace proxy_wasm { // Forward declarations. +template +void getFunctionWavm(WasmVm *vm, std::string_view function_name, + std::function *function); template void getFunctionWavm(WasmVm *vm, std::string_view function_name, std::function *function); template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, - R (*)(Args...)); -template -void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, - F, R (*)(Args...)); + R (*function)(Args...)); namespace Wavm { @@ -431,86 +431,6 @@ void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_ reinterpret_cast(f), inferHostFunctionType(f))); } -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, void (*f)(void *)); -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - void (*f)(void *, U32)); -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - void (*f)(void *, U32, U32)); -template void registerCallbackWavm(WasmVm *vm, - std::string_view module_name, - std::string_view function_name, - void (*f)(void *, U32, U32, U32)); -template void -registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - void (*f)(void *, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - void (*f)(void *, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - void (*f)(void *, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - void (*f)(void *, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - void (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - void (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - void (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32, U32)); - -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, U32 (*f)(void *)); -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - U32 (*f)(void *, U32)); -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - U32 (*f)(void *, U32, U32)); -template void registerCallbackWavm(WasmVm *vm, - std::string_view module_name, - std::string_view function_name, - U32 (*f)(void *, U32, U32, U32)); -template void -registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - U32 (*f)(void *, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - U32 (*f)(void *, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - U32 (*f)(void *, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32)); -template void registerCallbackWavm( - WasmVm *vm, std::string_view module_name, std::string_view function_name, - U32 (*f)(void *, U32, U32, U32, U32, U32, U32, U32, U32, U32, U32)); - -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - U64 (*f)(void *, U32)); -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - void (*f)(void *, U32, I64)); -template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, - std::string_view function_name, - void (*f)(void *, U32, U64)); - template IR::FunctionType inferStdFunctionType(std::function *) { return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...})); @@ -521,8 +441,8 @@ static bool checkFunctionType(WAVM::Runtime::Function *f, IR::FunctionType t) { } template -void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, - std::function *function, uint32_t) { +void getFunctionWavm(WasmVm *vm, std::string_view function_name, + std::function *function) { auto wavm = static_cast(vm); auto f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); @@ -550,11 +470,9 @@ void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, }; } -struct Void {}; - -template -void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, - std::function *function, Void) { +template +void getFunctionWavm(WasmVm *vm, std::string_view function_name, + std::function *function) { auto wavm = static_cast(vm); auto f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); @@ -568,104 +486,11 @@ void getFunctionWavmReturn(WasmVm *vm, std::string_view function_name, wavm->fail(FailState::UnableToInitializeCode, "Bad function signature for: " + std::string(function_name)); } - *function = [wavm, f, function_name](ContextBase *context, Args... args) -> R { + *function = [wavm, f, function_name](ContextBase *context, Args... args) { WasmUntaggedValue values[] = {args...}; CALL_WITH_CONTEXT(invokeFunction(wavm->context_, f, getFunctionType(f), &values[0]), context, wavm); }; } -// NB: Unfortunately 'void' is not treated like every other function type in C++. In -// particular it is not possible to specialize a template based on 'void'. Instead -// we use 'Void' for template matching. Note that the template implementation above -// which matchers on 'bool' does not use 'Void' in the implemenation. -template -void getFunctionWavm(WasmVm *vm, std::string_view function_name, - std::function *function) { - typename std::conditional::value, Void, uint32_t>::type x{}; - getFunctionWavmReturn(vm, function_name, function, x); -} - -template void getFunctionWavm(WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm(WasmVm *, std::string_view, - std::function *); -template void -getFunctionWavm(WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function - *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); - -template void getFunctionWavm(WasmVm *, std::string_view, - std::function *); -template void -getFunctionWavm(WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); -template void getFunctionWavm( - WasmVm *, std::string_view, - std::function *); - -template T getValue(IR::Value) {} -template <> Word getValue(IR::Value v) { return v.u32; } -template <> int32_t getValue(IR::Value v) { return v.i32; } -template <> uint32_t getValue(IR::Value v) { return v.u32; } -template <> int64_t getValue(IR::Value v) { return v.i64; } -template <> uint64_t getValue(IR::Value v) { return v.u64; } -template <> float getValue(IR::Value v) { return v.f32; } -template <> double getValue(IR::Value v) { return v.f64; } - } // namespace proxy_wasm From 64313a6d7dbcbbdf9960e9d5a3296a88a7bea8fd Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 6 Nov 2020 01:15:16 -0800 Subject: [PATCH 055/287] Revert "Allow execution of multiple instances of the same plugin. (#78)" (#91) This reverts commit f08baacadbe656674414f0878e18852bed67b795. Signed-off-by: Piotr Sikora --- include/proxy-wasm/context.h | 21 ++++---- include/proxy-wasm/wasm.h | 9 ++-- src/context.cc | 27 ++++++---- src/wasm.cc | 100 ++++++++++++++--------------------- 4 files changed, 71 insertions(+), 86 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 375ac80d6..ddad88e83 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -50,23 +50,20 @@ struct PluginBase { std::string_view runtime, std::string_view plugin_configuration, bool fail_open) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), - fail_open_(fail_open), key_(root_id_ + "||" + plugin_configuration_) {} + fail_open_(fail_open) {} const std::string name_; const std::string root_id_; const std::string vm_id_; const std::string runtime_; - const std::string plugin_configuration_; + std::string plugin_configuration_; const bool fail_open_; - - const std::string &key() const { return key_; } const std::string &log_prefix() const { return log_prefix_; } private: std::string makeLogPrefix() const; - const std::string key_; - const std::string log_prefix_; + std::string log_prefix_; }; struct BufferBase : public BufferInterface { @@ -376,16 +373,16 @@ class ContextBase : public RootInterface, protected: friend class WasmBase; + void initializeRootBase(WasmBase *wasm, std::shared_ptr plugin); std::string makeRootLogPrefix(std::string_view vm_id) const; WasmBase *wasm_{nullptr}; uint32_t id_{0}; - uint32_t parent_context_id_{0}; // 0 for roots and the general context. - ContextBase *parent_context_{nullptr}; // set in all contexts. - std::string root_id_; // set only in root context. - std::string root_log_prefix_; // set only in root context. - std::shared_ptr plugin_; // set in root and stream contexts. - std::shared_ptr temp_plugin_; // Remove once ABI v0.1.0 is gone. + uint32_t parent_context_id_{0}; // 0 for roots and the general context. + ContextBase *parent_context_{nullptr}; // set in all contexts. + std::string root_id_; // set only in root context. + std::string root_log_prefix_; // set only in root context. + std::shared_ptr plugin_; bool in_vm_context_created_ = false; bool destroyed_ = false; }; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index a3896fc48..b2c694dbd 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -59,7 +59,8 @@ class WasmBase : public std::enable_shared_from_this { std::string_view vm_key() const { return vm_key_; } WasmVm *wasm_vm() const { return wasm_vm_.get(); } ContextBase *vm_context() const { return vm_context_.get(); } - ContextBase *getRootContext(const std::shared_ptr &plugin, bool allow_closed); + ContextBase *getRootContext(std::string_view root_id); + ContextBase *getOrCreateRootContext(const std::shared_ptr &plugin); ContextBase *getContext(uint32_t id) { auto it = contexts_.find(id); if (it != contexts_.end()) @@ -77,7 +78,6 @@ class WasmBase : public std::enable_shared_from_this { void timerReady(uint32_t root_context_id); void queueReady(uint32_t root_context_id, uint32_t token); - void startShutdown(const std::shared_ptr &plugin); void startShutdown(); WasmResult done(ContextBase *root_context); void finishShutdown(); @@ -164,12 +164,11 @@ class WasmBase : public std::enable_shared_from_this { uint32_t next_context_id_ = 1; // 0 is reserved for the VM context. std::shared_ptr vm_context_; // Context unrelated to any specific root or stream // (e.g. for global constructors). - std::unordered_map> root_contexts_; // Root contexts. - std::unordered_map> pending_done_; // Root contexts. - std::unordered_set> pending_delete_; // Root contexts. + std::unordered_map> root_contexts_; std::unordered_map contexts_; // Contains all contexts. std::unordered_map timer_period_; // per root_id. std::unique_ptr shutdown_handle_; + std::unordered_set pending_done_; // Root contexts not done during shutdown. WasmCallVoid<0> _initialize_; /* Emscripten v1.39.17+ */ WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ diff --git a/src/context.cc b/src/context.cc index a90db8494..c1929e14a 100644 --- a/src/context.cc +++ b/src/context.cc @@ -269,10 +269,8 @@ ContextBase::ContextBase(WasmBase *wasm) : wasm_(wasm), parent_context_(this) { wasm_->contexts_[id_] = this; } -ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) - : wasm_(wasm), id_(wasm->allocContextId()), parent_context_(this), root_id_(plugin->root_id_), - root_log_prefix_(makeRootLogPrefix(plugin->vm_id_)), plugin_(plugin) { - wasm_->contexts_[id_] = this; +ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) { + initializeRootBase(wasm, plugin); } // NB: wasm can be nullptr if it failed to be created successfully. @@ -290,6 +288,15 @@ WasmVm *ContextBase::wasmVm() const { return wasm_->wasm_vm(); } bool ContextBase::isFailed() { return !wasm_ || wasm_->isFailed(); } +void ContextBase::initializeRootBase(WasmBase *wasm, std::shared_ptr plugin) { + wasm_ = wasm; + id_ = wasm->allocContextId(); + root_id_ = plugin->root_id_; + root_log_prefix_ = makeRootLogPrefix(plugin->vm_id_); + parent_context_ = this; + wasm_->contexts_[id_] = this; +} + std::string ContextBase::makeRootLogPrefix(std::string_view vm_id) const { std::string prefix; if (!root_id_.empty()) { @@ -308,10 +315,10 @@ bool ContextBase::onStart(std::shared_ptr plugin) { DeferAfterCallActions actions(this); bool result = true; if (wasm_->on_context_create_) { - temp_plugin_ = plugin; + plugin_ = plugin; wasm_->on_context_create_(this, id_, 0); in_vm_context_created_ = true; - temp_plugin_.reset(); + plugin_.reset(); } if (wasm_->on_vm_start_) { // Do not set plugin_ as the on_vm_start handler should be independent of the plugin since the @@ -343,11 +350,11 @@ bool ContextBase::onConfigure(std::shared_ptr plugin) { } DeferAfterCallActions actions(this); - temp_plugin_ = plugin; + plugin_ = plugin; auto result = wasm_->on_configure_(this, id_, static_cast(plugin->plugin_configuration_.size())) .u64_ != 0; - temp_plugin_.reset(); + plugin_.reset(); return result; } @@ -637,8 +644,8 @@ WasmResult ContextBase::setTimerPeriod(std::chrono::milliseconds period, } ContextBase::~ContextBase() { - // Do not remove vm context which has the same lifetime as wasm_. - if (id_) { + // Do not remove vm or root contexts which have the same lifetime as wasm_. + if (parent_context_id_) { wasm_->contexts_.erase(id_); } } diff --git a/src/wasm.cc b/src/wasm.cc index 939fd0a40..9472873d7 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -280,11 +280,7 @@ WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, } } -WasmBase::~WasmBase() { - root_contexts_.clear(); - pending_done_.clear(); - pending_delete_.clear(); -} +WasmBase::~WasmBase() {} bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { if (!wasm_vm_) { @@ -323,19 +319,22 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { return !isFailed(); } -ContextBase *WasmBase::getRootContext(const std::shared_ptr &plugin, - bool allow_closed) { - auto it = root_contexts_.find(plugin->key()); - if (it != root_contexts_.end()) { - return it->second.get(); +ContextBase *WasmBase::getRootContext(std::string_view root_id) { + auto it = root_contexts_.find(std::string(root_id)); + if (it == root_contexts_.end()) { + return nullptr; } - if (allow_closed) { - it = pending_done_.find(plugin->key()); - if (it != pending_done_.end()) { - return it->second.get(); - } + return it->second.get(); +} + +ContextBase *WasmBase::getOrCreateRootContext(const std::shared_ptr &plugin) { + auto root_context = getRootContext(plugin->root_id_); + if (!root_context) { + auto context = std::unique_ptr(createRootContext(plugin)); + root_context = context.get(); + root_contexts_[plugin->root_id_] = std::move(context); } - return nullptr; + return root_context; } void WasmBase::startVm(ContextBase *root_context) { @@ -353,14 +352,15 @@ bool WasmBase::configure(ContextBase *root_context, std::shared_ptr } ContextBase *WasmBase::start(std::shared_ptr plugin) { - auto it = root_contexts_.find(plugin->key()); + auto root_id = plugin->root_id_; + auto it = root_contexts_.find(root_id); if (it != root_contexts_.end()) { it->second->onStart(plugin); return it->second.get(); } auto context = std::unique_ptr(createRootContext(plugin)); auto context_ptr = context.get(); - root_contexts_[plugin->key()] = std::move(context); + root_contexts_[root_id] = std::move(context); if (!context_ptr->onStart(plugin)) { return nullptr; } @@ -377,49 +377,38 @@ uint32_t WasmBase::allocContextId() { } } -void WasmBase::startShutdown(const std::shared_ptr &plugin) { - auto it = root_contexts_.find(plugin->key()); - if (it != root_contexts_.end()) { - if (it->second->onDone()) { - it->second->onDelete(); - } else { - pending_done_[it->first] = std::move(it->second); - } - root_contexts_.erase(it); - } -} - void WasmBase::startShutdown() { - auto it = root_contexts_.begin(); - while (it != root_contexts_.end()) { - if (it->second->onDone()) { - it->second->onDelete(); - } else { - pending_done_[it->first] = std::move(it->second); + bool all_done = true; + for (auto &p : root_contexts_) { + if (!p.second->onDone()) { + all_done = false; + pending_done_.insert(p.second.get()); } - it = root_contexts_.erase(it); + } + if (!all_done) { + shutdown_handle_ = std::make_unique(shared_from_this()); + } else { + finishShutdown(); } } WasmResult WasmBase::done(ContextBase *root_context) { - auto it = pending_done_.find(root_context->plugin_->key()); + auto it = pending_done_.find(root_context); if (it == pending_done_.end()) { return WasmResult::NotFound; } - pending_delete_.insert(std::move(it->second)); pending_done_.erase(it); - // Defer the delete so that onDelete is not called from within the done() handler. - shutdown_handle_ = std::make_unique(shared_from_this()); - addAfterVmCallAction( - [shutdown_handle = shutdown_handle_.release()]() { delete shutdown_handle; }); + if (pending_done_.empty() && shutdown_handle_) { + // Defer the delete so that onDelete is not called from within the done() handler. + addAfterVmCallAction( + [shutdown_handle = shutdown_handle_.release()]() { delete shutdown_handle; }); + } return WasmResult::Ok; } void WasmBase::finishShutdown() { - auto it = pending_delete_.begin(); - while (it != pending_delete_.end()) { - (*it)->onDelete(); - it = pending_delete_.erase(it); + for (auto &p : root_contexts_) { + p.second->onDelete(); } } @@ -531,18 +520,11 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, WasmHandleCloneFactory clone_factory) { auto wasm_handle = getThreadLocalWasm(base_wasm->wasm()->vm_key()); if (wasm_handle) { - auto root_context = wasm_handle->wasm()->getRootContext(plugin, false); - if (!root_context) { - root_context = wasm_handle->wasm()->start(plugin); - if (!root_context) { - base_wasm->wasm()->fail(FailState::StartFailed, "Failed to start thread-local Wasm"); - return nullptr; - } - if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->fail(FailState::ConfigureFailed, - "Failed to configure thread-local Wasm plugin"); - return nullptr; - } + auto root_context = wasm_handle->wasm()->getOrCreateRootContext(plugin); + if (!wasm_handle->wasm()->configure(root_context, plugin)) { + base_wasm->wasm()->fail(FailState::ConfigureFailed, + "Failed to configure thread-local Wasm code"); + return nullptr; } return wasm_handle; } From 376ffaf53323b0b678f9d507b3b3ce81aa13f1b4 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 10 Nov 2020 08:13:51 +0900 Subject: [PATCH 056/287] Force stop iteration after local response is sent (#88) Signed-off-by: mathetake --- include/proxy-wasm/context.h | 13 +++++ src/context.cc | 106 +++++++++++++++++++---------------- src/exports.cc | 1 + 3 files changed, 72 insertions(+), 48 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index ddad88e83..03657a1b5 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -167,6 +167,11 @@ class ContextBase : public RootInterface, // Called before deleting the context. virtual void destroy(); + // Called to raise the flag which indicates that the context should stop iteration regardless of + // returned filter status from Proxy-Wasm extensions. For example, we ignore + // FilterHeadersStatus::Continue after a local reponse is sent by the host. + void stopIteration() { stop_iteration_ = true; }; + /** * Calls into the VM. * These are implemented by the proxy-independent host code. They are virtual to support some @@ -385,6 +390,14 @@ class ContextBase : public RootInterface, std::shared_ptr plugin_; bool in_vm_context_created_ = false; bool destroyed_ = false; + bool stop_iteration_ = false; + +private: + // helper functions + FilterHeadersStatus convertVmCallResultToFilterHeadersStatus(uint64_t result); + FilterDataStatus convertVmCallResultToFilterDataStatus(uint64_t result); + FilterTrailersStatus convertVmCallResultToFilterTrailersStatus(uint64_t result); + FilterMetadataStatus convertVmCallResultToFilterMetadataStatus(uint64_t result); }; class DeferAfterCallActions { diff --git a/src/context.cc b/src/context.cc index c1929e14a..6ab4b5e09 100644 --- a/src/context.cc +++ b/src/context.cc @@ -477,93 +477,71 @@ FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_ CHECK_HTTP2(on_request_headers_abi_01_, on_request_headers_abi_02_, FilterHeadersStatus::Continue, FilterHeadersStatus::StopIteration); DeferAfterCallActions actions(this); - auto result = wasm_->on_request_headers_abi_01_ - ? wasm_->on_request_headers_abi_01_(this, id_, headers).u64_ - : wasm_ - ->on_request_headers_abi_02_(this, id_, headers, - static_cast(end_of_stream)) - .u64_; - if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) - return FilterHeadersStatus::StopAllIterationAndWatermark; - return static_cast(result); + return convertVmCallResultToFilterHeadersStatus( + wasm_->on_request_headers_abi_01_ + ? wasm_->on_request_headers_abi_01_(this, id_, headers).u64_ + : wasm_ + ->on_request_headers_abi_02_(this, id_, headers, + static_cast(end_of_stream)) + .u64_); } FilterDataStatus ContextBase::onRequestBody(uint32_t data_length, bool end_of_stream) { CHECK_HTTP(on_request_body_, FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); DeferAfterCallActions actions(this); - auto result = - wasm_->on_request_body_(this, id_, data_length, static_cast(end_of_stream)).u64_; - if (result > static_cast(FilterDataStatus::StopIterationNoBuffer)) - return FilterDataStatus::StopIterationNoBuffer; - return static_cast(result); + return convertVmCallResultToFilterDataStatus( + wasm_->on_request_body_(this, id_, data_length, static_cast(end_of_stream)).u64_); } FilterTrailersStatus ContextBase::onRequestTrailers(uint32_t trailers) { CHECK_HTTP(on_request_trailers_, FilterTrailersStatus::Continue, FilterTrailersStatus::StopIteration); DeferAfterCallActions actions(this); - if (static_cast(wasm_->on_request_trailers_(this, id_, trailers).u64_) == - FilterTrailersStatus::Continue) { - return FilterTrailersStatus::Continue; - } - return FilterTrailersStatus::StopIteration; + return convertVmCallResultToFilterTrailersStatus( + wasm_->on_request_trailers_(this, id_, trailers).u64_); } FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { CHECK_HTTP(on_request_metadata_, FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); DeferAfterCallActions actions(this); - if (static_cast(wasm_->on_request_metadata_(this, id_, elements).u64_) == - FilterMetadataStatus::Continue) { - return FilterMetadataStatus::Continue; - } - return FilterMetadataStatus::Continue; // This is currently the only return code. + return convertVmCallResultToFilterMetadataStatus( + wasm_->on_request_metadata_(this, id_, elements).u64_); } FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of_stream) { CHECK_HTTP2(on_response_headers_abi_01_, on_response_headers_abi_02_, FilterHeadersStatus::Continue, FilterHeadersStatus::StopIteration); DeferAfterCallActions actions(this); - auto result = wasm_->on_response_headers_abi_01_ - ? wasm_->on_response_headers_abi_01_(this, id_, headers).u64_ - : wasm_ - ->on_response_headers_abi_02_(this, id_, headers, - static_cast(end_of_stream)) - .u64_; - if (result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) - return FilterHeadersStatus::StopAllIterationAndWatermark; - return static_cast(result); + return convertVmCallResultToFilterHeadersStatus( + wasm_->on_response_headers_abi_01_ + ? wasm_->on_response_headers_abi_01_(this, id_, headers).u64_ + : wasm_ + ->on_response_headers_abi_02_(this, id_, headers, + static_cast(end_of_stream)) + .u64_); } FilterDataStatus ContextBase::onResponseBody(uint32_t body_length, bool end_of_stream) { CHECK_HTTP(on_response_body_, FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); DeferAfterCallActions actions(this); - auto result = - wasm_->on_response_body_(this, id_, body_length, static_cast(end_of_stream)).u64_; - if (result > static_cast(FilterDataStatus::StopIterationNoBuffer)) - return FilterDataStatus::StopIterationNoBuffer; - return static_cast(result); + return convertVmCallResultToFilterDataStatus( + wasm_->on_response_body_(this, id_, body_length, static_cast(end_of_stream)).u64_); } FilterTrailersStatus ContextBase::onResponseTrailers(uint32_t trailers) { CHECK_HTTP(on_response_trailers_, FilterTrailersStatus::Continue, FilterTrailersStatus::StopIteration); DeferAfterCallActions actions(this); - if (static_cast(wasm_->on_response_trailers_(this, id_, trailers).u64_) == - FilterTrailersStatus::Continue) { - return FilterTrailersStatus::Continue; - } - return FilterTrailersStatus::StopIteration; + return convertVmCallResultToFilterTrailersStatus( + wasm_->on_response_trailers_(this, id_, trailers).u64_); } FilterMetadataStatus ContextBase::onResponseMetadata(uint32_t elements) { CHECK_HTTP(on_response_metadata_, FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); DeferAfterCallActions actions(this); - if (static_cast(wasm_->on_response_metadata_(this, id_, elements).u64_) == - FilterMetadataStatus::Continue) { - return FilterMetadataStatus::Continue; - } - return FilterMetadataStatus::Continue; // This is currently the only return code. + return convertVmCallResultToFilterMetadataStatus( + wasm_->on_response_metadata_(this, id_, elements).u64_); } void ContextBase::onHttpCallResponse(uint32_t token, uint32_t headers, uint32_t body_size, @@ -643,6 +621,38 @@ WasmResult ContextBase::setTimerPeriod(std::chrono::milliseconds period, return WasmResult::Ok; } +FilterHeadersStatus ContextBase::convertVmCallResultToFilterHeadersStatus(uint64_t result) { + if (stop_iteration_ || + result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) { + stop_iteration_ = false; + return FilterHeadersStatus::StopAllIterationAndWatermark; + } + return static_cast(result); +} + +FilterDataStatus ContextBase::convertVmCallResultToFilterDataStatus(uint64_t result) { + if (stop_iteration_ || result > static_cast(FilterDataStatus::StopIterationNoBuffer)) { + stop_iteration_ = false; + return FilterDataStatus::StopIterationNoBuffer; + } + return static_cast(result); +} + +FilterTrailersStatus ContextBase::convertVmCallResultToFilterTrailersStatus(uint64_t result) { + if (stop_iteration_ || result > static_cast(FilterTrailersStatus::StopIteration)) { + stop_iteration_ = false; + return FilterTrailersStatus::StopIteration; + } + return static_cast(result); +} + +FilterMetadataStatus ContextBase::convertVmCallResultToFilterMetadataStatus(uint64_t result) { + if (static_cast(result) == FilterMetadataStatus::Continue) { + return FilterMetadataStatus::Continue; + } + return FilterMetadataStatus::Continue; // This is currently the only return code. +} + ContextBase::~ContextBase() { // Do not remove vm or root contexts which have the same lifetime as wasm_. if (parent_context_id_) { diff --git a/src/exports.cc b/src/exports.cc index cda125140..4c31a75e0 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -186,6 +186,7 @@ Word send_local_response(void *raw_context, Word response_code, Word response_co auto additional_headers = toPairs(additional_response_header_pairs.value()); context->sendLocalResponse(response_code, body.value(), std::move(additional_headers), grpc_code, details.value()); + context->stopIteration(); return WasmResult::Ok; } From b7d3d13d75bb6b50f192252258bb9583bf723fa4 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 10 Nov 2020 17:23:40 +0900 Subject: [PATCH 057/287] Clear stop_iteration_ in DeferAfterCallActions destructor (#93) Signed-off-by: mathetake Signed-off-by: Piotr Sikora --- include/proxy-wasm/context.h | 6 ------ include/proxy-wasm/wasm.h | 7 +++++++ src/context.cc | 16 +++++++++------- src/exports.cc | 2 +- 4 files changed, 17 insertions(+), 14 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 03657a1b5..2313d9cdb 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -167,11 +167,6 @@ class ContextBase : public RootInterface, // Called before deleting the context. virtual void destroy(); - // Called to raise the flag which indicates that the context should stop iteration regardless of - // returned filter status from Proxy-Wasm extensions. For example, we ignore - // FilterHeadersStatus::Continue after a local reponse is sent by the host. - void stopIteration() { stop_iteration_ = true; }; - /** * Calls into the VM. * These are implemented by the proxy-independent host code. They are virtual to support some @@ -390,7 +385,6 @@ class ContextBase : public RootInterface, std::shared_ptr plugin_; bool in_vm_context_created_ = false; bool destroyed_ = false; - bool stop_iteration_ = false; private: // helper functions diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index b2c694dbd..c71c58480 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -122,6 +122,12 @@ class WasmBase : public std::enable_shared_from_this { AbiVersion abiVersion() { return abi_version_; } + // Called to raise the flag which indicates that the context should stop iteration regardless of + // returned filter status from Proxy-Wasm extensions. For example, we ignore + // FilterHeadersStatus::Continue after a local reponse is sent by the host. + void stopNextIteration(bool stop) { stop_iteration_ = stop; }; + bool isNextIterationStopped() { return stop_iteration_; }; + void addAfterVmCallAction(std::function f) { after_vm_call_actions_.push_back(f); } void doAfterVmCallActions() { // NB: this may be deleted by a delayed function unless prevented. @@ -223,6 +229,7 @@ class WasmBase : public std::enable_shared_from_this { std::string code_; std::string vm_configuration_; bool allow_precompiled_ = false; + bool stop_iteration_ = false; FailState failed_ = FailState::Ok; // Wasm VM fatal error. // ABI version. diff --git a/src/context.cc b/src/context.cc index 6ab4b5e09..89daa97a4 100644 --- a/src/context.cc +++ b/src/context.cc @@ -225,7 +225,10 @@ SharedData global_shared_data; } // namespace -DeferAfterCallActions::~DeferAfterCallActions() { wasm_->doAfterVmCallActions(); } +DeferAfterCallActions::~DeferAfterCallActions() { + wasm_->stopNextIteration(false); + wasm_->doAfterVmCallActions(); +} WasmResult BufferBase::copyTo(WasmBase *wasm, size_t start, size_t length, uint64_t ptr_ptr, uint64_t size_ptr) const { @@ -622,25 +625,24 @@ WasmResult ContextBase::setTimerPeriod(std::chrono::milliseconds period, } FilterHeadersStatus ContextBase::convertVmCallResultToFilterHeadersStatus(uint64_t result) { - if (stop_iteration_ || + if (wasm()->isNextIterationStopped() || result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) { - stop_iteration_ = false; return FilterHeadersStatus::StopAllIterationAndWatermark; } return static_cast(result); } FilterDataStatus ContextBase::convertVmCallResultToFilterDataStatus(uint64_t result) { - if (stop_iteration_ || result > static_cast(FilterDataStatus::StopIterationNoBuffer)) { - stop_iteration_ = false; + if (wasm()->isNextIterationStopped() || + result > static_cast(FilterDataStatus::StopIterationNoBuffer)) { return FilterDataStatus::StopIterationNoBuffer; } return static_cast(result); } FilterTrailersStatus ContextBase::convertVmCallResultToFilterTrailersStatus(uint64_t result) { - if (stop_iteration_ || result > static_cast(FilterTrailersStatus::StopIteration)) { - stop_iteration_ = false; + if (wasm()->isNextIterationStopped() || + result > static_cast(FilterTrailersStatus::StopIteration)) { return FilterTrailersStatus::StopIteration; } return static_cast(result); diff --git a/src/exports.cc b/src/exports.cc index 4c31a75e0..1ffee3228 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -186,7 +186,7 @@ Word send_local_response(void *raw_context, Word response_code, Word response_co auto additional_headers = toPairs(additional_response_header_pairs.value()); context->sendLocalResponse(response_code, body.value(), std::move(additional_headers), grpc_code, details.value()); - context->stopIteration(); + context->wasm()->stopNextIteration(true); return WasmResult::Ok; } From 4741d2f1cd5eb250f66d0518238c333353259d56 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 10 Nov 2020 17:41:08 +0900 Subject: [PATCH 058/287] Add Wasmtime runtime. (#73) Signed-off-by: mathetake --- BUILD | 38 +- WORKSPACE | 36 + bazel/cargo/BUILD.bazel | 76 ++ bazel/cargo/Cargo.lock | 795 +++++++++++++++++ bazel/cargo/Cargo.toml | 68 ++ bazel/cargo/crates.bzl | 821 ++++++++++++++++++ .../cargo/remote/BUILD.addr2line-0.14.0.bazel | 61 ++ bazel/cargo/remote/BUILD.adler-0.2.3.bazel | 54 ++ .../remote/BUILD.aho-corasick-0.7.15.bazel | 55 ++ bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel | 80 ++ bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 87 ++ bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel | 62 ++ .../cargo/remote/BUILD.backtrace-0.3.54.bazel | 90 ++ bazel/cargo/remote/BUILD.bazel | 0 bazel/cargo/remote/BUILD.bincode-1.3.1.bazel | 56 ++ bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel | 55 ++ .../cargo/remote/BUILD.byteorder-1.3.4.bazel | 58 ++ bazel/cargo/remote/BUILD.cc-1.0.62.bazel | 84 ++ bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel | 54 ++ bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel | 54 ++ .../BUILD.cranelift-bforest-0.68.0.bazel | 53 ++ .../BUILD.cranelift-codegen-0.68.0.bazel | 106 +++ .../BUILD.cranelift-codegen-meta-0.68.0.bazel | 54 ++ ...UILD.cranelift-codegen-shared-0.68.0.bazel | 52 ++ .../BUILD.cranelift-entity-0.68.0.bazel | 55 ++ .../BUILD.cranelift-frontend-0.68.0.bazel | 58 ++ .../BUILD.cranelift-native-0.68.0.bazel | 76 ++ .../remote/BUILD.cranelift-wasm-0.68.0.bazel | 67 ++ .../cargo/remote/BUILD.crc32fast-1.2.1.bazel | 59 ++ bazel/cargo/remote/BUILD.either-1.6.1.bazel | 52 ++ .../cargo/remote/BUILD.env_logger-0.8.1.bazel | 86 ++ .../BUILD.fallible-iterator-0.2.0.bazel | 53 ++ bazel/cargo/remote/BUILD.gimli-0.22.0.bazel | 77 ++ bazel/cargo/remote/BUILD.gimli-0.23.0.bazel | 67 ++ .../remote/BUILD.hermit-abi-0.1.17.bazel | 54 ++ .../cargo/remote/BUILD.humantime-2.0.1.bazel | 56 ++ bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel | 68 ++ .../cargo/remote/BUILD.itertools-0.9.0.bazel | 89 ++ .../remote/BUILD.lazy_static-1.4.0.bazel | 56 ++ bazel/cargo/remote/BUILD.libc-0.2.80.bazel | 58 ++ bazel/cargo/remote/BUILD.log-0.4.11.bazel | 61 ++ bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 68 ++ bazel/cargo/remote/BUILD.memchr-2.3.4.bazel | 57 ++ .../cargo/remote/BUILD.memoffset-0.5.6.bazel | 55 ++ .../remote/BUILD.miniz_oxide-0.4.3.bazel | 55 ++ .../remote/BUILD.more-asserts-0.2.1.bazel | 52 ++ bazel/cargo/remote/BUILD.object-0.21.1.bazel | 79 ++ bazel/cargo/remote/BUILD.object-0.22.0.bazel | 73 ++ .../cargo/remote/BUILD.once_cell-1.4.1.bazel | 70 ++ .../remote/BUILD.proc-macro2-1.0.24.bazel | 68 ++ bazel/cargo/remote/BUILD.psm-0.1.11.bazel | 99 +++ bazel/cargo/remote/BUILD.quote-1.0.7.bazel | 59 ++ .../cargo/remote/BUILD.raw-cpuid-7.0.3.bazel | 186 ++++ .../cargo/remote/BUILD.regalloc-0.0.31.bazel | 56 ++ bazel/cargo/remote/BUILD.regex-1.4.2.bazel | 95 ++ .../remote/BUILD.regex-syntax-0.6.21.bazel | 54 ++ bazel/cargo/remote/BUILD.region-2.2.0.bazel | 76 ++ .../remote/BUILD.rustc-demangle-0.1.18.bazel | 52 ++ .../cargo/remote/BUILD.rustc-hash-1.1.0.bazel | 54 ++ .../remote/BUILD.rustc_version-0.2.3.bazel | 53 ++ bazel/cargo/remote/BUILD.semver-0.9.0.bazel | 60 ++ .../remote/BUILD.semver-parser-0.7.0.bazel | 52 ++ bazel/cargo/remote/BUILD.serde-1.0.117.bazel | 61 ++ .../remote/BUILD.serde_derive-1.0.117.bazel | 58 ++ bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel | 56 ++ .../BUILD.stable_deref_trait-1.2.0.bazel | 54 ++ bazel/cargo/remote/BUILD.syn-1.0.48.bazel | 121 +++ .../remote/BUILD.target-lexicon-0.11.1.bazel | 87 ++ .../cargo/remote/BUILD.termcolor-1.1.0.bazel | 63 ++ .../cargo/remote/BUILD.thiserror-1.0.22.bazel | 79 ++ .../remote/BUILD.thiserror-impl-1.0.22.bazel | 55 ++ .../remote/BUILD.thread_local-1.0.1.bazel | 55 ++ .../remote/BUILD.unicode-xid-0.2.1.bazel | 55 ++ .../remote/BUILD.wasmparser-0.57.0.bazel | 58 ++ .../remote/BUILD.wasmparser-0.65.0.bazel | 56 ++ .../cargo/remote/BUILD.wasmtime-0.21.0.bazel | 80 ++ .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 54 ++ .../BUILD.wasmtime-cranelift-0.21.0.bazel | 57 ++ .../remote/BUILD.wasmtime-debug-0.21.0.bazel | 60 ++ .../BUILD.wasmtime-environ-0.21.0.bazel | 64 ++ .../remote/BUILD.wasmtime-jit-0.21.0.bazel | 85 ++ .../remote/BUILD.wasmtime-obj-0.21.0.bazel | 58 ++ .../BUILD.wasmtime-profiling-0.21.0.bazel | 60 ++ .../BUILD.wasmtime-runtime-0.21.0.bazel | 77 ++ bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 69 ++ ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 54 ++ .../remote/BUILD.winapi-util-0.1.5.bazel | 63 ++ ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 54 ++ bazel/external/wasm-c-api.BUILD | 15 + bazel/external/wasmtime.BUILD | 32 + bazel/variables.bzl | 44 + include/proxy-wasm/wasmtime.h | 23 + src/common/types.h | 40 + src/wasmtime/types.h | 46 + src/wasmtime/wasmtime.cc | 697 +++++++++++++++ test/BUILD | 41 + context_test.cc => test/context_test.cc | 0 wasm_vm_test.cc => test/null_vm_test.cc | 0 test/runtime_test.cc | 244 ++++++ test/test_data/BUILD | 18 + test/test_data/abi_export.rs | 16 + test/test_data/callback.rs | 35 + test/test_data/trap.rs | 35 + test/test_data/wasm.bzl | 69 ++ 104 files changed, 8529 insertions(+), 33 deletions(-) create mode 100644 bazel/cargo/BUILD.bazel create mode 100644 bazel/cargo/Cargo.lock create mode 100644 bazel/cargo/Cargo.toml create mode 100644 bazel/cargo/crates.bzl create mode 100644 bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel create mode 100644 bazel/cargo/remote/BUILD.adler-0.2.3.bazel create mode 100644 bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel create mode 100644 bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel create mode 100644 bazel/cargo/remote/BUILD.atty-0.2.14.bazel create mode 100644 bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel create mode 100644 bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel create mode 100644 bazel/cargo/remote/BUILD.bazel create mode 100644 bazel/cargo/remote/BUILD.bincode-1.3.1.bazel create mode 100644 bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel create mode 100644 bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel create mode 100644 bazel/cargo/remote/BUILD.cc-1.0.62.bazel create mode 100644 bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel create mode 100644 bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel create mode 100644 bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel create mode 100644 bazel/cargo/remote/BUILD.either-1.6.1.bazel create mode 100644 bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel create mode 100644 bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel create mode 100644 bazel/cargo/remote/BUILD.gimli-0.22.0.bazel create mode 100644 bazel/cargo/remote/BUILD.gimli-0.23.0.bazel create mode 100644 bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel create mode 100644 bazel/cargo/remote/BUILD.humantime-2.0.1.bazel create mode 100644 bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel create mode 100644 bazel/cargo/remote/BUILD.itertools-0.9.0.bazel create mode 100644 bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel create mode 100644 bazel/cargo/remote/BUILD.libc-0.2.80.bazel create mode 100644 bazel/cargo/remote/BUILD.log-0.4.11.bazel create mode 100644 bazel/cargo/remote/BUILD.mach-0.3.2.bazel create mode 100644 bazel/cargo/remote/BUILD.memchr-2.3.4.bazel create mode 100644 bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel create mode 100644 bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel create mode 100644 bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel create mode 100644 bazel/cargo/remote/BUILD.object-0.21.1.bazel create mode 100644 bazel/cargo/remote/BUILD.object-0.22.0.bazel create mode 100644 bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel create mode 100644 bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel create mode 100644 bazel/cargo/remote/BUILD.psm-0.1.11.bazel create mode 100644 bazel/cargo/remote/BUILD.quote-1.0.7.bazel create mode 100644 bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel create mode 100644 bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel create mode 100644 bazel/cargo/remote/BUILD.regex-1.4.2.bazel create mode 100644 bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel create mode 100644 bazel/cargo/remote/BUILD.region-2.2.0.bazel create mode 100644 bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel create mode 100644 bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel create mode 100644 bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel create mode 100644 bazel/cargo/remote/BUILD.semver-0.9.0.bazel create mode 100644 bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel create mode 100644 bazel/cargo/remote/BUILD.serde-1.0.117.bazel create mode 100644 bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel create mode 100644 bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel create mode 100644 bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel create mode 100644 bazel/cargo/remote/BUILD.syn-1.0.48.bazel create mode 100644 bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel create mode 100644 bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel create mode 100644 bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel create mode 100644 bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel create mode 100644 bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel create mode 100644 bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel create mode 100644 bazel/cargo/remote/BUILD.winapi-0.3.9.bazel create mode 100644 bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel create mode 100644 bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel create mode 100644 bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel create mode 100644 bazel/external/wasm-c-api.BUILD create mode 100644 bazel/external/wasmtime.BUILD create mode 100644 bazel/variables.bzl create mode 100644 include/proxy-wasm/wasmtime.h create mode 100644 src/common/types.h create mode 100644 src/wasmtime/types.h create mode 100644 src/wasmtime/wasmtime.cc create mode 100644 test/BUILD rename context_test.cc => test/context_test.cc (100%) rename wasm_vm_test.cc => test/null_vm_test.cc (100%) create mode 100644 test/runtime_test.cc create mode 100644 test/test_data/BUILD create mode 100644 test/test_data/abi_export.rs create mode 100644 test/test_data/callback.rs create mode 100644 test/test_data/trap.rs create mode 100644 test/test_data/wasm.bzl diff --git a/BUILD b/BUILD index 1aa823d91..328d65f4e 100644 --- a/BUILD +++ b/BUILD @@ -1,18 +1,9 @@ +load("//:bazel/variables.bzl", "COPTS", "LINKOPTS") + licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) -COPTS = select({ - "@bazel_tools//src/conditions:windows": [ - "/std:c++17", - "-DWITHOUT_ZLIB", - ], - "//conditions:default": [ - "-std=c++17", - "-DWITHOUT_ZLIB", - ], -}) - cc_library( name = "include", hdrs = glob(["include/proxy-wasm/**/*.h"]), @@ -21,6 +12,8 @@ cc_library( ], ) +# TODO(mathetkae): once other runtimes(WAVM,V8) can be linked in this repos, +# use -define=wasm=v8|wavm|wasmtime and switch cc_library( name = "lib", srcs = glob( @@ -36,27 +29,6 @@ cc_library( "@boringssl//:crypto", "@com_google_protobuf//:protobuf_lite", "@proxy_wasm_cpp_sdk//:api_lib", - ], -) - -cc_test( - name = "wasm_vm_test", - srcs = ["wasm_vm_test.cc"], - copts = COPTS, - deps = [ - ":lib", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", - ], -) - -cc_test( - name = "context_test", - srcs = ["context_test.cc"], - copts = COPTS, - deps = [ - ":include", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", + "@wasm_c_api//:wasmtime_lib", ], ) diff --git a/WORKSPACE b/WORKSPACE index bc20f1fa5..874d39b13 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -31,6 +31,26 @@ load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") bazel_skylib_workspace() +# rust rules +http_archive( + name = "io_bazel_rules_rust", + sha256 = "7401878bf966325bbec5224eeb4ff7e8762681070b401acaa168da68d383563a", + strip_prefix = "rules_rust-9741a32e50a8c50c504c0931111bb6048d6d6888", + url = "https://github.com/bazelbuild/rules_rust/archive/9741a32e50a8c50c504c0931111bb6048d6d6888.tar.gz", +) + +load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") + +rust_repositories() + +load("@io_bazel_rules_rust//:workspace.bzl", "rust_workspace") + +rust_workspace() + +load("//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_raze__fetch_remote_crates") + +proxy_wasm_cpp_host_raze__fetch_remote_crates() + git_repository( name = "com_google_protobuf", commit = "655310ca192a6e3a050e0ca0b7084a2968072260", @@ -51,3 +71,19 @@ http_archive( strip_prefix = "googletest-release-1.10.0", urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], ) + +http_archive( + name = "wasmtime", + build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", + sha256 = "7874feb1026bbef06796bd5ab80e73f15b8e83752bde8dc93994f5bc039a4952", + strip_prefix = "wasmtime-0.21.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.21.0.tar.gz", +) + +http_archive( + name = "wasm_c_api", + build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", + sha256 = "aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c", + strip_prefix = "wasm-c-api-d9a80099d496b5cdba6f3fe8fc77586e0e505ddc", + url = "https://github.com/WebAssembly/wasm-c-api/archive/d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz", +) diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel new file mode 100644 index 000000000..35660e366 --- /dev/null +++ b/bazel/cargo/BUILD.bazel @@ -0,0 +1,76 @@ +""" +@generated +cargo-raze workspace build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +package(default_visibility = ["//visibility:public"]) + +licenses([ + "notice", # See individual crates for specific licenses +]) + +# Aliased targets +alias( + name = "anyhow", + actual = "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "env_logger", + actual = "@proxy_wasm_cpp_host_raze___env_logger__0_8_1//:env_logger", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "indexmap", + actual = "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "object", + actual = "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "once_cell", + actual = "@proxy_wasm_cpp_host_raze___once_cell__1_4_1//:once_cell", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "wasmtime", + actual = "@proxy_wasm_cpp_host_raze___wasmtime__0_21_0//:wasmtime", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "wasmtime_c_api_macros", + actual = "@proxy_wasm_cpp_host_raze___wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros", + tags = [ + "cargo-raze", + "manual", + ], +) diff --git a/bazel/cargo/Cargo.lock b/bazel/cargo/Cargo.lock new file mode 100644 index 000000000..1854b9e1d --- /dev/null +++ b/bazel/cargo/Cargo.lock @@ -0,0 +1,795 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "addr2line" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423" +dependencies = [ + "gimli 0.23.0", +] + +[[package]] +name = "adler" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" + +[[package]] +name = "aho-corasick" +version = "0.7.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" +dependencies = [ + "memchr", +] + +[[package]] +name = "anyhow" +version = "1.0.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "autocfg" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" + +[[package]] +name = "backtrace" +version = "0.3.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28" +dependencies = [ + "addr2line", + "cfg-if 1.0.0", + "libc", + "miniz_oxide", + "object 0.22.0", + "rustc-demangle", +] + +[[package]] +name = "bincode" +version = "1.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d" +dependencies = [ + "byteorder", + "serde", +] + +[[package]] +name = "bitflags" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" + +[[package]] +name = "byteorder" +version = "1.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" + +[[package]] +name = "cc" +version = "1.0.62" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40" + +[[package]] +name = "cfg-if" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "cranelift-bforest" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9221545c0507dc08a62b2d8b5ffe8e17ac580b0a74d1813b496b8d70b070fbd0" +dependencies = [ + "cranelift-entity", +] + +[[package]] +name = "cranelift-codegen" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7e9936ea608b6cd176f107037f6adbb4deac933466fc7231154f96598b2d3ab1" +dependencies = [ + "byteorder", + "cranelift-bforest", + "cranelift-codegen-meta", + "cranelift-codegen-shared", + "cranelift-entity", + "gimli 0.22.0", + "log", + "regalloc", + "serde", + "smallvec", + "target-lexicon", + "thiserror", +] + +[[package]] +name = "cranelift-codegen-meta" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ef2b2768568306540f4c8db3acce9105534d34c4a1e440529c1e702d7f8c8d7" +dependencies = [ + "cranelift-codegen-shared", + "cranelift-entity", +] + +[[package]] +name = "cranelift-codegen-shared" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6759012d6d19c4caec95793f052613e9d4113e925e7f14154defbac0f1d4c938" + +[[package]] +name = "cranelift-entity" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "86badbce14e15f52a45b666b38abe47b204969dd7f8fb7488cb55dd46b361fa6" +dependencies = [ + "serde", +] + +[[package]] +name = "cranelift-frontend" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b608bb7656c554d0a4cf8f50c7a10b857e80306f6ff829ad6d468a7e2323c8d8" +dependencies = [ + "cranelift-codegen", + "log", + "smallvec", + "target-lexicon", +] + +[[package]] +name = "cranelift-native" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5246a1af14b7812ee4d94a3f0c4b295ec02c370c08b0ecc3dec512890fdad175" +dependencies = [ + "cranelift-codegen", + "raw-cpuid", + "target-lexicon", +] + +[[package]] +name = "cranelift-wasm" +version = "0.68.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ef491714e82f9fb910547e2047a3b1c47c03861eca67540c5abd0416371a2ac" +dependencies = [ + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "itertools", + "log", + "serde", + "smallvec", + "thiserror", + "wasmparser 0.65.0", +] + +[[package]] +name = "crc32fast" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a" +dependencies = [ + "cfg-if 1.0.0", +] + +[[package]] +name = "either" +version = "1.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" + +[[package]] +name = "env_logger" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd" +dependencies = [ + "atty", + "humantime", + "log", + "regex", + "termcolor", +] + +[[package]] +name = "fallible-iterator" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" + +[[package]] +name = "gimli" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724" +dependencies = [ + "fallible-iterator", + "indexmap", + "stable_deref_trait", +] + +[[package]] +name = "gimli" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" + +[[package]] +name = "hermit-abi" +version = "0.1.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8" +dependencies = [ + "libc", +] + +[[package]] +name = "humantime" +version = "2.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a" + +[[package]] +name = "indexmap" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356" +dependencies = [ + "serde", +] + +[[package]] +name = "itertools" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" +dependencies = [ + "either", +] + +[[package]] +name = "lazy_static" +version = "1.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" + +[[package]] +name = "libc" +version = "0.2.80" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" + +[[package]] +name = "log" +version = "0.4.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +dependencies = [ + "cfg-if 0.1.10", +] + +[[package]] +name = "mach" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +dependencies = [ + "libc", +] + +[[package]] +name = "memchr" +version = "2.3.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" + +[[package]] +name = "memoffset" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa" +dependencies = [ + "autocfg", +] + +[[package]] +name = "miniz_oxide" +version = "0.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d" +dependencies = [ + "adler", + "autocfg", +] + +[[package]] +name = "more-asserts" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" + +[[package]] +name = "object" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693" +dependencies = [ + "crc32fast", + "indexmap", + "wasmparser 0.57.0", +] + +[[package]] +name = "object" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397" + +[[package]] +name = "once_cell" +version = "1.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad" + +[[package]] +name = "proc-macro2" +version = "1.0.24" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "psm" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5" +dependencies = [ + "cc", +] + +[[package]] +name = "quote" +version = "1.0.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "raw-cpuid" +version = "7.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf" +dependencies = [ + "bitflags", + "cc", + "rustc_version", +] + +[[package]] +name = "regalloc" +version = "0.0.31" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" +dependencies = [ + "log", + "rustc-hash", + "smallvec", +] + +[[package]] +name = "regex" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c" +dependencies = [ + "aho-corasick", + "memchr", + "regex-syntax", + "thread_local", +] + +[[package]] +name = "regex-syntax" +version = "0.6.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" + +[[package]] +name = "region" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0" +dependencies = [ + "bitflags", + "libc", + "mach", + "winapi", +] + +[[package]] +name = "rustc-demangle" +version = "0.1.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232" + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" + +[[package]] +name = "rustc_version" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" +dependencies = [ + "semver", +] + +[[package]] +name = "semver" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" +dependencies = [ + "semver-parser", +] + +[[package]] +name = "semver-parser" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" + +[[package]] +name = "serde" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" +dependencies = [ + "serde_derive", +] + +[[package]] +name = "serde_derive" +version = "1.0.117" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "smallvec" +version = "1.4.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252" + +[[package]] +name = "stable_deref_trait" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" + +[[package]] +name = "syn" +version = "1.0.48" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "target-lexicon" +version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9" + +[[package]] +name = "termcolor" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f" +dependencies = [ + "winapi-util", +] + +[[package]] +name = "thiserror" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "thread_local" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" +dependencies = [ + "lazy_static", +] + +[[package]] +name = "unicode-xid" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" + +[[package]] +name = "wasmparser" +version = "0.57.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6" + +[[package]] +name = "wasmparser" +version = "0.65.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc2fe6350834b4e528ba0901e7aa405d78b89dc1fa3145359eb4de0e323fcf" + +[[package]] +name = "wasmtime" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7a4d945221f4d29feecdac80514c1ef1527dfcdcc7715ff1b4a5161fe5c8ebab" +dependencies = [ + "anyhow", + "backtrace", + "bincode", + "cfg-if 1.0.0", + "lazy_static", + "libc", + "log", + "region", + "rustc-demangle", + "serde", + "smallvec", + "target-lexicon", + "wasmparser 0.65.0", + "wasmtime-environ", + "wasmtime-jit", + "wasmtime-profiling", + "wasmtime-runtime", + "winapi", +] + +[[package]] +name = "wasmtime-c-api-bazel" +version = "0.21.0" +dependencies = [ + "anyhow", + "env_logger", + "indexmap", + "object 0.21.1", + "once_cell", + "wasmtime", + "wasmtime-c-api-macros", +] + +[[package]] +name = "wasmtime-c-api-macros" +version = "0.19.0" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.21.0#ab1958434a2b7a5b07d197e71b88200d9e06e026" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "wasmtime-cranelift" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1e55c17317922951a9bdd5547b527d2cc7be3cea118dc17ad7c05a4c8e67c7a" +dependencies = [ + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "cranelift-wasm", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-debug" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a576daa6b228f8663c38bede2f7f23d094d578b0061c39fc122cc28eee1e2c18" +dependencies = [ + "anyhow", + "gimli 0.22.0", + "more-asserts", + "object 0.21.1", + "target-lexicon", + "thiserror", + "wasmparser 0.65.0", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-environ" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307" +dependencies = [ + "anyhow", + "cfg-if 1.0.0", + "cranelift-codegen", + "cranelift-entity", + "cranelift-wasm", + "gimli 0.22.0", + "indexmap", + "log", + "more-asserts", + "serde", + "thiserror", + "wasmparser 0.65.0", +] + +[[package]] +name = "wasmtime-jit" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50" +dependencies = [ + "anyhow", + "cfg-if 1.0.0", + "cranelift-codegen", + "cranelift-entity", + "cranelift-frontend", + "cranelift-native", + "cranelift-wasm", + "gimli 0.22.0", + "log", + "more-asserts", + "object 0.21.1", + "region", + "serde", + "target-lexicon", + "thiserror", + "wasmparser 0.65.0", + "wasmtime-cranelift", + "wasmtime-debug", + "wasmtime-environ", + "wasmtime-obj", + "wasmtime-profiling", + "wasmtime-runtime", + "winapi", +] + +[[package]] +name = "wasmtime-obj" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a84aebe3b4331a603625f069944192fa3f6ffe499802ef91273fd73af9a8087d" +dependencies = [ + "anyhow", + "more-asserts", + "object 0.21.1", + "target-lexicon", + "wasmtime-debug", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-profiling" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c" +dependencies = [ + "anyhow", + "cfg-if 1.0.0", + "lazy_static", + "libc", + "serde", + "target-lexicon", + "wasmtime-environ", + "wasmtime-runtime", +] + +[[package]] +name = "wasmtime-runtime" +version = "0.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c" +dependencies = [ + "backtrace", + "cc", + "cfg-if 1.0.0", + "indexmap", + "lazy_static", + "libc", + "log", + "memoffset", + "more-asserts", + "psm", + "region", + "thiserror", + "wasmtime-environ", + "winapi", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-util" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +dependencies = [ + "winapi", +] + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml new file mode 100644 index 000000000..2461eed30 --- /dev/null +++ b/bazel/cargo/Cargo.toml @@ -0,0 +1,68 @@ +[package] +edition = "2018" +name = "wasmtime-c-api-bazel" +version = "0.21.0" + +[lib] +crate-type = ["staticlib", "cdylib"] +doc = false +doctest = false +name = "wasmtime" +path = "src/lib.rs" +proc-macro = true +test = false + +[dependencies] +anyhow = "1.0" +env_logger = "0.8" +indexmap = {version = "=1.1.0", features = ["serde-1"]} +object = {version = "=0.21.1", default-features = false, features = ["write"]} +once_cell = "1.3" +wasmtime = {version = "0.21.0", default-features = false} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.21.0", path = "crates/c-api/macros"} + +[raze] +gen_workspace_prefix = "proxy_wasm_cpp_host_raze_" +genmode = "Remote" +workspace_path = "//bazel/cargo" + +[raze.crates.target-lexicon.'0.11.1'] +additional_flags = [ + "--cfg=feature=\\\"force_unix_path_separator\\\"", +] +gen_buildrs = true + +[raze.crates.proc-macro2.'1.0.24'] +additional_flags = [ + "--cfg=use_proc_macro", +] + +[raze.crates.log.'0.4.11'] +additional_flags = [ + "--cfg=atomic_cas", +] + +[raze.crates.indexmap.'1.1.0'] +additional_flags = [ + "--cfg=feature=\\\"serde-1\\\"", +] + +[raze.crates.raw-cpuid.'7.0.3'] +additional_flags = [ + "--cfg=feature=\\\"bindgen\\\"", +] +gen_buildrs = true + +[raze.crates.cranelift-codegen.'0.68.0'] +additional_flags = [ + "--cfg=feature=\\\"enable-serde\\\"", + "--cfg=feature=\\\"bindgen\\\"", +] +gen_buildrs = true + +[raze.crates.psm.'0.1.11'] +additional_flags = [ + "--cfg=asm", + "--cfg=feature=\\\"bindgen\\\"", +] +gen_buildrs = true diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl new file mode 100644 index 000000000..b7d1121ce --- /dev/null +++ b/bazel/cargo/crates.bzl @@ -0,0 +1,821 @@ +""" +@generated +cargo-raze crate workspace functions + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load + +def proxy_wasm_cpp_host_raze__fetch_remote_crates(): + """This function defines a collection of repos and should be called in a WORKSPACE file""" + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___addr2line__0_14_0", + url = "https://crates.io/api/v1/crates/addr2line/0.14.0/download", + type = "tar.gz", + sha256 = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423", + strip_prefix = "addr2line-0.14.0", + build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.14.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___adler__0_2_3", + url = "https://crates.io/api/v1/crates/adler/0.2.3/download", + type = "tar.gz", + sha256 = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e", + strip_prefix = "adler-0.2.3", + build_file = Label("//bazel/cargo/remote:BUILD.adler-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___aho_corasick__0_7_15", + url = "https://crates.io/api/v1/crates/aho-corasick/0.7.15/download", + type = "tar.gz", + sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", + strip_prefix = "aho-corasick-0.7.15", + build_file = Label("//bazel/cargo/remote:BUILD.aho-corasick-0.7.15.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___anyhow__1_0_34", + url = "https://crates.io/api/v1/crates/anyhow/1.0.34/download", + type = "tar.gz", + sha256 = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7", + strip_prefix = "anyhow-1.0.34", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.34.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___atty__0_2_14", + url = "https://crates.io/api/v1/crates/atty/0.2.14/download", + type = "tar.gz", + sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", + strip_prefix = "atty-0.2.14", + build_file = Label("//bazel/cargo/remote:BUILD.atty-0.2.14.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___autocfg__1_0_1", + url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", + type = "tar.gz", + sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", + strip_prefix = "autocfg-1.0.1", + build_file = Label("//bazel/cargo/remote:BUILD.autocfg-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___backtrace__0_3_54", + url = "https://crates.io/api/v1/crates/backtrace/0.3.54/download", + type = "tar.gz", + sha256 = "2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28", + strip_prefix = "backtrace-0.3.54", + build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.54.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___bincode__1_3_1", + url = "https://crates.io/api/v1/crates/bincode/1.3.1/download", + type = "tar.gz", + sha256 = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d", + strip_prefix = "bincode-1.3.1", + build_file = Label("//bazel/cargo/remote:BUILD.bincode-1.3.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___bitflags__1_2_1", + url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download", + type = "tar.gz", + sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693", + strip_prefix = "bitflags-1.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___byteorder__1_3_4", + url = "https://crates.io/api/v1/crates/byteorder/1.3.4/download", + type = "tar.gz", + sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", + strip_prefix = "byteorder-1.3.4", + build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.3.4.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cc__1_0_62", + url = "https://crates.io/api/v1/crates/cc/1.0.62/download", + type = "tar.gz", + sha256 = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40", + strip_prefix = "cc-1.0.62", + build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.62.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cfg_if__0_1_10", + url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", + type = "tar.gz", + sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", + strip_prefix = "cfg-if-0.1.10", + build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-0.1.10.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cfg_if__1_0_0", + url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", + type = "tar.gz", + sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", + strip_prefix = "cfg-if-1.0.0", + build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_bforest__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.68.0/download", + type = "tar.gz", + sha256 = "9221545c0507dc08a62b2d8b5ffe8e17ac580b0a74d1813b496b8d70b070fbd0", + strip_prefix = "cranelift-bforest-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.68.0/download", + type = "tar.gz", + sha256 = "7e9936ea608b6cd176f107037f6adbb4deac933466fc7231154f96598b2d3ab1", + strip_prefix = "cranelift-codegen-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_codegen_meta__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.68.0/download", + type = "tar.gz", + sha256 = "4ef2b2768568306540f4c8db3acce9105534d34c4a1e440529c1e702d7f8c8d7", + strip_prefix = "cranelift-codegen-meta-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.68.0/download", + type = "tar.gz", + sha256 = "6759012d6d19c4caec95793f052613e9d4113e925e7f14154defbac0f1d4c938", + strip_prefix = "cranelift-codegen-shared-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.68.0/download", + type = "tar.gz", + sha256 = "86badbce14e15f52a45b666b38abe47b204969dd7f8fb7488cb55dd46b361fa6", + strip_prefix = "cranelift-entity-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.68.0/download", + type = "tar.gz", + sha256 = "b608bb7656c554d0a4cf8f50c7a10b857e80306f6ff829ad6d468a7e2323c8d8", + strip_prefix = "cranelift-frontend-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_native__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.68.0/download", + type = "tar.gz", + sha256 = "5246a1af14b7812ee4d94a3f0c4b295ec02c370c08b0ecc3dec512890fdad175", + strip_prefix = "cranelift-native-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.68.0/download", + type = "tar.gz", + sha256 = "8ef491714e82f9fb910547e2047a3b1c47c03861eca67540c5abd0416371a2ac", + strip_prefix = "cranelift-wasm-0.68.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.68.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___crc32fast__1_2_1", + url = "https://crates.io/api/v1/crates/crc32fast/1.2.1/download", + type = "tar.gz", + sha256 = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a", + strip_prefix = "crc32fast-1.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.crc32fast-1.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___either__1_6_1", + url = "https://crates.io/api/v1/crates/either/1.6.1/download", + type = "tar.gz", + sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", + strip_prefix = "either-1.6.1", + build_file = Label("//bazel/cargo/remote:BUILD.either-1.6.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___env_logger__0_8_1", + url = "https://crates.io/api/v1/crates/env_logger/0.8.1/download", + type = "tar.gz", + sha256 = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd", + strip_prefix = "env_logger-0.8.1", + build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___fallible_iterator__0_2_0", + url = "https://crates.io/api/v1/crates/fallible-iterator/0.2.0/download", + type = "tar.gz", + sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", + strip_prefix = "fallible-iterator-0.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.fallible-iterator-0.2.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___gimli__0_22_0", + url = "https://crates.io/api/v1/crates/gimli/0.22.0/download", + type = "tar.gz", + sha256 = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724", + strip_prefix = "gimli-0.22.0", + build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.22.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___gimli__0_23_0", + url = "https://crates.io/api/v1/crates/gimli/0.23.0/download", + type = "tar.gz", + sha256 = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce", + strip_prefix = "gimli-0.23.0", + build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.23.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___hermit_abi__0_1_17", + url = "https://crates.io/api/v1/crates/hermit-abi/0.1.17/download", + type = "tar.gz", + sha256 = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8", + strip_prefix = "hermit-abi-0.1.17", + build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.17.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___humantime__2_0_1", + url = "https://crates.io/api/v1/crates/humantime/2.0.1/download", + type = "tar.gz", + sha256 = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a", + strip_prefix = "humantime-2.0.1", + build_file = Label("//bazel/cargo/remote:BUILD.humantime-2.0.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___indexmap__1_1_0", + url = "https://crates.io/api/v1/crates/indexmap/1.1.0/download", + type = "tar.gz", + sha256 = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356", + strip_prefix = "indexmap-1.1.0", + build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___itertools__0_9_0", + url = "https://crates.io/api/v1/crates/itertools/0.9.0/download", + type = "tar.gz", + sha256 = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b", + strip_prefix = "itertools-0.9.0", + build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___lazy_static__1_4_0", + url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", + type = "tar.gz", + sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", + strip_prefix = "lazy_static-1.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.lazy_static-1.4.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___libc__0_2_80", + url = "https://crates.io/api/v1/crates/libc/0.2.80/download", + type = "tar.gz", + sha256 = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614", + strip_prefix = "libc-0.2.80", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.80.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___log__0_4_11", + url = "https://crates.io/api/v1/crates/log/0.4.11/download", + type = "tar.gz", + sha256 = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b", + strip_prefix = "log-0.4.11", + build_file = Label("//bazel/cargo/remote:BUILD.log-0.4.11.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___mach__0_3_2", + url = "https://crates.io/api/v1/crates/mach/0.3.2/download", + type = "tar.gz", + sha256 = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa", + strip_prefix = "mach-0.3.2", + build_file = Label("//bazel/cargo/remote:BUILD.mach-0.3.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___memchr__2_3_4", + url = "https://crates.io/api/v1/crates/memchr/2.3.4/download", + type = "tar.gz", + sha256 = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525", + strip_prefix = "memchr-2.3.4", + build_file = Label("//bazel/cargo/remote:BUILD.memchr-2.3.4.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___memoffset__0_5_6", + url = "https://crates.io/api/v1/crates/memoffset/0.5.6/download", + type = "tar.gz", + sha256 = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa", + strip_prefix = "memoffset-0.5.6", + build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.5.6.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___miniz_oxide__0_4_3", + url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.3/download", + type = "tar.gz", + sha256 = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d", + strip_prefix = "miniz_oxide-0.4.3", + build_file = Label("//bazel/cargo/remote:BUILD.miniz_oxide-0.4.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___more_asserts__0_2_1", + url = "https://crates.io/api/v1/crates/more-asserts/0.2.1/download", + type = "tar.gz", + sha256 = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238", + strip_prefix = "more-asserts-0.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.more-asserts-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___object__0_21_1", + url = "https://crates.io/api/v1/crates/object/0.21.1/download", + type = "tar.gz", + sha256 = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693", + strip_prefix = "object-0.21.1", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.21.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___object__0_22_0", + url = "https://crates.io/api/v1/crates/object/0.22.0/download", + type = "tar.gz", + sha256 = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397", + strip_prefix = "object-0.22.0", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.22.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___once_cell__1_4_1", + url = "https://crates.io/api/v1/crates/once_cell/1.4.1/download", + type = "tar.gz", + sha256 = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad", + strip_prefix = "once_cell-1.4.1", + build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.4.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___proc_macro2__1_0_24", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.24/download", + type = "tar.gz", + sha256 = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71", + strip_prefix = "proc-macro2-1.0.24", + build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.24.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___psm__0_1_11", + url = "https://crates.io/api/v1/crates/psm/0.1.11/download", + type = "tar.gz", + sha256 = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5", + strip_prefix = "psm-0.1.11", + build_file = Label("//bazel/cargo/remote:BUILD.psm-0.1.11.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___quote__1_0_7", + url = "https://crates.io/api/v1/crates/quote/1.0.7/download", + type = "tar.gz", + sha256 = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37", + strip_prefix = "quote-1.0.7", + build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.7.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___raw_cpuid__7_0_3", + url = "https://crates.io/api/v1/crates/raw-cpuid/7.0.3/download", + type = "tar.gz", + sha256 = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf", + strip_prefix = "raw-cpuid-7.0.3", + build_file = Label("//bazel/cargo/remote:BUILD.raw-cpuid-7.0.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___regalloc__0_0_31", + url = "https://crates.io/api/v1/crates/regalloc/0.0.31/download", + type = "tar.gz", + sha256 = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5", + strip_prefix = "regalloc-0.0.31", + build_file = Label("//bazel/cargo/remote:BUILD.regalloc-0.0.31.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___regex__1_4_2", + url = "https://crates.io/api/v1/crates/regex/1.4.2/download", + type = "tar.gz", + sha256 = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c", + strip_prefix = "regex-1.4.2", + build_file = Label("//bazel/cargo/remote:BUILD.regex-1.4.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___regex_syntax__0_6_21", + url = "https://crates.io/api/v1/crates/regex-syntax/0.6.21/download", + type = "tar.gz", + sha256 = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189", + strip_prefix = "regex-syntax-0.6.21", + build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.21.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___region__2_2_0", + url = "https://crates.io/api/v1/crates/region/2.2.0/download", + type = "tar.gz", + sha256 = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0", + strip_prefix = "region-2.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.region-2.2.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18", + url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.18/download", + type = "tar.gz", + sha256 = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232", + strip_prefix = "rustc-demangle-0.1.18", + build_file = Label("//bazel/cargo/remote:BUILD.rustc-demangle-0.1.18.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___rustc_hash__1_1_0", + url = "https://crates.io/api/v1/crates/rustc-hash/1.1.0/download", + type = "tar.gz", + sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", + strip_prefix = "rustc-hash-1.1.0", + build_file = Label("//bazel/cargo/remote:BUILD.rustc-hash-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___rustc_version__0_2_3", + url = "https://crates.io/api/v1/crates/rustc_version/0.2.3/download", + type = "tar.gz", + sha256 = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a", + strip_prefix = "rustc_version-0.2.3", + build_file = Label("//bazel/cargo/remote:BUILD.rustc_version-0.2.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___semver__0_9_0", + url = "https://crates.io/api/v1/crates/semver/0.9.0/download", + type = "tar.gz", + sha256 = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403", + strip_prefix = "semver-0.9.0", + build_file = Label("//bazel/cargo/remote:BUILD.semver-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___semver_parser__0_7_0", + url = "https://crates.io/api/v1/crates/semver-parser/0.7.0/download", + type = "tar.gz", + sha256 = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3", + strip_prefix = "semver-parser-0.7.0", + build_file = Label("//bazel/cargo/remote:BUILD.semver-parser-0.7.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___serde__1_0_117", + url = "https://crates.io/api/v1/crates/serde/1.0.117/download", + type = "tar.gz", + sha256 = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a", + strip_prefix = "serde-1.0.117", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.117.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___serde_derive__1_0_117", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.117/download", + type = "tar.gz", + sha256 = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e", + strip_prefix = "serde_derive-1.0.117", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.117.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___smallvec__1_4_2", + url = "https://crates.io/api/v1/crates/smallvec/1.4.2/download", + type = "tar.gz", + sha256 = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252", + strip_prefix = "smallvec-1.4.2", + build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.4.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___stable_deref_trait__1_2_0", + url = "https://crates.io/api/v1/crates/stable_deref_trait/1.2.0/download", + type = "tar.gz", + sha256 = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3", + strip_prefix = "stable_deref_trait-1.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.stable_deref_trait-1.2.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___syn__1_0_48", + url = "https://crates.io/api/v1/crates/syn/1.0.48/download", + type = "tar.gz", + sha256 = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac", + strip_prefix = "syn-1.0.48", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.48.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___target_lexicon__0_11_1", + url = "https://crates.io/api/v1/crates/target-lexicon/0.11.1/download", + type = "tar.gz", + sha256 = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9", + strip_prefix = "target-lexicon-0.11.1", + build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.11.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___termcolor__1_1_0", + url = "https://crates.io/api/v1/crates/termcolor/1.1.0/download", + type = "tar.gz", + sha256 = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f", + strip_prefix = "termcolor-1.1.0", + build_file = Label("//bazel/cargo/remote:BUILD.termcolor-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___thiserror__1_0_22", + url = "https://crates.io/api/v1/crates/thiserror/1.0.22/download", + type = "tar.gz", + sha256 = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e", + strip_prefix = "thiserror-1.0.22", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.22.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___thiserror_impl__1_0_22", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.22/download", + type = "tar.gz", + sha256 = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56", + strip_prefix = "thiserror-impl-1.0.22", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.22.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___thread_local__1_0_1", + url = "https://crates.io/api/v1/crates/thread_local/1.0.1/download", + type = "tar.gz", + sha256 = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14", + strip_prefix = "thread_local-1.0.1", + build_file = Label("//bazel/cargo/remote:BUILD.thread_local-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___unicode_xid__0_2_1", + url = "https://crates.io/api/v1/crates/unicode-xid/0.2.1/download", + type = "tar.gz", + sha256 = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564", + strip_prefix = "unicode-xid-0.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.unicode-xid-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmparser__0_57_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.57.0/download", + type = "tar.gz", + sha256 = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6", + strip_prefix = "wasmparser-0.57.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.57.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmparser__0_65_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.65.0/download", + type = "tar.gz", + sha256 = "87cc2fe6350834b4e528ba0901e7aa405d78b89dc1fa3145359eb4de0e323fcf", + strip_prefix = "wasmparser-0.65.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.65.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.21.0/download", + type = "tar.gz", + sha256 = "7a4d945221f4d29feecdac80514c1ef1527dfcdcc7715ff1b4a5161fe5c8ebab", + strip_prefix = "wasmtime-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.21.0.bazel"), + ) + + maybe( + new_git_repository, + name = "proxy_wasm_cpp_host_raze___wasmtime_c_api_macros__0_19_0", + remote = "https://github.com/bytecodealliance/wasmtime", + commit = "ab1958434a2b7a5b07d197e71b88200d9e06e026", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), + init_submodules = True, + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_cranelift__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.21.0/download", + type = "tar.gz", + sha256 = "f1e55c17317922951a9bdd5547b527d2cc7be3cea118dc17ad7c05a4c8e67c7a", + strip_prefix = "wasmtime-cranelift-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-debug/0.21.0/download", + type = "tar.gz", + sha256 = "a576daa6b228f8663c38bede2f7f23d094d578b0061c39fc122cc28eee1e2c18", + strip_prefix = "wasmtime-debug-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-debug-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.21.0/download", + type = "tar.gz", + sha256 = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307", + strip_prefix = "wasmtime-environ-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_jit__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.21.0/download", + type = "tar.gz", + sha256 = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50", + strip_prefix = "wasmtime-jit-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_obj__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-obj/0.21.0/download", + type = "tar.gz", + sha256 = "a84aebe3b4331a603625f069944192fa3f6ffe499802ef91273fd73af9a8087d", + strip_prefix = "wasmtime-obj-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-obj-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.21.0/download", + type = "tar.gz", + sha256 = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c", + strip_prefix = "wasmtime-profiling-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-profiling-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.21.0/download", + type = "tar.gz", + sha256 = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c", + strip_prefix = "wasmtime-runtime-0.21.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.21.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi__0_3_9", + url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", + type = "tar.gz", + sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", + strip_prefix = "winapi-0.3.9", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi_i686_pc_windows_gnu__0_4_0", + url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", + type = "tar.gz", + sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", + strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi_util__0_1_5", + url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", + type = "tar.gz", + sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", + strip_prefix = "winapi-util-0.1.5", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-util-0.1.5.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host_raze___winapi_x86_64_pc_windows_gnu__0_4_0", + url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", + type = "tar.gz", + sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", + strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + ) diff --git a/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel b/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel new file mode 100644 index 000000000..8e672af0f --- /dev/null +++ b/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "addr2line" with type "example" omitted + +rust_library( + name = "addr2line", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.14.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___gimli__0_23_0//:gimli", + ], +) + +# Unsupported target "correctness" with type "test" omitted + +# Unsupported target "output_equivalence" with type "test" omitted + +# Unsupported target "parse" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel new file mode 100644 index 000000000..7b70ba01a --- /dev/null +++ b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "0BSD OR (MIT OR Apache-2.0)" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "adler", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.3", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel new file mode 100644 index 000000000..b512eb895 --- /dev/null +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +rust_library( + name = "aho_corasick", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.15", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___memchr__2_3_4//:memchr", + ], +) diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel new file mode 100644 index 000000000..29f953abf --- /dev/null +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel @@ -0,0 +1,80 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "anyhow", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.34", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_autotrait" with type "test" omitted + +# Unsupported target "test_backtrace" with type "test" omitted + +# Unsupported target "test_boxed" with type "test" omitted + +# Unsupported target "test_chain" with type "test" omitted + +# Unsupported target "test_context" with type "test" omitted + +# Unsupported target "test_convert" with type "test" omitted + +# Unsupported target "test_downcast" with type "test" omitted + +# Unsupported target "test_fmt" with type "test" omitted + +# Unsupported target "test_macros" with type "test" omitted + +# Unsupported target "test_repr" with type "test" omitted + +# Unsupported target "test_source" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel new file mode 100644 index 000000000..1a8a6392e --- /dev/null +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -0,0 +1,87 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "atty" with type "example" omitted + +rust_library( + name = "atty", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.14", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(unix) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", + "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:i686-linux-android", + "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel new file mode 100644 index 000000000..e7de20ab2 --- /dev/null +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "integers" with type "example" omitted + +# Unsupported target "paths" with type "example" omitted + +# Unsupported target "traits" with type "example" omitted + +# Unsupported target "versions" with type "example" omitted + +rust_library( + name = "autocfg", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "rustflags" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel new file mode 100644 index 000000000..825595e80 --- /dev/null +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "benchmarks" with type "bench" omitted + +# Unsupported target "backtrace" with type "example" omitted + +# Unsupported target "raw" with type "example" omitted + +rust_library( + name = "backtrace", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "addr2line", + "default", + "gimli-symbolize", + "miniz_oxide", + "object", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.54", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___addr2line__0_14_0//:addr2line", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___miniz_oxide__0_4_3//:miniz_oxide", + "@proxy_wasm_cpp_host_raze___object__0_22_0//:object", + "@proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18//:rustc_demangle", + ] + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "accuracy" with type "test" omitted + +# Unsupported target "concurrent-panics" with type "test" omitted + +# Unsupported target "long_fn_name" with type "test" omitted + +# Unsupported target "skip_inner_frames" with type "test" omitted + +# Unsupported target "smoke" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.bazel b/bazel/cargo/remote/BUILD.bazel new file mode 100644 index 000000000..e69de29bb diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel new file mode 100644 index 000000000..06e7de23f --- /dev/null +++ b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "bincode", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel new file mode 100644 index 000000000..f83a025bd --- /dev/null +++ b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "bitflags", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel b/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel new file mode 100644 index 000000000..9329b7930 --- /dev/null +++ b/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "byteorder", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.4", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.cc-1.0.62.bazel b/bazel/cargo/remote/BUILD.cc-1.0.62.bazel new file mode 100644 index 000000000..05c8e0993 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cc-1.0.62.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_gcc_shim", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/bin/gcc-shim.rs", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.62", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":cc", + ], +) + +rust_library( + name = "cc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.62", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "cc_env" with type "test" omitted + +# Unsupported target "cflags" with type "test" omitted + +# Unsupported target "cxxflags" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel b/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel new file mode 100644 index 000000000..32abbfaeb --- /dev/null +++ b/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cfg_if", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.10", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 000000000..6e3db87e1 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cfg_if", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel new file mode 100644 index 000000000..a0195b2ea --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_bforest", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel new file mode 100644 index 000000000..9d2c40da6 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel @@ -0,0 +1,106 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "cranelift_codegen_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "enable-serde", + "gimli", + "serde", + "std", + "unwind", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen_meta__0_68_0//:cranelift_codegen_meta", + ], +) + +rust_library( + name = "cranelift_codegen", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "enable-serde", + "gimli", + "serde", + "std", + "unwind", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"enable-serde\"", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + ":cranelift_codegen_build_script", + "@proxy_wasm_cpp_host_raze___byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host_raze___cranelift_bforest__0_68_0//:cranelift_bforest", + "@proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___regalloc__0_0_31//:regalloc", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel new file mode 100644 index 000000000..9973cf865 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_codegen_meta", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel new file mode 100644 index 000000000..112e40aaf --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_codegen_shared", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel new file mode 100644 index 000000000..8eeab0087 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_entity", + srcs = glob(["**/*.rs"]), + crate_features = [ + "enable-serde", + "serde", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel new file mode 100644 index 000000000..8272a3047 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_frontend", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel new file mode 100644 index 000000000..4eebedc80 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel @@ -0,0 +1,76 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_native", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + ] + selects.with_or({ + # cfg(any(target_arch = "x86", target_arch = "x86_64")) + ( + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:i686-linux-android", + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host_raze___raw_cpuid__7_0_3//:raw_cpuid", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel new file mode 100644 index 000000000..a0e0a9cb2 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel @@ -0,0 +1,67 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_wasm", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "enable-serde", + "serde", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.68.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host_raze___itertools__0_9_0//:itertools", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + ], +) + +# Unsupported target "wasm_testsuite" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel new file mode 100644 index 000000000..fddaa77a7 --- /dev/null +++ b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "crc32fast", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + ], +) diff --git a/bazel/cargo/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/remote/BUILD.either-1.6.1.bazel new file mode 100644 index 000000000..712ffc01a --- /dev/null +++ b/bazel/cargo/remote/BUILD.either-1.6.1.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "either", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.6.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel new file mode 100644 index 000000000..7e3dec3bd --- /dev/null +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel @@ -0,0 +1,86 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "custom_default_format" with type "example" omitted + +# Unsupported target "custom_format" with type "example" omitted + +# Unsupported target "custom_logger" with type "example" omitted + +# Unsupported target "default" with type "example" omitted + +# Unsupported target "direct_logger" with type "example" omitted + +# Unsupported target "filters_from_code" with type "example" omitted + +# Unsupported target "in_tests" with type "example" omitted + +# Unsupported target "syslog_friendly_format" with type "example" omitted + +rust_library( + name = "env_logger", + srcs = glob(["**/*.rs"]), + crate_features = [ + "atty", + "default", + "humantime", + "regex", + "termcolor", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___atty__0_2_14//:atty", + "@proxy_wasm_cpp_host_raze___humantime__2_0_1//:humantime", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___regex__1_4_2//:regex", + "@proxy_wasm_cpp_host_raze___termcolor__1_1_0//:termcolor", + ], +) + +# Unsupported target "init-twice-retains-filter" with type "test" omitted + +# Unsupported target "log-in-log" with type "test" omitted + +# Unsupported target "log_tls_dtors" with type "test" omitted + +# Unsupported target "regexp_filter" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel new file mode 100644 index 000000000..e9a0d68df --- /dev/null +++ b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "fallible_iterator", + srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel new file mode 100644 index 000000000..6e2f33808 --- /dev/null +++ b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel @@ -0,0 +1,77 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "dwarf-validate" with type "example" omitted + +# Unsupported target "dwarfdump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "simple_line" with type "example" omitted + +rust_library( + name = "gimli", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "endian-reader", + "fallible-iterator", + "indexmap", + "read", + "stable_deref_trait", + "std", + "write", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.22.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___fallible_iterator__0_2_0//:fallible_iterator", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___stable_deref_trait__1_2_0//:stable_deref_trait", + ], +) + +# Unsupported target "convert_self" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel new file mode 100644 index 000000000..7367e05a6 --- /dev/null +++ b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel @@ -0,0 +1,67 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "dwarf-validate" with type "example" omitted + +# Unsupported target "dwarfdump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "simple_line" with type "example" omitted + +rust_library( + name = "gimli", + srcs = glob(["**/*.rs"]), + crate_features = [ + "read", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.23.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "convert_self" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel new file mode 100644 index 000000000..71bb282fd --- /dev/null +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "hermit_abi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.17", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ], +) diff --git a/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel b/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel new file mode 100644 index 000000000..a19c8e435 --- /dev/null +++ b/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "datetime_format" with type "bench" omitted + +# Unsupported target "datetime_parse" with type "bench" omitted + +rust_library( + name = "humantime", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.0.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel new file mode 100644 index 000000000..01fe69cba --- /dev/null +++ b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "faststring" with type "bench" omitted + +rust_library( + name = "indexmap", + srcs = glob(["**/*.rs"]), + crate_features = [ + "serde", + "serde-1", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"serde-1\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + ], +) + +# Unsupported target "equivalent_trait" with type "test" omitted + +# Unsupported target "quick" with type "test" omitted + +# Unsupported target "serde" with type "test" omitted + +# Unsupported target "tests" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel new file mode 100644 index 000000000..2c204a05e --- /dev/null +++ b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel @@ -0,0 +1,89 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench1" with type "bench" omitted + +# Unsupported target "combinations_with_replacement" with type "bench" omitted + +# Unsupported target "fold_specialization" with type "bench" omitted + +# Unsupported target "tree_fold1" with type "bench" omitted + +# Unsupported target "tuple_combinations" with type "bench" omitted + +# Unsupported target "tuples" with type "bench" omitted + +# Unsupported target "iris" with type "example" omitted + +rust_library( + name = "itertools", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "use_std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___either__1_6_1//:either", + ], +) + +# Unsupported target "adaptors_no_collect" with type "test" omitted + +# Unsupported target "fold_specialization" with type "test" omitted + +# Unsupported target "merge_join" with type "test" omitted + +# Unsupported target "peeking_take_while" with type "test" omitted + +# Unsupported target "quick" with type "test" omitted + +# Unsupported target "specializations" with type "test" omitted + +# Unsupported target "test_core" with type "test" omitted + +# Unsupported target "test_std" with type "test" omitted + +# Unsupported target "tuples" with type "test" omitted + +# Unsupported target "zip" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel new file mode 100644 index 000000000..7587e7fd9 --- /dev/null +++ b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "lazy_static", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "no_std" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.libc-0.2.80.bazel b/bazel/cargo/remote/BUILD.libc-0.2.80.bazel new file mode 100644 index 000000000..838522ff8 --- /dev/null +++ b/bazel/cargo/remote/BUILD.libc-0.2.80.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "libc", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.80", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "const_fn" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.log-0.4.11.bazel b/bazel/cargo/remote/BUILD.log-0.4.11.bazel new file mode 100644 index 000000000..6dfd85e41 --- /dev/null +++ b/bazel/cargo/remote/BUILD.log-0.4.11.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "log", + srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=atomic_cas", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.11", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cfg_if__0_1_10//:cfg_if", + ], +) + +# Unsupported target "filters" with type "test" omitted + +# Unsupported target "macros" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel new file mode 100644 index 000000000..0235f284d --- /dev/null +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "restricted", # BSD-2-Clause from expression "BSD-2-Clause" +]) + +# Generated Targets + +# Unsupported target "dump_process_registers" with type "example" omitted + +rust_library( + name = "mach", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + ): [ + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel new file mode 100644 index 000000000..609a04f72 --- /dev/null +++ b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "memchr", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + "use_std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.3.4", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel new file mode 100644 index 000000000..fcd27b849 --- /dev/null +++ b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "memoffset", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.6", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel new file mode 100644 index 000000000..2ba57dca7 --- /dev/null +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR (Zlib OR Apache-2.0)" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "miniz_oxide", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.3", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___adler__0_2_3//:adler", + ], +) diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel new file mode 100644 index 000000000..cf3ccba1f --- /dev/null +++ b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # CC0-1.0 from expression "CC0-1.0" +]) + +# Generated Targets + +rust_library( + name = "more_asserts", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.object-0.21.1.bazel b/bazel/cargo/remote/BUILD.object-0.21.1.bazel new file mode 100644 index 000000000..13a5d548d --- /dev/null +++ b/bazel/cargo/remote/BUILD.object-0.21.1.bazel @@ -0,0 +1,79 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "nm" with type "example" omitted + +# Unsupported target "objcopy" with type "example" omitted + +# Unsupported target "objdump" with type "example" omitted + +rust_library( + name = "object", + srcs = glob(["**/*.rs"]), + crate_features = [ + "coff", + "crc32fast", + "elf", + "indexmap", + "macho", + "pe", + "read", + "read_core", + "std", + "unaligned", + "wasm", + "wasmparser", + "write", + "write_core", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___crc32fast__1_2_1//:crc32fast", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___wasmparser__0_57_0//:wasmparser", + ], +) + +# Unsupported target "integration" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.object-0.22.0.bazel b/bazel/cargo/remote/BUILD.object-0.22.0.bazel new file mode 100644 index 000000000..0fc165ee0 --- /dev/null +++ b/bazel/cargo/remote/BUILD.object-0.22.0.bazel @@ -0,0 +1,73 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "ar" with type "example" omitted + +# Unsupported target "nm" with type "example" omitted + +# Unsupported target "objcopy" with type "example" omitted + +# Unsupported target "objdump" with type "example" omitted + +# Unsupported target "objectmap" with type "example" omitted + +rust_library( + name = "object", + srcs = glob(["**/*.rs"]), + crate_features = [ + "archive", + "coff", + "elf", + "macho", + "pe", + "read_core", + "unaligned", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.22.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "integration" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel b/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel new file mode 100644 index 000000000..26c675b0e --- /dev/null +++ b/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel @@ -0,0 +1,70 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "example" omitted + +# Unsupported target "bench_acquire" with type "example" omitted + +# Unsupported target "bench_vs_lazy_static" with type "example" omitted + +# Unsupported target "lazy_static" with type "example" omitted + +# Unsupported target "reentrant_init_deadlocks" with type "example" omitted + +# Unsupported target "regex" with type "example" omitted + +# Unsupported target "test_synchronization" with type "example" omitted + +rust_library( + name = "once_cell", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel new file mode 100644 index 000000000..3e5b60aae --- /dev/null +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "proc_macro2", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=use_proc_macro", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.24", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___unicode_xid__0_2_1//:unicode_xid", + ], +) + +# Unsupported target "comments" with type "test" omitted + +# Unsupported target "features" with type "test" omitted + +# Unsupported target "marker" with type "test" omitted + +# Unsupported target "test" with type "test" omitted + +# Unsupported target "test_fmt" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.psm-0.1.11.bazel b/bazel/cargo/remote/BUILD.psm-0.1.11.bazel new file mode 100644 index 000000000..8db8bbb94 --- /dev/null +++ b/bazel/cargo/remote/BUILD.psm-0.1.11.bazel @@ -0,0 +1,99 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "psm_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.11", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host_raze___cc__1_0_62//:cc", + ], +) + +# Unsupported target "info" with type "example" omitted + +# Unsupported target "on_stack_fibo" with type "example" omitted + +# Unsupported target "on_stack_fibo_alloc_each_frame" with type "example" omitted + +# Unsupported target "panics" with type "example" omitted + +# Unsupported target "replace_stack_1" with type "example" omitted + +# Unsupported target "thread" with type "example" omitted + +rust_library( + name = "psm", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=asm", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.11", + # buildifier: leave-alone + deps = [ + ":psm_build_script", + ], +) + +# Unsupported target "stack_direction" with type "test" omitted + +# Unsupported target "stack_direction_2" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.quote-1.0.7.bazel b/bazel/cargo/remote/BUILD.quote-1.0.7.bazel new file mode 100644 index 000000000..e00e89b69 --- /dev/null +++ b/bazel/cargo/remote/BUILD.quote-1.0.7.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "quote", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.7", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel new file mode 100644 index 000000000..8b473a75c --- /dev/null +++ b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel @@ -0,0 +1,186 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "raw_cpuid_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "7.0.3", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host_raze___cc__1_0_62//:cc", + "@proxy_wasm_cpp_host_raze___rustc_version__0_2_3//:rustc_version", + ] + selects.with_or({ + # cfg(unix) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", + "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:i686-linux-android", + "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }), +) + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_cpuid", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/bin/cpuid.rs", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "7.0.3", + # buildifier: leave-alone + deps = [ + # Binaries get an implicit dependency on their crate's lib + ":raw_cpuid", + ":raw_cpuid_build_script", + "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + ] + selects.with_or({ + # cfg(unix) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", + "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:i686-linux-android", + "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "cache" with type "example" omitted + +# Unsupported target "cpu" with type "example" omitted + +# Unsupported target "topology" with type "example" omitted + +# Unsupported target "tsc_frequency" with type "example" omitted + +rust_library( + name = "raw_cpuid", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"bindgen\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "7.0.3", + # buildifier: leave-alone + deps = [ + ":raw_cpuid_build_script", + "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + ] + selects.with_or({ + # cfg(unix) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", + "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:i686-linux-android", + "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", + "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel new file mode 100644 index 000000000..f51d1d49b --- /dev/null +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "regalloc", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.0.31", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___rustc_hash__1_1_0//:rustc_hash", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + ], +) diff --git a/bazel/cargo/remote/BUILD.regex-1.4.2.bazel b/bazel/cargo/remote/BUILD.regex-1.4.2.bazel new file mode 100644 index 000000000..d87e8e31e --- /dev/null +++ b/bazel/cargo/remote/BUILD.regex-1.4.2.bazel @@ -0,0 +1,95 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "shootout-regex-dna" with type "example" omitted + +# Unsupported target "shootout-regex-dna-bytes" with type "example" omitted + +# Unsupported target "shootout-regex-dna-cheat" with type "example" omitted + +# Unsupported target "shootout-regex-dna-replace" with type "example" omitted + +# Unsupported target "shootout-regex-dna-single" with type "example" omitted + +# Unsupported target "shootout-regex-dna-single-cheat" with type "example" omitted + +rust_library( + name = "regex", + srcs = glob(["**/*.rs"]), + crate_features = [ + "aho-corasick", + "memchr", + "perf", + "perf-cache", + "perf-dfa", + "perf-inline", + "perf-literal", + "std", + "thread_local", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.2", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___aho_corasick__0_7_15//:aho_corasick", + "@proxy_wasm_cpp_host_raze___memchr__2_3_4//:memchr", + "@proxy_wasm_cpp_host_raze___regex_syntax__0_6_21//:regex_syntax", + "@proxy_wasm_cpp_host_raze___thread_local__1_0_1//:thread_local", + ], +) + +# Unsupported target "backtrack" with type "test" omitted + +# Unsupported target "backtrack-bytes" with type "test" omitted + +# Unsupported target "backtrack-utf8bytes" with type "test" omitted + +# Unsupported target "crates-regex" with type "test" omitted + +# Unsupported target "default" with type "test" omitted + +# Unsupported target "default-bytes" with type "test" omitted + +# Unsupported target "nfa" with type "test" omitted + +# Unsupported target "nfa-bytes" with type "test" omitted + +# Unsupported target "nfa-utf8bytes" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel new file mode 100644 index 000000000..0ba2aa07b --- /dev/null +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "regex_syntax", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.6.21", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel new file mode 100644 index 000000000..f2b384bda --- /dev/null +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -0,0 +1,76 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "region", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.2.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + ] + selects.with_or({ + # cfg(any(target_os = "macos", target_os = "ios")) + ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", + "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", + "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + ): [ + "@proxy_wasm_cpp_host_raze___mach__0_3_2//:mach", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel new file mode 100644 index 000000000..94aa88801 --- /dev/null +++ b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "rustc_demangle", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.18", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel new file mode 100644 index 000000000..cf73dd69a --- /dev/null +++ b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +rust_library( + name = "rustc_hash", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel new file mode 100644 index 000000000..ee1d731cf --- /dev/null +++ b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "rustc_version", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.3", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___semver__0_9_0//:semver", + ], +) diff --git a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel new file mode 100644 index 000000000..b50520c54 --- /dev/null +++ b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "semver", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___semver_parser__0_7_0//:semver_parser", + ], +) + +# Unsupported target "deprecation" with type "test" omitted + +# Unsupported target "regression" with type "test" omitted + +# Unsupported target "serde" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel new file mode 100644 index 000000000..7d54b9362 --- /dev/null +++ b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel @@ -0,0 +1,52 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "semver_parser", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.serde-1.0.117.bazel b/bazel/cargo/remote/BUILD.serde-1.0.117.bazel new file mode 100644 index 000000000..0134fe601 --- /dev/null +++ b/bazel/cargo/remote/BUILD.serde-1.0.117.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "serde", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + proc_macro_deps = [ + "@proxy_wasm_cpp_host_raze___serde_derive__1_0_117//:serde_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.117", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel new file mode 100644 index 000000000..9f281a89f --- /dev/null +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "serde_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.117", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + "@proxy_wasm_cpp_host_raze___syn__1_0_48//:syn", + ], +) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel b/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel new file mode 100644 index 000000000..27cef18cd --- /dev/null +++ b/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "smallvec", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "macro" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel new file mode 100644 index 000000000..5355877b2 --- /dev/null +++ b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "stable_deref_trait", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.syn-1.0.48.bazel b/bazel/cargo/remote/BUILD.syn-1.0.48.bazel new file mode 100644 index 000000000..cb2cf240e --- /dev/null +++ b/bazel/cargo/remote/BUILD.syn-1.0.48.bazel @@ -0,0 +1,121 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "file" with type "bench" omitted + +# Unsupported target "rust" with type "bench" omitted + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "syn", + srcs = glob(["**/*.rs"]), + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + "quote", + "visit", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.48", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + "@proxy_wasm_cpp_host_raze___unicode_xid__0_2_1//:unicode_xid", + ], +) + +# Unsupported target "test_asyncness" with type "test" omitted + +# Unsupported target "test_attribute" with type "test" omitted + +# Unsupported target "test_derive_input" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_generics" with type "test" omitted + +# Unsupported target "test_grouping" with type "test" omitted + +# Unsupported target "test_ident" with type "test" omitted + +# Unsupported target "test_item" with type "test" omitted + +# Unsupported target "test_iterators" with type "test" omitted + +# Unsupported target "test_lit" with type "test" omitted + +# Unsupported target "test_meta" with type "test" omitted + +# Unsupported target "test_parse_buffer" with type "test" omitted + +# Unsupported target "test_parse_stream" with type "test" omitted + +# Unsupported target "test_pat" with type "test" omitted + +# Unsupported target "test_path" with type "test" omitted + +# Unsupported target "test_precedence" with type "test" omitted + +# Unsupported target "test_receiver" with type "test" omitted + +# Unsupported target "test_round_trip" with type "test" omitted + +# Unsupported target "test_shebang" with type "test" omitted + +# Unsupported target "test_should_parse" with type "test" omitted + +# Unsupported target "test_size" with type "test" omitted + +# Unsupported target "test_stmt" with type "test" omitted + +# Unsupported target "test_token_trees" with type "test" omitted + +# Unsupported target "test_ty" with type "test" omitted + +# Unsupported target "test_visibility" with type "test" omitted + +# Unsupported target "zzz_stable" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel new file mode 100644 index 000000000..851de7a80 --- /dev/null +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel @@ -0,0 +1,87 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "target_lexicon_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "host" with type "example" omitted + +# Unsupported target "misc" with type "example" omitted + +rust_library( + name = "target_lexicon", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + "--cfg=feature=\"force_unix_path_separator\"", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.1", + # buildifier: leave-alone + deps = [ + ":target_lexicon_build_script", + ], +) diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel b/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel new file mode 100644 index 000000000..d3e4edb9a --- /dev/null +++ b/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel @@ -0,0 +1,63 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +rust_library( + name = "termcolor", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi_util__0_1_5//:winapi_util", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel new file mode 100644 index 000000000..d2d447c7c --- /dev/null +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel @@ -0,0 +1,79 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "thiserror", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + proc_macro_deps = [ + "@proxy_wasm_cpp_host_raze___thiserror_impl__1_0_22//:thiserror_impl", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.22", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_backtrace" with type "test" omitted + +# Unsupported target "test_deprecated" with type "test" omitted + +# Unsupported target "test_display" with type "test" omitted + +# Unsupported target "test_error" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_from" with type "test" omitted + +# Unsupported target "test_lints" with type "test" omitted + +# Unsupported target "test_option" with type "test" omitted + +# Unsupported target "test_path" with type "test" omitted + +# Unsupported target "test_source" with type "test" omitted + +# Unsupported target "test_transparent" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel new file mode 100644 index 000000000..52912792e --- /dev/null +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "thiserror_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.22", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + "@proxy_wasm_cpp_host_raze___syn__1_0_48//:syn", + ], +) diff --git a/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel b/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel new file mode 100644 index 000000000..bda31ef2f --- /dev/null +++ b/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "thread_local" with type "bench" omitted + +rust_library( + name = "thread_local", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + ], +) diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel new file mode 100644 index 000000000..0cd42cb6f --- /dev/null +++ b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "unicode_xid", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel new file mode 100644 index 000000000..9320d255b --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "benchmark" with type "bench" omitted + +# Unsupported target "dump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +rust_library( + name = "wasmparser", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.57.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel new file mode 100644 index 000000000..d29245faa --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "benchmark" with type "bench" omitted + +# Unsupported target "simple" with type "example" omitted + +rust_library( + name = "wasmparser", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.65.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel new file mode 100644 index 000000000..9fc65ff9b --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel @@ -0,0 +1,80 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___backtrace__0_3_54//:backtrace", + "@proxy_wasm_cpp_host_raze___bincode__1_3_1//:bincode", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", + "@proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18//:rustc_demangle", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host_raze___wasmtime_jit__0_21_0//:wasmtime_jit", + "@proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel new file mode 100644 index 000000000..8a7a05999 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "restricted", # no license +]) + +# Generated Targets + +rust_library( + name = "wasmtime_c_api_macros", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "crates/c-api/macros/src/lib.rs", + crate_type = "proc-macro", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.19.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel new file mode 100644 index 000000000..57d1bcbda --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_cranelift", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel new file mode 100644 index 000000000..603e527cf --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_debug", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel new file mode 100644 index 000000000..05effb2e4 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel @@ -0,0 +1,64 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_environ", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel new file mode 100644 index 000000000..475899a65 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel @@ -0,0 +1,85 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_jit", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host_raze___cranelift_native__0_68_0//:cranelift_native", + "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host_raze___wasmtime_cranelift__0_21_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0//:wasmtime_debug", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host_raze___wasmtime_obj__0_21_0//:wasmtime_obj", + "@proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel new file mode 100644 index 000000000..194b670e5 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_obj", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0//:wasmtime_debug", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel new file mode 100644 index 000000000..4e96d1822 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel @@ -0,0 +1,60 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_profiling", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel new file mode 100644 index 000000000..a34655a4e --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel @@ -0,0 +1,77 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "wasmtime_runtime", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host_raze___backtrace__0_3_54//:backtrace", + "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", + "@proxy_wasm_cpp_host_raze___memoffset__0_5_6//:memoffset", + "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host_raze___psm__0_1_11//:psm", + "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", + "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel new file mode 100644 index 000000000..0ab8cb65a --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -0,0 +1,69 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "winapi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "basetsd", + "consoleapi", + "errhandlingapi", + "fileapi", + "impl-default", + "memoryapi", + "minwinbase", + "minwindef", + "processenv", + "std", + "sysinfoapi", + "winbase", + "wincon", + "winerror", + "winnt", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 000000000..7a0447a40 --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "winapi_i686_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel new file mode 100644 index 000000000..d2f2f0359 --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -0,0 +1,63 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +rust_library( + name = "winapi_util", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.5", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(windows) + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 000000000..95d47678c --- /dev/null +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@io_bazel_rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "build-script-build" with type "custom-build" omitted + +rust_library( + name = "winapi_x86_64_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/external/wasm-c-api.BUILD b/bazel/external/wasm-c-api.BUILD new file mode 100644 index 000000000..22cd50dac --- /dev/null +++ b/bazel/external/wasm-c-api.BUILD @@ -0,0 +1,15 @@ +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "wasmtime_lib", + hdrs = [ + "include/wasm.h", + ], + defines = ["WASM_WASMTIME"], + include_prefix = "wasmtime", + deps = [ + "@wasmtime//:rust_c_api", + ], +) diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD new file mode 100644 index 000000000..a5cb79844 --- /dev/null +++ b/bazel/external/wasmtime.BUILD @@ -0,0 +1,32 @@ +load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "helpers_lib", + srcs = [ + "crates/runtime/src/helpers.c", + ], + visibility = ["//visibility:private"], +) + +rust_library( + name = "rust_c_api", + srcs = glob(["crates/c-api/src/**/*.rs"]), + crate_features = [], + crate_root = "crates/c-api/src/lib.rs", + crate_type = "staticlib", + edition = "2018", + proc_macro_deps = [ + "@proxy_wasm_cpp_host//bazel/cargo:wasmtime_c_api_macros", + ], + deps = [ + ":helpers_lib", + "@proxy_wasm_cpp_host//bazel/cargo:anyhow", + "@proxy_wasm_cpp_host//bazel/cargo:env_logger", + "@proxy_wasm_cpp_host//bazel/cargo:once_cell", + "@proxy_wasm_cpp_host//bazel/cargo:wasmtime", + ], +) diff --git a/bazel/variables.bzl b/bazel/variables.bzl new file mode 100644 index 000000000..1d94a2aab --- /dev/null +++ b/bazel/variables.bzl @@ -0,0 +1,44 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +COPTS = select({ + "@bazel_tools//src/conditions:windows": [ + "/std:c++17", + "-DWITHOUT_ZLIB", + ], + "//conditions:default": [ + "-std=c++17", + "-DWITHOUT_ZLIB", + ], +}) + +# https://bytecodealliance.github.io/wasmtime/c-api/ +LINKOPTS = select({ + "@bazel_tools//src/conditions:windows": [ + "-", + "ws2_32.lib", + "advapi32.lib", + "userenv.lib", + "ntdll.lib", + "shell32.lib", + "ole32.lib", + ], + "@bazel_tools//src/conditions:darwin": [], + "//conditions:default": [ + # required for linux + "-lpthread", + "-ldl", + "-lm", + ], +}) diff --git a/include/proxy-wasm/wasmtime.h b/include/proxy-wasm/wasmtime.h new file mode 100644 index 000000000..e3fe4b48c --- /dev/null +++ b/include/proxy-wasm/wasmtime.h @@ -0,0 +1,23 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include "include/proxy-wasm/wasm_vm.h" + +namespace proxy_wasm { + +std::unique_ptr createWasmtimeVm(); + +} // namespace proxy_wasm diff --git a/src/common/types.h b/src/common/types.h new file mode 100644 index 000000000..82803c9dc --- /dev/null +++ b/src/common/types.h @@ -0,0 +1,40 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace proxy_wasm { +namespace common { + +template +class CSmartPtr : public std::unique_ptr { +public: + CSmartPtr() : std::unique_ptr(nullptr, deleter) {} + CSmartPtr(T *object) : std::unique_ptr(object, deleter) {} +}; + +template class CSmartType { +public: + CSmartType() { initializer(&item); } + ~CSmartType() { deleter(&item); } + T *get() { return &item; } + +private: + T item; +}; + +} // namespace common +} // namespace proxy_wasm diff --git a/src/wasmtime/types.h b/src/wasmtime/types.h new file mode 100644 index 000000000..afae66e58 --- /dev/null +++ b/src/wasmtime/types.h @@ -0,0 +1,46 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/common/types.h" +#include "wasmtime/include/wasm.h" + +namespace proxy_wasm { +namespace wasmtime { + +using WasmEnginePtr = common::CSmartPtr; +using WasmFuncPtr = common::CSmartPtr; +using WasmStorePtr = common::CSmartPtr; +using WasmModulePtr = common::CSmartPtr; +using WasmSharedModulePtr = common::CSmartPtr; +using WasmMemoryPtr = common::CSmartPtr; +using WasmTablePtr = common::CSmartPtr; +using WasmInstancePtr = common::CSmartPtr; +using WasmFunctypePtr = common::CSmartPtr; +using WasmTrapPtr = common::CSmartPtr; +using WasmExternPtr = common::CSmartPtr; + +using WasmByteVec = + common::CSmartType; +using WasmImporttypeVec = common::CSmartType; +using WasmExportTypeVec = common::CSmartType; +using WasmExternVec = + common::CSmartType; +using WasmValtypeVec = + common::CSmartType; + +} // namespace wasmtime + +} // namespace proxy_wasm diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc new file mode 100644 index 000000000..f1001e1c6 --- /dev/null +++ b/src/wasmtime/wasmtime.cc @@ -0,0 +1,697 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/wasmtime.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "include/proxy-wasm/wasm_vm.h" +#include "src/wasmtime/types.h" +#include "wasmtime/include/wasm.h" + +namespace proxy_wasm { +namespace wasmtime { + +struct FuncData { + FuncData(std::string name) : name_(std::move(name)) {} + + std::string name_; + WasmFuncPtr callback_; + void *raw_func_; +}; + +using FuncDataPtr = std::unique_ptr; + +wasm_engine_t *engine() { + static const auto engine = WasmEnginePtr(wasm_engine_new()); + return engine.get(); +} + +class Wasmtime : public WasmVm { +public: + Wasmtime() {} + + std::string_view runtime() override { return "wasmtime"; } + Cloneable cloneable() override { return Cloneable::CompiledBytecode; } + std::string_view getPrecompiledSectionName() override { return ""; } + + bool load(const std::string &code, bool allow_precompiled = false) override; + AbiVersion getAbiVersion() override; + std::string_view getCustomSection(std::string_view name) override; + bool link(std::string_view debug_name) override; + std::unique_ptr clone() override; + uint64_t getMemorySize() override; + std::optional getMemory(uint64_t pointer, uint64_t size) override; + bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; + bool getWord(uint64_t pointer, Word *word) override; + bool setWord(uint64_t pointer, Word word) override; + +#define _REGISTER_HOST_FUNCTION(T) \ + void registerCallback(std::string_view module_name, std::string_view function_name, T, \ + typename ConvertFunctionTypeWordToUint32::type f) override { \ + registerHostFunctionImpl(module_name, function_name, f); \ + }; + FOR_ALL_WASM_VM_IMPORTS(_REGISTER_HOST_FUNCTION) +#undef _REGISTER_HOST_FUNCTION + +#define _GET_MODULE_FUNCTION(T) \ + void getFunction(std::string_view function_name, T *f) override { \ + getModuleFunctionImpl(function_name, f); \ + }; + FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) +#undef _GET_MODULE_FUNCTION +private: + bool getStrippedSource(WasmByteVec *out); + + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + void (*function)(void *, Args...)); + + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + R (*function)(void *, Args...)); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + WasmByteVec source_; + WasmStorePtr store_; + WasmModulePtr module_; + WasmSharedModulePtr shared_module_; + WasmInstancePtr instance_; + + WasmMemoryPtr memory_; + WasmTablePtr table_; + + std::unordered_map host_functions_; + std::unordered_map module_functions_; +}; + +// TODO(mathetake): move to proxy_wasm::common::* +static uint32_t parseVarint(const byte_t *&pos, const byte_t *end) { + uint32_t n = 0; + uint32_t shift = 0; + byte_t b; + do { + if (pos + 1 > end) { + abort(); + } + b = *pos++; + n += (b & 0x7f) << shift; + shift += 7; + } while ((b & 0x80) != 0); + return n; +} + +bool Wasmtime::load(const std::string &code, bool allow_precompiled) { + store_ = wasm_store_new(engine()); + + // Wasm file header is 8 bytes (magic number + version). + static const uint8_t magic_number[4] = {0x00, 0x61, 0x73, 0x6d}; + if (code.size() < 8 || ::memcmp(code.data(), magic_number, 4) != 0) { + return false; + } + + wasm_byte_vec_new_uninitialized(source_.get(), code.size()); + ::memcpy(source_.get()->data, code.data(), code.size()); + + WasmByteVec stripped; + module_ = + wasm_module_new(store_.get(), getStrippedSource(&stripped) ? stripped.get() : source_.get()); + + if (module_) { + shared_module_ = wasm_module_share(module_.get()); + assert(shared_module_ != nullptr); + } + + return module_ != nullptr; +} + +std::unique_ptr Wasmtime::clone() { + assert(shared_module_ != nullptr); + auto clone = std::make_unique(); + + clone->integration().reset(integration()->clone()); + clone->store_ = wasm_store_new(engine()); + clone->module_ = wasm_module_obtain(clone->store_.get(), shared_module_.get()); + return clone; +} + +// TODO(mathetake): move to proxy_wasm::common::* +bool Wasmtime::getStrippedSource(WasmByteVec *out) { + std::vector stripped; + + const byte_t *pos = source_.get()->data + 8 /* Wasm header */; + const byte_t *end = source_.get()->data + source_.get()->size; + while (pos < end) { + const auto section_start = pos; + if (pos + 1 > end) { + return false; + } + const auto section_type = *pos++; + const auto section_len = parseVarint(pos, end); + if (section_len == static_cast(-1) || pos + section_len > end) { + return false; + } + if (section_type == 0 /* custom section */) { + const auto section_data_start = pos; + const auto section_name_len = parseVarint(pos, end); + if (section_name_len == static_cast(-1) || pos + section_name_len > end) { + return false; + } + auto section_name = std::string_view(pos, section_name_len); + if (section_name.find("precompiled_") != std::string::npos) { + // If this is the first "precompiled_" section, then save everything + // before it, otherwise skip it. + if (stripped.empty()) { + const byte_t *start = source_.get()->data; + stripped.insert(stripped.end(), start, section_start); + } + } + pos = section_data_start + section_len; + } else { + pos += section_len; + // Save this section if we already saw a custom "precompiled_" section. + if (!stripped.empty()) { + stripped.insert(stripped.end(), section_start, pos /* section end */); + } + } + } + + if (!stripped.empty()) { + wasm_byte_vec_new_uninitialized(out->get(), stripped.size()); + ::memcpy(out->get()->data, stripped.data(), stripped.size()); + return true; + } + return false; +} + +static bool equalValTypes(const wasm_valtype_vec_t *left, const wasm_valtype_vec_t *right) { + if (left->size != right->size) { + return false; + } + + for (size_t i = 0; i < left->size; i++) { + if (wasm_valtype_kind(left->data[i]) != wasm_valtype_kind(right->data[i])) { + return false; + } + } + + return true; +} + +static const char *printValKind(wasm_valkind_t kind) { + switch (kind) { + case WASM_I32: + return "i32"; + case WASM_I64: + return "i64"; + case WASM_F32: + return "f32"; + case WASM_F64: + return "f64"; + case WASM_ANYREF: + return "anyref"; + case WASM_FUNCREF: + return "funcref"; + default: + return "unknown"; + } +} + +static std::string printValTypes(const wasm_valtype_vec_t *types) { + if (types->size == 0) { + return "void"; + } + + std::string s; + s.reserve(types->size * 8 /* max size + " " */ - 1); + for (size_t i = 0; i < types->size; i++) { + if (i) { + s.append(" "); + } + s.append(printValKind(wasm_valtype_kind(types->data[i]))); + } + return s; +} + +bool Wasmtime::link(std::string_view debug_name) { + assert(module_ != nullptr); + + WasmImporttypeVec import_types; + wasm_module_imports(module_.get(), import_types.get()); + + std::vector imports; + for (size_t i = 0; i < import_types.get()->size; i++) { + const wasm_name_t *module_name_ptr = wasm_importtype_module(import_types.get()->data[i]); + const wasm_name_t *name_ptr = wasm_importtype_name(import_types.get()->data[i]); + const wasm_externtype_t *extern_type = wasm_importtype_type(import_types.get()->data[i]); + + std::string_view module_name(module_name_ptr->data, module_name_ptr->size); + std::string_view name(name_ptr->data, name_ptr->size); + assert(name_ptr->size > 0); + switch (wasm_externtype_kind(extern_type)) { + case WASM_EXTERN_FUNC: { + auto it = host_functions_.find(std::string(module_name) + "." + std::string(name)); + if (it == host_functions_.end()) { + fail(FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to a missing import: ") + + std::string(module_name) + "." + std::string(name)); + break; + } + + auto func = it->second->callback_.get(); + const wasm_functype_t *exp_type = wasm_externtype_as_functype_const(extern_type); + WasmFunctypePtr actual_type = wasm_func_type(it->second->callback_.get()); + if (!equalValTypes(wasm_functype_params(exp_type), wasm_functype_params(actual_type.get())) || + !equalValTypes(wasm_functype_results(exp_type), + wasm_functype_results(actual_type.get()))) { + fail( + FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to an import type mismatch for function ") + + std::string(module_name) + "." + std::string(name) + + ", want: " + printValTypes(wasm_functype_params(exp_type)) + " -> " + + printValTypes(wasm_functype_results(exp_type)) + + ", but host exports: " + printValTypes(wasm_functype_params(actual_type.get())) + + " -> " + printValTypes(wasm_functype_results(actual_type.get()))); + break; + } + imports.push_back(wasm_func_as_extern(func)); + } break; + case WASM_EXTERN_GLOBAL: { + // TODO(mathetake): add support when/if needed. + fail(FailState::UnableToInitializeCode, + "Failed to load Wasm module due to a missing import: " + std::string(module_name) + "." + + std::string(name)); + } break; + case WASM_EXTERN_MEMORY: { + assert(memory_ == nullptr); + const wasm_memorytype_t *memory_type = + wasm_externtype_as_memorytype_const(extern_type); // owned by `extern_type` + memory_ = wasm_memory_new(store_.get(), memory_type); + imports.push_back(wasm_memory_as_extern(memory_.get())); + } break; + case WASM_EXTERN_TABLE: { + assert(table_ == nullptr); + const wasm_tabletype_t *table_type = + wasm_externtype_as_tabletype_const(extern_type); // owned by `extern_type` + table_ = wasm_table_new(store_.get(), table_type, nullptr); + imports.push_back(wasm_table_as_extern(table_.get())); + } break; + } + } + + if (import_types.get()->size != imports.size()) { + return false; + } + + instance_ = wasm_instance_new(store_.get(), module_.get(), imports.data(), nullptr); + assert(instance_ != nullptr); + + WasmExportTypeVec export_types; + wasm_module_exports(module_.get(), export_types.get()); + + WasmExternVec exports; + wasm_instance_exports(instance_.get(), exports.get()); + + for (size_t i = 0; i < export_types.get()->size; i++) { + const wasm_externtype_t *exp_extern_type = wasm_exporttype_type(export_types.get()->data[i]); + wasm_extern_t *actual_extern = exports.get()->data[i]; + + wasm_externkind_t kind = wasm_extern_kind(actual_extern); + assert(kind == wasm_externtype_kind(exp_extern_type)); + switch (kind) { + case WASM_EXTERN_FUNC: { + WasmFuncPtr func = wasm_func_copy(wasm_extern_as_func(actual_extern)); + const wasm_name_t *name_ptr = wasm_exporttype_name(export_types.get()->data[i]); + module_functions_.insert_or_assign(std::string(name_ptr->data, name_ptr->size), + std::move(func)); + } break; + case WASM_EXTERN_GLOBAL: { + // TODO(mathetake): add support when/if needed. + } break; + case WASM_EXTERN_MEMORY: { + assert(memory_ == nullptr); + memory_ = wasm_memory_copy(wasm_extern_as_memory(actual_extern)); + assert(memory_ != nullptr); + } break; + case WASM_EXTERN_TABLE: { + // TODO(mathetake): add support when/if needed. + } break; + } + } + return true; +} + +std::string_view Wasmtime::getCustomSection(std::string_view name) { + const byte_t *pos = source_.get()->data + 8 /* Wasm header */; + const byte_t *end = source_.get()->data + source_.get()->size; + while (pos < end) { + if (pos + 1 > end) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return ""; + } + const auto section_type = *pos++; + const auto section_len = parseVarint(pos, end); + if (section_len == static_cast(-1) || pos + section_len > end) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return ""; + } + + if (section_type == 0 /* custom section */) { + const auto section_data_start = pos; + const auto section_name_len = parseVarint(pos, end); + if (section_name_len == static_cast(-1) || pos + section_name_len > end) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return ""; + } + if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { + pos += section_name_len; + return {pos, static_cast(section_data_start + section_len - pos)}; + } + pos = section_data_start + section_len; + } else { + pos += section_len; + } + } + + return ""; +} + +uint64_t Wasmtime::getMemorySize() { return wasm_memory_data_size(memory_.get()); } + +std::optional Wasmtime::getMemory(uint64_t pointer, uint64_t size) { + assert(memory_ != nullptr); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return std::nullopt; + } + return std::string_view(wasm_memory_data(memory_.get()) + pointer, size); +} + +bool Wasmtime::setMemory(uint64_t pointer, uint64_t size, const void *data) { + assert(memory_ != nullptr); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + ::memcpy(wasm_memory_data(memory_.get()) + pointer, data, size); + return true; +} + +bool Wasmtime::getWord(uint64_t pointer, Word *word) { + assert(memory_ != nullptr); + constexpr auto size = sizeof(uint32_t); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + + uint32_t word32; + ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); + word->u64_ = word32; + return true; +} + +bool Wasmtime::setWord(uint64_t pointer, Word word) { + constexpr auto size = sizeof(uint32_t); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + uint32_t word32 = word.u32(); + ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); + return true; +} + +template void assignVal(T t, wasm_val_t &val); +template <> void assignVal(Word t, wasm_val_t &val) { + val.kind = WASM_I32; + val.of.i32 = static_cast(t.u64_); +} +template <> void assignVal(uint32_t t, wasm_val_t &val) { + val.kind = WASM_I32; + val.of.i32 = static_cast(t); +} +template <> void assignVal(uint64_t t, wasm_val_t &val) { + val.kind = WASM_I64; + val.of.i64 = static_cast(t); +} +template <> void assignVal(double t, wasm_val_t &val) { + val.kind = WASM_F64; + val.of.f64 = t; +} + +template wasm_val_t makeVal(T t) { + wasm_val_t val{}; + assignVal(t, val); + return val; +} + +template struct ConvertWordType { + using type = T; // NOLINT(readability-identifier-naming) +}; +template <> struct ConvertWordType { + using type = uint32_t; // NOLINT(readability-identifier-naming) +}; + +template auto convertArgToValTypePtr(); +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i32(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i32(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i64(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i64(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_f64(); }; + +template T convertValueTypeToArg(wasm_val_t val); +template <> uint32_t convertValueTypeToArg(wasm_val_t val) { + return static_cast(val.of.i32); +} +template <> Word convertValueTypeToArg(wasm_val_t val) { return val.of.i32; } +template <> int64_t convertValueTypeToArg(wasm_val_t val) { return val.of.i64; } +template <> uint64_t convertValueTypeToArg(wasm_val_t val) { + return static_cast(val.of.i64); +} +template <> double convertValueTypeToArg(wasm_val_t val) { return val.of.f64; } + +template +constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence) { + return std::make_tuple( + convertValueTypeToArg>::type>(arr[I])...); +} + +template ::value>> +constexpr T convertValTypesToArgsTuple(const U &arr) { + return convertValTypesToArgsTupleImpl(arr, Is()); +} + +template +void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, std::index_sequence) { + auto size = std::tuple_size::value; + auto ps = std::array::value>{ + convertArgToValTypePtr::type>()...}; + wasm_valtype_vec_new(types, size, ps.data()); + for (auto i = ps.begin(); i < ps.end(); i++) { // TODO(mathetake): better way to handle? + wasm_valtype_delete(*i); + } +} + +template ::value>> +void convertArgsTupleToValTypes(wasm_valtype_vec_t *types) { + convertArgsTupleToValTypesImpl(types, Is()); +} + +template WasmFunctypePtr newWasmNewFuncType() { + WasmValtypeVec params, results; + convertArgsTupleToValTypes(params.get()); + convertArgsTupleToValTypes>(results.get()); + return wasm_functype_new(params.get(), results.get()); +} + +template WasmFunctypePtr newWasmNewFuncType() { + WasmValtypeVec params, results; + convertArgsTupleToValTypes(params.get()); + convertArgsTupleToValTypes>(results.get()); + return wasm_functype_new(params.get(), results.get()); +} + +template +void Wasmtime::registerHostFunctionImpl(std::string_view module_name, + std::string_view function_name, + void (*function)(void *, Args...)) { + auto data = + std::make_unique(std::string(module_name) + "." + std::string(function_name)); + + WasmFunctypePtr type = newWasmNewFuncType>(); + WasmFuncPtr func = wasm_func_new_with_env( + store_.get(), type.get(), + [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + auto func_data = reinterpret_cast(data); + auto args_tuple = convertValTypesToArgsTuple>(params); + auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); + auto fn = reinterpret_cast(func_data->raw_func_); + std::apply(fn, args); + return nullptr; + }, + data.get(), nullptr); + + data->callback_ = std::move(func); + data->raw_func_ = reinterpret_cast(function); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +}; + +template +void Wasmtime::registerHostFunctionImpl(std::string_view module_name, + std::string_view function_name, + R (*function)(void *, Args...)) { + auto data = + std::make_unique(std::string(module_name) + "." + std::string(function_name)); + WasmFunctypePtr type = newWasmNewFuncType>(); + WasmFuncPtr func = wasm_func_new_with_env( + store_.get(), type.get(), + [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + auto func_data = reinterpret_cast(data); + auto args_tuple = convertValTypesToArgsTuple>(params); + auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); + auto fn = reinterpret_cast(func_data->raw_func_); + R res = std::apply(fn, args); + assignVal(res, results[0]); + return nullptr; + }, + data.get(), nullptr); + + data->callback_ = std::move(func); + data->raw_func_ = reinterpret_cast(function); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +}; + +template +void Wasmtime::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + + auto it = module_functions_.find(std::string(function_name)); + if (it == module_functions_.end()) { + *function = nullptr; + return; + } + + WasmValtypeVec exp_args, exp_returns; + convertArgsTupleToValTypes>(exp_args.get()); + convertArgsTupleToValTypes>(exp_returns.get()); + wasm_func_t *func = it->second.get(); + WasmFunctypePtr func_type = wasm_func_type(func); + + if (!equalValTypes(wasm_functype_params(func_type.get()), exp_args.get()) || + !equalValTypes(wasm_functype_results(func_type.get()), exp_returns.get())) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + ", want: " + + printValTypes(exp_args.get()) + " -> " + printValTypes(exp_returns.get()) + + ", but the module exports: " + printValTypes(wasm_functype_params(func_type.get())) + + " -> " + printValTypes(wasm_functype_results(func_type.get()))); + return; + } + + *function = [func, function_name, this](ContextBase *context, Args... args) -> void { + wasm_val_t params[] = {makeVal(args)...}; + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, params, nullptr)}; + if (trap) { + WasmByteVec error_message; + wasm_trap_message(trap.get(), error_message.get()); + fail(FailState::RuntimeError, + "Function: " + std::string(function_name) + " failed:\n" + + std::string(error_message.get()->data, error_message.get()->size)); + } + }; +}; + +template +void Wasmtime::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + auto it = module_functions_.find(std::string(function_name)); + if (it == module_functions_.end()) { + *function = nullptr; + return; + } + WasmValtypeVec exp_args, exp_returns; + convertArgsTupleToValTypes>(exp_args.get()); + convertArgsTupleToValTypes>(exp_returns.get()); + wasm_func_t *func = it->second.get(); + WasmFunctypePtr func_type = wasm_func_type(func); + if (!equalValTypes(wasm_functype_params(func_type.get()), exp_args.get()) || + !equalValTypes(wasm_functype_results(func_type.get()), exp_returns.get())) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + ", want: " + + printValTypes(exp_args.get()) + " -> " + printValTypes(exp_returns.get()) + + ", but the module exports: " + printValTypes(wasm_functype_params(func_type.get())) + + " -> " + printValTypes(wasm_functype_results(func_type.get()))); + return; + } + + *function = [func, function_name, this](ContextBase *context, Args... args) -> R { + wasm_val_t params[] = {makeVal(args)...}; + wasm_val_t results[1]; + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, params, results)}; + if (trap) { + WasmByteVec error_message; + wasm_trap_message(trap.get(), error_message.get()); + fail(FailState::RuntimeError, + "Function: " + std::string(function_name) + " failed:\n" + + std::string(error_message.get()->data, error_message.get()->size)); + return R{}; + } + + R ret = convertValueTypeToArg(results[0]); + return ret; + }; +}; + +AbiVersion Wasmtime::getAbiVersion() { + assert(module_ != nullptr); + WasmExportTypeVec export_types; + wasm_module_exports(module_.get(), export_types.get()); + + for (size_t i = 0; i < export_types.get()->size; i++) { + const wasm_externtype_t *exp_extern_type = wasm_exporttype_type(export_types.get()->data[i]); + if (wasm_externtype_kind(exp_extern_type) == WASM_EXTERN_FUNC) { + const wasm_name_t *name_ptr = wasm_exporttype_name(export_types.get()->data[i]); + std::string_view name(name_ptr->data, name_ptr->size); + if (name == "proxy_abi_version_0_1_0") { + return AbiVersion::ProxyWasm_0_1_0; + } else if (name == "proxy_abi_version_0_2_0") { + return AbiVersion::ProxyWasm_0_2_0; + } else if (name == "proxy_abi_version_0_2_1") { + return AbiVersion::ProxyWasm_0_2_1; + } + } + } + return AbiVersion::Unknown; +} + +} // namespace wasmtime + +std::unique_ptr createWasmtimeVm() { return std::make_unique(); } + +} // namespace proxy_wasm diff --git a/test/BUILD b/test/BUILD new file mode 100644 index 000000000..5a5cf662a --- /dev/null +++ b/test/BUILD @@ -0,0 +1,41 @@ +load("@rules_cc//cc:defs.bzl", "cc_test") +load("//:bazel/variables.bzl", "COPTS", "LINKOPTS") + +cc_test( + name = "null_vm_test", + srcs = ["null_vm_test.cc"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + +cc_test( + name = "runtime_test", + srcs = ["runtime_test.cc"], + copts = COPTS, + data = [ + "//test/test_data:abi_export.wasm", + "//test/test_data:callback.wasm", + "//test/test_data:trap.wasm", + ], + linkopts = LINKOPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + +cc_test( + name = "context_test", + srcs = ["context_test.cc"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) diff --git a/context_test.cc b/test/context_test.cc similarity index 100% rename from context_test.cc rename to test/context_test.cc diff --git a/wasm_vm_test.cc b/test/null_vm_test.cc similarity index 100% rename from wasm_vm_test.cc rename to test/null_vm_test.cc diff --git a/test/runtime_test.cc b/test/runtime_test.cc new file mode 100644 index 000000000..936834d23 --- /dev/null +++ b/test/runtime_test.cc @@ -0,0 +1,244 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "gtest/gtest.h" +#include +#include +#include +#include +#include +#include + +#include "include/proxy-wasm/context.h" +#include "include/proxy-wasm/wasm.h" + +#if defined(WASM_V8) +#include "include/proxy-wasm/v8.h" +#endif +#if defined(WASM_WAVM) +#include "include/proxy-wasm/wavm.h" +#endif +#if defined(WASM_WASMTIME) +#include "include/proxy-wasm/wasmtime.h" +#endif + +namespace proxy_wasm { +namespace { + +struct DummyIntegration : public WasmVmIntegration { + ~DummyIntegration() override{}; + WasmVmIntegration *clone() override { return new DummyIntegration{}; } + void error(std::string_view message) override { + std::cout << "ERROR from integration: " << message << std::endl; + error_message_ = message; + } + bool getNullVmFunction(std::string_view function_name, bool returns_word, int number_of_arguments, + NullPlugin *plugin, void *ptr_to_function_return) override { + return false; + }; + std::string error_message_; +}; + +class TestVM : public testing::TestWithParam { +public: + std::unique_ptr vm_; + + TestVM() : integration_(new DummyIntegration{}) { + runtime_ = GetParam(); + if (runtime_ == "") { + EXPECT_TRUE(false) << "runtime must not be empty"; +#if defined(WASM_V8) + } else if (runtime_ == "v8") { + vm_ = proxy_wasm::createV8Vm(); +#endif +#if defined(WASM_WAVM) + } else if (runtime_ == "wavm") { + vm_ = proxy_wasm::createWavmVm(); +#endif +#if defined(WASM_WASMTIME) + } else if (runtime_ == "wasmtime") { + vm_ = proxy_wasm::createWasmtimeVm(); +#endif + } + vm_->integration().reset(integration_); + } + + DummyIntegration *integration_; + + void initialize(std::string filename) { + auto path = "test/test_data/" + filename; + std::ifstream file(path, std::ios::binary); + EXPECT_FALSE(file.fail()) << "failed to open: " << path; + std::stringstream file_string_stream; + file_string_stream << file.rdbuf(); + source_ = file_string_stream.str(); + } + + std::string source_; + std::string runtime_; +}; + +static std::vector getRuntimes() { + std::vector runtimes = { +#if defined(WASM_V8) + "v8", +#endif +#if defined(WASM_WAVM) + "wavm", +#endif +#if defined(WASM_WASMTIME) + "wasmtime", +#endif + "" + }; + runtimes.pop_back(); + return runtimes; +} + +auto test_values = testing::ValuesIn(getRuntimes()); + +INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); + +TEST_P(TestVM, Basic) { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); + EXPECT_EQ(vm_->runtime(), runtime_); +} + +TEST_P(TestVM, ABIVersion) { + initialize("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_EQ(vm_->getAbiVersion(), AbiVersion::ProxyWasm_0_2_0); +} + +TEST_P(TestVM, CustomSection) { + initialize("abi_export.wasm"); + char custom_section[12] = { + 0x00, // custom section id + 0x0a, // section length + 0x04, 0x68, 0x65, 0x79, 0x21, // section name: "hey!" + 0x68, 0x65, 0x6c, 0x6c, 0x6f, // content: "hello" + }; + + source_ = source_.append(&custom_section[0], 12); + ASSERT_TRUE(vm_->load(source_, false)); + auto name_section = vm_->getCustomSection("hey!"); + ASSERT_EQ(name_section, "hello"); +} + +TEST_P(TestVM, Memory) { + initialize("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->link("")); + + Word word; + ASSERT_TRUE(vm_->setWord(0x2000, Word(100))); + ASSERT_TRUE(vm_->getWord(0x2000, &word)); + ASSERT_EQ(100, word.u64_); + + int32_t data[2] = {-1, 200}; + ASSERT_TRUE(vm_->setMemory(0x200, sizeof(int32_t) * 2, static_cast(data))); + ASSERT_TRUE(vm_->getWord(0x200, &word)); + ASSERT_EQ(-1, static_cast(word.u64_)); + ASSERT_TRUE(vm_->getWord(0x204, &word)); + ASSERT_EQ(200, static_cast(word.u64_)); +} + +TEST_P(TestVM, Clone) { + initialize("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->link("")); + const auto address = 0x2000; + Word word; + { + auto clone = vm_->clone(); + ASSERT_TRUE(clone != nullptr); + ASSERT_NE(vm_, clone); + ASSERT_TRUE(clone->link("")); + + ASSERT_TRUE(clone->setWord(address, Word(100))); + ASSERT_TRUE(clone->getWord(address, &word)); + ASSERT_EQ(100, word.u64_); + } + + // check memory arrays are not overrapped + ASSERT_TRUE(vm_->getWord(address, &word)); + ASSERT_NE(100, word.u64_); +} + +class TestContext : public ContextBase { +public: + TestContext(){}; + void increment() { counter++; } + int64_t counter = 0; +}; + +void callback(void *raw_context) { + TestContext *context = static_cast(raw_context); + context->increment(); +} + +Word callback2(void *raw_context, Word val) { return val + 100; } + +TEST_P(TestVM, Callback) { + initialize("callback.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + + TestContext context; + current_context_ = &context; + + vm_->registerCallback( + "env", "callback", &callback, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + + vm_->registerCallback( + "env", "callback2", &callback2, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + + ASSERT_TRUE(vm_->link("")); + + WasmCallVoid<0> run; + vm_->getFunction("run", &run); + EXPECT_TRUE(run != nullptr); + for (auto i = 0; i < 100; i++) { + run(current_context_); + } + ASSERT_EQ(context.counter, 100); + + WasmCallWord<1> run2; + vm_->getFunction("run2", &run2); + Word res = run2(current_context_, Word{0}); + ASSERT_EQ(res.u32(), 100100); // 10000 (global) + 100(in callback) +} + +TEST_P(TestVM, Trap) { + initialize("trap.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->link("")); + WasmCallVoid<0> trigger; + vm_->getFunction("trigger", &trigger); + EXPECT_TRUE(trigger != nullptr); + trigger(current_context_); + std::string exp_message = "Function: trigger failed"; + ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); + + WasmCallWord<1> trigger2; + vm_->getFunction("trigger2", &trigger2); + EXPECT_TRUE(trigger2 != nullptr); + trigger2(current_context_, 0); + exp_message = "Function: trigger2 failed:"; + ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); +} + +} // namespace +} // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD new file mode 100644 index 000000000..d67973688 --- /dev/null +++ b/test/test_data/BUILD @@ -0,0 +1,18 @@ +load("//test/test_data:wasm.bzl", "wasm_rust_binary") + +package(default_visibility = ["//visibility:public"]) + +wasm_rust_binary( + name = "abi_export.wasm", + srcs = ["abi_export.rs"], +) + +wasm_rust_binary( + name = "callback.wasm", + srcs = ["callback.rs"], +) + +wasm_rust_binary( + name = "trap.wasm", + srcs = ["trap.rs"], +) diff --git a/test/test_data/abi_export.rs b/test/test_data/abi_export.rs new file mode 100644 index 000000000..f4a42f25f --- /dev/null +++ b/test/test_data/abi_export.rs @@ -0,0 +1,16 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} diff --git a/test/test_data/callback.rs b/test/test_data/callback.rs new file mode 100644 index 000000000..0c142a8ec --- /dev/null +++ b/test/test_data/callback.rs @@ -0,0 +1,35 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn run() { + unsafe { + callback(); + } +} + +static A : i32 = 100000; + +#[no_mangle] +pub extern "C" fn run2(val: i32) -> i32 { + unsafe { + callback2(val) + A + } +} + +extern "C" { + fn callback(); + fn callback2(val: i32) -> i32; +} + diff --git a/test/test_data/trap.rs b/test/test_data/trap.rs new file mode 100644 index 000000000..8fb2a413c --- /dev/null +++ b/test/test_data/trap.rs @@ -0,0 +1,35 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn trigger() { + one(); +} +#[no_mangle] +pub extern "C" fn trigger2(val: i32) -> i32 { + three(); + 0 +} + +fn one() { + two(); +} + +fn two() { + three(); +} + +fn three(){ + panic!("trap!"); +} diff --git a/test/test_data/wasm.bzl b/test/test_data/wasm.bzl new file mode 100644 index 000000000..a3541aa3e --- /dev/null +++ b/test/test_data/wasm.bzl @@ -0,0 +1,69 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary") + +def _wasm_rust_transition_impl(settings, attr): + return { + "//command_line_option:platforms": "@io_bazel_rules_rust//rust/platform:wasm", + } + +wasm_rust_transition = transition( + implementation = _wasm_rust_transition_impl, + inputs = [], + outputs = [ + "//command_line_option:platforms", + ], +) + +def _wasm_binary_impl(ctx): + out = ctx.actions.declare_file(ctx.label.name) + ctx.actions.run( + executable = "cp", + arguments = [ctx.files.binary[0].path, out.path], + outputs = [out], + inputs = ctx.files.binary, + ) + + return [DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out]))] + +def _wasm_attrs(transition): + return { + "binary": attr.label(mandatory = True, cfg = transition), + "_whitelist_function_transition": attr.label(default = "@bazel_tools//tools/whitelists/function_transition_whitelist"), + } + +wasm_rust_binary_rule = rule( + implementation = _wasm_binary_impl, + attrs = _wasm_attrs(wasm_rust_transition), +) + +def wasm_rust_binary(name, tags = [], **kwargs): + wasm_name = "_wasm_" + name.replace(".", "_") + kwargs.setdefault("visibility", ["//visibility:public"]) + + rust_binary( + name = wasm_name, + edition = "2018", + crate_type = "cdylib", + out_binary = True, + tags = ["manual"], + **kwargs + ) + + wasm_rust_binary_rule( + name = name, + binary = ":" + wasm_name, + tags = tags + ["manual"], + ) From eceb02d5b7772ec1cd78a4d35356e57d2e6d59bb Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 10 Nov 2020 01:08:51 -0800 Subject: [PATCH 059/287] Allow execution of multiple instances of the same plugin. (#92) Signed-off-by: Piotr Sikora --- include/proxy-wasm/context.h | 21 ++-- include/proxy-wasm/wasm.h | 33 +++++-- src/context.cc | 27 ++---- src/wasm.cc | 183 +++++++++++++++++++++-------------- 4 files changed, 156 insertions(+), 108 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 2313d9cdb..51d7dbbde 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -50,20 +50,23 @@ struct PluginBase { std::string_view runtime, std::string_view plugin_configuration, bool fail_open) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), - fail_open_(fail_open) {} + fail_open_(fail_open), key_(root_id_ + "||" + plugin_configuration_) {} const std::string name_; const std::string root_id_; const std::string vm_id_; const std::string runtime_; - std::string plugin_configuration_; + const std::string plugin_configuration_; const bool fail_open_; + + const std::string &key() const { return key_; } const std::string &log_prefix() const { return log_prefix_; } private: std::string makeLogPrefix() const; - std::string log_prefix_; + const std::string key_; + const std::string log_prefix_; }; struct BufferBase : public BufferInterface { @@ -373,16 +376,16 @@ class ContextBase : public RootInterface, protected: friend class WasmBase; - void initializeRootBase(WasmBase *wasm, std::shared_ptr plugin); std::string makeRootLogPrefix(std::string_view vm_id) const; WasmBase *wasm_{nullptr}; uint32_t id_{0}; - uint32_t parent_context_id_{0}; // 0 for roots and the general context. - ContextBase *parent_context_{nullptr}; // set in all contexts. - std::string root_id_; // set only in root context. - std::string root_log_prefix_; // set only in root context. - std::shared_ptr plugin_; + uint32_t parent_context_id_{0}; // 0 for roots and the general context. + ContextBase *parent_context_{nullptr}; // set in all contexts. + std::string root_id_; // set only in root context. + std::string root_log_prefix_; // set only in root context. + std::shared_ptr plugin_; // set in root and stream contexts. + std::shared_ptr temp_plugin_; // Remove once ABI v0.1.0 is gone. bool in_vm_context_created_ = false; bool destroyed_ = false; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index c71c58480..53d0b638a 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -59,8 +59,7 @@ class WasmBase : public std::enable_shared_from_this { std::string_view vm_key() const { return vm_key_; } WasmVm *wasm_vm() const { return wasm_vm_.get(); } ContextBase *vm_context() const { return vm_context_.get(); } - ContextBase *getRootContext(std::string_view root_id); - ContextBase *getOrCreateRootContext(const std::shared_ptr &plugin); + ContextBase *getRootContext(const std::shared_ptr &plugin, bool allow_closed); ContextBase *getContext(uint32_t id) { auto it = contexts_.find(id); if (it != contexts_.end()) @@ -78,6 +77,7 @@ class WasmBase : public std::enable_shared_from_this { void timerReady(uint32_t root_context_id); void queueReady(uint32_t root_context_id, uint32_t token); + void startShutdown(std::string_view plugin_key); void startShutdown(); WasmResult done(ContextBase *root_context); void finishShutdown(); @@ -170,11 +170,12 @@ class WasmBase : public std::enable_shared_from_this { uint32_t next_context_id_ = 1; // 0 is reserved for the VM context. std::shared_ptr vm_context_; // Context unrelated to any specific root or stream // (e.g. for global constructors). - std::unordered_map> root_contexts_; + std::unordered_map> root_contexts_; // Root contexts. + std::unordered_map> pending_done_; // Root contexts. + std::unordered_set> pending_delete_; // Root contexts. std::unordered_map contexts_; // Contains all contexts. std::unordered_map timer_period_; // per root_id. std::unique_ptr shutdown_handle_; - std::unordered_set pending_done_; // Root contexts not done during shutdown. WasmCallVoid<0> _initialize_; /* Emscripten v1.39.17+ */ WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ @@ -275,11 +276,29 @@ createWasm(std::string vm_key, std::string code, std::shared_ptr plu WasmHandleFactory factory, WasmHandleCloneFactory clone_factory, bool allow_precompiled); // Get an existing ThreadLocal VM matching 'vm_id' or nullptr if there isn't one. std::shared_ptr getThreadLocalWasm(std::string_view vm_id); + +class PluginHandleBase : public std::enable_shared_from_this { +public: + explicit PluginHandleBase(std::shared_ptr wasm_handle, + std::string_view plugin_key) + : wasm_handle_(wasm_handle), plugin_key_(plugin_key) {} + ~PluginHandleBase() { wasm_handle_->wasm()->startShutdown(plugin_key_); } + + std::shared_ptr &wasm() { return wasm_handle_->wasm(); } + +protected: + std::shared_ptr wasm_handle_; + std::string plugin_key_; +}; + +using PluginHandleFactory = std::function( + std::shared_ptr base_wasm, std::string_view plugin_key)>; + // Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wavm' by cloning or by // using it it as a template. -std::shared_ptr -getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, - std::shared_ptr plugin, WasmHandleCloneFactory factory); +std::shared_ptr getOrCreateThreadLocalPlugin( + std::shared_ptr base_wasm, std::shared_ptr plugin, + WasmHandleCloneFactory clone_factory, PluginHandleFactory plugin_factory); // Clear Base Wasm cache and the thread-local Wasm sandbox cache for the calling thread. void clearWasmCachesForTesting(); diff --git a/src/context.cc b/src/context.cc index 89daa97a4..33fab4863 100644 --- a/src/context.cc +++ b/src/context.cc @@ -272,8 +272,10 @@ ContextBase::ContextBase(WasmBase *wasm) : wasm_(wasm), parent_context_(this) { wasm_->contexts_[id_] = this; } -ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) { - initializeRootBase(wasm, plugin); +ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) + : wasm_(wasm), id_(wasm->allocContextId()), parent_context_(this), root_id_(plugin->root_id_), + root_log_prefix_(makeRootLogPrefix(plugin->vm_id_)), plugin_(plugin) { + wasm_->contexts_[id_] = this; } // NB: wasm can be nullptr if it failed to be created successfully. @@ -291,15 +293,6 @@ WasmVm *ContextBase::wasmVm() const { return wasm_->wasm_vm(); } bool ContextBase::isFailed() { return !wasm_ || wasm_->isFailed(); } -void ContextBase::initializeRootBase(WasmBase *wasm, std::shared_ptr plugin) { - wasm_ = wasm; - id_ = wasm->allocContextId(); - root_id_ = plugin->root_id_; - root_log_prefix_ = makeRootLogPrefix(plugin->vm_id_); - parent_context_ = this; - wasm_->contexts_[id_] = this; -} - std::string ContextBase::makeRootLogPrefix(std::string_view vm_id) const { std::string prefix; if (!root_id_.empty()) { @@ -318,10 +311,10 @@ bool ContextBase::onStart(std::shared_ptr plugin) { DeferAfterCallActions actions(this); bool result = true; if (wasm_->on_context_create_) { - plugin_ = plugin; + temp_plugin_ = plugin; wasm_->on_context_create_(this, id_, 0); in_vm_context_created_ = true; - plugin_.reset(); + temp_plugin_.reset(); } if (wasm_->on_vm_start_) { // Do not set plugin_ as the on_vm_start handler should be independent of the plugin since the @@ -353,11 +346,11 @@ bool ContextBase::onConfigure(std::shared_ptr plugin) { } DeferAfterCallActions actions(this); - plugin_ = plugin; + temp_plugin_ = plugin; auto result = wasm_->on_configure_(this, id_, static_cast(plugin->plugin_configuration_.size())) .u64_ != 0; - plugin_.reset(); + temp_plugin_.reset(); return result; } @@ -656,8 +649,8 @@ FilterMetadataStatus ContextBase::convertVmCallResultToFilterMetadataStatus(uint } ContextBase::~ContextBase() { - // Do not remove vm or root contexts which have the same lifetime as wasm_. - if (parent_context_id_) { + // Do not remove vm context which has the same lifetime as wasm_. + if (id_) { wasm_->contexts_.erase(id_); } } diff --git a/src/wasm.cc b/src/wasm.cc index 9472873d7..b83064a7e 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -37,6 +37,7 @@ namespace { // Map from Wasm Key to the local Wasm instance. thread_local std::unordered_map> local_wasms; +thread_local std::unordered_map> local_plugins; // Map from Wasm Key to the base Wasm instance, using a pointer to avoid the initialization fiasco. std::mutex base_wasms_mutex; std::unordered_map> *base_wasms = nullptr; @@ -280,7 +281,11 @@ WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, } } -WasmBase::~WasmBase() {} +WasmBase::~WasmBase() { + root_contexts_.clear(); + pending_done_.clear(); + pending_delete_.clear(); +} bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { if (!wasm_vm_) { @@ -319,22 +324,19 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { return !isFailed(); } -ContextBase *WasmBase::getRootContext(std::string_view root_id) { - auto it = root_contexts_.find(std::string(root_id)); - if (it == root_contexts_.end()) { - return nullptr; +ContextBase *WasmBase::getRootContext(const std::shared_ptr &plugin, + bool allow_closed) { + auto it = root_contexts_.find(plugin->key()); + if (it != root_contexts_.end()) { + return it->second.get(); } - return it->second.get(); -} - -ContextBase *WasmBase::getOrCreateRootContext(const std::shared_ptr &plugin) { - auto root_context = getRootContext(plugin->root_id_); - if (!root_context) { - auto context = std::unique_ptr(createRootContext(plugin)); - root_context = context.get(); - root_contexts_[plugin->root_id_] = std::move(context); + if (allow_closed) { + it = pending_done_.find(plugin->key()); + if (it != pending_done_.end()) { + return it->second.get(); + } } - return root_context; + return nullptr; } void WasmBase::startVm(ContextBase *root_context) { @@ -352,15 +354,14 @@ bool WasmBase::configure(ContextBase *root_context, std::shared_ptr } ContextBase *WasmBase::start(std::shared_ptr plugin) { - auto root_id = plugin->root_id_; - auto it = root_contexts_.find(root_id); + auto it = root_contexts_.find(plugin->key()); if (it != root_contexts_.end()) { it->second->onStart(plugin); return it->second.get(); } auto context = std::unique_ptr(createRootContext(plugin)); auto context_ptr = context.get(); - root_contexts_[root_id] = std::move(context); + root_contexts_[plugin->key()] = std::move(context); if (!context_ptr->onStart(plugin)) { return nullptr; } @@ -377,38 +378,49 @@ uint32_t WasmBase::allocContextId() { } } -void WasmBase::startShutdown() { - bool all_done = true; - for (auto &p : root_contexts_) { - if (!p.second->onDone()) { - all_done = false; - pending_done_.insert(p.second.get()); +void WasmBase::startShutdown(std::string_view plugin_key) { + auto it = root_contexts_.find(std::string(plugin_key)); + if (it != root_contexts_.end()) { + if (it->second->onDone()) { + it->second->onDelete(); + } else { + pending_done_[it->first] = std::move(it->second); } + root_contexts_.erase(it); } - if (!all_done) { - shutdown_handle_ = std::make_unique(shared_from_this()); - } else { - finishShutdown(); +} + +void WasmBase::startShutdown() { + auto it = root_contexts_.begin(); + while (it != root_contexts_.end()) { + if (it->second->onDone()) { + it->second->onDelete(); + } else { + pending_done_[it->first] = std::move(it->second); + } + it = root_contexts_.erase(it); } } WasmResult WasmBase::done(ContextBase *root_context) { - auto it = pending_done_.find(root_context); + auto it = pending_done_.find(root_context->plugin_->key()); if (it == pending_done_.end()) { return WasmResult::NotFound; } + pending_delete_.insert(std::move(it->second)); pending_done_.erase(it); - if (pending_done_.empty() && shutdown_handle_) { - // Defer the delete so that onDelete is not called from within the done() handler. - addAfterVmCallAction( - [shutdown_handle = shutdown_handle_.release()]() { delete shutdown_handle; }); - } + // Defer the delete so that onDelete is not called from within the done() handler. + shutdown_handle_ = std::make_unique(shared_from_this()); + addAfterVmCallAction( + [shutdown_handle = shutdown_handle_.release()]() { delete shutdown_handle; }); return WasmResult::Ok; } void WasmBase::finishShutdown() { - for (auto &p : root_contexts_) { - p.second->onDelete(); + auto it = pending_delete_.begin(); + while (it != pending_delete_.end()) { + (*it)->onDelete(); + it = pending_delete_.erase(it); } } @@ -475,33 +487,6 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, return wasm_handle; }; -static std::shared_ptr -createThreadLocalWasm(std::shared_ptr &base_wasm, - std::shared_ptr plugin, WasmHandleCloneFactory clone_factory) { - auto wasm_handle = clone_factory(base_wasm); - if (!wasm_handle) { - wasm_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); - return nullptr; - } - if (!wasm_handle->wasm()->initialize(base_wasm->wasm()->code(), - base_wasm->wasm()->allow_precompiled())) { - wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); - return nullptr; - } - ContextBase *root_context = wasm_handle->wasm()->start(plugin); - if (!root_context) { - base_wasm->wasm()->fail(FailState::StartFailed, "Failed to start thread-local Wasm"); - return nullptr; - } - if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->fail(FailState::ConfigureFailed, - "Failed to configure thread-local Wasm plugin"); - return nullptr; - } - local_wasms[std::string(wasm_handle->wasm()->vm_key())] = wasm_handle; - return wasm_handle; -} - std::shared_ptr getThreadLocalWasm(std::string_view vm_key) { auto it = local_wasms.find(std::string(vm_key)); if (it == local_wasms.end()) { @@ -514,24 +499,72 @@ std::shared_ptr getThreadLocalWasm(std::string_view vm_key) { return wasm; } -std::shared_ptr -getOrCreateThreadLocalWasm(std::shared_ptr base_wasm, - std::shared_ptr plugin, +static std::shared_ptr +getOrCreateThreadLocalWasm(std::shared_ptr base_handle, WasmHandleCloneFactory clone_factory) { - auto wasm_handle = getThreadLocalWasm(base_wasm->wasm()->vm_key()); - if (wasm_handle) { - auto root_context = wasm_handle->wasm()->getOrCreateRootContext(plugin); - if (!wasm_handle->wasm()->configure(root_context, plugin)) { - base_wasm->wasm()->fail(FailState::ConfigureFailed, - "Failed to configure thread-local Wasm code"); - return nullptr; + std::string vm_key(base_handle->wasm()->vm_key()); + // Get existing thread-local WasmVM. + auto it = local_wasms.find(vm_key); + if (it != local_wasms.end()) { + auto wasm_handle = it->second.lock(); + if (wasm_handle) { + return wasm_handle; } - return wasm_handle; + // Remove stale entry. + local_wasms.erase(vm_key); + } + // Create and initialize new thread-local WasmVM. + auto wasm_handle = clone_factory(base_handle); + if (!wasm_handle) { + base_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); + return nullptr; + } + if (!wasm_handle->wasm()->initialize(base_handle->wasm()->code(), + base_handle->wasm()->allow_precompiled())) { + base_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); + return nullptr; + } + local_wasms[vm_key] = wasm_handle; + return wasm_handle; +} + +std::shared_ptr getOrCreateThreadLocalPlugin( + std::shared_ptr base_handle, std::shared_ptr plugin, + WasmHandleCloneFactory clone_factory, PluginHandleFactory plugin_factory) { + std::string key(std::string(base_handle->wasm()->vm_key()) + "||" + plugin->key()); + // Get existing thread-local Plugin handle. + auto it = local_plugins.find(key); + if (it != local_plugins.end()) { + auto plugin_handle = it->second.lock(); + if (plugin_handle) { + return plugin_handle; + } + // Remove stale entry. + local_plugins.erase(key); + } + // Get thread-local WasmVM. + auto wasm_handle = getOrCreateThreadLocalWasm(base_handle, clone_factory); + if (!wasm_handle) { + return nullptr; + } + // Create and initialize new thread-local Plugin. + auto plugin_context = wasm_handle->wasm()->start(plugin); + if (!plugin_context) { + base_handle->wasm()->fail(FailState::StartFailed, "Failed to start thread-local Wasm"); + return nullptr; + } + if (!wasm_handle->wasm()->configure(plugin_context, plugin)) { + base_handle->wasm()->fail(FailState::ConfigureFailed, + "Failed to configure thread-local Wasm plugin"); + return nullptr; } - return createThreadLocalWasm(base_wasm, plugin, clone_factory); + auto plugin_handle = plugin_factory(wasm_handle, plugin->key()); + local_plugins[key] = plugin_handle; + return plugin_handle; } void clearWasmCachesForTesting() { + local_plugins.clear(); local_wasms.clear(); std::lock_guard guard(base_wasms_mutex); if (base_wasms) { From 15827110ac35fdac9abdb6b05d04ee7ee2044dae Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 11 Nov 2020 18:02:18 -0800 Subject: [PATCH 060/287] Always process HTTP headers before processing HTTP body. (#95) Signed-off-by: Piotr Sikora --- src/context.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/context.cc b/src/context.cc index 33fab4863..f1cdcc6fc 100644 --- a/src/context.cc +++ b/src/context.cc @@ -622,6 +622,12 @@ FilterHeadersStatus ContextBase::convertVmCallResultToFilterHeadersStatus(uint64 result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) { return FilterHeadersStatus::StopAllIterationAndWatermark; } + if (result == static_cast(FilterHeadersStatus::StopIteration)) { + // Always convert StopIteration (pause processing headers, but continue processing body) + // to StopAllIterationAndWatermark (pause all processing), since the former breaks all + // assumptions about HTTP processing. + return FilterHeadersStatus::StopAllIterationAndWatermark; + } return static_cast(result); } From 44516a7ee26f057f3d90bc31f98278ba6766623f Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 17 Nov 2020 17:41:20 +0900 Subject: [PATCH 061/287] Refactor shared storage. (#98) Signed-off-by: mathetake --- BUILD | 8 +- src/context.cc | 182 ++------------------------------------ src/shared_data.cc | 65 ++++++++++++++ src/shared_data.h | 48 ++++++++++ src/shared_queue.cc | 103 +++++++++++++++++++++ src/shared_queue.h | 66 ++++++++++++++ test/BUILD | 22 +++++ test/shared_data_test.cc | 80 +++++++++++++++++ test/shared_queue_test.cc | 101 +++++++++++++++++++++ 9 files changed, 500 insertions(+), 175 deletions(-) create mode 100644 src/shared_data.cc create mode 100644 src/shared_data.h create mode 100644 src/shared_queue.cc create mode 100644 src/shared_queue.h create mode 100644 test/shared_data_test.cc create mode 100644 test/shared_queue_test.cc diff --git a/BUILD b/BUILD index 328d65f4e..e9d434b26 100644 --- a/BUILD +++ b/BUILD @@ -17,12 +17,16 @@ cc_library( cc_library( name = "lib", srcs = glob( - ["src/**/*.cc"], + [ + "src/**/*.cc", + "src/**/*.h", + ], exclude = [ "src/**/wavm*", "src/**/v8*", ], - ) + glob(["src/**/*.h"]), + ), + hdrs = glob(["src/**/*.h"]), copts = COPTS, deps = [ ":include", diff --git a/src/context.cc b/src/context.cc index f1cdcc6fc..70edb17fe 100644 --- a/src/context.cc +++ b/src/context.cc @@ -22,6 +22,8 @@ #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm.h" +#include "src/shared_data.h" +#include "src/shared_queue.h" #define CHECK_FAIL(_call, _stream_type, _return_open, _return_closed) \ if (isFailed()) { \ @@ -60,171 +62,6 @@ namespace proxy_wasm { -namespace { - -using CallOnThreadFunction = std::function)>; - -class SharedData { -public: - WasmResult get(std::string_view vm_id, const std::string_view key, - std::pair *result) { - std::lock_guard lock(mutex_); - auto map = data_.find(std::string(vm_id)); - if (map == data_.end()) { - return WasmResult::NotFound; - } - auto it = map->second.find(std::string(key)); - if (it != map->second.end()) { - *result = it->second; - return WasmResult::Ok; - } - return WasmResult::NotFound; - } - - WasmResult set(std::string_view vm_id, std::string_view key, std::string_view value, - uint32_t cas) { - std::lock_guard lock(mutex_); - std::unordered_map> *map; - auto map_it = data_.find(std::string(vm_id)); - if (map_it == data_.end()) { - map = &data_[std::string(vm_id)]; - } else { - map = &map_it->second; - } - auto it = map->find(std::string(key)); - if (it != map->end()) { - if (cas && cas != it->second.second) { - return WasmResult::CasMismatch; - } - it->second = std::make_pair(std::string(value), nextCas()); - } else { - map->emplace(key, std::make_pair(std::string(value), nextCas())); - } - return WasmResult::Ok; - } - - uint32_t registerQueue(std::string_view vm_id, std::string_view queue_name, uint32_t context_id, - CallOnThreadFunction call_on_thread, std::string_view vm_key) { - std::lock_guard lock(mutex_); - auto key = std::make_pair(std::string(vm_id), std::string(queue_name)); - auto it = queue_tokens_.insert(std::make_pair(key, static_cast(0))); - if (it.second) { - it.first->second = nextQueueToken(); - queue_token_set_.insert(it.first->second); - } - uint32_t token = it.first->second; - auto &q = queues_[token]; - q.vm_key = std::string(vm_key); - q.context_id = context_id; - q.call_on_thread = std::move(call_on_thread); - // Preserve any existing data. - return token; - } - - uint32_t resolveQueue(std::string_view vm_id, std::string_view queue_name) { - std::lock_guard lock(mutex_); - auto key = std::make_pair(std::string(vm_id), std::string(queue_name)); - auto it = queue_tokens_.find(key); - if (it != queue_tokens_.end()) { - return it->second; - } - return 0; // N.B. zero indicates that the queue was not found. - } - - WasmResult dequeue(uint32_t token, std::string *data) { - std::lock_guard lock(mutex_); - auto it = queues_.find(token); - if (it == queues_.end()) { - return WasmResult::NotFound; - } - if (it->second.queue.empty()) { - return WasmResult::Empty; - } - *data = it->second.queue.front(); - it->second.queue.pop_front(); - return WasmResult::Ok; - } - - WasmResult enqueue(uint32_t token, std::string_view value) { - std::string vm_key; - uint32_t context_id; - CallOnThreadFunction call_on_thread; - - { - std::lock_guard lock(mutex_); - auto it = queues_.find(token); - if (it == queues_.end()) { - return WasmResult::NotFound; - } - Queue *target_queue = &(it->second); - vm_key = target_queue->vm_key; - context_id = target_queue->context_id; - call_on_thread = target_queue->call_on_thread; - target_queue->queue.push_back(std::string(value)); - } - - call_on_thread([vm_key, context_id, token] { - // This code may or may not execute in another thread. - // Make sure that the lock is no longer held here. - auto wasm = getThreadLocalWasm(vm_key); - if (wasm) { - auto context = wasm->wasm()->getContext(context_id); - if (context) { - context->onQueueReady(token); - } - } - }); - return WasmResult::Ok; - } - - uint32_t nextCas() { - auto result = cas_; - cas_++; - if (!cas_) { // 0 is not a valid CAS value. - cas_++; - } - return result; - } - -private: - uint32_t nextQueueToken() { - while (true) { - uint32_t token = next_queue_token_++; - if (token == 0) { - continue; // 0 is an illegal token. - } - if (queue_token_set_.find(token) == queue_token_set_.end()) { - return token; - } - } - } - - struct Queue { - std::string vm_key; - uint32_t context_id; - CallOnThreadFunction call_on_thread; - std::deque queue; - }; - - // TODO: use std::shared_mutex in C++17. - std::mutex mutex_; - uint32_t cas_ = 1; - uint32_t next_queue_token_ = 1; - std::map>> data_; - std::map queues_; - struct pair_hash { - template std::size_t operator()(const std::pair &pair) const { - return std::hash()(pair.first) ^ std::hash()(pair.second); - } - }; - std::unordered_map, uint32_t, pair_hash> queue_tokens_; - std::unordered_set queue_token_set_; -}; - -SharedData global_shared_data; - -} // namespace - DeferAfterCallActions::~DeferAfterCallActions() { wasm_->stopNextIteration(false); wasm_->doAfterVmCallActions(); @@ -247,9 +84,8 @@ WasmResult BufferBase::copyTo(WasmBase *wasm, size_t start, size_t length, uint6 } // Test support. - uint32_t resolveQueueForTest(std::string_view vm_id, std::string_view queue_name) { - return global_shared_data.resolveQueue(vm_id, queue_name); + return global_shared_queue.resolveQueue(vm_id, queue_name); } std::string PluginBase::makeLogPrefix() const { @@ -380,15 +216,15 @@ WasmResult ContextBase::registerSharedQueue(std::string_view queue_name, SharedQueueDequeueToken *result) { // Get the id of the root context if this is a stream context because onQueueReady is on the // root. - *result = global_shared_data.registerQueue(wasm_->vm_id(), queue_name, - isRootContext() ? id_ : parent_context_id_, - wasm_->callOnThreadFunction(), wasm_->vm_key()); + *result = global_shared_queue.registerQueue(wasm_->vm_id(), queue_name, + isRootContext() ? id_ : parent_context_id_, + wasm_->callOnThreadFunction(), wasm_->vm_key()); return WasmResult::Ok; } WasmResult ContextBase::lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, uint32_t *token_ptr) { - uint32_t token = global_shared_data.resolveQueue(vm_id, queue_name); + uint32_t token = global_shared_queue.resolveQueue(vm_id, queue_name); if (isFailed() || !token) { return WasmResult::NotFound; } @@ -397,11 +233,11 @@ WasmResult ContextBase::lookupSharedQueue(std::string_view vm_id, std::string_vi } WasmResult ContextBase::dequeueSharedQueue(uint32_t token, std::string *data) { - return global_shared_data.dequeue(token, data); + return global_shared_queue.dequeue(token, data); } WasmResult ContextBase::enqueueSharedQueue(uint32_t token, std::string_view value) { - return global_shared_data.enqueue(token, value); + return global_shared_queue.enqueue(token, value); } void ContextBase::destroy() { if (destroyed_) { diff --git a/src/shared_data.cc b/src/shared_data.cc new file mode 100644 index 000000000..c5ac056a1 --- /dev/null +++ b/src/shared_data.cc @@ -0,0 +1,65 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/shared_data.h" + +#include +#include +#include +#include +#include +#include + +namespace proxy_wasm { + +SharedData global_shared_data; + +WasmResult SharedData::get(std::string_view vm_id, const std::string_view key, + std::pair *result) { + std::lock_guard lock(mutex_); + auto map = data_.find(std::string(vm_id)); + if (map == data_.end()) { + return WasmResult::NotFound; + } + auto it = map->second.find(std::string(key)); + if (it != map->second.end()) { + *result = it->second; + return WasmResult::Ok; + } + return WasmResult::NotFound; +} + +WasmResult SharedData::set(std::string_view vm_id, std::string_view key, std::string_view value, + uint32_t cas) { + std::lock_guard lock(mutex_); + std::unordered_map> *map; + auto map_it = data_.find(std::string(vm_id)); + if (map_it == data_.end()) { + map = &data_[std::string(vm_id)]; + } else { + map = &map_it->second; + } + auto it = map->find(std::string(key)); + if (it != map->end()) { + if (cas && cas != it->second.second) { + return WasmResult::CasMismatch; + } + it->second = std::make_pair(std::string(value), nextCas()); + } else { + map->emplace(key, std::make_pair(std::string(value), nextCas())); + } + return WasmResult::Ok; +} + +} // namespace proxy_wasm diff --git a/src/shared_data.h b/src/shared_data.h new file mode 100644 index 000000000..3f312494a --- /dev/null +++ b/src/shared_data.h @@ -0,0 +1,48 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +#include "include/proxy-wasm/wasm.h" + +namespace proxy_wasm { + +class SharedData { +public: + WasmResult get(std::string_view vm_id, const std::string_view key, + std::pair *result); + WasmResult set(std::string_view vm_id, std::string_view key, std::string_view value, + uint32_t cas); + +private: + uint32_t nextCas() { + auto result = cas_; + cas_++; + if (!cas_) { // 0 is not a valid CAS value. + cas_++; + } + return result; + } + + // TODO: use std::shared_mutex in C++17. + std::mutex mutex_; + uint32_t cas_ = 1; + std::map>> data_; +}; + +extern SharedData global_shared_data; + +} // namespace proxy_wasm diff --git a/src/shared_queue.cc b/src/shared_queue.cc new file mode 100644 index 000000000..e8695ef7d --- /dev/null +++ b/src/shared_queue.cc @@ -0,0 +1,103 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/shared_queue.h" + +#include +#include +#include +#include +#include +#include + +namespace proxy_wasm { + +SharedQueue global_shared_queue; + +uint32_t SharedQueue::registerQueue(std::string_view vm_id, std::string_view queue_name, + uint32_t context_id, CallOnThreadFunction call_on_thread, + std::string_view vm_key) { + std::lock_guard lock(mutex_); + auto key = std::make_pair(std::string(vm_id), std::string(queue_name)); + auto it = queue_tokens_.insert(std::make_pair(key, static_cast(0))); + if (it.second) { + it.first->second = nextQueueToken(); + queue_token_set_.insert(it.first->second); + } + uint32_t token = it.first->second; + auto &q = queues_[token]; + q.vm_key = std::string(vm_key); + q.context_id = context_id; + q.call_on_thread = std::move(call_on_thread); + // Preserve any existing data. + return token; +} + +uint32_t SharedQueue::resolveQueue(std::string_view vm_id, std::string_view queue_name) { + std::lock_guard lock(mutex_); + auto key = std::make_pair(std::string(vm_id), std::string(queue_name)); + auto it = queue_tokens_.find(key); + if (it != queue_tokens_.end()) { + return it->second; + } + return 0; // N.B. zero indicates that the queue was not found. +} + +WasmResult SharedQueue::dequeue(uint32_t token, std::string *data) { + std::lock_guard lock(mutex_); + auto it = queues_.find(token); + if (it == queues_.end()) { + return WasmResult::NotFound; + } + if (it->second.queue.empty()) { + return WasmResult::Empty; + } + *data = it->second.queue.front(); + it->second.queue.pop_front(); + return WasmResult::Ok; +} + +WasmResult SharedQueue::enqueue(uint32_t token, std::string_view value) { + std::string vm_key; + uint32_t context_id; + CallOnThreadFunction call_on_thread; + + { + std::lock_guard lock(mutex_); + auto it = queues_.find(token); + if (it == queues_.end()) { + return WasmResult::NotFound; + } + Queue *target_queue = &(it->second); + vm_key = target_queue->vm_key; + context_id = target_queue->context_id; + call_on_thread = target_queue->call_on_thread; + target_queue->queue.push_back(std::string(value)); + } + + call_on_thread([vm_key, context_id, token] { + // This code may or may not execute in another thread. + // Make sure that the lock is no longer held here. + auto wasm = getThreadLocalWasm(vm_key); + if (wasm) { + auto context = wasm->wasm()->getContext(context_id); + if (context) { + context->onQueueReady(token); + } + } + }); + return WasmResult::Ok; +} + +} // namespace proxy_wasm diff --git a/src/shared_queue.h b/src/shared_queue.h new file mode 100644 index 000000000..0f87c9001 --- /dev/null +++ b/src/shared_queue.h @@ -0,0 +1,66 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +#include "include/proxy-wasm/wasm.h" + +namespace proxy_wasm { + +class SharedQueue { +public: + uint32_t registerQueue(std::string_view vm_id, std::string_view queue_name, uint32_t context_id, + CallOnThreadFunction call_on_thread, std::string_view vm_key); + uint32_t resolveQueue(std::string_view vm_id, std::string_view queue_name); + WasmResult dequeue(uint32_t token, std::string *data); + WasmResult enqueue(uint32_t token, std::string_view value); + +private: + uint32_t nextQueueToken() { + while (true) { + uint32_t token = next_queue_token_++; + if (token == 0) { + continue; // 0 is an illegal token. + } + if (queue_token_set_.find(token) == queue_token_set_.end()) { + return token; + } + } + } + + struct Queue { + std::string vm_key; + uint32_t context_id; + CallOnThreadFunction call_on_thread; + std::deque queue; + }; + + // TODO: use std::shared_mutex in C++17. + std::mutex mutex_; + std::map queues_; + uint32_t next_queue_token_ = 1; + struct pair_hash { + template std::size_t operator()(const std::pair &pair) const { + return std::hash()(pair.first) ^ std::hash()(pair.second); + } + }; + std::unordered_map, uint32_t, pair_hash> queue_tokens_; + std::unordered_set queue_token_set_; +}; + +extern SharedQueue global_shared_queue; + +} // namespace proxy_wasm diff --git a/test/BUILD b/test/BUILD index 5a5cf662a..803e59e98 100644 --- a/test/BUILD +++ b/test/BUILD @@ -39,3 +39,25 @@ cc_test( "@com_google_googletest//:gtest_main", ], ) + +cc_test( + name = "shared_data", + srcs = ["shared_data_test.cc"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + +cc_test( + name = "shared_queue", + srcs = ["shared_queue_test.cc"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) diff --git a/test/shared_data_test.cc b/test/shared_data_test.cc new file mode 100644 index 000000000..b79a7a030 --- /dev/null +++ b/test/shared_data_test.cc @@ -0,0 +1,80 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/shared_data.h" + +#include + +#include "gtest/gtest.h" + +namespace proxy_wasm { + +TEST(SharedData, SingleThread) { + SharedData shared_data; + std::pair result; + EXPECT_EQ(WasmResult::NotFound, shared_data.get("non-exist", "non-exists", &result)); + + std::string_view vm_id = "id"; + std::string_view key = "key"; + std::string_view value = "1"; + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); + // ok for cas == 0 + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); + EXPECT_EQ(WasmResult::CasMismatch, shared_data.set(vm_id, key, value, 100)); + + EXPECT_EQ(WasmResult::Ok, shared_data.get(vm_id, key, &result)); + EXPECT_EQ(value, result.first); + value = "2"; + EXPECT_EQ(result.second, 2); + + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, result.second)); + EXPECT_EQ(WasmResult::Ok, shared_data.get(vm_id, key, &result)); + EXPECT_EQ(value, result.first); + EXPECT_EQ(result.second, 3); +} + +void incrementData(SharedData *shared_data, std::string_view vm_id, std::string_view key) { + std::pair result; + for (auto i = 0; i < 10; i++) { + while (true) { + if (WasmResult::Ok != shared_data->get(vm_id, key, &result)) { + continue; + } + if (WasmResult::Ok != shared_data->set(vm_id, key, result.first + "a", result.second)) { + continue; + }; + break; + } + } + return; +} + +TEST(SharedData, Concurrent) { + SharedData shared_data; + std::pair result; + + std::string_view vm_id = "id"; + std::string_view key = "key"; + std::string_view value; + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); + std::thread first(incrementData, &shared_data, vm_id, key); + std::thread second(incrementData, &shared_data, vm_id, key); + first.join(); + second.join(); + + EXPECT_EQ(WasmResult::Ok, shared_data.get(vm_id, key, &result)); + EXPECT_EQ(result.first, "aaaaaaaaaaaaaaaaaaaa"); +} + +} // namespace proxy_wasm diff --git a/test/shared_queue_test.cc b/test/shared_queue_test.cc new file mode 100644 index 000000000..2f3069468 --- /dev/null +++ b/test/shared_queue_test.cc @@ -0,0 +1,101 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/shared_queue.h" + +#include + +#include "gtest/gtest.h" + +namespace proxy_wasm { + +TEST(SharedQueue, SingleThread) { + SharedQueue shared_queue; + std::string_view vm_id = "id"; + std::string_view vm_key = "vm_key"; + std::string_view queue_name = "name"; + uint32_t context_id = 1; + + EXPECT_EQ(1, shared_queue.registerQueue(vm_id, queue_name, context_id, nullptr, vm_key)); + EXPECT_EQ(1, shared_queue.resolveQueue(vm_id, queue_name)); + EXPECT_EQ(0, shared_queue.resolveQueue(vm_id, "non-exist")); + EXPECT_EQ(0, shared_queue.resolveQueue("non-exist", queue_name)); + + bool called = false; + std::function)> call_on_thread = + [&called](const std::function &f) { + called = true; + f(); // TODO(mathetake): test whether onQueueReady is called with mock WasmHandle + }; + queue_name = "name2"; + auto token = shared_queue.registerQueue(vm_id, queue_name, context_id, call_on_thread, vm_key); + EXPECT_EQ(2, token); + + std::string data; + EXPECT_EQ(WasmResult::NotFound, shared_queue.dequeue(0, &data)); + EXPECT_EQ(WasmResult::Empty, shared_queue.dequeue(token, &data)); + + std::string value = "value"; + EXPECT_EQ(WasmResult::NotFound, shared_queue.enqueue(0, value)); + EXPECT_EQ(WasmResult::Ok, shared_queue.enqueue(token, value)); + EXPECT_TRUE(called); + + EXPECT_EQ(WasmResult::Ok, shared_queue.dequeue(token, &data)); + EXPECT_EQ(data, "value"); +} + +void enqueueData(SharedQueue *shared_queue, uint32_t token, size_t num) { + for (size_t i = 0; i < num; i++) { + shared_queue->enqueue(token, "a"); + } +} + +void dequeueData(SharedQueue *shared_queue, uint32_t token, size_t *dequeued_count) { + std::string data; + while (WasmResult::Ok == shared_queue->dequeue(token, &data)) { + (*dequeued_count)++; + } +} + +TEST(SharedQueue, Concurrent) { + SharedQueue shared_queue; + std::string_view vm_id = "id"; + std::string_view vm_key = "vm_key"; + std::string_view queue_name = "name"; + uint32_t context_id = 1; + + auto queued_count = 0; + std::function)> call_on_thread = + [&queued_count](const std::function &f) { + queued_count++; + f(); // TODO(mathetake): test whether onQueueReady is called with mock WasmHandle + }; + auto token = shared_queue.registerQueue(vm_id, queue_name, context_id, call_on_thread, vm_key); + EXPECT_EQ(1, token); + + std::thread enqueue_first(enqueueData, &shared_queue, token, 100); + std::thread enqueue_second(enqueueData, &shared_queue, token, 100); + enqueue_first.join(); + enqueue_second.join(); + EXPECT_EQ(queued_count, 200); + + size_t first_cnt = 0, second_cnt = 0; + std::thread dequeue_first(dequeueData, &shared_queue, token, &first_cnt); + std::thread dequeue_second(dequeueData, &shared_queue, token, &second_cnt); + dequeue_first.join(); + dequeue_second.join(); + EXPECT_EQ(first_cnt + second_cnt, 200); +} + +} // namespace proxy_wasm From cdc8657d2cbf373e91e4200d52418daf2b753fbc Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 19 Nov 2020 14:38:35 -0800 Subject: [PATCH 062/287] Add better logging for a few common errors. (#100) Fixes istio/istio#27637. Signed-off-by: Piotr Sikora --- src/wasm.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/wasm.cc b/src/wasm.cc index b83064a7e..ea14e5151 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -295,6 +295,7 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { if (started_from_ == Cloneable::NotCloneable) { auto ok = wasm_vm_->load(code, allow_precompiled); if (!ok) { + fail(FailState::UnableToInitializeCode, "Failed to load Wasm code"); return false; } code_ = code; @@ -303,6 +304,7 @@ bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { abi_version_ = wasm_vm_->getAbiVersion(); if (abi_version_ == AbiVersion::Unknown) { + fail(FailState::UnableToInitializeCode, "Missing or unknown Proxy-Wasm ABI version"); return false; } From b6676be397a70fe5f11019554034ac175f16797c Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 19 Nov 2020 14:44:00 -0800 Subject: [PATCH 063/287] v8: fix error message for function signature mismatch. (#101) Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 648f277e1..62ee2bc1d 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -609,7 +609,7 @@ void V8::getModuleFunctionImpl(std::string_view function_name, "Bad function signature for: " + std::string(function_name) + ", want: " + printValTypes(arg_valtypes) + " -> " + printValTypes(result_valtypes) + ", but the module exports: " + printValTypes(func->type()->params()) + " -> " + - printValTypes(result_valtypes)); + printValTypes(func->type()->results())); *function = nullptr; return; } @@ -641,7 +641,7 @@ void V8::getModuleFunctionImpl(std::string_view function_name, "Bad function signature for: " + std::string(function_name) + ", want: " + printValTypes(arg_valtypes) + " -> " + printValTypes(result_valtypes) + ", but the module exports: " + printValTypes(func->type()->params()) + " -> " + - printValTypes(result_valtypes)); + printValTypes(func->type()->results())); *function = nullptr; return; } From d36296d70e56f1a96f1b4dba603c97e2f069d60d Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 19 Nov 2020 16:07:04 -0800 Subject: [PATCH 064/287] Run GitHub Actions on istio-release/** branches. (#102) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index dfd30a1a5..59713c0a8 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -20,11 +20,13 @@ on: branches: - master - 'envoy-release/**' + - 'istio-release/**' push: branches: - master - 'envoy-release/**' + - 'istio-release/**' jobs: From 1e4bda09e99ce3be03548f20f7a5eeaf8e0690c8 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Fri, 4 Dec 2020 15:55:59 +0900 Subject: [PATCH 065/287] Delete foreign.cc (#109) Signed-off-by: mathetake --- bazel/variables.bzl | 2 -- src/foreign.cc | 66 --------------------------------------------- 2 files changed, 68 deletions(-) delete mode 100644 src/foreign.cc diff --git a/bazel/variables.bzl b/bazel/variables.bzl index 1d94a2aab..1d28c04ae 100644 --- a/bazel/variables.bzl +++ b/bazel/variables.bzl @@ -15,11 +15,9 @@ COPTS = select({ "@bazel_tools//src/conditions:windows": [ "/std:c++17", - "-DWITHOUT_ZLIB", ], "//conditions:default": [ "-std=c++17", - "-DWITHOUT_ZLIB", ], }) diff --git a/src/foreign.cc b/src/foreign.cc deleted file mode 100644 index 34335697c..000000000 --- a/src/foreign.cc +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include "include/proxy-wasm/wasm.h" - -#ifndef WITHOUT_ZLIB -#include "zlib.h" -#endif - -namespace proxy_wasm { -namespace { - -#ifndef WITHOUT_ZLIB -RegisterForeignFunction compressFunction( - "compress", - [](WasmBase &, std::string_view arguments, - std::function alloc_result) -> WasmResult { - unsigned long dest_len = compressBound(arguments.size()); - std::unique_ptr b(new unsigned char[dest_len]); - if (compress(b.get(), &dest_len, reinterpret_cast(arguments.data()), - arguments.size()) != Z_OK) { - return WasmResult::SerializationFailure; - } - auto result = alloc_result(dest_len); - memcpy(result, b.get(), dest_len); - return WasmResult::Ok; - }); - -RegisterForeignFunction - uncompressFunction("uncompress", - [](WasmBase &, std::string_view arguments, - std::function alloc_result) -> WasmResult { - unsigned long dest_len = arguments.size() * 2 + 2; // output estimate. - while (1) { - std::unique_ptr b(new unsigned char[dest_len]); - auto r = - uncompress(b.get(), &dest_len, - reinterpret_cast(arguments.data()), - arguments.size()); - if (r == Z_OK) { - auto result = alloc_result(dest_len); - memcpy(result, b.get(), dest_len); - return WasmResult::Ok; - } - if (r != Z_MEM_ERROR) { - return WasmResult::SerializationFailure; - } - dest_len = dest_len * 2; - } - }); -#endif - -} // namespace -} // namespace proxy_wasm From bf2cfcaa608cb9c2bee9ef5bb56fec29e7ca6d9e Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 7 Dec 2020 07:19:05 +0900 Subject: [PATCH 066/287] Clean up WORKSPACE. (#105) Signed-off-by: mathetake --- BUILD | 3 +- WORKSPACE | 88 ++---------------------------- bazel/BUILD | 0 bazel/dependencies.bzl | 20 +++++++ bazel/repositories.bzl | 75 +++++++++++++++++++++++++ {test/test_data => bazel}/wasm.bzl | 0 test/BUILD | 2 +- test/test_data/BUILD | 2 +- test/test_data/trap.rs | 2 +- 9 files changed, 104 insertions(+), 88 deletions(-) create mode 100644 bazel/BUILD create mode 100644 bazel/dependencies.bzl create mode 100644 bazel/repositories.bzl rename {test/test_data => bazel}/wasm.bzl (100%) diff --git a/BUILD b/BUILD index e9d434b26..840ccd3a2 100644 --- a/BUILD +++ b/BUILD @@ -1,4 +1,5 @@ -load("//:bazel/variables.bzl", "COPTS", "LINKOPTS") +load("@rules_cc//cc:defs.bzl", "cc_library") +load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS") licenses(["notice"]) # Apache 2 diff --git a/WORKSPACE b/WORKSPACE index 874d39b13..77ecd3a0b 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -1,89 +1,9 @@ workspace(name = "proxy_wasm_cpp_host") -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") +load("@proxy_wasm_cpp_host//bazel:repositories.bzl", "proxy_wasm_cpp_host_repositories") -git_repository( - name = "proxy_wasm_cpp_sdk", - commit = "1b5f69ce1535b0c21f88c4af4ebf0ec51d255abe", - remote = "https://github.com/proxy-wasm/proxy-wasm-cpp-sdk", -) +proxy_wasm_cpp_host_repositories() -http_archive( - name = "com_google_absl", - sha256 = "19391fb4882601a65cb648d638c11aa301ce5f525ef02da1a9eafd22f72d7c59", - strip_prefix = "abseil-cpp-37dd2562ec830d547a1524bb306be313ac3f2556", - # 2020-01-29 - urls = ["https://github.com/abseil/abseil-cpp/archive/37dd2562ec830d547a1524bb306be313ac3f2556.tar.gz"], -) +load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "proxy_wasm_cpp_host_dependencies") -# required by com_google_protobuf -http_archive( - name = "bazel_skylib", - sha256 = "97e70364e9249702246c0e9444bccdc4b847bed1eb03c5a3ece4f83dfe6abc44", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.2/bazel-skylib-1.0.2.tar.gz", - ], -) - -load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - -bazel_skylib_workspace() - -# rust rules -http_archive( - name = "io_bazel_rules_rust", - sha256 = "7401878bf966325bbec5224eeb4ff7e8762681070b401acaa168da68d383563a", - strip_prefix = "rules_rust-9741a32e50a8c50c504c0931111bb6048d6d6888", - url = "https://github.com/bazelbuild/rules_rust/archive/9741a32e50a8c50c504c0931111bb6048d6d6888.tar.gz", -) - -load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") - -rust_repositories() - -load("@io_bazel_rules_rust//:workspace.bzl", "rust_workspace") - -rust_workspace() - -load("//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_raze__fetch_remote_crates") - -proxy_wasm_cpp_host_raze__fetch_remote_crates() - -git_repository( - name = "com_google_protobuf", - commit = "655310ca192a6e3a050e0ca0b7084a2968072260", - remote = "https://github.com/protocolbuffers/protobuf", - shallow_since = "1565024848 -0700", -) - -http_archive( - name = "boringssl", - sha256 = "bb55b0ed2f0cb548b5dce6a6b8307ce37f7f748eb9f1be6bfe2d266ff2b4d52b", - strip_prefix = "boringssl-2192bbc878822cf6ab5977d4257a1339453d9d39", - urls = ["https://github.com/google/boringssl/archive/2192bbc878822cf6ab5977d4257a1339453d9d39.tar.gz"], -) - -http_archive( - name = "com_google_googletest", - sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", - strip_prefix = "googletest-release-1.10.0", - urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], -) - -http_archive( - name = "wasmtime", - build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "7874feb1026bbef06796bd5ab80e73f15b8e83752bde8dc93994f5bc039a4952", - strip_prefix = "wasmtime-0.21.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.21.0.tar.gz", -) - -http_archive( - name = "wasm_c_api", - build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", - sha256 = "aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c", - strip_prefix = "wasm-c-api-d9a80099d496b5cdba6f3fe8fc77586e0e505ddc", - url = "https://github.com/WebAssembly/wasm-c-api/archive/d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz", -) +proxy_wasm_cpp_host_dependencies() diff --git a/bazel/BUILD b/bazel/BUILD new file mode 100644 index 000000000..e69de29bb diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl new file mode 100644 index 000000000..ef2163cf8 --- /dev/null +++ b/bazel/dependencies.bzl @@ -0,0 +1,20 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") +load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_raze__fetch_remote_crates") + +def proxy_wasm_cpp_host_dependencies(): + rust_repositories() + proxy_wasm_cpp_host_raze__fetch_remote_crates() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl new file mode 100644 index 000000000..93eabfe16 --- /dev/null +++ b/bazel/repositories.bzl @@ -0,0 +1,75 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +def proxy_wasm_cpp_host_repositories(): + http_archive( + name = "proxy_wasm_cpp_sdk", + sha256 = "b97e3e716b1f38dc601487aa0bde72490bbc82b8f3ad73f1f3e69733984955df", + strip_prefix = "proxy-wasm-cpp-sdk-956f0d500c380cc1656a2d861b7ee12c2515a664", + urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/956f0d500c380cc1656a2d861b7ee12c2515a664.tar.gz"], + ) + + http_archive( + name = "boringssl", + sha256 = "bb55b0ed2f0cb548b5dce6a6b8307ce37f7f748eb9f1be6bfe2d266ff2b4d52b", + strip_prefix = "boringssl-2192bbc878822cf6ab5977d4257a1339453d9d39", + urls = ["https://github.com/google/boringssl/archive/2192bbc878822cf6ab5977d4257a1339453d9d39.tar.gz"], + ) + + http_archive( + name = "com_google_googletest", + sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", + strip_prefix = "googletest-release-1.10.0", + urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], + ) + + http_archive( + name = "wasmtime", + build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", + sha256 = "7874feb1026bbef06796bd5ab80e73f15b8e83752bde8dc93994f5bc039a4952", + strip_prefix = "wasmtime-0.21.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.21.0.tar.gz", + ) + + http_archive( + name = "wasm_c_api", + build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", + sha256 = "aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c", + strip_prefix = "wasm-c-api-d9a80099d496b5cdba6f3fe8fc77586e0e505ddc", + url = "https://github.com/WebAssembly/wasm-c-api/archive/d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz", + ) + + http_archive( + name = "com_google_absl", + sha256 = "19391fb4882601a65cb648d638c11aa301ce5f525ef02da1a9eafd22f72d7c59", + strip_prefix = "abseil-cpp-37dd2562ec830d547a1524bb306be313ac3f2556", + # 2020-01-29 + urls = ["https://github.com/abseil/abseil-cpp/archive/37dd2562ec830d547a1524bb306be313ac3f2556.tar.gz"], + ) + + http_archive( + name = "io_bazel_rules_rust", + sha256 = "442a102e2a6f6c75e10d43f21c0c30218947a3e827d91529ced7380c5fec05f0", + strip_prefix = "rules_rust-39523e32ac0bd64f5d60154114a42e61e58ffd17", + url = "https://github.com/bazelbuild/rules_rust/archive/39523e32ac0bd64f5d60154114a42e61e58ffd17.tar.gz", + ) + + http_archive( + name = "com_google_protobuf", + sha256 = "59621f4011a95df270748dcc0ec1cc51946473f0e140d4848a2f20c8719e43aa", + strip_prefix = "protobuf-655310ca192a6e3a050e0ca0b7084a2968072260", + url = "https://github.com/protocolbuffers/protobuf/archive/655310ca192a6e3a050e0ca0b7084a2968072260.tar.gz", + ) diff --git a/test/test_data/wasm.bzl b/bazel/wasm.bzl similarity index 100% rename from test/test_data/wasm.bzl rename to bazel/wasm.bzl diff --git a/test/BUILD b/test/BUILD index 803e59e98..82daf7151 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,5 +1,5 @@ load("@rules_cc//cc:defs.bzl", "cc_test") -load("//:bazel/variables.bzl", "COPTS", "LINKOPTS") +load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS", "LINKOPTS") cc_test( name = "null_vm_test", diff --git a/test/test_data/BUILD b/test/test_data/BUILD index d67973688..051f051cd 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -1,4 +1,4 @@ -load("//test/test_data:wasm.bzl", "wasm_rust_binary") +load("@proxy_wasm_cpp_host//bazel:wasm.bzl", "wasm_rust_binary") package(default_visibility = ["//visibility:public"]) diff --git a/test/test_data/trap.rs b/test/test_data/trap.rs index 8fb2a413c..2be4cab22 100644 --- a/test/test_data/trap.rs +++ b/test/test_data/trap.rs @@ -17,7 +17,7 @@ pub extern "C" fn trigger() { one(); } #[no_mangle] -pub extern "C" fn trigger2(val: i32) -> i32 { +pub extern "C" fn trigger2(_val: i32) -> i32 { three(); 0 } From 5b517e5428682d01139c813ce860f6992d2d034f Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 7 Dec 2020 08:07:26 +0900 Subject: [PATCH 067/287] CI: use preinstalled bazelisk (#112) Signed-off-by: mathetake --- .bazelversion | 1 + .github/workflows/cpp.yml | 10 ++-------- 2 files changed, 3 insertions(+), 8 deletions(-) create mode 100644 .bazelversion diff --git a/.bazelversion b/.bazelversion new file mode 100644 index 000000000..40c341bdc --- /dev/null +++ b/.bazelversion @@ -0,0 +1 @@ +3.6.0 diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 59713c0a8..fd13c7ebc 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -65,13 +65,7 @@ jobs: path: "/home/runner/.cache/bazel" key: bazel - - name: Install bazelisk - run: | - curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.1.0/bazelisk-linux-amd64" - mkdir -p "${GITHUB_WORKSPACE}/bin/" - mv bazelisk-linux-amd64 "${GITHUB_WORKSPACE}/bin/bazel" - chmod +x "${GITHUB_WORKSPACE}/bin/bazel" - - name: Test run: | - "${GITHUB_WORKSPACE}/bin/bazel" test //... + bazel test //... + From fd005dca272d6648fe2771d227d79b479a34cc10 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 7 Dec 2020 09:37:41 +0900 Subject: [PATCH 068/287] Fix cargo-raze version and check the diff. (#107) Signed-off-by: mathetake --- .github/workflows/cargo.yml | 44 +++ .github/workflows/cpp.yml | 1 + bazel/cargo/BUILD.bazel | 16 +- bazel/cargo/Cargo.lock | 48 ++-- bazel/cargo/Cargo.toml | 26 +- bazel/cargo/crates.bzl | 262 +++++++++--------- .../cargo/remote/BUILD.addr2line-0.14.0.bazel | 2 +- .../remote/BUILD.aho-corasick-0.7.15.bazel | 2 +- ...1.0.34.bazel => BUILD.anyhow-1.0.35.bazel} | 2 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 4 +- ....54.bazel => BUILD.backtrace-0.3.55.bazel} | 14 +- bazel/cargo/remote/BUILD.bincode-1.3.1.bazel | 4 +- ....cc-1.0.62.bazel => BUILD.cc-1.0.66.bazel} | 4 +- .../BUILD.cranelift-bforest-0.68.0.bazel | 2 +- .../BUILD.cranelift-codegen-0.68.0.bazel | 24 +- .../BUILD.cranelift-codegen-meta-0.68.0.bazel | 4 +- .../BUILD.cranelift-entity-0.68.0.bazel | 2 +- .../BUILD.cranelift-frontend-0.68.0.bazel | 8 +- .../BUILD.cranelift-native-0.68.0.bazel | 6 +- .../remote/BUILD.cranelift-wasm-0.68.0.bazel | 18 +- .../cargo/remote/BUILD.crc32fast-1.2.1.bazel | 2 +- ...8.1.bazel => BUILD.env_logger-0.8.2.bazel} | 12 +- bazel/cargo/remote/BUILD.gimli-0.22.0.bazel | 6 +- .../remote/BUILD.hermit-abi-0.1.17.bazel | 2 +- bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel | 2 +- .../cargo/remote/BUILD.itertools-0.9.0.bazel | 2 +- ...c-0.2.80.bazel => BUILD.libc-0.2.81.bazel} | 2 +- bazel/cargo/remote/BUILD.log-0.4.11.bazel | 2 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 2 +- .../remote/BUILD.miniz_oxide-0.4.3.bazel | 2 +- bazel/cargo/remote/BUILD.object-0.21.1.bazel | 6 +- ....4.1.bazel => BUILD.once_cell-1.5.2.bazel} | 5 +- .../remote/BUILD.proc-macro2-1.0.24.bazel | 2 +- ...sm-0.1.11.bazel => BUILD.psm-0.1.12.bazel} | 6 +- bazel/cargo/remote/BUILD.quote-1.0.7.bazel | 2 +- .../cargo/remote/BUILD.raw-cpuid-7.0.3.bazel | 8 +- .../cargo/remote/BUILD.regalloc-0.0.31.bazel | 6 +- bazel/cargo/remote/BUILD.regex-1.4.2.bazel | 8 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 8 +- .../remote/BUILD.rustc_version-0.2.3.bazel | 2 +- bazel/cargo/remote/BUILD.semver-0.9.0.bazel | 2 +- ....0.117.bazel => BUILD.serde-1.0.118.bazel} | 4 +- ...bazel => BUILD.serde_derive-1.0.118.bazel} | 8 +- ...1.4.2.bazel => BUILD.smallvec-1.5.1.bazel} | 2 +- ...yn-1.0.48.bazel => BUILD.syn-1.0.53.bazel} | 8 +- ....1.0.bazel => BUILD.termcolor-1.1.2.bazel} | 4 +- .../cargo/remote/BUILD.thiserror-1.0.22.bazel | 2 +- .../remote/BUILD.thiserror-impl-1.0.22.bazel | 6 +- .../remote/BUILD.thread_local-1.0.1.bazel | 2 +- .../cargo/remote/BUILD.wasmtime-0.21.0.bazel | 36 +-- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 4 +- .../BUILD.wasmtime-cranelift-0.21.0.bazel | 10 +- .../remote/BUILD.wasmtime-debug-0.21.0.bazel | 16 +- .../BUILD.wasmtime-environ-0.21.0.bazel | 24 +- .../remote/BUILD.wasmtime-jit-0.21.0.bazel | 46 +-- .../remote/BUILD.wasmtime-obj-0.21.0.bazel | 12 +- .../BUILD.wasmtime-profiling-0.21.0.bazel | 16 +- .../BUILD.wasmtime-runtime-0.21.0.bazel | 26 +- .../remote/BUILD.winapi-util-0.1.5.bazel | 2 +- bazel/dependencies.bzl | 4 +- 60 files changed, 427 insertions(+), 387 deletions(-) create mode 100644 .github/workflows/cargo.yml rename bazel/cargo/remote/{BUILD.anyhow-1.0.34.bazel => BUILD.anyhow-1.0.35.bazel} (98%) rename bazel/cargo/remote/{BUILD.backtrace-0.3.54.bazel => BUILD.backtrace-0.3.55.bazel} (81%) rename bazel/cargo/remote/{BUILD.cc-1.0.62.bazel => BUILD.cc-1.0.66.bazel} (97%) rename bazel/cargo/remote/{BUILD.env_logger-0.8.1.bazel => BUILD.env_logger-0.8.2.bazel} (84%) rename bazel/cargo/remote/{BUILD.libc-0.2.80.bazel => BUILD.libc-0.2.81.bazel} (97%) rename bazel/cargo/remote/{BUILD.once_cell-1.4.1.bazel => BUILD.once_cell-1.5.2.bazel} (94%) rename bazel/cargo/remote/{BUILD.psm-0.1.11.bazel => BUILD.psm-0.1.12.bazel} (95%) rename bazel/cargo/remote/{BUILD.serde-1.0.117.bazel => BUILD.serde-1.0.118.bazel} (92%) rename bazel/cargo/remote/{BUILD.serde_derive-1.0.117.bazel => BUILD.serde_derive-1.0.118.bazel} (83%) rename bazel/cargo/remote/{BUILD.smallvec-1.4.2.bazel => BUILD.smallvec-1.5.1.bazel} (97%) rename bazel/cargo/remote/{BUILD.syn-1.0.48.bazel => BUILD.syn-1.0.53.bazel} (92%) rename bazel/cargo/remote/{BUILD.termcolor-1.1.0.bazel => BUILD.termcolor-1.1.2.bazel} (92%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml new file mode 100644 index 000000000..740fdeb8f --- /dev/null +++ b/.github/workflows/cargo.yml @@ -0,0 +1,44 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Cargo + +on: + pull_request: + branches: + - master + paths: + - 'bazel/cargo/**' + + push: + branches: + - master + paths: + - 'bazel/cargo/**' + +jobs: + + format: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Format (cargo raze) + working-directory: bazel/cargo + run: | + cargo install cargo-raze --version 0.7.0 + cargo generate-lockfile + cargo raze + git diff --exit-code diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index fd13c7ebc..d509c7842 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -47,6 +47,7 @@ jobs: go get -u github.com/bazelbuild/buildtools/buildifier export PATH=$PATH:$(go env GOPATH)/bin find . -name "BUILD" | xargs -n1 buildifier -mode=check + - name: Format (addlicense) run: | go get -u github.com/google/addlicense diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index 35660e366..5f500593b 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -1,6 +1,6 @@ """ @generated -cargo-raze workspace build file. +cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", + actual = "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", tags = [ "cargo-raze", "manual", @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@proxy_wasm_cpp_host_raze___env_logger__0_8_1//:env_logger", + actual = "@proxy_wasm_cpp_host__env_logger__0_8_2//:env_logger", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "indexmap", - actual = "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", + actual = "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "object", - actual = "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", + actual = "@proxy_wasm_cpp_host__object__0_21_1//:object", tags = [ "cargo-raze", "manual", @@ -50,7 +50,7 @@ alias( alias( name = "once_cell", - actual = "@proxy_wasm_cpp_host_raze___once_cell__1_4_1//:once_cell", + actual = "@proxy_wasm_cpp_host__once_cell__1_5_2//:once_cell", tags = [ "cargo-raze", "manual", @@ -59,7 +59,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host_raze___wasmtime__0_21_0//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_21_0//:wasmtime", tags = [ "cargo-raze", "manual", @@ -68,7 +68,7 @@ alias( alias( name = "wasmtime_c_api_macros", - actual = "@proxy_wasm_cpp_host_raze___wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros", + actual = "@proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.lock b/bazel/cargo/Cargo.lock index 1854b9e1d..88cc57061 100644 --- a/bazel/cargo/Cargo.lock +++ b/bazel/cargo/Cargo.lock @@ -26,9 +26,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.34" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7" +checksum = "2c0df63cb2955042487fad3aefd2c6e3ae7389ac5dc1beb28921de0b69f779d4" [[package]] name = "atty" @@ -49,9 +49,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "backtrace" -version = "0.3.54" +version = "0.3.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28" +checksum = "ef5140344c85b01f9bbb4d4b7288a8aa4b3287ccef913a14bcc78a1063623598" dependencies = [ "addr2line", "cfg-if 1.0.0", @@ -85,9 +85,9 @@ checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" [[package]] name = "cc" -version = "1.0.62" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40" +checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" [[package]] name = "cfg-if" @@ -212,9 +212,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "env_logger" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd" +checksum = "f26ecb66b4bdca6c1409b40fb255eefc2bd4f6d135dab3c3124f80ffa2a9661e" dependencies = [ "atty", "humantime", @@ -287,9 +287,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.80" +version = "0.2.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614" +checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb" [[package]] name = "log" @@ -359,9 +359,9 @@ checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397" [[package]] name = "once_cell" -version = "1.4.1" +version = "1.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad" +checksum = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0" [[package]] name = "proc-macro2" @@ -374,9 +374,9 @@ dependencies = [ [[package]] name = "psm" -version = "0.1.11" +version = "0.1.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5" +checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a" dependencies = [ "cc", ] @@ -480,18 +480,18 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.117" +version = "1.0.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a" +checksum = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.117" +version = "1.0.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e" +checksum = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df" dependencies = [ "proc-macro2", "quote", @@ -500,9 +500,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.4.2" +version = "1.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252" +checksum = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75" [[package]] name = "stable_deref_trait" @@ -512,9 +512,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.48" +version = "1.0.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac" +checksum = "8833e20724c24de12bbaba5ad230ea61c3eafb05b881c7c9d3cfe8638b187e68" dependencies = [ "proc-macro2", "quote", @@ -529,9 +529,9 @@ checksum = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9" [[package]] name = "termcolor" -version = "1.1.0" +version = "1.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f" +checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" dependencies = [ "winapi-util", ] diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 2461eed30..2649cc298 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -4,13 +4,7 @@ name = "wasmtime-c-api-bazel" version = "0.21.0" [lib] -crate-type = ["staticlib", "cdylib"] -doc = false -doctest = false -name = "wasmtime" -path = "src/lib.rs" -proc-macro = true -test = false +path = "fake_lib.rs" [dependencies] anyhow = "1.0" @@ -21,46 +15,46 @@ once_cell = "1.3" wasmtime = {version = "0.21.0", default-features = false} wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.21.0", path = "crates/c-api/macros"} -[raze] -gen_workspace_prefix = "proxy_wasm_cpp_host_raze_" +[package.metadata.raze] +gen_workspace_prefix = "proxy_wasm_cpp_host" genmode = "Remote" workspace_path = "//bazel/cargo" -[raze.crates.target-lexicon.'0.11.1'] +[package.metadata.raze.crates.target-lexicon.'0.11.1'] additional_flags = [ "--cfg=feature=\\\"force_unix_path_separator\\\"", ] gen_buildrs = true -[raze.crates.proc-macro2.'1.0.24'] +[package.metadata.raze.crates.proc-macro2.'1.0.24'] additional_flags = [ "--cfg=use_proc_macro", ] -[raze.crates.log.'0.4.11'] +[package.metadata.raze.crates.log.'0.4.11'] additional_flags = [ "--cfg=atomic_cas", ] -[raze.crates.indexmap.'1.1.0'] +[package.metadata.raze.crates.indexmap.'1.1.0'] additional_flags = [ "--cfg=feature=\\\"serde-1\\\"", ] -[raze.crates.raw-cpuid.'7.0.3'] +[package.metadata.raze.crates.raw-cpuid.'7.0.3'] additional_flags = [ "--cfg=feature=\\\"bindgen\\\"", ] gen_buildrs = true -[raze.crates.cranelift-codegen.'0.68.0'] +[package.metadata.raze.crates.cranelift-codegen.'0.68.0'] additional_flags = [ "--cfg=feature=\\\"enable-serde\\\"", "--cfg=feature=\\\"bindgen\\\"", ] gen_buildrs = true -[raze.crates.psm.'0.1.11'] +[package.metadata.raze.crates.psm.'0.1.11'] additional_flags = [ "--cfg=asm", "--cfg=feature=\\\"bindgen\\\"", diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index b7d1121ce..93e37aa48 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -1,6 +1,6 @@ """ @generated -cargo-raze crate workspace functions +cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ @@ -9,11 +9,11 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # bui load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load -def proxy_wasm_cpp_host_raze__fetch_remote_crates(): +def proxy_wasm_cpp_host_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___addr2line__0_14_0", + name = "proxy_wasm_cpp_host__addr2line__0_14_0", url = "https://crates.io/api/v1/crates/addr2line/0.14.0/download", type = "tar.gz", sha256 = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423", @@ -23,7 +23,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___adler__0_2_3", + name = "proxy_wasm_cpp_host__adler__0_2_3", url = "https://crates.io/api/v1/crates/adler/0.2.3/download", type = "tar.gz", sha256 = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e", @@ -33,7 +33,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___aho_corasick__0_7_15", + name = "proxy_wasm_cpp_host__aho_corasick__0_7_15", url = "https://crates.io/api/v1/crates/aho-corasick/0.7.15/download", type = "tar.gz", sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", @@ -43,17 +43,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___anyhow__1_0_34", - url = "https://crates.io/api/v1/crates/anyhow/1.0.34/download", + name = "proxy_wasm_cpp_host__anyhow__1_0_35", + url = "https://crates.io/api/v1/crates/anyhow/1.0.35/download", type = "tar.gz", - sha256 = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7", - strip_prefix = "anyhow-1.0.34", - build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.34.bazel"), + sha256 = "2c0df63cb2955042487fad3aefd2c6e3ae7389ac5dc1beb28921de0b69f779d4", + strip_prefix = "anyhow-1.0.35", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.35.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___atty__0_2_14", + name = "proxy_wasm_cpp_host__atty__0_2_14", url = "https://crates.io/api/v1/crates/atty/0.2.14/download", type = "tar.gz", sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", @@ -63,7 +63,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___autocfg__1_0_1", + name = "proxy_wasm_cpp_host__autocfg__1_0_1", url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", type = "tar.gz", sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", @@ -73,17 +73,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___backtrace__0_3_54", - url = "https://crates.io/api/v1/crates/backtrace/0.3.54/download", + name = "proxy_wasm_cpp_host__backtrace__0_3_55", + url = "https://crates.io/api/v1/crates/backtrace/0.3.55/download", type = "tar.gz", - sha256 = "2baad346b2d4e94a24347adeee9c7a93f412ee94b9cc26e5b59dea23848e9f28", - strip_prefix = "backtrace-0.3.54", - build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.54.bazel"), + sha256 = "ef5140344c85b01f9bbb4d4b7288a8aa4b3287ccef913a14bcc78a1063623598", + strip_prefix = "backtrace-0.3.55", + build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.55.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___bincode__1_3_1", + name = "proxy_wasm_cpp_host__bincode__1_3_1", url = "https://crates.io/api/v1/crates/bincode/1.3.1/download", type = "tar.gz", sha256 = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d", @@ -93,7 +93,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___bitflags__1_2_1", + name = "proxy_wasm_cpp_host__bitflags__1_2_1", url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download", type = "tar.gz", sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693", @@ -103,7 +103,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___byteorder__1_3_4", + name = "proxy_wasm_cpp_host__byteorder__1_3_4", url = "https://crates.io/api/v1/crates/byteorder/1.3.4/download", type = "tar.gz", sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", @@ -113,17 +113,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cc__1_0_62", - url = "https://crates.io/api/v1/crates/cc/1.0.62/download", + name = "proxy_wasm_cpp_host__cc__1_0_66", + url = "https://crates.io/api/v1/crates/cc/1.0.66/download", type = "tar.gz", - sha256 = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40", - strip_prefix = "cc-1.0.62", - build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.62.bazel"), + sha256 = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48", + strip_prefix = "cc-1.0.66", + build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.66.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cfg_if__0_1_10", + name = "proxy_wasm_cpp_host__cfg_if__0_1_10", url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", type = "tar.gz", sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", @@ -133,7 +133,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cfg_if__1_0_0", + name = "proxy_wasm_cpp_host__cfg_if__1_0_0", url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", type = "tar.gz", sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", @@ -143,7 +143,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_bforest__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-bforest/0.68.0/download", type = "tar.gz", sha256 = "9221545c0507dc08a62b2d8b5ffe8e17ac580b0a74d1813b496b8d70b070fbd0", @@ -153,7 +153,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-codegen/0.68.0/download", type = "tar.gz", sha256 = "7e9936ea608b6cd176f107037f6adbb4deac933466fc7231154f96598b2d3ab1", @@ -163,7 +163,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_codegen_meta__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.68.0/download", type = "tar.gz", sha256 = "4ef2b2768568306540f4c8db3acce9105534d34c4a1e440529c1e702d7f8c8d7", @@ -173,7 +173,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.68.0/download", type = "tar.gz", sha256 = "6759012d6d19c4caec95793f052613e9d4113e925e7f14154defbac0f1d4c938", @@ -183,7 +183,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_entity__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-entity/0.68.0/download", type = "tar.gz", sha256 = "86badbce14e15f52a45b666b38abe47b204969dd7f8fb7488cb55dd46b361fa6", @@ -193,7 +193,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-frontend/0.68.0/download", type = "tar.gz", sha256 = "b608bb7656c554d0a4cf8f50c7a10b857e80306f6ff829ad6d468a7e2323c8d8", @@ -203,7 +203,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_native__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_native__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-native/0.68.0/download", type = "tar.gz", sha256 = "5246a1af14b7812ee4d94a3f0c4b295ec02c370c08b0ecc3dec512890fdad175", @@ -213,7 +213,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0", + name = "proxy_wasm_cpp_host__cranelift_wasm__0_68_0", url = "https://crates.io/api/v1/crates/cranelift-wasm/0.68.0/download", type = "tar.gz", sha256 = "8ef491714e82f9fb910547e2047a3b1c47c03861eca67540c5abd0416371a2ac", @@ -223,7 +223,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___crc32fast__1_2_1", + name = "proxy_wasm_cpp_host__crc32fast__1_2_1", url = "https://crates.io/api/v1/crates/crc32fast/1.2.1/download", type = "tar.gz", sha256 = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a", @@ -233,7 +233,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___either__1_6_1", + name = "proxy_wasm_cpp_host__either__1_6_1", url = "https://crates.io/api/v1/crates/either/1.6.1/download", type = "tar.gz", sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", @@ -243,17 +243,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___env_logger__0_8_1", - url = "https://crates.io/api/v1/crates/env_logger/0.8.1/download", + name = "proxy_wasm_cpp_host__env_logger__0_8_2", + url = "https://crates.io/api/v1/crates/env_logger/0.8.2/download", type = "tar.gz", - sha256 = "54532e3223c5af90a6a757c90b5c5521564b07e5e7a958681bcd2afad421cdcd", - strip_prefix = "env_logger-0.8.1", - build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.1.bazel"), + sha256 = "f26ecb66b4bdca6c1409b40fb255eefc2bd4f6d135dab3c3124f80ffa2a9661e", + strip_prefix = "env_logger-0.8.2", + build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___fallible_iterator__0_2_0", + name = "proxy_wasm_cpp_host__fallible_iterator__0_2_0", url = "https://crates.io/api/v1/crates/fallible-iterator/0.2.0/download", type = "tar.gz", sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", @@ -263,7 +263,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___gimli__0_22_0", + name = "proxy_wasm_cpp_host__gimli__0_22_0", url = "https://crates.io/api/v1/crates/gimli/0.22.0/download", type = "tar.gz", sha256 = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724", @@ -273,7 +273,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___gimli__0_23_0", + name = "proxy_wasm_cpp_host__gimli__0_23_0", url = "https://crates.io/api/v1/crates/gimli/0.23.0/download", type = "tar.gz", sha256 = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce", @@ -283,7 +283,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___hermit_abi__0_1_17", + name = "proxy_wasm_cpp_host__hermit_abi__0_1_17", url = "https://crates.io/api/v1/crates/hermit-abi/0.1.17/download", type = "tar.gz", sha256 = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8", @@ -293,7 +293,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___humantime__2_0_1", + name = "proxy_wasm_cpp_host__humantime__2_0_1", url = "https://crates.io/api/v1/crates/humantime/2.0.1/download", type = "tar.gz", sha256 = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a", @@ -303,7 +303,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___indexmap__1_1_0", + name = "proxy_wasm_cpp_host__indexmap__1_1_0", url = "https://crates.io/api/v1/crates/indexmap/1.1.0/download", type = "tar.gz", sha256 = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356", @@ -313,7 +313,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___itertools__0_9_0", + name = "proxy_wasm_cpp_host__itertools__0_9_0", url = "https://crates.io/api/v1/crates/itertools/0.9.0/download", type = "tar.gz", sha256 = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b", @@ -323,7 +323,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___lazy_static__1_4_0", + name = "proxy_wasm_cpp_host__lazy_static__1_4_0", url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", type = "tar.gz", sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", @@ -333,17 +333,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___libc__0_2_80", - url = "https://crates.io/api/v1/crates/libc/0.2.80/download", + name = "proxy_wasm_cpp_host__libc__0_2_81", + url = "https://crates.io/api/v1/crates/libc/0.2.81/download", type = "tar.gz", - sha256 = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614", - strip_prefix = "libc-0.2.80", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.80.bazel"), + sha256 = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb", + strip_prefix = "libc-0.2.81", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.81.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___log__0_4_11", + name = "proxy_wasm_cpp_host__log__0_4_11", url = "https://crates.io/api/v1/crates/log/0.4.11/download", type = "tar.gz", sha256 = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b", @@ -353,7 +353,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___mach__0_3_2", + name = "proxy_wasm_cpp_host__mach__0_3_2", url = "https://crates.io/api/v1/crates/mach/0.3.2/download", type = "tar.gz", sha256 = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa", @@ -363,7 +363,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___memchr__2_3_4", + name = "proxy_wasm_cpp_host__memchr__2_3_4", url = "https://crates.io/api/v1/crates/memchr/2.3.4/download", type = "tar.gz", sha256 = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525", @@ -373,7 +373,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___memoffset__0_5_6", + name = "proxy_wasm_cpp_host__memoffset__0_5_6", url = "https://crates.io/api/v1/crates/memoffset/0.5.6/download", type = "tar.gz", sha256 = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa", @@ -383,7 +383,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___miniz_oxide__0_4_3", + name = "proxy_wasm_cpp_host__miniz_oxide__0_4_3", url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.3/download", type = "tar.gz", sha256 = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d", @@ -393,7 +393,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___more_asserts__0_2_1", + name = "proxy_wasm_cpp_host__more_asserts__0_2_1", url = "https://crates.io/api/v1/crates/more-asserts/0.2.1/download", type = "tar.gz", sha256 = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238", @@ -403,7 +403,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___object__0_21_1", + name = "proxy_wasm_cpp_host__object__0_21_1", url = "https://crates.io/api/v1/crates/object/0.21.1/download", type = "tar.gz", sha256 = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693", @@ -413,7 +413,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___object__0_22_0", + name = "proxy_wasm_cpp_host__object__0_22_0", url = "https://crates.io/api/v1/crates/object/0.22.0/download", type = "tar.gz", sha256 = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397", @@ -423,17 +423,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___once_cell__1_4_1", - url = "https://crates.io/api/v1/crates/once_cell/1.4.1/download", + name = "proxy_wasm_cpp_host__once_cell__1_5_2", + url = "https://crates.io/api/v1/crates/once_cell/1.5.2/download", type = "tar.gz", - sha256 = "260e51e7efe62b592207e9e13a68e43692a7a279171d6ba57abd208bf23645ad", - strip_prefix = "once_cell-1.4.1", - build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.4.1.bazel"), + sha256 = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0", + strip_prefix = "once_cell-1.5.2", + build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.5.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___proc_macro2__1_0_24", + name = "proxy_wasm_cpp_host__proc_macro2__1_0_24", url = "https://crates.io/api/v1/crates/proc-macro2/1.0.24/download", type = "tar.gz", sha256 = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71", @@ -443,17 +443,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___psm__0_1_11", - url = "https://crates.io/api/v1/crates/psm/0.1.11/download", + name = "proxy_wasm_cpp_host__psm__0_1_12", + url = "https://crates.io/api/v1/crates/psm/0.1.12/download", type = "tar.gz", - sha256 = "96e0536f6528466dbbbbe6b986c34175a8d0ff25b794c4bacda22e068cd2f2c5", - strip_prefix = "psm-0.1.11", - build_file = Label("//bazel/cargo/remote:BUILD.psm-0.1.11.bazel"), + sha256 = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a", + strip_prefix = "psm-0.1.12", + build_file = Label("//bazel/cargo/remote:BUILD.psm-0.1.12.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___quote__1_0_7", + name = "proxy_wasm_cpp_host__quote__1_0_7", url = "https://crates.io/api/v1/crates/quote/1.0.7/download", type = "tar.gz", sha256 = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37", @@ -463,7 +463,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___raw_cpuid__7_0_3", + name = "proxy_wasm_cpp_host__raw_cpuid__7_0_3", url = "https://crates.io/api/v1/crates/raw-cpuid/7.0.3/download", type = "tar.gz", sha256 = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf", @@ -473,7 +473,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___regalloc__0_0_31", + name = "proxy_wasm_cpp_host__regalloc__0_0_31", url = "https://crates.io/api/v1/crates/regalloc/0.0.31/download", type = "tar.gz", sha256 = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5", @@ -483,7 +483,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___regex__1_4_2", + name = "proxy_wasm_cpp_host__regex__1_4_2", url = "https://crates.io/api/v1/crates/regex/1.4.2/download", type = "tar.gz", sha256 = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c", @@ -493,7 +493,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___regex_syntax__0_6_21", + name = "proxy_wasm_cpp_host__regex_syntax__0_6_21", url = "https://crates.io/api/v1/crates/regex-syntax/0.6.21/download", type = "tar.gz", sha256 = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189", @@ -503,7 +503,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___region__2_2_0", + name = "proxy_wasm_cpp_host__region__2_2_0", url = "https://crates.io/api/v1/crates/region/2.2.0/download", type = "tar.gz", sha256 = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0", @@ -513,7 +513,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18", + name = "proxy_wasm_cpp_host__rustc_demangle__0_1_18", url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.18/download", type = "tar.gz", sha256 = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232", @@ -523,7 +523,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___rustc_hash__1_1_0", + name = "proxy_wasm_cpp_host__rustc_hash__1_1_0", url = "https://crates.io/api/v1/crates/rustc-hash/1.1.0/download", type = "tar.gz", sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", @@ -533,7 +533,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___rustc_version__0_2_3", + name = "proxy_wasm_cpp_host__rustc_version__0_2_3", url = "https://crates.io/api/v1/crates/rustc_version/0.2.3/download", type = "tar.gz", sha256 = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a", @@ -543,7 +543,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___semver__0_9_0", + name = "proxy_wasm_cpp_host__semver__0_9_0", url = "https://crates.io/api/v1/crates/semver/0.9.0/download", type = "tar.gz", sha256 = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403", @@ -553,7 +553,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___semver_parser__0_7_0", + name = "proxy_wasm_cpp_host__semver_parser__0_7_0", url = "https://crates.io/api/v1/crates/semver-parser/0.7.0/download", type = "tar.gz", sha256 = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3", @@ -563,37 +563,37 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___serde__1_0_117", - url = "https://crates.io/api/v1/crates/serde/1.0.117/download", + name = "proxy_wasm_cpp_host__serde__1_0_118", + url = "https://crates.io/api/v1/crates/serde/1.0.118/download", type = "tar.gz", - sha256 = "b88fa983de7720629c9387e9f517353ed404164b1e482c970a90c1a4aaf7dc1a", - strip_prefix = "serde-1.0.117", - build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.117.bazel"), + sha256 = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800", + strip_prefix = "serde-1.0.118", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.118.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___serde_derive__1_0_117", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.117/download", + name = "proxy_wasm_cpp_host__serde_derive__1_0_118", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.118/download", type = "tar.gz", - sha256 = "cbd1ae72adb44aab48f325a02444a5fc079349a8d804c1fc922aed3f7454c74e", - strip_prefix = "serde_derive-1.0.117", - build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.117.bazel"), + sha256 = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df", + strip_prefix = "serde_derive-1.0.118", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.118.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___smallvec__1_4_2", - url = "https://crates.io/api/v1/crates/smallvec/1.4.2/download", + name = "proxy_wasm_cpp_host__smallvec__1_5_1", + url = "https://crates.io/api/v1/crates/smallvec/1.5.1/download", type = "tar.gz", - sha256 = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252", - strip_prefix = "smallvec-1.4.2", - build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.4.2.bazel"), + sha256 = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75", + strip_prefix = "smallvec-1.5.1", + build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.5.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___stable_deref_trait__1_2_0", + name = "proxy_wasm_cpp_host__stable_deref_trait__1_2_0", url = "https://crates.io/api/v1/crates/stable_deref_trait/1.2.0/download", type = "tar.gz", sha256 = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3", @@ -603,17 +603,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___syn__1_0_48", - url = "https://crates.io/api/v1/crates/syn/1.0.48/download", + name = "proxy_wasm_cpp_host__syn__1_0_53", + url = "https://crates.io/api/v1/crates/syn/1.0.53/download", type = "tar.gz", - sha256 = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac", - strip_prefix = "syn-1.0.48", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.48.bazel"), + sha256 = "8833e20724c24de12bbaba5ad230ea61c3eafb05b881c7c9d3cfe8638b187e68", + strip_prefix = "syn-1.0.53", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.53.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___target_lexicon__0_11_1", + name = "proxy_wasm_cpp_host__target_lexicon__0_11_1", url = "https://crates.io/api/v1/crates/target-lexicon/0.11.1/download", type = "tar.gz", sha256 = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9", @@ -623,17 +623,17 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___termcolor__1_1_0", - url = "https://crates.io/api/v1/crates/termcolor/1.1.0/download", + name = "proxy_wasm_cpp_host__termcolor__1_1_2", + url = "https://crates.io/api/v1/crates/termcolor/1.1.2/download", type = "tar.gz", - sha256 = "bb6bfa289a4d7c5766392812c0a1f4c1ba45afa1ad47803c11e1f407d846d75f", - strip_prefix = "termcolor-1.1.0", - build_file = Label("//bazel/cargo/remote:BUILD.termcolor-1.1.0.bazel"), + sha256 = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4", + strip_prefix = "termcolor-1.1.2", + build_file = Label("//bazel/cargo/remote:BUILD.termcolor-1.1.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___thiserror__1_0_22", + name = "proxy_wasm_cpp_host__thiserror__1_0_22", url = "https://crates.io/api/v1/crates/thiserror/1.0.22/download", type = "tar.gz", sha256 = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e", @@ -643,7 +643,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___thiserror_impl__1_0_22", + name = "proxy_wasm_cpp_host__thiserror_impl__1_0_22", url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.22/download", type = "tar.gz", sha256 = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56", @@ -653,7 +653,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___thread_local__1_0_1", + name = "proxy_wasm_cpp_host__thread_local__1_0_1", url = "https://crates.io/api/v1/crates/thread_local/1.0.1/download", type = "tar.gz", sha256 = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14", @@ -663,7 +663,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___unicode_xid__0_2_1", + name = "proxy_wasm_cpp_host__unicode_xid__0_2_1", url = "https://crates.io/api/v1/crates/unicode-xid/0.2.1/download", type = "tar.gz", sha256 = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564", @@ -673,7 +673,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmparser__0_57_0", + name = "proxy_wasm_cpp_host__wasmparser__0_57_0", url = "https://crates.io/api/v1/crates/wasmparser/0.57.0/download", type = "tar.gz", sha256 = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6", @@ -683,7 +683,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmparser__0_65_0", + name = "proxy_wasm_cpp_host__wasmparser__0_65_0", url = "https://crates.io/api/v1/crates/wasmparser/0.65.0/download", type = "tar.gz", sha256 = "87cc2fe6350834b4e528ba0901e7aa405d78b89dc1fa3145359eb4de0e323fcf", @@ -693,7 +693,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime/0.21.0/download", type = "tar.gz", sha256 = "7a4d945221f4d29feecdac80514c1ef1527dfcdcc7715ff1b4a5161fe5c8ebab", @@ -703,7 +703,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( new_git_repository, - name = "proxy_wasm_cpp_host_raze___wasmtime_c_api_macros__0_19_0", + name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", commit = "ab1958434a2b7a5b07d197e71b88200d9e06e026", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), @@ -712,7 +712,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime_cranelift__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.21.0/download", type = "tar.gz", sha256 = "f1e55c17317922951a9bdd5547b527d2cc7be3cea118dc17ad7c05a4c8e67c7a", @@ -722,7 +722,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime_debug__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime-debug/0.21.0/download", type = "tar.gz", sha256 = "a576daa6b228f8663c38bede2f7f23d094d578b0061c39fc122cc28eee1e2c18", @@ -732,7 +732,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime-environ/0.21.0/download", type = "tar.gz", sha256 = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307", @@ -742,7 +742,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime_jit__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime-jit/0.21.0/download", type = "tar.gz", sha256 = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50", @@ -752,7 +752,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime_obj__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime_obj__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime-obj/0.21.0/download", type = "tar.gz", sha256 = "a84aebe3b4331a603625f069944192fa3f6ffe499802ef91273fd73af9a8087d", @@ -762,7 +762,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime_profiling__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.21.0/download", type = "tar.gz", sha256 = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c", @@ -772,7 +772,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_21_0", url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.21.0/download", type = "tar.gz", sha256 = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c", @@ -782,7 +782,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___winapi__0_3_9", + name = "proxy_wasm_cpp_host__winapi__0_3_9", url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", type = "tar.gz", sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", @@ -792,7 +792,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___winapi_i686_pc_windows_gnu__0_4_0", + name = "proxy_wasm_cpp_host__winapi_i686_pc_windows_gnu__0_4_0", url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", @@ -802,7 +802,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___winapi_util__0_1_5", + name = "proxy_wasm_cpp_host__winapi_util__0_1_5", url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", type = "tar.gz", sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", @@ -812,7 +812,7 @@ def proxy_wasm_cpp_host_raze__fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host_raze___winapi_x86_64_pc_windows_gnu__0_4_0", + name = "proxy_wasm_cpp_host__winapi_x86_64_pc_windows_gnu__0_4_0", url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", diff --git a/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel b/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel index 8e672af0f..e92da9c3d 100644 --- a/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel +++ b/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel @@ -50,7 +50,7 @@ rust_library( version = "0.14.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___gimli__0_23_0//:gimli", + "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", ], ) diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel index b512eb895..0bccb4ffb 100644 --- a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel @@ -50,6 +50,6 @@ rust_library( version = "0.7.15", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___memchr__2_3_4//:memchr", + "@proxy_wasm_cpp_host__memchr__2_3_4//:memchr", ], ) diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.35.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel rename to bazel/cargo/remote/BUILD.anyhow-1.0.35.bazel index 29f953abf..a99c9be60 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.34.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.35.bazel @@ -49,7 +49,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.34", + version = "1.0.35", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index 1a8a6392e..b7e2eadf2 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -71,7 +71,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -80,7 +80,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.55.bazel similarity index 81% rename from bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel rename to bazel/cargo/remote/BUILD.backtrace-0.3.55.bazel index 825595e80..28c9379c2 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.54.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.55.bazel @@ -59,15 +59,15 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.54", + version = "0.3.55", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___addr2line__0_14_0//:addr2line", - "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", - "@proxy_wasm_cpp_host_raze___miniz_oxide__0_4_3//:miniz_oxide", - "@proxy_wasm_cpp_host_raze___object__0_22_0//:object", - "@proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18//:rustc_demangle", + "@proxy_wasm_cpp_host__addr2line__0_14_0//:addr2line", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__miniz_oxide__0_4_3//:miniz_oxide", + "@proxy_wasm_cpp_host__object__0_22_0//:object", + "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", ] + selects.with_or({ # cfg(windows) ( diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel index 06e7de23f..51735ad7d 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel @@ -48,8 +48,8 @@ rust_library( version = "1.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___byteorder__1_3_4//:byteorder", - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cc-1.0.62.bazel b/bazel/cargo/remote/BUILD.cc-1.0.66.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cc-1.0.62.bazel rename to bazel/cargo/remote/BUILD.cc-1.0.66.bazel index 05c8e0993..9c09336da 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.62.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.66.bazel @@ -46,7 +46,7 @@ rust_binary( "cargo-raze", "manual", ], - version = "1.0.62", + version = "1.0.66", # buildifier: leave-alone deps = [ # Binaries get an implicit dependency on their crate's lib @@ -69,7 +69,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.62", + version = "1.0.66", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel index a0195b2ea..b84042bd2 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel @@ -48,6 +48,6 @@ rust_library( version = "0.68.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel index 9d2c40da6..3eb3ed224 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel @@ -60,7 +60,7 @@ cargo_build_script( version = "0.68.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host_raze___cranelift_codegen_meta__0_68_0//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_68_0//:cranelift_codegen_meta", ], ) @@ -91,16 +91,16 @@ rust_library( # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host_raze___byteorder__1_3_4//:byteorder", - "@proxy_wasm_cpp_host_raze___cranelift_bforest__0_68_0//:cranelift_bforest", - "@proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___regalloc__0_0_31//:regalloc", - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", - "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host__cranelift_bforest__0_68_0//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__regalloc__0_0_31//:regalloc", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel index 9973cf865..4d2430b57 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel @@ -48,7 +48,7 @@ rust_library( version = "0.68.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel index 8eeab0087..a150ec3bc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel @@ -50,6 +50,6 @@ rust_library( version = "0.68.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel index 8272a3047..7736f22cc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel @@ -50,9 +50,9 @@ rust_library( version = "0.68.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel index 4eebedc80..48b7359d7 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel @@ -52,8 +52,8 @@ rust_library( version = "0.68.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", ] + selects.with_or({ # cfg(any(target_arch = "x86", target_arch = "x86_64")) ( @@ -69,7 +69,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host_raze___raw_cpuid__7_0_3//:raw_cpuid", + "@proxy_wasm_cpp_host__raw_cpuid__7_0_3//:raw_cpuid", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel index a0e0a9cb2..7b059c326 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel @@ -52,15 +52,15 @@ rust_library( version = "0.68.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", - "@proxy_wasm_cpp_host_raze___itertools__0_9_0//:itertools", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", - "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", - "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", - "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__itertools__0_9_0//:itertools", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", + "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel index fddaa77a7..1cdcd7633 100644 --- a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel @@ -54,6 +54,6 @@ rust_library( version = "1.2.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.2.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel rename to bazel/cargo/remote/BUILD.env_logger-0.8.2.bazel index 7e3dec3bd..67e9ff6d1 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.1.bazel +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.2.bazel @@ -66,14 +66,14 @@ rust_library( "cargo-raze", "manual", ], - version = "0.8.1", + version = "0.8.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___atty__0_2_14//:atty", - "@proxy_wasm_cpp_host_raze___humantime__2_0_1//:humantime", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___regex__1_4_2//:regex", - "@proxy_wasm_cpp_host_raze___termcolor__1_1_0//:termcolor", + "@proxy_wasm_cpp_host__atty__0_2_14//:atty", + "@proxy_wasm_cpp_host__humantime__2_0_1//:humantime", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__regex__1_4_2//:regex", + "@proxy_wasm_cpp_host__termcolor__1_1_2//:termcolor", ], ) diff --git a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel index 6e2f33808..73f7f7553 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel @@ -66,9 +66,9 @@ rust_library( version = "0.22.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___fallible_iterator__0_2_0//:fallible_iterator", - "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", - "@proxy_wasm_cpp_host_raze___stable_deref_trait__1_2_0//:stable_deref_trait", + "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", + "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel index 71bb282fd..8ef68dbc1 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel @@ -49,6 +49,6 @@ rust_library( version = "0.1.17", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel index 01fe69cba..29947ec43 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel @@ -55,7 +55,7 @@ rust_library( version = "1.1.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel index 2c204a05e..23520d623 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel @@ -64,7 +64,7 @@ rust_library( version = "0.9.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___either__1_6_1//:either", + "@proxy_wasm_cpp_host__either__1_6_1//:either", ], ) diff --git a/bazel/cargo/remote/BUILD.libc-0.2.80.bazel b/bazel/cargo/remote/BUILD.libc-0.2.81.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.libc-0.2.80.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.81.bazel index 838522ff8..01c49fdf2 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.80.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.81.bazel @@ -49,7 +49,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.80", + version = "0.2.81", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.log-0.4.11.bazel b/bazel/cargo/remote/BUILD.log-0.4.11.bazel index 6dfd85e41..423077260 100644 --- a/bazel/cargo/remote/BUILD.log-0.4.11.bazel +++ b/bazel/cargo/remote/BUILD.log-0.4.11.bazel @@ -52,7 +52,7 @@ rust_library( version = "0.4.11", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cfg_if__0_1_10//:cfg_if", + "@proxy_wasm_cpp_host__cfg_if__0_1_10//:cfg_if", ], ) diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 0235f284d..84ac25d22 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -61,7 +61,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel index 2ba57dca7..ed1c5067d 100644 --- a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel @@ -50,6 +50,6 @@ rust_library( version = "0.4.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___adler__0_2_3//:adler", + "@proxy_wasm_cpp_host__adler__0_2_3//:adler", ], ) diff --git a/bazel/cargo/remote/BUILD.object-0.21.1.bazel b/bazel/cargo/remote/BUILD.object-0.21.1.bazel index 13a5d548d..308f4e4c9 100644 --- a/bazel/cargo/remote/BUILD.object-0.21.1.bazel +++ b/bazel/cargo/remote/BUILD.object-0.21.1.bazel @@ -68,9 +68,9 @@ rust_library( version = "0.21.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___crc32fast__1_2_1//:crc32fast", - "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", - "@proxy_wasm_cpp_host_raze___wasmparser__0_57_0//:wasmparser", + "@proxy_wasm_cpp_host__crc32fast__1_2_1//:crc32fast", + "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host__wasmparser__0_57_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel b/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel rename to bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel index 26c675b0e..91cf562ca 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.4.1.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel @@ -48,6 +48,7 @@ rust_library( name = "once_cell", srcs = glob(["**/*.rs"]), crate_features = [ + "alloc", "default", "std", ], @@ -61,10 +62,10 @@ rust_library( "cargo-raze", "manual", ], - version = "1.4.1", + version = "1.5.2", # buildifier: leave-alone deps = [ ], ) -# Unsupported target "test" with type "test" omitted +# Unsupported target "it" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel index 3e5b60aae..d4dc0b448 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel @@ -53,7 +53,7 @@ rust_library( version = "1.0.24", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___unicode_xid__0_2_1//:unicode_xid", + "@proxy_wasm_cpp_host__unicode_xid__0_2_1//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.psm-0.1.11.bazel b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.psm-0.1.11.bazel rename to bazel/cargo/remote/BUILD.psm-0.1.12.bazel index 8db8bbb94..fea7f454c 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.11.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel @@ -51,10 +51,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.11", + version = "0.1.12", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host_raze___cc__1_0_62//:cc", + "@proxy_wasm_cpp_host__cc__1_0_66//:cc", ], ) @@ -87,7 +87,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.11", + version = "0.1.12", # buildifier: leave-alone deps = [ ":psm_build_script", diff --git a/bazel/cargo/remote/BUILD.quote-1.0.7.bazel b/bazel/cargo/remote/BUILD.quote-1.0.7.bazel index e00e89b69..813587bb3 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.7.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.7.bazel @@ -50,7 +50,7 @@ rust_library( version = "1.0.7", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", ], ) diff --git a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel index 8b473a75c..a6c9ad19d 100644 --- a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel +++ b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel @@ -54,8 +54,8 @@ cargo_build_script( version = "7.0.3", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host_raze___cc__1_0_62//:cc", - "@proxy_wasm_cpp_host_raze___rustc_version__0_2_3//:rustc_version", + "@proxy_wasm_cpp_host__cc__1_0_66//:cc", + "@proxy_wasm_cpp_host__rustc_version__0_2_3//:rustc_version", ] + selects.with_or({ # cfg(unix) ( @@ -105,7 +105,7 @@ rust_binary( # Binaries get an implicit dependency on their crate's lib ":raw_cpuid", ":raw_cpuid_build_script", - "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", ] + selects.with_or({ # cfg(unix) ( @@ -160,7 +160,7 @@ rust_library( # buildifier: leave-alone deps = [ ":raw_cpuid_build_script", - "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", + "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", ] + selects.with_or({ # cfg(unix) ( diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel index f51d1d49b..184122319 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -49,8 +49,8 @@ rust_library( version = "0.0.31", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___rustc_hash__1_1_0//:rustc_hash", - "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__rustc_hash__1_1_0//:rustc_hash", + "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-1.4.2.bazel b/bazel/cargo/remote/BUILD.regex-1.4.2.bazel index d87e8e31e..114a06f6c 100644 --- a/bazel/cargo/remote/BUILD.regex-1.4.2.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.4.2.bazel @@ -69,10 +69,10 @@ rust_library( version = "1.4.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___aho_corasick__0_7_15//:aho_corasick", - "@proxy_wasm_cpp_host_raze___memchr__2_3_4//:memchr", - "@proxy_wasm_cpp_host_raze___regex_syntax__0_6_21//:regex_syntax", - "@proxy_wasm_cpp_host_raze___thread_local__1_0_1//:thread_local", + "@proxy_wasm_cpp_host__aho_corasick__0_7_15//:aho_corasick", + "@proxy_wasm_cpp_host__memchr__2_3_4//:memchr", + "@proxy_wasm_cpp_host__regex_syntax__0_6_21//:regex_syntax", + "@proxy_wasm_cpp_host__thread_local__1_0_1//:thread_local", ], ) diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index f2b384bda..2b415f667 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -50,8 +50,8 @@ rust_library( version = "2.2.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___bitflags__1_2_1//:bitflags", - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", + "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( @@ -60,7 +60,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host_raze___mach__0_3_2//:mach", + "@proxy_wasm_cpp_host__mach__0_3_2//:mach", ], "//conditions:default": [], }) + selects.with_or({ @@ -69,7 +69,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel index ee1d731cf..1225fa851 100644 --- a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel @@ -48,6 +48,6 @@ rust_library( version = "0.2.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___semver__0_9_0//:semver", + "@proxy_wasm_cpp_host__semver__0_9_0//:semver", ], ) diff --git a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel index b50520c54..9809414b4 100644 --- a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel @@ -49,7 +49,7 @@ rust_library( version = "0.9.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___semver_parser__0_7_0//:semver_parser", + "@proxy_wasm_cpp_host__semver_parser__0_7_0//:semver_parser", ], ) diff --git a/bazel/cargo/remote/BUILD.serde-1.0.117.bazel b/bazel/cargo/remote/BUILD.serde-1.0.118.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.serde-1.0.117.bazel rename to bazel/cargo/remote/BUILD.serde-1.0.118.bazel index 0134fe601..baa5a6ddc 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.117.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.118.bazel @@ -45,7 +45,7 @@ rust_library( crate_type = "lib", edition = "2015", proc_macro_deps = [ - "@proxy_wasm_cpp_host_raze___serde_derive__1_0_117//:serde_derive", + "@proxy_wasm_cpp_host__serde_derive__1_0_118//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -54,7 +54,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.117", + version = "1.0.118", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.118.bazel similarity index 83% rename from bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel rename to bazel/cargo/remote/BUILD.serde_derive-1.0.118.bazel index 9f281a89f..c5cd432de 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.117.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.118.bazel @@ -48,11 +48,11 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.117", + version = "1.0.118", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", - "@proxy_wasm_cpp_host_raze___syn__1_0_48//:syn", + "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_7//:quote", + "@proxy_wasm_cpp_host__syn__1_0_53//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel b/bazel/cargo/remote/BUILD.smallvec-1.5.1.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel rename to bazel/cargo/remote/BUILD.smallvec-1.5.1.bazel index 27cef18cd..ea657d18d 100644 --- a/bazel/cargo/remote/BUILD.smallvec-1.4.2.bazel +++ b/bazel/cargo/remote/BUILD.smallvec-1.5.1.bazel @@ -47,7 +47,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.4.2", + version = "1.5.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.syn-1.0.48.bazel b/bazel/cargo/remote/BUILD.syn-1.0.53.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.syn-1.0.48.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.53.bazel index cb2cf240e..3c81a8154 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.48.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.53.bazel @@ -59,12 +59,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.48", + version = "1.0.53", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", - "@proxy_wasm_cpp_host_raze___unicode_xid__0_2_1//:unicode_xid", + "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_7//:quote", + "@proxy_wasm_cpp_host__unicode_xid__0_2_1//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel rename to bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel index d3e4edb9a..f0c620b78 100644 --- a/bazel/cargo/remote/BUILD.termcolor-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel @@ -47,7 +47,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.1.0", + version = "1.1.2", # buildifier: leave-alone deps = [ ] + selects.with_or({ @@ -56,7 +56,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host_raze___winapi_util__0_1_5//:winapi_util", + "@proxy_wasm_cpp_host__winapi_util__0_1_5//:winapi_util", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel index d2d447c7c..7590fd8cb 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel @@ -39,7 +39,7 @@ rust_library( crate_type = "lib", edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host_raze___thiserror_impl__1_0_22//:thiserror_impl", + "@proxy_wasm_cpp_host__thiserror_impl__1_0_22//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel index 52912792e..78f48bc52 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel @@ -48,8 +48,8 @@ rust_library( version = "1.0.22", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", - "@proxy_wasm_cpp_host_raze___syn__1_0_48//:syn", + "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_7//:quote", + "@proxy_wasm_cpp_host__syn__1_0_53//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel b/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel index bda31ef2f..3970bff40 100644 --- a/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel @@ -50,6 +50,6 @@ rust_library( version = "1.0.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel index 9fc65ff9b..2a689474a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel @@ -50,30 +50,30 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", - "@proxy_wasm_cpp_host_raze___backtrace__0_3_54//:backtrace", - "@proxy_wasm_cpp_host_raze___bincode__1_3_1//:bincode", - "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", - "@proxy_wasm_cpp_host_raze___rustc_demangle__0_1_18//:rustc_demangle", - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", - "@proxy_wasm_cpp_host_raze___smallvec__1_4_2//:smallvec", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", - "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", - "@proxy_wasm_cpp_host_raze___wasmtime_jit__0_21_0//:wasmtime_jit", - "@proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__backtrace__0_3_55//:backtrace", + "@proxy_wasm_cpp_host__bincode__1_3_1//:bincode", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__region__2_2_0//:region", + "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_21_0//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_profiling__0_21_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_21_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index 8a7a05999..168f872b3 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -48,7 +48,7 @@ rust_library( version = "0.19.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host_raze___quote__1_0_7//:quote", + "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_7//:quote", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel index 57d1bcbda..5d40bace9 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel @@ -48,10 +48,10 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", - "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", - "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel index 603e527cf..2602a4bfa 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel @@ -48,13 +48,13 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", - "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", - "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", - "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", - "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__object__0_21_1//:object", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel index 05effb2e4..4245c5f49 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel @@ -48,17 +48,17 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", - "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", - "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", - "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", - "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", - "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel index 475899a65..6c2a1d22b 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel @@ -50,35 +50,35 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", - "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host_raze___cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host_raze___cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host_raze___cranelift_frontend__0_68_0//:cranelift_frontend", - "@proxy_wasm_cpp_host_raze___cranelift_native__0_68_0//:cranelift_native", - "@proxy_wasm_cpp_host_raze___cranelift_wasm__0_68_0//:cranelift_wasm", - "@proxy_wasm_cpp_host_raze___gimli__0_22_0//:gimli", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", - "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", - "@proxy_wasm_cpp_host_raze___wasmparser__0_65_0//:wasmparser", - "@proxy_wasm_cpp_host_raze___wasmtime_cranelift__0_21_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0//:wasmtime_debug", - "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", - "@proxy_wasm_cpp_host_raze___wasmtime_obj__0_21_0//:wasmtime_obj", - "@proxy_wasm_cpp_host_raze___wasmtime_profiling__0_21_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_68_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_68_0//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__object__0_21_1//:object", + "@proxy_wasm_cpp_host__region__2_2_0//:region", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_21_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_debug__0_21_0//:wasmtime_debug", + "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_obj__0_21_0//:wasmtime_obj", + "@proxy_wasm_cpp_host__wasmtime_profiling__0_21_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_21_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel index 194b670e5..b0cd1f73a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel @@ -48,11 +48,11 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", - "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host_raze___object__0_21_1//:object", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host_raze___wasmtime_debug__0_21_0//:wasmtime_debug", - "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__object__0_21_1//:object", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__wasmtime_debug__0_21_0//:wasmtime_debug", + "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel index 4e96d1822..61c7b0802 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel @@ -48,13 +48,13 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___anyhow__1_0_34//:anyhow", - "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", - "@proxy_wasm_cpp_host_raze___serde__1_0_117//:serde", - "@proxy_wasm_cpp_host_raze___target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", - "@proxy_wasm_cpp_host_raze___wasmtime_runtime__0_21_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_21_0//:wasmtime_runtime", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel index a34655a4e..505fb4532 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel @@ -52,25 +52,25 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host_raze___backtrace__0_3_54//:backtrace", - "@proxy_wasm_cpp_host_raze___cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host_raze___indexmap__1_1_0//:indexmap", - "@proxy_wasm_cpp_host_raze___lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host_raze___libc__0_2_80//:libc", - "@proxy_wasm_cpp_host_raze___log__0_4_11//:log", - "@proxy_wasm_cpp_host_raze___memoffset__0_5_6//:memoffset", - "@proxy_wasm_cpp_host_raze___more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host_raze___psm__0_1_11//:psm", - "@proxy_wasm_cpp_host_raze___region__2_2_0//:region", - "@proxy_wasm_cpp_host_raze___thiserror__1_0_22//:thiserror", - "@proxy_wasm_cpp_host_raze___wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__backtrace__0_3_55//:backtrace", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__memoffset__0_5_6//:memoffset", + "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__psm__0_1_12//:psm", + "@proxy_wasm_cpp_host__region__2_2_0//:region", + "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "windows") ( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel index d2f2f0359..ec48c9ed0 100644 --- a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel +++ b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -56,7 +56,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host_raze___winapi__0_3_9//:winapi", + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index ef2163cf8..a558e8f5b 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -13,8 +13,8 @@ # limitations under the License. load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") -load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_raze__fetch_remote_crates") +load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates") def proxy_wasm_cpp_host_dependencies(): rust_repositories() - proxy_wasm_cpp_host_raze__fetch_remote_crates() + proxy_wasm_cpp_host_fetch_remote_crates() From cce535101c3b1cab61fb6bf83a61b0e9834bd957 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 7 Dec 2020 15:35:52 +0900 Subject: [PATCH 069/287] Add VmIdHandle for cleaning up per vm_id shared data. (#99) Signed-off-by: mathetake --- include/proxy-wasm/vm_id_handle.h | 36 +++++++++++++++++++ include/proxy-wasm/wasm.h | 3 ++ src/shared_data.cc | 11 ++++++ src/shared_data.h | 2 ++ src/vm_id_handle.cc | 59 +++++++++++++++++++++++++++++++ src/wasm.cc | 8 +++-- test/BUILD | 11 ++++++ test/shared_data_test.cc | 30 ++++++++++++++++ test/vm_id_handle_test.cc | 41 +++++++++++++++++++++ 9 files changed, 198 insertions(+), 3 deletions(-) create mode 100644 include/proxy-wasm/vm_id_handle.h create mode 100644 src/vm_id_handle.cc create mode 100644 test/vm_id_handle_test.cc diff --git a/include/proxy-wasm/vm_id_handle.h b/include/proxy-wasm/vm_id_handle.h new file mode 100644 index 000000000..b290d8f95 --- /dev/null +++ b/include/proxy-wasm/vm_id_handle.h @@ -0,0 +1,36 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include +#include +#include +#include + +namespace proxy_wasm { + +class VmIdHandle { +public: + VmIdHandle(std::string_view vm_id) : vm_id_(std::string(vm_id)){}; + ~VmIdHandle(); + +private: + std::string vm_id_; +}; + +std::shared_ptr getVmIdHandle(std::string_view vm_id); +void registerVmIdHandleCallback(std::function f); + +} // namespace proxy_wasm diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 53d0b638a..db3ff7404 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -27,6 +27,7 @@ #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/exports.h" #include "include/proxy-wasm/wasm_vm.h" +#include "include/proxy-wasm/vm_id_handle.h" namespace proxy_wasm { @@ -243,6 +244,8 @@ class WasmBase : public std::enable_shared_from_this { // Actions to be done after the call into the VM returns. std::deque> after_vm_call_actions_; + + std::shared_ptr vm_id_handle_; }; // Handle which enables shutdown operations to run post deletion (e.g. post listener drain). diff --git a/src/shared_data.cc b/src/shared_data.cc index c5ac056a1..b7094cb0b 100644 --- a/src/shared_data.cc +++ b/src/shared_data.cc @@ -21,10 +21,21 @@ #include #include +#include "include/proxy-wasm/vm_id_handle.h" + namespace proxy_wasm { SharedData global_shared_data; +SharedData::SharedData() { + registerVmIdHandleCallback([this](std::string_view vm_id) { this->deleteByVmId(vm_id); }); +} + +void SharedData::deleteByVmId(std::string_view vm_id) { + std::lock_guard lock(mutex_); + data_.erase(std::string(vm_id)); +} + WasmResult SharedData::get(std::string_view vm_id, const std::string_view key, std::pair *result) { std::lock_guard lock(mutex_); diff --git a/src/shared_data.h b/src/shared_data.h index 3f312494a..a4c2101bd 100644 --- a/src/shared_data.h +++ b/src/shared_data.h @@ -22,10 +22,12 @@ namespace proxy_wasm { class SharedData { public: + SharedData(); WasmResult get(std::string_view vm_id, const std::string_view key, std::pair *result); WasmResult set(std::string_view vm_id, std::string_view key, std::string_view value, uint32_t cas); + void deleteByVmId(std::string_view vm_id); private: uint32_t nextCas() { diff --git a/src/vm_id_handle.cc b/src/vm_id_handle.cc new file mode 100644 index 000000000..e9c741707 --- /dev/null +++ b/src/vm_id_handle.cc @@ -0,0 +1,59 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/vm_id_handle.h" + +#include +#include +#include +#include +#include + +namespace proxy_wasm { + +std::unordered_map> global_vm_id_handles; +std::vector> global_vm_id_handle_callbacks; +std::mutex global_vm_id_handle_mutex; + +std::shared_ptr getVmIdHandle(std::string_view vm_id) { + std::lock_guard lock(global_vm_id_handle_mutex); + auto key = std::string(vm_id); + auto it = global_vm_id_handles.find(key); + if (it != global_vm_id_handles.end()) { + auto handle = it->second.lock(); + if (handle) { + return handle; + } + global_vm_id_handles.erase(key); + } + + auto handle = std::make_shared(key); + global_vm_id_handles[key] = handle; + return handle; +}; + +void registerVmIdHandleCallback(std::function f) { + std::lock_guard lock(global_vm_id_handle_mutex); + global_vm_id_handle_callbacks.push_back(f); +} + +VmIdHandle::~VmIdHandle() { + std::lock_guard lock(global_vm_id_handle_mutex); + for (auto f : global_vm_id_handle_callbacks) { + f(vm_id_); + } + global_vm_id_handles.erase(vm_id_); +} + +} // namespace proxy_wasm diff --git a/src/wasm.cc b/src/wasm.cc index ea14e5151..3829a89ef 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -14,8 +14,6 @@ // limitations under the License. #include "include/proxy-wasm/wasm.h" -#include "src/third_party/base64.h" -#include "src/third_party/picosha2.h" #include #include @@ -28,6 +26,10 @@ #include #include +#include "src/third_party/base64.h" +#include "src/third_party/picosha2.h" +#include "include/proxy-wasm/vm_id_handle.h" + namespace proxy_wasm { thread_local ContextBase *current_context_; @@ -273,7 +275,7 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, std::string_view vm_configuration, std::string_view vm_key) : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), - vm_configuration_(std::string(vm_configuration)) { + vm_configuration_(std::string(vm_configuration)), vm_id_handle_(getVmIdHandle(vm_id)) { if (!wasm_vm_) { failed_ = FailState::UnableToCreateVM; } else { diff --git a/test/BUILD b/test/BUILD index 82daf7151..ce2c279be 100644 --- a/test/BUILD +++ b/test/BUILD @@ -61,3 +61,14 @@ cc_test( "@com_google_googletest//:gtest_main", ], ) + +cc_test( + name = "vm_id_handle", + srcs = ["vm_id_handle_test.cc"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) diff --git a/test/shared_data_test.cc b/test/shared_data_test.cc index b79a7a030..122cb1737 100644 --- a/test/shared_data_test.cc +++ b/test/shared_data_test.cc @@ -18,6 +18,8 @@ #include "gtest/gtest.h" +#include "include/proxy-wasm/vm_id_handle.h" + namespace proxy_wasm { TEST(SharedData, SingleThread) { @@ -77,4 +79,32 @@ TEST(SharedData, Concurrent) { EXPECT_EQ(result.first, "aaaaaaaaaaaaaaaaaaaa"); } +TEST(SharedData, DeleteByVmId) { + SharedData shared_data; + std::string_view vm_id = "id"; + std::string_view key = "key"; + std::string_view value; + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); + + shared_data.deleteByVmId(vm_id); + std::pair result; + EXPECT_EQ(WasmResult::NotFound, shared_data.get(vm_id, key, &result)); +} + +TEST(SharedData, VmIdCleanup) { + SharedData shared_data; + std::string_view vm_id = "proxy_wasm_shared_data_test"; + auto handle = getVmIdHandle(vm_id); + std::string_view key = "key"; + std::string_view value = "this is value"; + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); + + std::pair result; + EXPECT_EQ(WasmResult::Ok, shared_data.get(vm_id, key, &result)); + EXPECT_EQ(value, result.first); + + handle.reset(); + EXPECT_EQ(WasmResult::NotFound, shared_data.get(vm_id, key, &result)); +} + } // namespace proxy_wasm diff --git a/test/vm_id_handle_test.cc b/test/vm_id_handle_test.cc new file mode 100644 index 000000000..b0d5b60a8 --- /dev/null +++ b/test/vm_id_handle_test.cc @@ -0,0 +1,41 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/vm_id_handle.h" + +#include "gtest/gtest.h" + +namespace proxy_wasm { + +TEST(VmIdHandle, Basic) { + auto vm_id = "vm_id"; + auto handle = getVmIdHandle(vm_id); + EXPECT_TRUE(handle); + + bool called = false; + registerVmIdHandleCallback([&called](std::string_view vm_id) { called = true; }); + + handle.reset(); + EXPECT_TRUE(called); + + handle = getVmIdHandle(vm_id); + auto handle2 = getVmIdHandle(vm_id); + called = false; + handle.reset(); + EXPECT_FALSE(called); + handle2.reset(); + EXPECT_TRUE(called); +} + +} // namespace proxy_wasm From 75241a64a37a64b2718ca4e78a0380451ddc649e Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Fri, 11 Dec 2020 07:17:20 +0900 Subject: [PATCH 070/287] Fix global VmIdHandles initialization fiasco and build failure (#115) Signed-off-by: mathetake --- src/context.cc | 18 +++++++++--------- src/shared_data.cc | 5 ++++- src/shared_data.h | 2 +- src/shared_queue.cc | 5 ++++- src/shared_queue.h | 2 +- src/vm_id_handle.cc | 40 ++++++++++++++++++++++++++------------- test/shared_queue_test.cc | 4 +++- 7 files changed, 49 insertions(+), 27 deletions(-) diff --git a/src/context.cc b/src/context.cc index 70edb17fe..28d5c2ad5 100644 --- a/src/context.cc +++ b/src/context.cc @@ -85,7 +85,7 @@ WasmResult BufferBase::copyTo(WasmBase *wasm, size_t start, size_t length, uint6 // Test support. uint32_t resolveQueueForTest(std::string_view vm_id, std::string_view queue_name) { - return global_shared_queue.resolveQueue(vm_id, queue_name); + return getGlobalSharedQueue().resolveQueue(vm_id, queue_name); } std::string PluginBase::makeLogPrefix() const { @@ -203,11 +203,11 @@ void ContextBase::onCreate() { // Shared Data WasmResult ContextBase::getSharedData(std::string_view key, std::pair *data) { - return global_shared_data.get(wasm_->vm_id(), key, data); + return getGlobalSharedData().get(wasm_->vm_id(), key, data); } WasmResult ContextBase::setSharedData(std::string_view key, std::string_view value, uint32_t cas) { - return global_shared_data.set(wasm_->vm_id(), key, value, cas); + return getGlobalSharedData().set(wasm_->vm_id(), key, value, cas); } // Shared Queue @@ -216,15 +216,15 @@ WasmResult ContextBase::registerSharedQueue(std::string_view queue_name, SharedQueueDequeueToken *result) { // Get the id of the root context if this is a stream context because onQueueReady is on the // root. - *result = global_shared_queue.registerQueue(wasm_->vm_id(), queue_name, - isRootContext() ? id_ : parent_context_id_, - wasm_->callOnThreadFunction(), wasm_->vm_key()); + *result = getGlobalSharedQueue().registerQueue(wasm_->vm_id(), queue_name, + isRootContext() ? id_ : parent_context_id_, + wasm_->callOnThreadFunction(), wasm_->vm_key()); return WasmResult::Ok; } WasmResult ContextBase::lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, uint32_t *token_ptr) { - uint32_t token = global_shared_queue.resolveQueue(vm_id, queue_name); + uint32_t token = getGlobalSharedQueue().resolveQueue(vm_id, queue_name); if (isFailed() || !token) { return WasmResult::NotFound; } @@ -233,11 +233,11 @@ WasmResult ContextBase::lookupSharedQueue(std::string_view vm_id, std::string_vi } WasmResult ContextBase::dequeueSharedQueue(uint32_t token, std::string *data) { - return global_shared_queue.dequeue(token, data); + return getGlobalSharedQueue().dequeue(token, data); } WasmResult ContextBase::enqueueSharedQueue(uint32_t token, std::string_view value) { - return global_shared_queue.enqueue(token, value); + return getGlobalSharedQueue().enqueue(token, value); } void ContextBase::destroy() { if (destroyed_) { diff --git a/src/shared_data.cc b/src/shared_data.cc index b7094cb0b..2b2f30ef5 100644 --- a/src/shared_data.cc +++ b/src/shared_data.cc @@ -25,7 +25,10 @@ namespace proxy_wasm { -SharedData global_shared_data; +SharedData &getGlobalSharedData() { + static auto *ptr = new SharedData; + return *ptr; +}; SharedData::SharedData() { registerVmIdHandleCallback([this](std::string_view vm_id) { this->deleteByVmId(vm_id); }); diff --git a/src/shared_data.h b/src/shared_data.h index a4c2101bd..b2c943f45 100644 --- a/src/shared_data.h +++ b/src/shared_data.h @@ -45,6 +45,6 @@ class SharedData { std::map>> data_; }; -extern SharedData global_shared_data; +SharedData &getGlobalSharedData(); } // namespace proxy_wasm diff --git a/src/shared_queue.cc b/src/shared_queue.cc index e8695ef7d..7a6e0d50e 100644 --- a/src/shared_queue.cc +++ b/src/shared_queue.cc @@ -23,7 +23,10 @@ namespace proxy_wasm { -SharedQueue global_shared_queue; +SharedQueue &getGlobalSharedQueue() { + static auto *ptr = new SharedQueue; + return *ptr; +} uint32_t SharedQueue::registerQueue(std::string_view vm_id, std::string_view queue_name, uint32_t context_id, CallOnThreadFunction call_on_thread, diff --git a/src/shared_queue.h b/src/shared_queue.h index 0f87c9001..3c170b292 100644 --- a/src/shared_queue.h +++ b/src/shared_queue.h @@ -61,6 +61,6 @@ class SharedQueue { std::unordered_set queue_token_set_; }; -extern SharedQueue global_shared_queue; +SharedQueue &getGlobalSharedQueue(); } // namespace proxy_wasm diff --git a/src/vm_id_handle.cc b/src/vm_id_handle.cc index e9c741707..25429d276 100644 --- a/src/vm_id_handle.cc +++ b/src/vm_id_handle.cc @@ -19,41 +19,55 @@ #include #include #include +#include namespace proxy_wasm { -std::unordered_map> global_vm_id_handles; -std::vector> global_vm_id_handle_callbacks; -std::mutex global_vm_id_handle_mutex; +std::mutex &getGlobalIdHandleMutex() { + static auto *ptr = new std::mutex; + return *ptr; +} + +std::vector> &getVmIdHandlesCallbacks() { + static auto *ptr = new std::vector>; + return *ptr; +} + +std::unordered_map> &getVmIdHandles() { + static auto *ptr = new std::unordered_map>; + return *ptr; +} std::shared_ptr getVmIdHandle(std::string_view vm_id) { - std::lock_guard lock(global_vm_id_handle_mutex); + std::lock_guard lock(getGlobalIdHandleMutex()); auto key = std::string(vm_id); - auto it = global_vm_id_handles.find(key); - if (it != global_vm_id_handles.end()) { + auto &handles = getVmIdHandles(); + + auto it = handles.find(key); + if (it != handles.end()) { auto handle = it->second.lock(); if (handle) { return handle; } - global_vm_id_handles.erase(key); + handles.erase(key); } auto handle = std::make_shared(key); - global_vm_id_handles[key] = handle; + handles[key] = handle; return handle; }; void registerVmIdHandleCallback(std::function f) { - std::lock_guard lock(global_vm_id_handle_mutex); - global_vm_id_handle_callbacks.push_back(f); + std::lock_guard lock(getGlobalIdHandleMutex()); + getVmIdHandlesCallbacks().push_back(f); } VmIdHandle::~VmIdHandle() { - std::lock_guard lock(global_vm_id_handle_mutex); - for (auto f : global_vm_id_handle_callbacks) { + std::lock_guard lock(getGlobalIdHandleMutex()); + for (auto f : getVmIdHandlesCallbacks()) { f(vm_id_); } - global_vm_id_handles.erase(vm_id_); + getVmIdHandles().erase(vm_id_); } } // namespace proxy_wasm diff --git a/test/shared_queue_test.cc b/test/shared_queue_test.cc index 2f3069468..48c02bab0 100644 --- a/test/shared_queue_test.cc +++ b/test/shared_queue_test.cc @@ -76,8 +76,10 @@ TEST(SharedQueue, Concurrent) { uint32_t context_id = 1; auto queued_count = 0; + std::mutex mutex; std::function)> call_on_thread = - [&queued_count](const std::function &f) { + [&mutex, &queued_count](const std::function &f) { + std::lock_guard lock(mutex); queued_count++; f(); // TODO(mathetake): test whether onQueueReady is called with mock WasmHandle }; From b1067e6a396edf408173ecd4eb56824adefbecbe Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 15 Dec 2020 16:30:53 +0900 Subject: [PATCH 071/287] Register the queue cleanup callback to vm_id handle callbacks (#114) Signed-off-by: mathetake --- src/shared_data.cc | 6 ++-- src/shared_data.h | 2 +- src/shared_queue.cc | 50 ++++++++++++++++++++++++++++++- src/shared_queue.h | 28 +++++++++--------- test/shared_data_test.cc | 8 ++--- test/shared_queue_test.cc | 62 +++++++++++++++++++++++++++++++++++++-- 6 files changed, 131 insertions(+), 25 deletions(-) diff --git a/src/shared_data.cc b/src/shared_data.cc index 2b2f30ef5..73cbb1feb 100644 --- a/src/shared_data.cc +++ b/src/shared_data.cc @@ -30,8 +30,10 @@ SharedData &getGlobalSharedData() { return *ptr; }; -SharedData::SharedData() { - registerVmIdHandleCallback([this](std::string_view vm_id) { this->deleteByVmId(vm_id); }); +SharedData::SharedData(bool register_vm_id_callback) { + if (register_vm_id_callback) { + registerVmIdHandleCallback([this](std::string_view vm_id) { this->deleteByVmId(vm_id); }); + } } void SharedData::deleteByVmId(std::string_view vm_id) { diff --git a/src/shared_data.h b/src/shared_data.h index b2c943f45..fec37aac8 100644 --- a/src/shared_data.h +++ b/src/shared_data.h @@ -22,7 +22,7 @@ namespace proxy_wasm { class SharedData { public: - SharedData(); + SharedData(bool register_vm_id_callback = true); WasmResult get(std::string_view vm_id, const std::string_view key, std::pair *result); WasmResult set(std::string_view vm_id, std::string_view key, std::string_view value, diff --git a/src/shared_queue.cc b/src/shared_queue.cc index 7a6e0d50e..5b0a904f3 100644 --- a/src/shared_queue.cc +++ b/src/shared_queue.cc @@ -21,6 +21,8 @@ #include #include +#include "include/proxy-wasm/vm_id_handle.h" + namespace proxy_wasm { SharedQueue &getGlobalSharedQueue() { @@ -28,6 +30,42 @@ SharedQueue &getGlobalSharedQueue() { return *ptr; } +SharedQueue::SharedQueue(bool register_vm_id_callback) { + if (register_vm_id_callback) { + registerVmIdHandleCallback([this](std::string_view vm_id) { this->deleteByVmId(vm_id); }); + } +} + +void SharedQueue::deleteByVmId(std::string_view vm_id) { + std::lock_guard lock(mutex_); + auto queue_keys = vm_queue_keys_.find(std::string(vm_id)); + if (queue_keys != vm_queue_keys_.end()) { + for (auto queue_key : queue_keys->second) { + auto token = queue_tokens_.find(queue_key); + if (token != queue_tokens_.end()) { + queues_.erase(token->second); + queue_tokens_.erase(token); + } + } + vm_queue_keys_.erase(queue_keys); + } +} + +uint32_t SharedQueue::nextQueueToken() { + // TODO(@mathetake): Should we handle the case where the queue overflows, i.e. the number of used + // tokens exceeds the max of uint32? If it overflows, the following loop never exits. + while (true) { + uint32_t token = next_queue_token_++; + if (token == 0) { + continue; // 0 is an illegal token. + } + + if (queues_.find(token) == queues_.end()) { + return token; + } + } +} + uint32_t SharedQueue::registerQueue(std::string_view vm_id, std::string_view queue_name, uint32_t context_id, CallOnThreadFunction call_on_thread, std::string_view vm_key) { @@ -36,8 +74,18 @@ uint32_t SharedQueue::registerQueue(std::string_view vm_id, std::string_view que auto it = queue_tokens_.insert(std::make_pair(key, static_cast(0))); if (it.second) { it.first->second = nextQueueToken(); - queue_token_set_.insert(it.first->second); + + auto vid = std::string(vm_id); + QueueKeySet *queue_keys; + auto map_it = vm_queue_keys_.find(vid); + if (map_it == vm_queue_keys_.end()) { + queue_keys = &vm_queue_keys_[vid]; + } else { + queue_keys = &map_it->second; + } + queue_keys->insert(key); } + uint32_t token = it.first->second; auto &q = queues_[token]; q.vm_key = std::string(vm_key); diff --git a/src/shared_queue.h b/src/shared_queue.h index 3c170b292..1b66e3575 100644 --- a/src/shared_queue.h +++ b/src/shared_queue.h @@ -22,25 +22,18 @@ namespace proxy_wasm { class SharedQueue { public: + SharedQueue(bool register_vm_id_callback = true); + uint32_t registerQueue(std::string_view vm_id, std::string_view queue_name, uint32_t context_id, CallOnThreadFunction call_on_thread, std::string_view vm_key); uint32_t resolveQueue(std::string_view vm_id, std::string_view queue_name); WasmResult dequeue(uint32_t token, std::string *data); WasmResult enqueue(uint32_t token, std::string_view value); -private: - uint32_t nextQueueToken() { - while (true) { - uint32_t token = next_queue_token_++; - if (token == 0) { - continue; // 0 is an illegal token. - } - if (queue_token_set_.find(token) == queue_token_set_.end()) { - return token; - } - } - } + void deleteByVmId(std::string_view vm_id); + uint32_t nextQueueToken(); +private: struct Queue { std::string vm_key; uint32_t context_id; @@ -50,15 +43,22 @@ class SharedQueue { // TODO: use std::shared_mutex in C++17. std::mutex mutex_; - std::map queues_; uint32_t next_queue_token_ = 1; + struct pair_hash { template std::size_t operator()(const std::pair &pair) const { return std::hash()(pair.first) ^ std::hash()(pair.second); } }; + + using QueueKeySet = std::unordered_set, pair_hash>; + + // vm_id -> queue keys + std::unordered_map vm_queue_keys_; + // queue key -> token std::unordered_map, uint32_t, pair_hash> queue_tokens_; - std::unordered_set queue_token_set_; + // token -> queue + std::unordered_map queues_; }; SharedQueue &getGlobalSharedQueue(); diff --git a/test/shared_data_test.cc b/test/shared_data_test.cc index 122cb1737..0c3d2dec8 100644 --- a/test/shared_data_test.cc +++ b/test/shared_data_test.cc @@ -23,7 +23,7 @@ namespace proxy_wasm { TEST(SharedData, SingleThread) { - SharedData shared_data; + SharedData shared_data(false); std::pair result; EXPECT_EQ(WasmResult::NotFound, shared_data.get("non-exist", "non-exists", &result)); @@ -63,7 +63,7 @@ void incrementData(SharedData *shared_data, std::string_view vm_id, std::string_ } TEST(SharedData, Concurrent) { - SharedData shared_data; + SharedData shared_data(false); std::pair result; std::string_view vm_id = "id"; @@ -80,7 +80,7 @@ TEST(SharedData, Concurrent) { } TEST(SharedData, DeleteByVmId) { - SharedData shared_data; + SharedData shared_data(false); std::string_view vm_id = "id"; std::string_view key = "key"; std::string_view value; @@ -91,7 +91,7 @@ TEST(SharedData, DeleteByVmId) { EXPECT_EQ(WasmResult::NotFound, shared_data.get(vm_id, key, &result)); } -TEST(SharedData, VmIdCleanup) { +TEST(SharedData, VmIdHandleCleanup) { SharedData shared_data; std::string_view vm_id = "proxy_wasm_shared_data_test"; auto handle = getVmIdHandle(vm_id); diff --git a/test/shared_queue_test.cc b/test/shared_queue_test.cc index 48c02bab0..84e6d763e 100644 --- a/test/shared_queue_test.cc +++ b/test/shared_queue_test.cc @@ -18,16 +18,29 @@ #include "gtest/gtest.h" +#include "include/proxy-wasm/vm_id_handle.h" + namespace proxy_wasm { +TEST(SharedQueue, NextQueueToken) { + SharedQueue shared_queue(false); + for (auto i = 1; i < 5; i++) { + EXPECT_EQ(i, shared_queue.nextQueueToken()); + } + EXPECT_EQ(5, shared_queue.registerQueue("a", "b", 1, nullptr, "c")); +} + TEST(SharedQueue, SingleThread) { - SharedQueue shared_queue; + SharedQueue shared_queue(false); std::string_view vm_id = "id"; std::string_view vm_key = "vm_key"; std::string_view queue_name = "name"; uint32_t context_id = 1; - EXPECT_EQ(1, shared_queue.registerQueue(vm_id, queue_name, context_id, nullptr, vm_key)); + for (auto i = 0; i < 3; i++) { + // same token + EXPECT_EQ(1, shared_queue.registerQueue(vm_id, queue_name, context_id, nullptr, vm_key)); + } EXPECT_EQ(1, shared_queue.resolveQueue(vm_id, queue_name)); EXPECT_EQ(0, shared_queue.resolveQueue(vm_id, "non-exist")); EXPECT_EQ(0, shared_queue.resolveQueue("non-exist", queue_name)); @@ -69,7 +82,7 @@ void dequeueData(SharedQueue *shared_queue, uint32_t token, size_t *dequeued_cou } TEST(SharedQueue, Concurrent) { - SharedQueue shared_queue; + SharedQueue shared_queue(false); std::string_view vm_id = "id"; std::string_view vm_key = "vm_key"; std::string_view queue_name = "name"; @@ -100,4 +113,47 @@ TEST(SharedQueue, Concurrent) { EXPECT_EQ(first_cnt + second_cnt, 200); } +TEST(SharedQueue, DeleteByVmId) { + SharedQueue shared_queue(false); + auto vm_id_1 = "id_1"; + auto vm_id_2 = "id_2"; + std::string_view vm_key = "vm_key"; + uint32_t context_id = 1; + auto queue_num_per_vm = 3; + + for (auto i = 1; i < queue_num_per_vm; i++) { + EXPECT_EQ(i, + shared_queue.registerQueue(vm_id_1, std::to_string(i), context_id, nullptr, vm_key)); + EXPECT_EQ(i, shared_queue.resolveQueue(vm_id_1, std::to_string(i))); + } + + for (auto i = queue_num_per_vm; i < 2 * queue_num_per_vm; i++) { + EXPECT_EQ(i, + shared_queue.registerQueue(vm_id_2, std::to_string(i), context_id, nullptr, vm_key)); + EXPECT_EQ(i, shared_queue.resolveQueue(vm_id_2, std::to_string(i))); + } + + shared_queue.deleteByVmId(vm_id_1); + for (auto i = 1; i < queue_num_per_vm; i++) { + EXPECT_EQ(0, shared_queue.resolveQueue(vm_id_1, std::to_string(i))); + } + + for (auto i = queue_num_per_vm; i < 2 * queue_num_per_vm; i++) { + EXPECT_EQ(i, shared_queue.resolveQueue(vm_id_2, std::to_string(i))); + } +} + +TEST(SharedQueue, VmIdHandleCleanup) { + SharedQueue shared_queue; + std::string_view vm_id = "proxy_wasm_shared_queue_test"; + std::string_view queue_name = "name"; + + auto handle = getVmIdHandle(vm_id); + EXPECT_EQ(1, shared_queue.registerQueue(vm_id, queue_name, 1, nullptr, "vm_key")); + EXPECT_EQ(1, shared_queue.resolveQueue(vm_id, queue_name)); + + handle.reset(); + EXPECT_EQ(0, shared_queue.resolveQueue(vm_id, queue_name)); +} + } // namespace proxy_wasm From c6c07ad7b4bfdf9eb1607aa8b8a3ab26a2d4530e Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 15 Dec 2020 17:36:17 +0900 Subject: [PATCH 072/287] v8: emit backtrace when trap happens. (#66) Signed-off-by: mathetake --- src/v8/v8.cc | 95 +++++++++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 90 insertions(+), 5 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 62ee2bc1d..537dde506 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -16,9 +16,10 @@ #include "include/proxy-wasm/v8.h" #include - +#include #include #include +#include #include #include @@ -84,7 +85,9 @@ class V8 : public WasmVm { #undef _GET_MODULE_FUNCTION private: + void buildFunctionNameIndex(); wasm::vec getStrippedSource(); + std::string getFailMessage(std::string_view function_name, wasm::own trap); template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, @@ -112,6 +115,8 @@ class V8 : public WasmVm { absl::flat_hash_map host_functions_; absl::flat_hash_map> module_functions_; + + absl::flat_hash_map function_names_index_; }; // Helper functions. @@ -263,9 +268,58 @@ bool V8::load(const std::string &code, bool allow_precompiled) { assert((shared_module_ != nullptr)); } + buildFunctionNameIndex(); + return module_ != nullptr; } +void V8::buildFunctionNameIndex() { + // build function index -> function name map for backtrace + // https://webassembly.github.io/spec/core/appendix/custom.html#binary-namesubsection + auto name_section = getCustomSection("name"); + if (name_section.size()) { + const byte_t *pos = name_section.data(); + const byte_t *end = name_section.data() + name_section.size(); + while (pos < end) { + if (*pos++ != 1) { + pos += parseVarint(pos, end); + } else { + const auto size = parseVarint(pos, end); + if (size == static_cast(-1) || pos + size > end) { + function_names_index_ = {}; + return; + } + const auto start = pos; + const auto namemap_vector_size = parseVarint(pos, end); + if (namemap_vector_size == static_cast(-1) || pos + namemap_vector_size > end) { + function_names_index_ = {}; + return; + } + for (auto i = 0; i < namemap_vector_size; i++) { + const auto func_index = parseVarint(pos, end); + if (func_index == static_cast(-1)) { + function_names_index_ = {}; + return; + } + + const auto func_name_size = parseVarint(pos, end); + if (func_name_size == static_cast(-1) || pos + func_name_size > end) { + function_names_index_ = {}; + return; + } + function_names_index_.insert({func_index, std::string(pos, func_name_size)}); + pos += func_name_size; + } + + if (start + size != pos) { + function_names_index_ = {}; + return; + } + } + } + } +} + std::unique_ptr V8::clone() { assert(shared_module_ != nullptr); @@ -274,6 +328,7 @@ std::unique_ptr V8::clone() { clone->store_ = wasm::Store::make(engine()); clone->module_ = wasm::Module::obtain(clone->store_.get(), shared_module_.get()); + clone->function_names_index_ = function_names_index_; return clone; } @@ -500,6 +555,7 @@ bool V8::link(std::string_view debug_name) { } break; } } + return !isFailed(); } @@ -618,8 +674,7 @@ void V8::getModuleFunctionImpl(std::string_view function_name, SaveRestoreContext saved_context(context); auto trap = func->call(params, nullptr); if (trap) { - fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed: " + - std::string(trap->message().get(), trap->message().size())); + fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); } }; } @@ -651,8 +706,7 @@ void V8::getModuleFunctionImpl(std::string_view function_name, SaveRestoreContext saved_context(context); auto trap = func->call(params, results); if (trap) { - fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed: " + - std::string(trap->message().get(), trap->message().size())); + fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return R{}; } R rvalue = results[0].get::type>(); @@ -660,6 +714,37 @@ void V8::getModuleFunctionImpl(std::string_view function_name, }; } +std::string V8::getFailMessage(std::string_view function_name, wasm::own trap) { + auto message = "Function: " + std::string(function_name) + " failed: "; + message += std::string(trap->message().get(), trap->message().size()); + + if (function_names_index_.empty()) { + return message; + } + + auto trace = trap->trace(); + message += "\nProxy-Wasm plugin in-VM backtrace:"; + for (size_t i = 0; i < trace.size(); ++i) { + auto frame = trace[i].get(); + std::ostringstream oss; + oss << std::setw(3) << std::setfill(' ') << std::to_string(i); + message += "\n" + oss.str() + ": "; + + std::stringstream address; + address << std::hex << frame->module_offset(); + message += " 0x" + address.str() + " - "; + + auto func_index = frame->func_index(); + auto it = function_names_index_.find(func_index); + if (it != function_names_index_.end()) { + message += it->second; + } else { + message += "unknown(function index:" + std::to_string(func_index) + ")"; + } + } + return message; +} + } // namespace std::unique_ptr createV8Vm() { return std::make_unique(); } From 02a3ce21c8828d85063a9468e9d39dd8536a5980 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 16 Dec 2020 15:42:42 +0900 Subject: [PATCH 073/287] Add strace equivalent on ABI boundary. (#118) Signed-off-by: mathetake --- include/proxy-wasm/null_plugin.h | 2 +- include/proxy-wasm/wasm_vm.h | 6 ++- src/v8/v8.cc | 66 ++++++++++++++++++++++++++ src/wasmtime/wasmtime.cc | 81 ++++++++++++++++++++++++++++---- src/wavm/wavm.cc | 2 +- test/runtime_test.cc | 33 +++++++++++++ 6 files changed, 177 insertions(+), 13 deletions(-) diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 8385ee000..c940aee2b 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -112,7 +112,7 @@ class NullPlugin : public NullVmPlugin { null_plugin::RootContext *getRoot(std::string_view root_id); null_plugin::Context *getContext(uint64_t context_id); - void error(std::string_view message) { wasm_vm_->error(message); } + void error(std::string_view message) { wasm_vm_->integration()->error(message); } null_plugin::Context *ensureContext(uint64_t context_id, uint64_t root_context_id); null_plugin::RootContext *ensureRootContext(uint64_t context_id); diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 45119a0d9..9e9a00700 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -112,7 +112,9 @@ class NullPlugin; struct WasmVmIntegration { virtual ~WasmVmIntegration() {} virtual WasmVmIntegration *clone() = 0; + virtual proxy_wasm::LogLevel getLogLevel() = 0; virtual void error(std::string_view message) = 0; + virtual void trace(std::string_view message) = 0; // Get a NullVm implementation of a function. // @param function_name is the name of the function with the implementation specific prefix. // @param returns_word is true if the function returns a Word and false if it returns void. @@ -273,7 +275,7 @@ class WasmVm { bool isFailed() { return failed_ != FailState::Ok; } void fail(FailState fail_state, std::string_view message) { - error(message); + integration()->error(message); failed_ = fail_state; if (fail_callback_) { fail_callback_(fail_state); @@ -285,7 +287,7 @@ class WasmVm { // Integrator operations. std::unique_ptr &integration() { return integration_; } - void error(std::string_view message) { integration()->error(message); } + bool cmpLogLevel(proxy_wasm::LogLevel level) { return integration_->getLogLevel() <= level; } protected: std::unique_ptr integration_; diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 537dde506..9078999cd 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -43,6 +43,7 @@ struct FuncData { std::string name_; wasm::own callback_; void *raw_func_; + WasmVm *vm_; }; using FuncDataPtr = std::unique_ptr; @@ -121,6 +122,36 @@ class V8 : public WasmVm { // Helper functions. +static std::string printValue(const wasm::Val &value) { + switch (value.kind()) { + case wasm::I32: + return std::to_string(value.get()); + case wasm::I64: + return std::to_string(value.get()); + case wasm::F32: + return std::to_string(value.get()); + case wasm::F64: + return std::to_string(value.get()); + default: + return "unknown"; + } +} + +static std::string printValues(const wasm::Val values[], size_t size) { + if (size == 0) { + return ""; + } + + std::string s; + for (size_t i = 0; i < size; i++) { + if (i) { + s.append(", "); + } + s.append(printValue(values[i])); + } + return s; +} + static const char *printValKind(wasm::ValKind kind) { switch (kind) { case wasm::I32: @@ -610,13 +641,22 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view store_.get(), type.get(), [](void *data, const wasm::Val params[], wasm::Val[]) -> wasm::own { auto func_data = reinterpret_cast(data); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + + printValues(params, sizeof...(Args)) + ")"); + } auto args_tuple = convertValTypesToArgsTuple>(params); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto function = reinterpret_cast(func_data->raw_func_); absl::apply(function, args); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); + } return nullptr; }, data.get()); + + data->vm_ = this; data->callback_ = std::move(func); data->raw_func_ = reinterpret_cast(function); host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), @@ -634,14 +674,24 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view store_.get(), type.get(), [](void *data, const wasm::Val params[], wasm::Val results[]) -> wasm::own { auto func_data = reinterpret_cast(data); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + + printValues(params, sizeof...(Args)) + ")"); + } auto args_tuple = convertValTypesToArgsTuple>(params); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto function = reinterpret_cast(func_data->raw_func_); R rvalue = absl::apply(function, args); results[0] = makeVal(rvalue); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + + " return: " + std::to_string(rvalue)); + } return nullptr; }, data.get()); + + data->vm_ = this; data->callback_ = std::move(func); data->raw_func_ = reinterpret_cast(function); host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), @@ -672,9 +722,17 @@ void V8::getModuleFunctionImpl(std::string_view function_name, *function = [func, function_name, this](ContextBase *context, Args... args) -> void { wasm::Val params[] = {makeVal(args)...}; SaveRestoreContext saved_context(context); + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } auto trap = func->call(params, nullptr); if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); + return; + } + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host<-vm] " + std::string(function_name) + " return: void"); } }; } @@ -704,12 +762,20 @@ void V8::getModuleFunctionImpl(std::string_view function_name, wasm::Val params[] = {makeVal(args)...}; wasm::Val results[1]; SaveRestoreContext saved_context(context); + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } auto trap = func->call(params, results); if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return R{}; } R rvalue = results[0].get::type>(); + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host<-vm] " + std::string(function_name) + + " return: " + std::to_string(rvalue)); + } return rvalue; }; } diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index f1001e1c6..b7d648b6e 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -31,15 +31,16 @@ namespace proxy_wasm { namespace wasmtime { -struct FuncData { - FuncData(std::string name) : name_(std::move(name)) {} +struct HostFuncData { + HostFuncData(std::string name) : name_(std::move(name)) {} std::string name_; WasmFuncPtr callback_; void *raw_func_; + WasmVm *vm_; }; -using FuncDataPtr = std::unique_ptr; +using HostFuncDataPtr = std::unique_ptr; wasm_engine_t *engine() { static const auto engine = WasmEnginePtr(wasm_engine_new()); @@ -107,7 +108,7 @@ class Wasmtime : public WasmVm { WasmMemoryPtr memory_; WasmTablePtr table_; - std::unordered_map host_functions_; + std::unordered_map host_functions_; std::unordered_map module_functions_; }; @@ -224,6 +225,36 @@ static bool equalValTypes(const wasm_valtype_vec_t *left, const wasm_valtype_vec return true; } +static std::string printValue(const wasm_val_t &value) { + switch (value.kind) { + case WASM_I32: + return std::to_string(value.of.i32); + case WASM_I64: + return std::to_string(value.of.i64); + case WASM_F32: + return std::to_string(value.of.f32); + case WASM_F64: + return std::to_string(value.of.f64); + default: + return "unknown"; + } +} + +static std::string printValues(const wasm_val_t values[], size_t size) { + if (size == 0) { + return ""; + } + + std::string s; + for (size_t i = 0; i < size; i++) { + if (i) { + s.append(", "); + } + s.append(printValue(values[i])); + } + return s; +} + static const char *printValKind(wasm_valkind_t kind) { switch (kind) { case WASM_I32: @@ -539,21 +570,29 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, void (*function)(void *, Args...)) { auto data = - std::make_unique(std::string(module_name) + "." + std::string(function_name)); + std::make_unique(std::string(module_name) + "." + std::string(function_name)); WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { - auto func_data = reinterpret_cast(data); + auto func_data = reinterpret_cast(data); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + + printValues(params, sizeof...(Args)) + ")"); + } auto args_tuple = convertValTypesToArgsTuple>(params); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto fn = reinterpret_cast(func_data->raw_func_); std::apply(fn, args); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); + } return nullptr; }, data.get(), nullptr); + data->vm_ = this; data->callback_ = std::move(func); data->raw_func_ = reinterpret_cast(function); host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), @@ -565,21 +604,30 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, R (*function)(void *, Args...)) { auto data = - std::make_unique(std::string(module_name) + "." + std::string(function_name)); + std::make_unique(std::string(module_name) + "." + std::string(function_name)); WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { - auto func_data = reinterpret_cast(data); + auto func_data = reinterpret_cast(data); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + + printValues(params, sizeof...(Args)) + ")"); + } auto args_tuple = convertValTypesToArgsTuple>(params); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto fn = reinterpret_cast(func_data->raw_func_); R res = std::apply(fn, args); assignVal(res, results[0]); + if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + + " return: " + std::to_string(res)); + } return nullptr; }, data.get(), nullptr); + data->vm_ = this; data->callback_ = std::move(func); data->raw_func_ = reinterpret_cast(function); host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), @@ -615,6 +663,10 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, *function = [func, function_name, this](ContextBase *context, Args... args) -> void { wasm_val_t params[] = {makeVal(args)...}; SaveRestoreContext saved_context(context); + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } WasmTrapPtr trap{wasm_func_call(func, params, nullptr)}; if (trap) { WasmByteVec error_message; @@ -622,6 +674,10 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed:\n" + std::string(error_message.get()->data, error_message.get()->size)); + return; + } + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host<-vm] " + std::string(function_name) + " return: void"); } }; }; @@ -653,6 +709,10 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, wasm_val_t params[] = {makeVal(args)...}; wasm_val_t results[1]; SaveRestoreContext saved_context(context); + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } WasmTrapPtr trap{wasm_func_call(func, params, results)}; if (trap) { WasmByteVec error_message; @@ -662,8 +722,11 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, std::string(error_message.get()->data, error_message.get()->size)); return R{}; } - R ret = convertValueTypeToArg(results[0]); + if (cmpLogLevel(LogLevel::trace)) { + integration()->trace("[host<-vm] " + std::string(function_name) + + " return: " + std::to_string(ret)); + } return ret; }; }; diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index e656fa653..00b3b7358 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -350,7 +350,7 @@ bool Wavm::link(std::string_view debug_name) { WAVM::Runtime::LinkResult link_result = linkModule(ir_module_, rootResolver); if (!link_result.missingImports.empty()) { for (auto &i : link_result.missingImports) { - error("Missing Wasm import " + i.moduleName + " " + i.exportName); + integration()->error("Missing Wasm import " + i.moduleName + " " + i.exportName); } fail(FailState::MissingFunction, "Failed to load Wasm module due to a missing import(s)"); return false; diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 936834d23..8f5c524a1 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -43,11 +43,19 @@ struct DummyIntegration : public WasmVmIntegration { std::cout << "ERROR from integration: " << message << std::endl; error_message_ = message; } + void trace(std::string_view message) override { + std::cout << "TRACE from integration: " << message << std::endl; + trace_message_ = message; + } bool getNullVmFunction(std::string_view function_name, bool returns_word, int number_of_arguments, NullPlugin *plugin, void *ptr_to_function_return) override { return false; }; + + LogLevel getLogLevel() override { return log_level_; } std::string error_message_; + std::string trace_message_; + LogLevel log_level_ = LogLevel::info; }; class TestVM : public testing::TestWithParam { @@ -183,6 +191,8 @@ class TestContext : public ContextBase { int64_t counter = 0; }; +void nopCallback(void *raw_context) {} + void callback(void *raw_context) { TestContext *context = static_cast(raw_context); context->increment(); @@ -190,6 +200,29 @@ void callback(void *raw_context) { Word callback2(void *raw_context, Word val) { return val + 100; } +TEST_P(TestVM, StraceLogLevel) { + initialize("callback.wasm"); + ASSERT_TRUE(vm_->load(source_, false)); + vm_->registerCallback("env", "callback", &nopCallback, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + vm_->registerCallback( + "env", "callback2", &callback2, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + ASSERT_TRUE(vm_->link("")); + + WasmCallVoid<0> run; + vm_->getFunction("run", &run); + + run(nullptr); + // no trace message found since DummyIntegration's log_level_ defaults to LogLevel::info + EXPECT_EQ(integration_->trace_message_, ""); + + integration_->log_level_ = LogLevel::trace; + run(nullptr); + EXPECT_NE(integration_->trace_message_, ""); +} + TEST_P(TestVM, Callback) { initialize("callback.wasm"); ASSERT_TRUE(vm_->load(source_, false)); From 6dab125d7a668c7158848b6f48c67fd827c952e6 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 15 Dec 2020 23:09:20 -0800 Subject: [PATCH 074/287] Add @mathetake to CODEOWNERS. (#119) Signed-off-by: Piotr Sikora --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index f1f3bca02..2bbe6fa17 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @PiotrSikora +* @PiotrSikora @mathetake From 37501041cc02f7ddae7c5d9d6a6f01bfb26b48dc Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 21 Dec 2020 06:07:49 +0900 Subject: [PATCH 075/287] Remove absl dependency (#123) Signed-off-by: mathetake --- bazel/repositories.bzl | 8 -------- src/v8/v8.cc | 24 +++++++++++------------- 2 files changed, 11 insertions(+), 21 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 93eabfe16..7a13a16e3 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -52,14 +52,6 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/WebAssembly/wasm-c-api/archive/d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz", ) - http_archive( - name = "com_google_absl", - sha256 = "19391fb4882601a65cb648d638c11aa301ce5f525ef02da1a9eafd22f72d7c59", - strip_prefix = "abseil-cpp-37dd2562ec830d547a1524bb306be313ac3f2556", - # 2020-01-29 - urls = ["https://github.com/abseil/abseil-cpp/archive/37dd2562ec830d547a1524bb306be313ac3f2556.tar.gz"], - ) - http_archive( name = "io_bazel_rules_rust", sha256 = "442a102e2a6f6c75e10d43f21c0c30218947a3e827d91529ced7380c5fec05f0", diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 9078999cd..c43bfb77c 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -20,15 +20,13 @@ #include #include #include +#include #include #include #include "v8-version.h" #include "wasm-api/wasm.hh" -// TODO remove absl dependency -#include "absl/container/flat_hash_map.h" - namespace proxy_wasm { namespace { @@ -114,10 +112,10 @@ class V8 : public WasmVm { wasm::own memory_; wasm::own table_; - absl::flat_hash_map host_functions_; - absl::flat_hash_map> module_functions_; + std::unordered_map host_functions_; + std::unordered_map> module_functions_; - absl::flat_hash_map function_names_index_; + std::unordered_map function_names_index_; }; // Helper functions. @@ -235,17 +233,17 @@ template <> constexpr auto convertArgToValKind() { return wasm::I64; } template <> constexpr auto convertArgToValKind() { return wasm::F64; }; template -constexpr auto convertArgsTupleToValTypesImpl(absl::index_sequence) { +constexpr auto convertArgsTupleToValTypesImpl(std::index_sequence) { return wasm::ownvec::make( wasm::ValType::make(convertArgToValKind::type>())...); } template constexpr auto convertArgsTupleToValTypes() { - return convertArgsTupleToValTypesImpl(absl::make_index_sequence::value>()); + return convertArgsTupleToValTypesImpl(std::make_index_sequence::value>()); } template -constexpr T convertValTypesToArgsTupleImpl(const U &arr, absl::index_sequence) { +constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence) { return std::make_tuple( (arr[I] .template get< @@ -254,7 +252,7 @@ constexpr T convertValTypesToArgsTupleImpl(const U &arr, absl::index_sequence constexpr T convertValTypesToArgsTuple(const U &arr) { return convertValTypesToArgsTupleImpl(arr, - absl::make_index_sequence::value>()); + std::make_index_sequence::value>()); } // V8 implementation. @@ -568,7 +566,7 @@ bool V8::link(std::string_view debug_name) { case wasm::EXTERN_FUNC: { assert(export_item->func() != nullptr); - module_functions_.insert_or_assign(name, export_item->func()->copy()); + module_functions_.insert_or_assign(std::string(name), export_item->func()->copy()); } break; case wasm::EXTERN_GLOBAL: { @@ -648,7 +646,7 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view auto args_tuple = convertValTypesToArgsTuple>(params); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto function = reinterpret_cast(func_data->raw_func_); - absl::apply(function, args); + std::apply(function, args); if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); } @@ -681,7 +679,7 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view auto args_tuple = convertValTypesToArgsTuple>(params); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto function = reinterpret_cast(func_data->raw_func_); - R rvalue = absl::apply(function, args); + R rvalue = std::apply(function, args); results[0] = makeVal(rvalue); if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + From 993766996269bd1e41dc625063cfcf4904d940a0 Mon Sep 17 00:00:00 2001 From: Ryan Apilado Date: Tue, 22 Dec 2020 17:34:29 -0500 Subject: [PATCH 076/287] Implement a capability restriction system. (#89) Signed-off-by: Ryan Apilado --- include/proxy-wasm/exports.h | 65 ++++++++++++++- include/proxy-wasm/wasm.h | 29 ++++++- src/wasm.cc | 153 +++++++++++------------------------ 3 files changed, 137 insertions(+), 110 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index f0fa5dbf0..5c5171761 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -18,6 +18,7 @@ #include #include "include/proxy-wasm/word.h" +#include "include/proxy-wasm/wasm_vm.h" namespace proxy_wasm { @@ -57,7 +58,7 @@ template void marshalPairs(const Pairs &result, char *buffer) { } } -// ABI functions exported from envoy to wasm. +// ABI functions exported from host to wasm. Word get_configuration(void *raw_context, Word address, Word size); Word get_status(void *raw_context, Word status_code, Word address, Word size); @@ -153,5 +154,67 @@ Word pthread_equal(void *, Word left, Word right); // Any currently executing Wasm call context. ::proxy_wasm::ContextBase *ContextOrEffectiveContext(::proxy_wasm::ContextBase *context); +#define FOR_ALL_HOST_FUNCTIONS(_f) \ + _f(log) _f(get_status) _f(set_property) _f(get_property) _f(send_local_response) \ + _f(get_shared_data) _f(set_shared_data) _f(register_shared_queue) _f(resolve_shared_queue) \ + _f(dequeue_shared_queue) _f(enqueue_shared_queue) _f(get_header_map_value) \ + _f(add_header_map_value) _f(replace_header_map_value) _f(remove_header_map_value) \ + _f(get_header_map_pairs) _f(set_header_map_pairs) _f(get_header_map_size) \ + _f(get_buffer_status) _f(get_buffer_bytes) _f(set_buffer_bytes) \ + _f(http_call) _f(grpc_call) _f(grpc_stream) _f(grpc_close) \ + _f(grpc_cancel) _f(grpc_send) _f(set_tick_period_milliseconds) \ + _f(get_current_time_nanoseconds) _f(define_metric) \ + _f(increment_metric) _f(record_metric) _f(get_metric) \ + _f(set_effective_context) _f(done) \ + _f(call_foreign_function) + +#define FOR_ALL_HOST_FUNCTIONS_ABI_SPECIFIC(_f) \ + _f(get_configuration) _f(continue_request) _f(continue_response) _f(clear_route_cache) \ + _f(continue_stream) _f(close_stream) _f(get_log_level) + +#define FOR_ALL_WASI_FUNCTIONS(_f) \ + _f(fd_write) _f(fd_read) _f(fd_seek) _f(fd_close) _f(fd_fdstat_get) _f(environ_get) \ + _f(environ_sizes_get) _f(args_get) _f(args_sizes_get) _f(clock_time_get) _f(random_get) \ + _f(proc_exit) + +// Helpers to generate a stub to pass to VM, in place of a restricted proxy-wasm capability. +#define _CREATE_PROXY_WASM_STUB(_fn) \ + template struct _fn##Stub; \ + template struct _fn##Stub { \ + static Word stub(void *raw_context, Args...) { \ + auto context = exports::ContextOrEffectiveContext( \ + static_cast((void)raw_context, current_context_)); \ + context->wasmVm()->integration()->error( \ + "Attempted call to restricted proxy-wasm capability: proxy_" #_fn); \ + return WasmResult::InternalFailure; \ + } \ + }; +FOR_ALL_HOST_FUNCTIONS(_CREATE_PROXY_WASM_STUB) +FOR_ALL_HOST_FUNCTIONS_ABI_SPECIFIC(_CREATE_PROXY_WASM_STUB) +#undef _CREATE_PROXY_WASM_STUB + +// Helpers to generate a stub to pass to VM, in place of a restricted WASI capability. +#define _CREATE_WASI_STUB(_fn) \ + template struct _fn##Stub; \ + template struct _fn##Stub { \ + static Word stub(void *raw_context, Args...) { \ + auto context = exports::ContextOrEffectiveContext( \ + static_cast((void)raw_context, current_context_)); \ + context->wasmVm()->integration()->error( \ + "Attempted call to restricted WASI capability: " #_fn); \ + return 76; /* __WASI_ENOTCAPABLE */ \ + } \ + }; \ + template struct _fn##Stub { \ + static void stub(void *raw_context, Args...) { \ + auto context = exports::ContextOrEffectiveContext( \ + static_cast((void)raw_context, current_context_)); \ + context->wasmVm()->integration()->error( \ + "Attempted call to restricted WASI capability: " #_fn); \ + } \ + }; +FOR_ALL_WASI_FUNCTIONS(_CREATE_WASI_STUB) +#undef _CREATE_WASI_STUB + } // namespace exports } // namespace proxy_wasm diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index db3ff7404..7d0d802f5 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -42,11 +42,18 @@ using WasmForeignFunction = using WasmVmFactory = std::function()>; using CallOnThreadFunction = std::function)>; +struct SanitizationConfig { + std::vector argument_list; + bool is_allowlist; +}; +using AllowedCapabilitiesMap = std::unordered_map; + // Wasm execution instance. Manages the host side of the Wasm interface. class WasmBase : public std::enable_shared_from_this { public: WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, - std::string_view vm_configuration, std::string_view vm_key); + std::string_view vm_configuration, std::string_view vm_key, + AllowedCapabilitiesMap allowed_capabilities); WasmBase(const std::shared_ptr &other, WasmVmFactory factory); virtual ~WasmBase(); @@ -92,6 +99,12 @@ class WasmBase : public std::enable_shared_from_this { return nullptr; } + // Capability restriction (restricting/exposing the ABI). + bool capabilityAllowed(std::string capability_name) { + return allowed_capabilities_.empty() || + allowed_capabilities_.find(capability_name) != allowed_capabilities_.end(); + } + virtual ContextBase *createVmContext() { return new ContextBase(this); } virtual ContextBase *createRootContext(const std::shared_ptr &plugin) { return new ContextBase(this, plugin); @@ -225,6 +238,20 @@ class WasmBase : public std::enable_shared_from_this { WasmCallVoid<1> on_log_; WasmCallVoid<1> on_delete_; +#define FOR_ALL_MODULE_FUNCTIONS(_f) \ + _f(validate_configuration) _f(on_vm_start) _f(on_configure) _f(on_tick) _f(on_context_create) \ + _f(on_new_connection) _f(on_downstream_data) _f(on_upstream_data) \ + _f(on_downstream_connection_close) _f(on_upstream_connection_close) _f(on_request_body) \ + _f(on_request_trailers) _f(on_request_metadata) _f(on_response_body) \ + _f(on_response_trailers) _f(on_response_metadata) _f(on_http_call_response) \ + _f(on_grpc_receive) _f(on_grpc_close) _f(on_grpc_receive_initial_metadata) \ + _f(on_grpc_receive_trailing_metadata) _f(on_queue_ready) _f(on_done) \ + _f(on_log) _f(on_delete) + + // Capabilities which are allowed to be linked to the module. If this is empty, restriction + // is not enforced. + AllowedCapabilitiesMap allowed_capabilities_; + std::shared_ptr base_wasm_handle_; // Used by the base_wasm to enable non-clonable thread local Wasm(s) to be constructed. diff --git a/src/wasm.cc b/src/wasm.cc index 3829a89ef..6a073dc3e 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -100,83 +100,30 @@ void WasmBase::registerCallbacks() { _REGISTER(pthread_equal); #undef _REGISTER -#define _REGISTER_WASI(_fn) \ - wasm_vm_->registerCallback( \ - "wasi_unstable", #_fn, &exports::wasi_unstable_##_fn, \ - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); \ - wasm_vm_->registerCallback( \ - "wasi_snapshot_preview1", #_fn, &exports::wasi_unstable_##_fn, \ - &ConvertFunctionWordToUint32::convertFunctionWordToUint32) - _REGISTER_WASI(fd_write); - _REGISTER_WASI(fd_read); - _REGISTER_WASI(fd_seek); - _REGISTER_WASI(fd_close); - _REGISTER_WASI(fd_fdstat_get); - _REGISTER_WASI(environ_get); - _REGISTER_WASI(environ_sizes_get); - _REGISTER_WASI(args_get); - _REGISTER_WASI(args_sizes_get); - _REGISTER_WASI(clock_time_get); - _REGISTER_WASI(random_get); - _REGISTER_WASI(proc_exit); -#undef _REGISTER_WASI - - // Calls with the "proxy_" prefix. -#define _REGISTER_PROXY(_fn) \ - wasm_vm_->registerCallback( \ - "env", "proxy_" #_fn, &exports::_fn, \ - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - _REGISTER_PROXY(log); - - _REGISTER_PROXY(get_status); - - _REGISTER_PROXY(set_property); - _REGISTER_PROXY(get_property); - - _REGISTER_PROXY(send_local_response); - - _REGISTER_PROXY(get_shared_data); - _REGISTER_PROXY(set_shared_data); - - _REGISTER_PROXY(register_shared_queue); - _REGISTER_PROXY(resolve_shared_queue); - _REGISTER_PROXY(dequeue_shared_queue); - _REGISTER_PROXY(enqueue_shared_queue); - - _REGISTER_PROXY(get_header_map_value); - _REGISTER_PROXY(add_header_map_value); - _REGISTER_PROXY(replace_header_map_value); - _REGISTER_PROXY(remove_header_map_value); - _REGISTER_PROXY(get_header_map_pairs); - _REGISTER_PROXY(set_header_map_pairs); - _REGISTER_PROXY(get_header_map_size); - - _REGISTER_PROXY(get_buffer_status); - _REGISTER_PROXY(get_buffer_bytes); - _REGISTER_PROXY(set_buffer_bytes); - - _REGISTER_PROXY(http_call); - - _REGISTER_PROXY(grpc_call); - _REGISTER_PROXY(grpc_stream); - _REGISTER_PROXY(grpc_close); - _REGISTER_PROXY(grpc_cancel); - _REGISTER_PROXY(grpc_send); - - _REGISTER_PROXY(set_tick_period_milliseconds); - _REGISTER_PROXY(get_current_time_nanoseconds); - - _REGISTER_PROXY(define_metric); - _REGISTER_PROXY(increment_metric); - _REGISTER_PROXY(record_metric); - _REGISTER_PROXY(get_metric); - - _REGISTER_PROXY(set_effective_context); - _REGISTER_PROXY(done); - _REGISTER_PROXY(call_foreign_function); + // Register the capability with the VM if it has been allowed, otherwise register a stub. +#define _REGISTER(module_name, name_prefix, export_prefix, _fn) \ + if (capabilityAllowed(name_prefix #_fn)) { \ + wasm_vm_->registerCallback( \ + module_name, name_prefix #_fn, &exports::export_prefix##_fn, \ + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); \ + } else { \ + typedef decltype(exports::export_prefix##_fn) export_type; \ + constexpr export_type *stub = &exports::_fn##Stub::stub; \ + wasm_vm_->registerCallback( \ + module_name, name_prefix #_fn, stub, \ + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); \ + } + +#define _REGISTER_WASI_UNSTABLE(_fn) _REGISTER("wasi_unstable", , wasi_unstable_, _fn) +#define _REGISTER_WASI_SNAPSHOT(_fn) _REGISTER("wasi_snapshot_preview1", , wasi_unstable_, _fn) + FOR_ALL_WASI_FUNCTIONS(_REGISTER_WASI_UNSTABLE); + FOR_ALL_WASI_FUNCTIONS(_REGISTER_WASI_SNAPSHOT); +#undef _REGISTER_WASI_UNSTABLE +#undef _REGISTER_WASI_SNAPSHOT + +#define _REGISTER_PROXY(_fn) _REGISTER("env", "proxy_", , _fn) + FOR_ALL_HOST_FUNCTIONS(_REGISTER_PROXY); if (abiVersion() == AbiVersion::ProxyWasm_0_1_0) { _REGISTER_PROXY(get_configuration); @@ -192,6 +139,8 @@ void WasmBase::registerCallbacks() { _REGISTER_PROXY(get_log_level); } #undef _REGISTER_PROXY + +#undef _REGISTER } void WasmBase::getFunctions() { @@ -211,36 +160,21 @@ void WasmBase::getFunctions() { #undef _GET_ALIAS #undef _GET -#define _GET_PROXY(_fn) wasm_vm_->getFunction("proxy_" #_fn, &_fn##_); -#define _GET_PROXY_ABI(_fn, _abi) wasm_vm_->getFunction("proxy_" #_fn, &_fn##_abi##_); - _GET_PROXY(validate_configuration); - _GET_PROXY(on_vm_start); - _GET_PROXY(on_configure); - _GET_PROXY(on_tick); - - _GET_PROXY(on_context_create); - - _GET_PROXY(on_new_connection); - _GET_PROXY(on_downstream_data); - _GET_PROXY(on_upstream_data); - _GET_PROXY(on_downstream_connection_close); - _GET_PROXY(on_upstream_connection_close); - - _GET_PROXY(on_request_body); - _GET_PROXY(on_request_trailers); - _GET_PROXY(on_request_metadata); - _GET_PROXY(on_response_body); - _GET_PROXY(on_response_trailers); - _GET_PROXY(on_response_metadata); - _GET_PROXY(on_http_call_response); - _GET_PROXY(on_grpc_receive); - _GET_PROXY(on_grpc_close); - _GET_PROXY(on_grpc_receive_initial_metadata); - _GET_PROXY(on_grpc_receive_trailing_metadata); - _GET_PROXY(on_queue_ready); - _GET_PROXY(on_done); - _GET_PROXY(on_log); - _GET_PROXY(on_delete); + // Try to point the capability to one of the module exports, if the capability has been allowed. +#define _GET_PROXY(_fn) \ + if (capabilityAllowed("proxy_" #_fn)) { \ + wasm_vm_->getFunction("proxy_" #_fn, &_fn##_); \ + } else { \ + _fn##_ = nullptr; \ + } +#define _GET_PROXY_ABI(_fn, _abi) \ + if (capabilityAllowed("proxy_" #_fn)) { \ + wasm_vm_->getFunction("proxy_" #_fn, &_fn##_abi##_); \ + } else { \ + _fn##_abi##_ = nullptr; \ + } + + FOR_ALL_MODULE_FUNCTIONS(_GET_PROXY); if (abiVersion() == AbiVersion::ProxyWasm_0_1_0) { _GET_PROXY_ABI(on_request_headers, _abi_01); @@ -259,6 +193,7 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm : std::enable_shared_from_this(*base_wasm_handle->wasm()), vm_id_(base_wasm_handle->wasm()->vm_id_), vm_key_(base_wasm_handle->wasm()->vm_key_), started_from_(base_wasm_handle->wasm()->wasm_vm()->cloneable()), + allowed_capabilities_(base_wasm_handle->wasm()->allowed_capabilities_), base_wasm_handle_(base_wasm_handle) { if (started_from_ != Cloneable::NotCloneable) { wasm_vm_ = base_wasm_handle->wasm()->wasm_vm()->clone(); @@ -273,8 +208,10 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm } WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, - std::string_view vm_configuration, std::string_view vm_key) + std::string_view vm_configuration, std::string_view vm_key, + AllowedCapabilitiesMap allowed_capabilities) : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), + allowed_capabilities_(std::move(allowed_capabilities)), vm_configuration_(std::string(vm_configuration)), vm_id_handle_(getVmIdHandle(vm_id)) { if (!wasm_vm_) { failed_ = FailState::UnableToCreateVM; From 5a53cf4b231599e1d2a1f2f4598fdfbb727ff948 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 12 Jan 2021 19:05:18 +0900 Subject: [PATCH 077/287] Fix log_prefix initialization. (#124) Signed-off-by: mathetake --- include/proxy-wasm/context.h | 3 ++- src/context.cc | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 51d7dbbde..bf770a7bf 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -50,7 +50,8 @@ struct PluginBase { std::string_view runtime, std::string_view plugin_configuration, bool fail_open) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), - fail_open_(fail_open), key_(root_id_ + "||" + plugin_configuration_) {} + fail_open_(fail_open), key_(root_id_ + "||" + plugin_configuration_), + log_prefix_(makeLogPrefix()) {} const std::string name_; const std::string root_id_; diff --git a/src/context.cc b/src/context.cc index 28d5c2ad5..f00442320 100644 --- a/src/context.cc +++ b/src/context.cc @@ -96,7 +96,7 @@ std::string PluginBase::makeLogPrefix() const { if (!root_id_.empty()) { prefix = prefix + " " + std::string(root_id_); } - if (vm_id_.empty()) { + if (!vm_id_.empty()) { prefix = prefix + " " + std::string(vm_id_); } return prefix; @@ -134,7 +134,7 @@ std::string ContextBase::makeRootLogPrefix(std::string_view vm_id) const { if (!root_id_.empty()) { prefix = prefix + " " + std::string(root_id_); } - if (vm_id.empty()) { + if (!vm_id.empty()) { prefix = prefix + " " + std::string(vm_id); } return prefix; From c51fbca35e9e7968fc5319258ed7a38b1bc1ec7a Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 11 Feb 2021 03:34:20 -0800 Subject: [PATCH 078/287] Pass PluginBase to PluginHandleFactory. (#128) Signed-off-by: Piotr Sikora --- include/proxy-wasm/wasm.h | 6 +++--- src/wasm.cc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 7d0d802f5..255d2273a 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -310,8 +310,8 @@ std::shared_ptr getThreadLocalWasm(std::string_view vm_id); class PluginHandleBase : public std::enable_shared_from_this { public: explicit PluginHandleBase(std::shared_ptr wasm_handle, - std::string_view plugin_key) - : wasm_handle_(wasm_handle), plugin_key_(plugin_key) {} + std::shared_ptr plugin) + : wasm_handle_(wasm_handle), plugin_key_(plugin->key()) {} ~PluginHandleBase() { wasm_handle_->wasm()->startShutdown(plugin_key_); } std::shared_ptr &wasm() { return wasm_handle_->wasm(); } @@ -322,7 +322,7 @@ class PluginHandleBase : public std::enable_shared_from_this { }; using PluginHandleFactory = std::function( - std::shared_ptr base_wasm, std::string_view plugin_key)>; + std::shared_ptr base_wasm, std::shared_ptr plugin)>; // Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wavm' by cloning or by // using it it as a template. diff --git a/src/wasm.cc b/src/wasm.cc index 6a073dc3e..c4b17bb37 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -499,7 +499,7 @@ std::shared_ptr getOrCreateThreadLocalPlugin( "Failed to configure thread-local Wasm plugin"); return nullptr; } - auto plugin_handle = plugin_factory(wasm_handle, plugin->key()); + auto plugin_handle = plugin_factory(wasm_handle, plugin); local_plugins[key] = plugin_handle; return plugin_handle; } From 1eb97d8c43235ec81b0f0ee7ae40f6225fa8c725 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 18 Feb 2021 17:07:04 -0800 Subject: [PATCH 079/287] Update cargo-raze to v0.9.2. (#130) Signed-off-by: Piotr Sikora --- .github/workflows/cargo.yml | 5 +- bazel/cargo/BUILD.bazel | 12 +- bazel/cargo/{Cargo.lock => Cargo.raze.lock} | 114 ++++----- bazel/cargo/Cargo.toml | 42 +--- bazel/cargo/crates.bzl | 230 +++++++++--------- ...4.0.bazel => BUILD.addr2line-0.14.1.bazel} | 3 +- bazel/cargo/remote/BUILD.adler-0.2.3.bazel | 1 + .../remote/BUILD.aho-corasick-0.7.15.bazel | 1 + ...1.0.35.bazel => BUILD.anyhow-1.0.38.bazel} | 36 ++- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 4 +- bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel | 1 + ....55.bazel => BUILD.backtrace-0.3.56.bazel} | 9 +- bazel/cargo/remote/BUILD.bincode-1.3.1.bazel | 5 +- bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel | 31 ++- ....3.4.bazel => BUILD.byteorder-1.4.2.bazel} | 7 +- bazel/cargo/remote/BUILD.cc-1.0.66.bazel | 3 +- bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel | 54 ---- bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel | 1 + .../BUILD.cranelift-bforest-0.68.0.bazel | 1 + .../BUILD.cranelift-codegen-0.68.0.bazel | 18 +- .../BUILD.cranelift-codegen-meta-0.68.0.bazel | 1 + ...UILD.cranelift-codegen-shared-0.68.0.bazel | 1 + .../BUILD.cranelift-entity-0.68.0.bazel | 3 +- .../BUILD.cranelift-frontend-0.68.0.bazel | 7 +- .../BUILD.cranelift-native-0.68.0.bazel | 5 +- .../remote/BUILD.cranelift-wasm-0.68.0.bazel | 9 +- .../cargo/remote/BUILD.crc32fast-1.2.1.bazel | 34 ++- bazel/cargo/remote/BUILD.either-1.6.1.bazel | 1 + ...8.2.bazel => BUILD.env_logger-0.8.3.bazel} | 25 +- .../BUILD.fallible-iterator-0.2.0.bazel | 1 + bazel/cargo/remote/BUILD.gimli-0.22.0.bazel | 1 + bazel/cargo/remote/BUILD.gimli-0.23.0.bazel | 1 + ...17.bazel => BUILD.hermit-abi-0.1.18.bazel} | 5 +- ....0.1.bazel => BUILD.humantime-2.1.0.bazel} | 3 +- bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel | 4 +- .../cargo/remote/BUILD.itertools-0.9.0.bazel | 1 + .../remote/BUILD.lazy_static-1.4.0.bazel | 1 + ...c-0.2.81.bazel => BUILD.libc-0.2.86.bazel} | 34 ++- ...og-0.4.11.bazel => BUILD.log-0.4.14.bazel} | 38 ++- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 4 +- bazel/cargo/remote/BUILD.memchr-2.3.4.bazel | 33 ++- .../cargo/remote/BUILD.memoffset-0.5.6.bazel | 32 ++- .../remote/BUILD.miniz_oxide-0.4.3.bazel | 31 ++- .../remote/BUILD.more-asserts-0.2.1.bazel | 1 + bazel/cargo/remote/BUILD.object-0.21.1.bazel | 1 + ...0.22.0.bazel => BUILD.object-0.23.0.bazel} | 5 +- .../cargo/remote/BUILD.once_cell-1.5.2.bazel | 1 + .../remote/BUILD.proc-macro2-1.0.24.bazel | 33 ++- bazel/cargo/remote/BUILD.psm-0.1.12.bazel | 6 +- ...te-1.0.7.bazel => BUILD.quote-1.0.9.bazel} | 3 +- ....0.3.bazel => BUILD.raw-cpuid-7.0.4.bazel} | 19 +- .../cargo/remote/BUILD.regalloc-0.0.31.bazel | 5 +- ...ex-1.4.2.bazel => BUILD.regex-1.4.3.bazel} | 7 +- ....bazel => BUILD.regex-syntax-0.6.22.bazel} | 3 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 4 +- .../remote/BUILD.rustc-demangle-0.1.18.bazel | 1 + .../cargo/remote/BUILD.rustc-hash-1.1.0.bazel | 1 + .../remote/BUILD.rustc_version-0.2.3.bazel | 1 + bazel/cargo/remote/BUILD.semver-0.9.0.bazel | 1 + .../remote/BUILD.semver-parser-0.7.0.bazel | 1 + ....0.118.bazel => BUILD.serde-1.0.123.bazel} | 38 ++- ...bazel => BUILD.serde_derive-1.0.123.bazel} | 37 ++- ...1.5.1.bazel => BUILD.smallvec-1.6.1.bazel} | 3 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 1 + ...yn-1.0.53.bazel => BUILD.syn-1.0.60.bazel} | 44 +++- ...azel => BUILD.target-lexicon-0.11.2.bazel} | 9 +- .../cargo/remote/BUILD.termcolor-1.1.2.bazel | 1 + ....22.bazel => BUILD.thiserror-1.0.23.bazel} | 5 +- ...azel => BUILD.thiserror-impl-1.0.23.bazel} | 7 +- ...1.bazel => BUILD.thread_local-1.1.3.bazel} | 7 +- .../remote/BUILD.unicode-xid-0.2.1.bazel | 1 + .../remote/BUILD.wasmparser-0.57.0.bazel | 1 + .../remote/BUILD.wasmparser-0.65.0.bazel | 1 + .../cargo/remote/BUILD.wasmtime-0.21.0.bazel | 15 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 3 +- .../BUILD.wasmtime-cranelift-0.21.0.bazel | 1 + .../remote/BUILD.wasmtime-debug-0.21.0.bazel | 7 +- .../BUILD.wasmtime-environ-0.21.0.bazel | 9 +- .../remote/BUILD.wasmtime-jit-0.21.0.bazel | 11 +- .../remote/BUILD.wasmtime-obj-0.21.0.bazel | 5 +- .../BUILD.wasmtime-profiling-0.21.0.bazel | 9 +- .../BUILD.wasmtime-runtime-0.21.0.bazel | 47 +++- bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 45 +++- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 30 ++- .../remote/BUILD.winapi-util-0.1.5.bazel | 1 + ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 30 ++- 86 files changed, 880 insertions(+), 434 deletions(-) rename bazel/cargo/{Cargo.lock => Cargo.raze.lock} (87%) rename bazel/cargo/remote/{BUILD.addr2line-0.14.0.bazel => BUILD.addr2line-0.14.1.bazel} (97%) rename bazel/cargo/remote/{BUILD.anyhow-1.0.35.bazel => BUILD.anyhow-1.0.38.bazel} (71%) rename bazel/cargo/remote/{BUILD.backtrace-0.3.55.bazel => BUILD.backtrace-0.3.56.bazel} (90%) rename bazel/cargo/remote/{BUILD.byteorder-1.3.4.bazel => BUILD.byteorder-1.4.2.bazel} (89%) delete mode 100644 bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel rename bazel/cargo/remote/{BUILD.env_logger-0.8.2.bazel => BUILD.env_logger-0.8.3.bazel} (66%) rename bazel/cargo/remote/{BUILD.hermit-abi-0.1.17.bazel => BUILD.hermit-abi-0.1.18.bazel} (91%) rename bazel/cargo/remote/{BUILD.humantime-2.0.1.bazel => BUILD.humantime-2.1.0.bazel} (96%) rename bazel/cargo/remote/{BUILD.libc-0.2.81.bazel => BUILD.libc-0.2.86.bazel} (62%) rename bazel/cargo/remote/{BUILD.log-0.4.11.bazel => BUILD.log-0.4.14.bazel} (60%) rename bazel/cargo/remote/{BUILD.object-0.22.0.bazel => BUILD.object-0.23.0.bazel} (93%) rename bazel/cargo/remote/{BUILD.quote-1.0.7.bazel => BUILD.quote-1.0.9.bazel} (96%) rename bazel/cargo/remote/{BUILD.raw-cpuid-7.0.3.bazel => BUILD.raw-cpuid-7.0.4.bazel} (94%) rename bazel/cargo/remote/{BUILD.regex-1.4.2.bazel => BUILD.regex-1.4.3.bazel} (93%) rename bazel/cargo/remote/{BUILD.regex-syntax-0.6.21.bazel => BUILD.regex-syntax-0.6.22.bazel} (96%) rename bazel/cargo/remote/{BUILD.serde-1.0.118.bazel => BUILD.serde-1.0.123.bazel} (59%) rename bazel/cargo/remote/{BUILD.serde_derive-1.0.118.bazel => BUILD.serde_derive-1.0.123.bazel} (58%) rename bazel/cargo/remote/{BUILD.smallvec-1.5.1.bazel => BUILD.smallvec-1.6.1.bazel} (96%) rename bazel/cargo/remote/{BUILD.syn-1.0.53.bazel => BUILD.syn-1.0.60.bazel} (78%) rename bazel/cargo/remote/{BUILD.target-lexicon-0.11.1.bazel => BUILD.target-lexicon-0.11.2.bazel} (91%) rename bazel/cargo/remote/{BUILD.thiserror-1.0.22.bazel => BUILD.thiserror-1.0.23.bazel} (94%) rename bazel/cargo/remote/{BUILD.thiserror-impl-1.0.22.bazel => BUILD.thiserror-impl-1.0.23.bazel} (88%) rename bazel/cargo/remote/{BUILD.thread_local-1.0.1.bazel => BUILD.thread_local-1.1.3.bazel} (89%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 740fdeb8f..05f7b6cdb 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -38,7 +38,6 @@ jobs: - name: Format (cargo raze) working-directory: bazel/cargo run: | - cargo install cargo-raze --version 0.7.0 - cargo generate-lockfile - cargo raze + cargo install cargo-raze --version 0.9.2 + cargo raze --generate-lockfile git diff --exit-code diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index 5f500593b..4ee8495f9 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + actual = "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", tags = [ "cargo-raze", "manual", @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@proxy_wasm_cpp_host__env_logger__0_8_2//:env_logger", + actual = "@proxy_wasm_cpp_host__env_logger__0_8_3//:env_logger", tags = [ "cargo-raze", "manual", @@ -74,3 +74,11 @@ alias( "manual", ], ) + +# Export file for Stardoc support +exports_files( + [ + "crates.bzl", + ], + visibility = ["//visibility:public"], +) diff --git a/bazel/cargo/Cargo.lock b/bazel/cargo/Cargo.raze.lock similarity index 87% rename from bazel/cargo/Cargo.lock rename to bazel/cargo/Cargo.raze.lock index 88cc57061..d025df1b3 100644 --- a/bazel/cargo/Cargo.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -2,9 +2,9 @@ # It is not intended for manual editing. [[package]] name = "addr2line" -version = "0.14.0" +version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423" +checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7" dependencies = [ "gimli 0.23.0", ] @@ -26,9 +26,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.35" +version = "1.0.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c0df63cb2955042487fad3aefd2c6e3ae7389ac5dc1beb28921de0b69f779d4" +checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1" [[package]] name = "atty" @@ -49,15 +49,15 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "backtrace" -version = "0.3.55" +version = "0.3.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef5140344c85b01f9bbb4d4b7288a8aa4b3287ccef913a14bcc78a1063623598" +checksum = "9d117600f438b1707d4e4ae15d3595657288f8235a0eb593e80ecc98ab34e1bc" dependencies = [ "addr2line", - "cfg-if 1.0.0", + "cfg-if", "libc", "miniz_oxide", - "object 0.22.0", + "object 0.23.0", "rustc-demangle", ] @@ -79,9 +79,9 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "byteorder" -version = "1.3.4" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" +checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b" [[package]] name = "cc" @@ -89,12 +89,6 @@ version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" -[[package]] -name = "cfg-if" -version = "0.1.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" - [[package]] name = "cfg-if" version = "1.0.0" @@ -201,7 +195,7 @@ version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a" dependencies = [ - "cfg-if 1.0.0", + "cfg-if", ] [[package]] @@ -212,9 +206,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "env_logger" -version = "0.8.2" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26ecb66b4bdca6c1409b40fb255eefc2bd4f6d135dab3c3124f80ffa2a9661e" +checksum = "17392a012ea30ef05a610aa97dfb49496e71c9f676b27879922ea5bdf60d9d3f" dependencies = [ "atty", "humantime", @@ -248,18 +242,18 @@ checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" [[package]] name = "hermit-abi" -version = "0.1.17" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8" +checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c" dependencies = [ "libc", ] [[package]] name = "humantime" -version = "2.0.1" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a" +checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indexmap" @@ -287,17 +281,17 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.81" +version = "0.2.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb" +checksum = "b7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1c" [[package]] name = "log" -version = "0.4.11" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b" +checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" dependencies = [ - "cfg-if 0.1.10", + "cfg-if", ] [[package]] @@ -353,9 +347,9 @@ dependencies = [ [[package]] name = "object" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397" +checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" [[package]] name = "once_cell" @@ -383,18 +377,18 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.7" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37" +checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" dependencies = [ "proc-macro2", ] [[package]] name = "raw-cpuid" -version = "7.0.3" +version = "7.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf" +checksum = "beb71f708fe39b2c5e98076204c3cc094ee5a4c12c4cdb119a2b72dc34164f41" dependencies = [ "bitflags", "cc", @@ -414,9 +408,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.4.2" +version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c" +checksum = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a" dependencies = [ "aho-corasick", "memchr", @@ -426,9 +420,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.21" +version = "0.6.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" +checksum = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581" [[package]] name = "region" @@ -480,18 +474,18 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "serde" -version = "1.0.118" +version = "1.0.123" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800" +checksum = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.118" +version = "1.0.123" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df" +checksum = "9391c295d64fc0abb2c556bad848f33cb8296276b1ad2677d1ae1ace4f258f31" dependencies = [ "proc-macro2", "quote", @@ -500,9 +494,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.5.1" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75" +checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" [[package]] name = "stable_deref_trait" @@ -512,9 +506,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.53" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8833e20724c24de12bbaba5ad230ea61c3eafb05b881c7c9d3cfe8638b187e68" +checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081" dependencies = [ "proc-macro2", "quote", @@ -523,9 +517,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9" +checksum = "422045212ea98508ae3d28025bc5aaa2bd4a9cdaecd442a08da2ee620ee9ea95" [[package]] name = "termcolor" @@ -538,18 +532,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e" +checksum = "76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.22" +version = "1.0.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56" +checksum = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1" dependencies = [ "proc-macro2", "quote", @@ -558,11 +552,11 @@ dependencies = [ [[package]] name = "thread_local" -version = "1.0.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14" +checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd" dependencies = [ - "lazy_static", + "once_cell", ] [[package]] @@ -592,7 +586,7 @@ dependencies = [ "anyhow", "backtrace", "bincode", - "cfg-if 1.0.0", + "cfg-if", "lazy_static", "libc", "log", @@ -667,7 +661,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307" dependencies = [ "anyhow", - "cfg-if 1.0.0", + "cfg-if", "cranelift-codegen", "cranelift-entity", "cranelift-wasm", @@ -687,7 +681,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50" dependencies = [ "anyhow", - "cfg-if 1.0.0", + "cfg-if", "cranelift-codegen", "cranelift-entity", "cranelift-frontend", @@ -732,7 +726,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c" dependencies = [ "anyhow", - "cfg-if 1.0.0", + "cfg-if", "lazy_static", "libc", "serde", @@ -749,7 +743,7 @@ checksum = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c" dependencies = [ "backtrace", "cc", - "cfg-if 1.0.0", + "cfg-if", "indexmap", "lazy_static", "libc", diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 2649cc298..970656430 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -18,45 +18,5 @@ wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", t [package.metadata.raze] gen_workspace_prefix = "proxy_wasm_cpp_host" genmode = "Remote" +package_aliases_dir = "." workspace_path = "//bazel/cargo" - -[package.metadata.raze.crates.target-lexicon.'0.11.1'] -additional_flags = [ - "--cfg=feature=\\\"force_unix_path_separator\\\"", -] -gen_buildrs = true - -[package.metadata.raze.crates.proc-macro2.'1.0.24'] -additional_flags = [ - "--cfg=use_proc_macro", -] - -[package.metadata.raze.crates.log.'0.4.11'] -additional_flags = [ - "--cfg=atomic_cas", -] - -[package.metadata.raze.crates.indexmap.'1.1.0'] -additional_flags = [ - "--cfg=feature=\\\"serde-1\\\"", -] - -[package.metadata.raze.crates.raw-cpuid.'7.0.3'] -additional_flags = [ - "--cfg=feature=\\\"bindgen\\\"", -] -gen_buildrs = true - -[package.metadata.raze.crates.cranelift-codegen.'0.68.0'] -additional_flags = [ - "--cfg=feature=\\\"enable-serde\\\"", - "--cfg=feature=\\\"bindgen\\\"", -] -gen_buildrs = true - -[package.metadata.raze.crates.psm.'0.1.11'] -additional_flags = [ - "--cfg=asm", - "--cfg=feature=\\\"bindgen\\\"", -] -gen_buildrs = true diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 93e37aa48..a27aa34ca 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -13,12 +13,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" maybe( http_archive, - name = "proxy_wasm_cpp_host__addr2line__0_14_0", - url = "https://crates.io/api/v1/crates/addr2line/0.14.0/download", + name = "proxy_wasm_cpp_host__addr2line__0_14_1", + url = "https://crates.io/api/v1/crates/addr2line/0.14.1/download", type = "tar.gz", - sha256 = "7c0929d69e78dd9bf5408269919fcbcaeb2e35e5d43e5815517cdc6a8e11a423", - strip_prefix = "addr2line-0.14.0", - build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.14.0.bazel"), + sha256 = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7", + strip_prefix = "addr2line-0.14.1", + build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.14.1.bazel"), ) maybe( @@ -43,12 +43,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__anyhow__1_0_35", - url = "https://crates.io/api/v1/crates/anyhow/1.0.35/download", + name = "proxy_wasm_cpp_host__anyhow__1_0_38", + url = "https://crates.io/api/v1/crates/anyhow/1.0.38/download", type = "tar.gz", - sha256 = "2c0df63cb2955042487fad3aefd2c6e3ae7389ac5dc1beb28921de0b69f779d4", - strip_prefix = "anyhow-1.0.35", - build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.35.bazel"), + sha256 = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1", + strip_prefix = "anyhow-1.0.38", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.38.bazel"), ) maybe( @@ -73,12 +73,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__backtrace__0_3_55", - url = "https://crates.io/api/v1/crates/backtrace/0.3.55/download", + name = "proxy_wasm_cpp_host__backtrace__0_3_56", + url = "https://crates.io/api/v1/crates/backtrace/0.3.56/download", type = "tar.gz", - sha256 = "ef5140344c85b01f9bbb4d4b7288a8aa4b3287ccef913a14bcc78a1063623598", - strip_prefix = "backtrace-0.3.55", - build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.55.bazel"), + sha256 = "9d117600f438b1707d4e4ae15d3595657288f8235a0eb593e80ecc98ab34e1bc", + strip_prefix = "backtrace-0.3.56", + build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.56.bazel"), ) maybe( @@ -103,12 +103,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__byteorder__1_3_4", - url = "https://crates.io/api/v1/crates/byteorder/1.3.4/download", + name = "proxy_wasm_cpp_host__byteorder__1_4_2", + url = "https://crates.io/api/v1/crates/byteorder/1.4.2/download", type = "tar.gz", - sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", - strip_prefix = "byteorder-1.3.4", - build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.3.4.bazel"), + sha256 = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b", + strip_prefix = "byteorder-1.4.2", + build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.4.2.bazel"), ) maybe( @@ -121,16 +121,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.66.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__cfg_if__0_1_10", - url = "https://crates.io/api/v1/crates/cfg-if/0.1.10/download", - type = "tar.gz", - sha256 = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822", - strip_prefix = "cfg-if-0.1.10", - build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-0.1.10.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__cfg_if__1_0_0", @@ -243,12 +233,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__env_logger__0_8_2", - url = "https://crates.io/api/v1/crates/env_logger/0.8.2/download", + name = "proxy_wasm_cpp_host__env_logger__0_8_3", + url = "https://crates.io/api/v1/crates/env_logger/0.8.3/download", type = "tar.gz", - sha256 = "f26ecb66b4bdca6c1409b40fb255eefc2bd4f6d135dab3c3124f80ffa2a9661e", - strip_prefix = "env_logger-0.8.2", - build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.2.bazel"), + sha256 = "17392a012ea30ef05a610aa97dfb49496e71c9f676b27879922ea5bdf60d9d3f", + strip_prefix = "env_logger-0.8.3", + build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.3.bazel"), ) maybe( @@ -283,22 +273,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__hermit_abi__0_1_17", - url = "https://crates.io/api/v1/crates/hermit-abi/0.1.17/download", + name = "proxy_wasm_cpp_host__hermit_abi__0_1_18", + url = "https://crates.io/api/v1/crates/hermit-abi/0.1.18/download", type = "tar.gz", - sha256 = "5aca5565f760fb5b220e499d72710ed156fdb74e631659e99377d9ebfbd13ae8", - strip_prefix = "hermit-abi-0.1.17", - build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.17.bazel"), + sha256 = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c", + strip_prefix = "hermit-abi-0.1.18", + build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.18.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__humantime__2_0_1", - url = "https://crates.io/api/v1/crates/humantime/2.0.1/download", + name = "proxy_wasm_cpp_host__humantime__2_1_0", + url = "https://crates.io/api/v1/crates/humantime/2.1.0/download", type = "tar.gz", - sha256 = "3c1ad908cc71012b7bea4d0c53ba96a8cba9962f048fa68d143376143d863b7a", - strip_prefix = "humantime-2.0.1", - build_file = Label("//bazel/cargo/remote:BUILD.humantime-2.0.1.bazel"), + sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4", + strip_prefix = "humantime-2.1.0", + build_file = Label("//bazel/cargo/remote:BUILD.humantime-2.1.0.bazel"), ) maybe( @@ -333,22 +323,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_81", - url = "https://crates.io/api/v1/crates/libc/0.2.81/download", + name = "proxy_wasm_cpp_host__libc__0_2_86", + url = "https://crates.io/api/v1/crates/libc/0.2.86/download", type = "tar.gz", - sha256 = "1482821306169ec4d07f6aca392a4681f66c75c9918aa49641a2595db64053cb", - strip_prefix = "libc-0.2.81", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.81.bazel"), + sha256 = "b7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1c", + strip_prefix = "libc-0.2.86", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.86.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__log__0_4_11", - url = "https://crates.io/api/v1/crates/log/0.4.11/download", + name = "proxy_wasm_cpp_host__log__0_4_14", + url = "https://crates.io/api/v1/crates/log/0.4.14/download", type = "tar.gz", - sha256 = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b", - strip_prefix = "log-0.4.11", - build_file = Label("//bazel/cargo/remote:BUILD.log-0.4.11.bazel"), + sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710", + strip_prefix = "log-0.4.14", + build_file = Label("//bazel/cargo/remote:BUILD.log-0.4.14.bazel"), ) maybe( @@ -413,12 +403,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__object__0_22_0", - url = "https://crates.io/api/v1/crates/object/0.22.0/download", + name = "proxy_wasm_cpp_host__object__0_23_0", + url = "https://crates.io/api/v1/crates/object/0.23.0/download", type = "tar.gz", - sha256 = "8d3b63360ec3cb337817c2dbd47ab4a0f170d285d8e5a2064600f3def1402397", - strip_prefix = "object-0.22.0", - build_file = Label("//bazel/cargo/remote:BUILD.object-0.22.0.bazel"), + sha256 = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4", + strip_prefix = "object-0.23.0", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.23.0.bazel"), ) maybe( @@ -453,22 +443,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__quote__1_0_7", - url = "https://crates.io/api/v1/crates/quote/1.0.7/download", + name = "proxy_wasm_cpp_host__quote__1_0_9", + url = "https://crates.io/api/v1/crates/quote/1.0.9/download", type = "tar.gz", - sha256 = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37", - strip_prefix = "quote-1.0.7", - build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.7.bazel"), + sha256 = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7", + strip_prefix = "quote-1.0.9", + build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.9.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__raw_cpuid__7_0_3", - url = "https://crates.io/api/v1/crates/raw-cpuid/7.0.3/download", + name = "proxy_wasm_cpp_host__raw_cpuid__7_0_4", + url = "https://crates.io/api/v1/crates/raw-cpuid/7.0.4/download", type = "tar.gz", - sha256 = "b4a349ca83373cfa5d6dbb66fd76e58b2cca08da71a5f6400de0a0a6a9bceeaf", - strip_prefix = "raw-cpuid-7.0.3", - build_file = Label("//bazel/cargo/remote:BUILD.raw-cpuid-7.0.3.bazel"), + sha256 = "beb71f708fe39b2c5e98076204c3cc094ee5a4c12c4cdb119a2b72dc34164f41", + strip_prefix = "raw-cpuid-7.0.4", + build_file = Label("//bazel/cargo/remote:BUILD.raw-cpuid-7.0.4.bazel"), ) maybe( @@ -483,22 +473,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__regex__1_4_2", - url = "https://crates.io/api/v1/crates/regex/1.4.2/download", + name = "proxy_wasm_cpp_host__regex__1_4_3", + url = "https://crates.io/api/v1/crates/regex/1.4.3/download", type = "tar.gz", - sha256 = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c", - strip_prefix = "regex-1.4.2", - build_file = Label("//bazel/cargo/remote:BUILD.regex-1.4.2.bazel"), + sha256 = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a", + strip_prefix = "regex-1.4.3", + build_file = Label("//bazel/cargo/remote:BUILD.regex-1.4.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__regex_syntax__0_6_21", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.21/download", + name = "proxy_wasm_cpp_host__regex_syntax__0_6_22", + url = "https://crates.io/api/v1/crates/regex-syntax/0.6.22/download", type = "tar.gz", - sha256 = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189", - strip_prefix = "regex-syntax-0.6.21", - build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.21.bazel"), + sha256 = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581", + strip_prefix = "regex-syntax-0.6.22", + build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.22.bazel"), ) maybe( @@ -563,32 +553,32 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__serde__1_0_118", - url = "https://crates.io/api/v1/crates/serde/1.0.118/download", + name = "proxy_wasm_cpp_host__serde__1_0_123", + url = "https://crates.io/api/v1/crates/serde/1.0.123/download", type = "tar.gz", - sha256 = "06c64263859d87aa2eb554587e2d23183398d617427327cf2b3d0ed8c69e4800", - strip_prefix = "serde-1.0.118", - build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.118.bazel"), + sha256 = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae", + strip_prefix = "serde-1.0.123", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.123.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__serde_derive__1_0_118", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.118/download", + name = "proxy_wasm_cpp_host__serde_derive__1_0_123", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.123/download", type = "tar.gz", - sha256 = "c84d3526699cd55261af4b941e4e725444df67aa4f9e6a3564f18030d12672df", - strip_prefix = "serde_derive-1.0.118", - build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.118.bazel"), + sha256 = "9391c295d64fc0abb2c556bad848f33cb8296276b1ad2677d1ae1ace4f258f31", + strip_prefix = "serde_derive-1.0.123", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.123.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__smallvec__1_5_1", - url = "https://crates.io/api/v1/crates/smallvec/1.5.1/download", + name = "proxy_wasm_cpp_host__smallvec__1_6_1", + url = "https://crates.io/api/v1/crates/smallvec/1.6.1/download", type = "tar.gz", - sha256 = "ae524f056d7d770e174287294f562e95044c68e88dec909a00d2094805db9d75", - strip_prefix = "smallvec-1.5.1", - build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.5.1.bazel"), + sha256 = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e", + strip_prefix = "smallvec-1.6.1", + build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.6.1.bazel"), ) maybe( @@ -603,22 +593,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_53", - url = "https://crates.io/api/v1/crates/syn/1.0.53/download", + name = "proxy_wasm_cpp_host__syn__1_0_60", + url = "https://crates.io/api/v1/crates/syn/1.0.60/download", type = "tar.gz", - sha256 = "8833e20724c24de12bbaba5ad230ea61c3eafb05b881c7c9d3cfe8638b187e68", - strip_prefix = "syn-1.0.53", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.53.bazel"), + sha256 = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081", + strip_prefix = "syn-1.0.60", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.60.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__target_lexicon__0_11_1", - url = "https://crates.io/api/v1/crates/target-lexicon/0.11.1/download", + name = "proxy_wasm_cpp_host__target_lexicon__0_11_2", + url = "https://crates.io/api/v1/crates/target-lexicon/0.11.2/download", type = "tar.gz", - sha256 = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9", - strip_prefix = "target-lexicon-0.11.1", - build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.11.1.bazel"), + sha256 = "422045212ea98508ae3d28025bc5aaa2bd4a9cdaecd442a08da2ee620ee9ea95", + strip_prefix = "target-lexicon-0.11.2", + build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.11.2.bazel"), ) maybe( @@ -633,32 +623,32 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__thiserror__1_0_22", - url = "https://crates.io/api/v1/crates/thiserror/1.0.22/download", + name = "proxy_wasm_cpp_host__thiserror__1_0_23", + url = "https://crates.io/api/v1/crates/thiserror/1.0.23/download", type = "tar.gz", - sha256 = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e", - strip_prefix = "thiserror-1.0.22", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.22.bazel"), + sha256 = "76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146", + strip_prefix = "thiserror-1.0.23", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.23.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__thiserror_impl__1_0_22", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.22/download", + name = "proxy_wasm_cpp_host__thiserror_impl__1_0_23", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.23/download", type = "tar.gz", - sha256 = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56", - strip_prefix = "thiserror-impl-1.0.22", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.22.bazel"), + sha256 = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1", + strip_prefix = "thiserror-impl-1.0.23", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.23.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__thread_local__1_0_1", - url = "https://crates.io/api/v1/crates/thread_local/1.0.1/download", + name = "proxy_wasm_cpp_host__thread_local__1_1_3", + url = "https://crates.io/api/v1/crates/thread_local/1.1.3/download", type = "tar.gz", - sha256 = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14", - strip_prefix = "thread_local-1.0.1", - build_file = Label("//bazel/cargo/remote:BUILD.thread_local-1.0.1.bazel"), + sha256 = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd", + strip_prefix = "thread_local-1.1.3", + build_file = Label("//bazel/cargo/remote:BUILD.thread_local-1.1.3.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel b/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel rename to bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel index e92da9c3d..cad806f6f 100644 --- a/bazel/cargo/remote/BUILD.addr2line-0.14.0.bazel +++ b/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -47,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.14.0", + version = "0.14.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", diff --git a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel index 7b70ba01a..1fc52510d 100644 --- a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel index 0bccb4ffb..c42ab9b6c 100644 --- a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.35.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel similarity index 71% rename from bazel/cargo/remote/BUILD.anyhow-1.0.35.bazel rename to bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel index a99c9be60..0934eb176 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.35.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel @@ -29,8 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "anyhow_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.38", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "anyhow", @@ -41,6 +69,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,9 +78,10 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.35", + version = "1.0.38", # buildifier: leave-alone deps = [ + ":anyhow_build_script", ], ) @@ -71,6 +101,8 @@ rust_library( # Unsupported target "test_downcast" with type "test" omitted +# Unsupported target "test_ffi" with type "test" omitted + # Unsupported target "test_fmt" with type "test" omitted # Unsupported target "test_macros" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index b7e2eadf2..8ca34b063 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -41,6 +41,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -55,6 +56,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", @@ -71,7 +73,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel index e7de20ab2..7d3900164 100644 --- a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -45,6 +45,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.55.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.backtrace-0.3.55.bazel rename to bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel index 28c9379c2..5aa25acf9 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.55.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel @@ -51,6 +51,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -59,14 +60,14 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.55", + version = "0.3.56", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__addr2line__0_14_0//:addr2line", + "@proxy_wasm_cpp_host__addr2line__0_14_1//:addr2line", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", "@proxy_wasm_cpp_host__miniz_oxide__0_4_3//:miniz_oxide", - "@proxy_wasm_cpp_host__object__0_22_0//:object", + "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", ] + selects.with_or({ # cfg(windows) diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel index 51735ad7d..c7ff5dd29 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -48,8 +49,8 @@ rust_library( version = "1.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__byteorder__1_4_2//:byteorder", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel index f83a025bd..003564d27 100644 --- a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel @@ -29,8 +29,35 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "bitflags_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "bitflags", @@ -40,6 +67,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -51,5 +79,6 @@ rust_library( version = "1.2.1", # buildifier: leave-alone deps = [ + ":bitflags_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel b/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel rename to bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel index 9329b7930..50a6e2141 100644 --- a/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel +++ b/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel @@ -32,8 +32,6 @@ licenses([ # Unsupported target "bench" with type "bench" omitted -# Unsupported target "build-script-build" with type "custom-build" omitted - rust_library( name = "byteorder", srcs = glob(["**/*.rs"]), @@ -43,7 +41,8 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", - edition = "2015", + data = [], + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -51,7 +50,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.3.4", + version = "1.4.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cc-1.0.66.bazel b/bazel/cargo/remote/BUILD.cc-1.0.66.bazel index 9c09336da..90e6bc8cd 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.66.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.66.bazel @@ -38,6 +38,7 @@ rust_binary( crate_features = [ ], crate_root = "src/bin/gcc-shim.rs", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,7 +50,6 @@ rust_binary( version = "1.0.66", # buildifier: leave-alone deps = [ - # Binaries get an implicit dependency on their crate's lib ":cc", ], ) @@ -61,6 +61,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel b/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel deleted file mode 100644 index 32abbfaeb..000000000 --- a/bazel/cargo/remote/BUILD.cfg-if-0.1.10.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load( - "@io_bazel_rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cfg_if", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.10", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel index 6e3db87e1..57545ac70 100644 --- a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel index b84042bd2..470b112ac 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel index 3eb3ed224..ef03d99d5 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel @@ -28,7 +28,8 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated Targets# buildifier: disable=load-on-top +# Generated Targets +# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", @@ -77,11 +78,10 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", - "--cfg=feature=\"enable-serde\"", - "--cfg=feature=\"bindgen\"", ], tags = [ "cargo-raze", @@ -91,16 +91,16 @@ rust_library( # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host__byteorder__1_4_2//:byteorder", "@proxy_wasm_cpp_host__cranelift_bforest__0_68_0//:cranelift_bforest", "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", - "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__regalloc__0_0_31//:regalloc", - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", - "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel index 4d2430b57..990e6a8cc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel index 112e40aaf..e613787ba 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel index a150ec3bc..d5f50e577 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,6 +51,6 @@ rust_library( version = "0.68.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel index 7736f22cc..896c901a4 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -51,8 +52,8 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__log__0_4_11//:log", - "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__log__0_4_14//:log", + "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel index 48b7359d7..91b5c1641 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel @@ -41,6 +41,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -53,7 +54,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", ] + selects.with_or({ # cfg(any(target_arch = "x86", target_arch = "x86_64")) ( @@ -69,7 +70,7 @@ rust_library( "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__raw_cpuid__7_0_3//:raw_cpuid", + "@proxy_wasm_cpp_host__raw_cpuid__7_0_4//:raw_cpuid", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel index 7b059c326..070d8c51f 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel @@ -41,6 +41,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -56,10 +57,10 @@ rust_library( "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", "@proxy_wasm_cpp_host__cranelift_frontend__0_68_0//:cranelift_frontend", "@proxy_wasm_cpp_host__itertools__0_9_0//:itertools", - "@proxy_wasm_cpp_host__log__0_4_11//:log", - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", - "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", - "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__log__0_4_14//:log", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", + "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel index 1cdcd7633..133b9da15 100644 --- a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel @@ -29,10 +29,38 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "bench" with type "bench" omitted +cargo_build_script( + name = "crc32fast_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.2.1", + visibility = ["//visibility:private"], + deps = [ + ], +) -# Unsupported target "build-script-build" with type "custom-build" omitted +# Unsupported target "bench" with type "bench" omitted rust_library( name = "crc32fast", @@ -43,6 +71,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -54,6 +83,7 @@ rust_library( version = "1.2.1", # buildifier: leave-alone deps = [ + ":crc32fast_build_script", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/bazel/cargo/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/remote/BUILD.either-1.6.1.bazel index 712ffc01a..0320f3dd9 100644 --- a/bazel/cargo/remote/BUILD.either-1.6.1.bazel +++ b/bazel/cargo/remote/BUILD.either-1.6.1.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.2.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel similarity index 66% rename from bazel/cargo/remote/BUILD.env_logger-0.8.2.bazel rename to bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel index 67e9ff6d1..becb8b218 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.2.bazel +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel @@ -30,22 +30,6 @@ licenses([ # Generated Targets -# Unsupported target "custom_default_format" with type "example" omitted - -# Unsupported target "custom_format" with type "example" omitted - -# Unsupported target "custom_logger" with type "example" omitted - -# Unsupported target "default" with type "example" omitted - -# Unsupported target "direct_logger" with type "example" omitted - -# Unsupported target "filters_from_code" with type "example" omitted - -# Unsupported target "in_tests" with type "example" omitted - -# Unsupported target "syslog_friendly_format" with type "example" omitted - rust_library( name = "env_logger", srcs = glob(["**/*.rs"]), @@ -58,6 +42,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -66,13 +51,13 @@ rust_library( "cargo-raze", "manual", ], - version = "0.8.2", + version = "0.8.3", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__atty__0_2_14//:atty", - "@proxy_wasm_cpp_host__humantime__2_0_1//:humantime", - "@proxy_wasm_cpp_host__log__0_4_11//:log", - "@proxy_wasm_cpp_host__regex__1_4_2//:regex", + "@proxy_wasm_cpp_host__humantime__2_1_0//:humantime", + "@proxy_wasm_cpp_host__log__0_4_14//:log", + "@proxy_wasm_cpp_host__regex__1_4_3//:regex", "@proxy_wasm_cpp_host__termcolor__1_1_2//:termcolor", ], ) diff --git a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel index e9a0d68df..07fb4d818 100644 --- a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -38,6 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel index 73f7f7553..fc2a131dc 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel @@ -55,6 +55,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel index 7367e05a6..44f135452 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel @@ -48,6 +48,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel rename to bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel index 8ef68dbc1..7e96f9369 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.17.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel @@ -38,6 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -46,9 +47,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.17", + version = "0.1.18", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.humantime-2.0.1.bazel rename to bazel/cargo/remote/BUILD.humantime-2.1.0.bazel index a19c8e435..00a458626 100644 --- a/bazel/cargo/remote/BUILD.humantime-2.0.1.bazel +++ b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel @@ -41,6 +41,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,7 +50,7 @@ rust_library( "cargo-raze", "manual", ], - version = "2.0.1", + version = "2.1.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel index 29947ec43..6a8bca953 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel @@ -43,10 +43,10 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", - "--cfg=feature=\"serde-1\"", ], tags = [ "cargo-raze", @@ -55,7 +55,7 @@ rust_library( version = "1.1.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel index 23520d623..e7c236cdc 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel @@ -53,6 +53,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel index 7587e7fd9..5767355a4 100644 --- a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel +++ b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.libc-0.2.81.bazel b/bazel/cargo/remote/BUILD.libc-0.2.86.bazel similarity index 62% rename from bazel/cargo/remote/BUILD.libc-0.2.81.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.86.bazel index 01c49fdf2..d26469215 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.81.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.86.bazel @@ -29,8 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "libc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.86", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "libc", @@ -41,6 +69,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -49,9 +78,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.81", + version = "0.2.86", # buildifier: leave-alone deps = [ + ":libc_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.log-0.4.11.bazel b/bazel/cargo/remote/BUILD.log-0.4.14.bazel similarity index 60% rename from bazel/cargo/remote/BUILD.log-0.4.11.bazel rename to bazel/cargo/remote/BUILD.log-0.4.14.bazel index 423077260..af8f0f9e1 100644 --- a/bazel/cargo/remote/BUILD.log-0.4.11.bazel +++ b/bazel/cargo/remote/BUILD.log-0.4.14.bazel @@ -29,8 +29,37 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "log_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.14", + visibility = ["//visibility:private"], + deps = [ + ], +) -# Unsupported target "build-script-build" with type "custom-build" omitted +# Unsupported target "value" with type "bench" omitted rust_library( name = "log", @@ -40,19 +69,20 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", - "--cfg=atomic_cas", ], tags = [ "cargo-raze", "manual", ], - version = "0.4.11", + version = "0.4.14", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cfg_if__0_1_10//:cfg_if", + ":log_build_script", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 84ac25d22..347f58d1b 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -42,6 +42,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -56,12 +57,13 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel index 609a04f72..94a11099d 100644 --- a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel +++ b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel @@ -29,8 +29,37 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "memchr_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + "use_std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.3.4", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "memchr", @@ -42,6 +71,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -53,5 +83,6 @@ rust_library( version = "2.3.4", # buildifier: leave-alone deps = [ + ":memchr_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel index fcd27b849..323fb117a 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel +++ b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel @@ -29,8 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "memoffset_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.6", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", + ], +) rust_library( name = "memoffset", @@ -40,6 +68,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -51,5 +80,6 @@ rust_library( version = "0.5.6", # buildifier: leave-alone deps = [ + ":memoffset_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel index ed1c5067d..f3de4b173 100644 --- a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel @@ -29,8 +29,35 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "miniz_oxide_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.3", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", + ], +) rust_library( name = "miniz_oxide", @@ -39,6 +66,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,6 +78,7 @@ rust_library( version = "0.4.3", # buildifier: leave-alone deps = [ + ":miniz_oxide_build_script", "@proxy_wasm_cpp_host__adler__0_2_3//:adler", ], ) diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel index cf3ccba1f..4f8c1e2ec 100644 --- a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.object-0.21.1.bazel b/bazel/cargo/remote/BUILD.object-0.21.1.bazel index 308f4e4c9..684c37fe6 100644 --- a/bazel/cargo/remote/BUILD.object-0.21.1.bazel +++ b/bazel/cargo/remote/BUILD.object-0.21.1.bazel @@ -57,6 +57,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.object-0.22.0.bazel b/bazel/cargo/remote/BUILD.object-0.23.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.object-0.22.0.bazel rename to bazel/cargo/remote/BUILD.object-0.23.0.bazel index 0fc165ee0..71a8ba4ab 100644 --- a/bazel/cargo/remote/BUILD.object-0.22.0.bazel +++ b/bazel/cargo/remote/BUILD.object-0.23.0.bazel @@ -40,6 +40,8 @@ licenses([ # Unsupported target "objectmap" with type "example" omitted +# Unsupported target "readobj" with type "example" omitted + rust_library( name = "object", srcs = glob(["**/*.rs"]), @@ -54,6 +56,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -62,7 +65,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.22.0", + version = "0.23.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel b/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel index 91cf562ca..19db30623 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel @@ -54,6 +54,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel index d4dc0b448..077304b6a 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel @@ -29,8 +29,36 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "proc_macro2_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.24", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "proc_macro2", @@ -41,10 +69,10 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", - "--cfg=use_proc_macro", ], tags = [ "cargo-raze", @@ -53,6 +81,7 @@ rust_library( version = "1.0.24", # buildifier: leave-alone deps = [ + ":proc_macro2_build_script", "@proxy_wasm_cpp_host__unicode_xid__0_2_1//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel index fea7f454c..d4375de98 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel @@ -28,7 +28,8 @@ licenses([ "notice", # MIT from expression "MIT OR Apache-2.0" ]) -# Generated Targets# buildifier: disable=load-on-top +# Generated Targets +# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", @@ -77,11 +78,10 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", - "--cfg=asm", - "--cfg=feature=\"bindgen\"", ], tags = [ "cargo-raze", diff --git a/bazel/cargo/remote/BUILD.quote-1.0.7.bazel b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.quote-1.0.7.bazel rename to bazel/cargo/remote/BUILD.quote-1.0.9.bazel index 813587bb3..c64d966fe 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.7.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -47,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.7", + version = "1.0.9", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", diff --git a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel rename to bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel index a6c9ad19d..f8cefaf49 100644 --- a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.3.bazel +++ b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel @@ -28,7 +28,8 @@ licenses([ "notice", # MIT from expression "MIT" ]) -# Generated Targets# buildifier: disable=load-on-top +# Generated Targets +# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", @@ -51,7 +52,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "7.0.3", + version = "7.0.4", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_66//:cc", @@ -59,6 +60,7 @@ cargo_build_script( ] + selects.with_or({ # cfg(unix) ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", @@ -90,25 +92,25 @@ rust_binary( crate_features = [ ], crate_root = "src/bin/cpuid.rs", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", - "--cfg=feature=\"bindgen\"", ], tags = [ "cargo-raze", "manual", ], - version = "7.0.3", + version = "7.0.4", # buildifier: leave-alone deps = [ - # Binaries get an implicit dependency on their crate's lib ":raw_cpuid", ":raw_cpuid_build_script", "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", ] + selects.with_or({ # cfg(unix) ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", @@ -132,8 +134,6 @@ rust_binary( # Unsupported target "cache" with type "example" omitted -# Unsupported target "cpu" with type "example" omitted - # Unsupported target "topology" with type "example" omitted # Unsupported target "tsc_frequency" with type "example" omitted @@ -147,16 +147,16 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", - "--cfg=feature=\"bindgen\"", ], tags = [ "cargo-raze", "manual", ], - version = "7.0.3", + version = "7.0.4", # buildifier: leave-alone deps = [ ":raw_cpuid_build_script", @@ -164,6 +164,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel index 184122319..3417b0864 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -38,6 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,8 +50,8 @@ rust_library( version = "0.0.31", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__rustc_hash__1_1_0//:rustc_hash", - "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", + "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-1.4.2.bazel b/bazel/cargo/remote/BUILD.regex-1.4.3.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.regex-1.4.2.bazel rename to bazel/cargo/remote/BUILD.regex-1.4.3.bazel index 114a06f6c..72a41654a 100644 --- a/bazel/cargo/remote/BUILD.regex-1.4.2.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.4.3.bazel @@ -58,6 +58,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -66,13 +67,13 @@ rust_library( "cargo-raze", "manual", ], - version = "1.4.2", + version = "1.4.3", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__aho_corasick__0_7_15//:aho_corasick", "@proxy_wasm_cpp_host__memchr__2_3_4//:memchr", - "@proxy_wasm_cpp_host__regex_syntax__0_6_21//:regex_syntax", - "@proxy_wasm_cpp_host__thread_local__1_0_1//:thread_local", + "@proxy_wasm_cpp_host__regex_syntax__0_6_22//:regex_syntax", + "@proxy_wasm_cpp_host__thread_local__1_1_3//:thread_local", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel rename to bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel index 0ba2aa07b..604791b05 100644 --- a/bazel/cargo/remote/BUILD.regex-syntax-0.6.21.bazel +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -47,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.6.21", + version = "0.6.22", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index 2b415f667..cc52b04a9 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -51,10 +52,11 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( + "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel index 94aa88801..7e82c3907 100644 --- a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel index cf73dd69a..5b150e189 100644 --- a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel index 1225fa851..908f31d55 100644 --- a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel index 9809414b4..1570738fe 100644 --- a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel @@ -38,6 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel index 7d54b9362..8552e3b47 100644 --- a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel +++ b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.serde-1.0.118.bazel b/bazel/cargo/remote/BUILD.serde-1.0.123.bazel similarity index 59% rename from bazel/cargo/remote/BUILD.serde-1.0.118.bazel rename to bazel/cargo/remote/BUILD.serde-1.0.123.bazel index baa5a6ddc..a090b1f84 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.118.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.123.bazel @@ -29,8 +29,38 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "serde_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.123", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "serde", @@ -43,9 +73,10 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", proc_macro_deps = [ - "@proxy_wasm_cpp_host__serde_derive__1_0_118//:serde_derive", + "@proxy_wasm_cpp_host__serde_derive__1_0_123//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -54,8 +85,9 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.118", + version = "1.0.123", # buildifier: leave-alone deps = [ + ":serde_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.118.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel similarity index 58% rename from bazel/cargo/remote/BUILD.serde_derive-1.0.118.bazel rename to bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel index c5cd432de..8e7f69445 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.118.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel @@ -29,8 +29,35 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "serde_derive_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.123", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "serde_derive", @@ -40,6 +67,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "proc-macro", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -48,11 +76,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.118", + version = "1.0.123", # buildifier: leave-alone deps = [ + ":serde_derive_build_script", "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_7//:quote", - "@proxy_wasm_cpp_host__syn__1_0_53//:syn", + "@proxy_wasm_cpp_host__quote__1_0_9//:quote", + "@proxy_wasm_cpp_host__syn__1_0_60//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.5.1.bazel b/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.smallvec-1.5.1.bazel rename to bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel index ea657d18d..e7900b5eb 100644 --- a/bazel/cargo/remote/BUILD.smallvec-1.5.1.bazel +++ b/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -47,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.5.1", + version = "1.6.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel index 5355877b2..01a9690d3 100644 --- a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.syn-1.0.53.bazel b/bazel/cargo/remote/BUILD.syn-1.0.60.bazel similarity index 78% rename from bazel/cargo/remote/BUILD.syn-1.0.53.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.60.bazel index 3c81a8154..31f4d0322 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.53.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.60.bazel @@ -29,13 +29,46 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "syn_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + "quote", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.60", + visibility = ["//visibility:private"], + deps = [ + ], +) # Unsupported target "file" with type "bench" omitted # Unsupported target "rust" with type "bench" omitted -# Unsupported target "build-script-build" with type "custom-build" omitted - rust_library( name = "syn", srcs = glob(["**/*.rs"]), @@ -47,10 +80,10 @@ rust_library( "printing", "proc-macro", "quote", - "visit", ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -59,11 +92,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.53", + version = "1.0.60", # buildifier: leave-alone deps = [ + ":syn_build_script", "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_7//:quote", + "@proxy_wasm_cpp_host__quote__1_0_9//:quote", "@proxy_wasm_cpp_host__unicode_xid__0_2_1//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel rename to bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel index 851de7a80..df4598893 100644 --- a/bazel/cargo/remote/BUILD.target-lexicon-0.11.1.bazel +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel @@ -28,7 +28,8 @@ licenses([ "notice", # Apache-2.0 from expression "Apache-2.0" ]) -# Generated Targets# buildifier: disable=load-on-top +# Generated Targets +# buildifier: disable=load-on-top load( "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", @@ -52,7 +53,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.11.1", + version = "0.11.2", visibility = ["//visibility:private"], deps = [ ], @@ -70,16 +71,16 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", - "--cfg=feature=\"force_unix_path_separator\"", ], tags = [ "cargo-raze", "manual", ], - version = "0.11.1", + version = "0.11.2", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel index f0c620b78..76e4b6bca 100644 --- a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel +++ b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel rename to bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel index 7590fd8cb..098679ebf 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.22.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel @@ -37,9 +37,10 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host__thiserror_impl__1_0_22//:thiserror_impl", + "@proxy_wasm_cpp_host__thiserror_impl__1_0_23//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", @@ -48,7 +49,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.22", + version = "1.0.23", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel rename to bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel index 78f48bc52..03fac9bf6 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.22.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "proc-macro", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -45,11 +46,11 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.22", + version = "1.0.23", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_7//:quote", - "@proxy_wasm_cpp_host__syn__1_0_53//:syn", + "@proxy_wasm_cpp_host__quote__1_0_9//:quote", + "@proxy_wasm_cpp_host__syn__1_0_60//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel b/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel rename to bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel index 3970bff40..dc6997bef 100644 --- a/bazel/cargo/remote/BUILD.thread_local-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel @@ -39,7 +39,8 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", - edition = "2015", + data = [], + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -47,9 +48,9 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.1", + version = "1.1.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host__once_cell__1_5_2//:once_cell", ], ) diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel index 0cd42cb6f..33ed2172e 100644 --- a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel @@ -38,6 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel index 9320d255b..d86f60e03 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel @@ -43,6 +43,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel index d29245faa..9e582f820 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel @@ -41,6 +41,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel index 2a689474a..271a3cc81 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,18 +51,18 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_55//:backtrace", + "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", + "@proxy_wasm_cpp_host__backtrace__0_3_56//:backtrace", "@proxy_wasm_cpp_host__bincode__1_3_1//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", - "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", - "@proxy_wasm_cpp_host__smallvec__1_5_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", "@proxy_wasm_cpp_host__wasmtime_jit__0_21_0//:wasmtime_jit", diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index 168f872b3..841b03994 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "crates/c-api/macros/src/lib.rs", crate_type = "proc-macro", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -49,6 +50,6 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_7//:quote", + "@proxy_wasm_cpp_host__quote__1_0_9//:quote", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel index 5d40bace9..5a7e3bcba 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel index 2602a4bfa..808748aac 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -48,12 +49,12 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__object__0_21_1//:object", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel index 4245c5f49..644215b05 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -48,17 +49,17 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", - "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", - "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel index 6c2a1d22b..e8ae0dea7 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -50,7 +51,7 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", @@ -58,13 +59,13 @@ rust_library( "@proxy_wasm_cpp_host__cranelift_native__0_68_0//:cranelift_native", "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", - "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__object__0_21_1//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", "@proxy_wasm_cpp_host__wasmtime_cranelift__0_21_0//:wasmtime_cranelift", "@proxy_wasm_cpp_host__wasmtime_debug__0_21_0//:wasmtime_debug", diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel index b0cd1f73a..069107d9f 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -48,10 +49,10 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__object__0_21_1//:object", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", "@proxy_wasm_cpp_host__wasmtime_debug__0_21_0//:wasmtime_debug", "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel index 61c7b0802..da61f0f6a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel @@ -37,6 +37,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -48,12 +49,12 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_35//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", - "@proxy_wasm_cpp_host__serde__1_0_118//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_11_1//:target_lexicon", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", "@proxy_wasm_cpp_host__wasmtime_runtime__0_21_0//:wasmtime_runtime", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel index 505fb4532..fd759c065 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel @@ -29,8 +29,43 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "wasmtime_runtime_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.21.0", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__cc__1_0_66//:cc", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", + "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) rust_library( name = "wasmtime_runtime", @@ -41,6 +76,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", @@ -52,17 +88,18 @@ rust_library( version = "0.21.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__backtrace__0_3_55//:backtrace", + ":wasmtime_runtime_build_script", + "@proxy_wasm_cpp_host__backtrace__0_3_56//:backtrace", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_81//:libc", - "@proxy_wasm_cpp_host__log__0_4_11//:log", + "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__memoffset__0_5_6//:memoffset", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__psm__0_1_12//:psm", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__thiserror__1_0_22//:thiserror", + "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "windows") diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index 0ab8cb65a..9fb931871 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -29,8 +29,49 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "winapi_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "basetsd", + "consoleapi", + "errhandlingapi", + "fileapi", + "impl-default", + "memoryapi", + "minwinbase", + "minwindef", + "processenv", + "std", + "sysinfoapi", + "winbase", + "wincon", + "winerror", + "winnt", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "winapi", @@ -54,6 +95,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -65,5 +107,6 @@ rust_library( version = "0.3.9", # buildifier: leave-alone deps = [ + ":winapi_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 7a0447a40..68773fbde 100644 --- a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -29,8 +29,34 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "winapi_i686_pc_windows_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "winapi_i686_pc_windows_gnu", @@ -39,6 +65,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -50,5 +77,6 @@ rust_library( version = "0.4.0", # buildifier: leave-alone deps = [ + ":winapi_i686_pc_windows_gnu_build_script", ], ) diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel index ec48c9ed0..9d4873ec0 100644 --- a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel +++ b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -39,6 +39,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2018", rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index 95d47678c..5155a8ee7 100644 --- a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -29,8 +29,34 @@ licenses([ ]) # Generated Targets +# buildifier: disable=load-on-top +load( + "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) -# Unsupported target "build-script-build" with type "custom-build" omitted +cargo_build_script( + name = "winapi_x86_64_pc_windows_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "winapi_x86_64_pc_windows_gnu", @@ -39,6 +65,7 @@ rust_library( ], crate_root = "src/lib.rs", crate_type = "lib", + data = [], edition = "2015", rustc_flags = [ "--cap-lints=allow", @@ -50,5 +77,6 @@ rust_library( version = "0.4.0", # buildifier: leave-alone deps = [ + ":winapi_x86_64_pc_windows_gnu_build_script", ], ) From d1a2a7db59a72edacc9a6286b64280b72767d2d0 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 18 Feb 2021 17:29:08 -0800 Subject: [PATCH 080/287] Update rules_rust to latest. (#131) Signed-off-by: Piotr Sikora --- bazel/cargo/Cargo.toml | 1 + .../cargo/remote/BUILD.addr2line-0.14.1.bazel | 2 +- bazel/cargo/remote/BUILD.adler-0.2.3.bazel | 2 +- .../remote/BUILD.aho-corasick-0.7.15.bazel | 2 +- bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel | 4 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 38 +++---- bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel | 2 +- .../cargo/remote/BUILD.backtrace-0.3.56.bazel | 6 +- bazel/cargo/remote/BUILD.bincode-1.3.1.bazel | 2 +- bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel | 4 +- .../cargo/remote/BUILD.byteorder-1.4.2.bazel | 2 +- bazel/cargo/remote/BUILD.cc-1.0.66.bazel | 2 +- bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel | 2 +- .../BUILD.cranelift-bforest-0.68.0.bazel | 2 +- .../BUILD.cranelift-codegen-0.68.0.bazel | 4 +- .../BUILD.cranelift-codegen-meta-0.68.0.bazel | 2 +- ...UILD.cranelift-codegen-shared-0.68.0.bazel | 2 +- .../BUILD.cranelift-entity-0.68.0.bazel | 2 +- .../BUILD.cranelift-frontend-0.68.0.bazel | 2 +- .../BUILD.cranelift-native-0.68.0.bazel | 24 ++--- .../remote/BUILD.cranelift-wasm-0.68.0.bazel | 2 +- .../cargo/remote/BUILD.crc32fast-1.2.1.bazel | 4 +- bazel/cargo/remote/BUILD.either-1.6.1.bazel | 2 +- .../cargo/remote/BUILD.env_logger-0.8.3.bazel | 2 +- .../BUILD.fallible-iterator-0.2.0.bazel | 2 +- bazel/cargo/remote/BUILD.gimli-0.22.0.bazel | 2 +- bazel/cargo/remote/BUILD.gimli-0.23.0.bazel | 2 +- .../remote/BUILD.hermit-abi-0.1.18.bazel | 2 +- .../cargo/remote/BUILD.humantime-2.1.0.bazel | 2 +- bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel | 2 +- .../cargo/remote/BUILD.itertools-0.9.0.bazel | 2 +- .../remote/BUILD.lazy_static-1.4.0.bazel | 2 +- bazel/cargo/remote/BUILD.libc-0.2.86.bazel | 4 +- bazel/cargo/remote/BUILD.log-0.4.14.bazel | 4 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 12 +-- bazel/cargo/remote/BUILD.memchr-2.3.4.bazel | 4 +- .../cargo/remote/BUILD.memoffset-0.5.6.bazel | 4 +- .../remote/BUILD.miniz_oxide-0.4.3.bazel | 4 +- .../remote/BUILD.more-asserts-0.2.1.bazel | 2 +- bazel/cargo/remote/BUILD.object-0.21.1.bazel | 2 +- bazel/cargo/remote/BUILD.object-0.23.0.bazel | 2 +- .../cargo/remote/BUILD.once_cell-1.5.2.bazel | 2 +- .../remote/BUILD.proc-macro2-1.0.24.bazel | 4 +- bazel/cargo/remote/BUILD.psm-0.1.12.bazel | 4 +- bazel/cargo/remote/BUILD.quote-1.0.9.bazel | 2 +- .../cargo/remote/BUILD.raw-cpuid-7.0.4.bazel | 100 +++++++++--------- .../cargo/remote/BUILD.regalloc-0.0.31.bazel | 2 +- bazel/cargo/remote/BUILD.regex-1.4.3.bazel | 2 +- .../remote/BUILD.regex-syntax-0.6.22.bazel | 2 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 16 +-- .../remote/BUILD.rustc-demangle-0.1.18.bazel | 2 +- .../cargo/remote/BUILD.rustc-hash-1.1.0.bazel | 2 +- .../remote/BUILD.rustc_version-0.2.3.bazel | 2 +- bazel/cargo/remote/BUILD.semver-0.9.0.bazel | 2 +- .../remote/BUILD.semver-parser-0.7.0.bazel | 2 +- bazel/cargo/remote/BUILD.serde-1.0.123.bazel | 4 +- .../remote/BUILD.serde_derive-1.0.123.bazel | 4 +- bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel | 2 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 2 +- bazel/cargo/remote/BUILD.syn-1.0.60.bazel | 4 +- .../remote/BUILD.target-lexicon-0.11.2.bazel | 4 +- .../cargo/remote/BUILD.termcolor-1.1.2.bazel | 6 +- .../cargo/remote/BUILD.thiserror-1.0.23.bazel | 2 +- .../remote/BUILD.thiserror-impl-1.0.23.bazel | 2 +- .../remote/BUILD.thread_local-1.1.3.bazel | 2 +- .../remote/BUILD.unicode-xid-0.2.1.bazel | 2 +- .../remote/BUILD.wasmparser-0.57.0.bazel | 2 +- .../remote/BUILD.wasmparser-0.65.0.bazel | 2 +- .../cargo/remote/BUILD.wasmtime-0.21.0.bazel | 6 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 2 +- .../BUILD.wasmtime-cranelift-0.21.0.bazel | 2 +- .../remote/BUILD.wasmtime-debug-0.21.0.bazel | 2 +- .../BUILD.wasmtime-environ-0.21.0.bazel | 2 +- .../remote/BUILD.wasmtime-jit-0.21.0.bazel | 6 +- .../remote/BUILD.wasmtime-obj-0.21.0.bazel | 2 +- .../BUILD.wasmtime-profiling-0.21.0.bazel | 2 +- .../BUILD.wasmtime-runtime-0.21.0.bazel | 12 +-- bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 4 +- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 4 +- .../remote/BUILD.winapi-util-0.1.5.bazel | 6 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 4 +- bazel/dependencies.bzl | 2 +- bazel/external/wasmtime.BUILD | 2 +- bazel/repositories.bzl | 8 +- bazel/wasm.bzl | 4 +- 85 files changed, 212 insertions(+), 211 deletions(-) diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 970656430..1c7324365 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -16,6 +16,7 @@ wasmtime = {version = "0.21.0", default-features = false} wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.21.0", path = "crates/c-api/macros"} [package.metadata.raze] +rust_rules_workspace_name = "rules_rust" gen_workspace_prefix = "proxy_wasm_cpp_host" genmode = "Remote" package_aliases_dir = "." diff --git a/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel b/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel index cad806f6f..5fad28128 100644 --- a/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel +++ b/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel index 1fc52510d..30a2d3ae6 100644 --- a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.adler-0.2.3.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel index c42ab9b6c..d58cd4c34 100644 --- a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel index 0934eb176..15957d4d0 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index 8ca34b063..c6336c186 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -56,22 +56,22 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", - "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", - "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:i686-linux-android", - "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", - "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ "@proxy_wasm_cpp_host__libc__0_2_86//:libc", ], @@ -79,8 +79,8 @@ rust_library( }) + selects.with_or({ # cfg(windows) ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel index 7d3900164..d348f9b4f 100644 --- a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel index 5aa25acf9..ca909a6e1 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -72,8 +72,8 @@ rust_library( ] + selects.with_or({ # cfg(windows) ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ ], "//conditions:default": [], diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel index c7ff5dd29..1fa6c006c 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel index 003564d27..10f261c17 100644 --- a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel b/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel index 50a6e2141..2a49eb276 100644 --- a/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel +++ b/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cc-1.0.66.bazel b/bazel/cargo/remote/BUILD.cc-1.0.66.bazel index 90e6bc8cd..9445d1774 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.66.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.66.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel index 57545ac70..f3bd70ddf 100644 --- a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel index 470b112ac..43bff94ee 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel index ef03d99d5..6632d3260 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel index 990e6a8cc..da39e8a2c 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel index e613787ba..e765ab5c0 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel index d5f50e577..2ffda6a14 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel index 896c901a4..f707cc67c 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel index 91b5c1641..e97f634f6 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -58,17 +58,17 @@ rust_library( ] + selects.with_or({ # cfg(any(target_arch = "x86", target_arch = "x86_64")) ( - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:i686-linux-android", - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", - "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ "@proxy_wasm_cpp_host__raw_cpuid__7_0_4//:raw_cpuid", ], diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel index 070d8c51f..8830c1749 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel index 133b9da15..551f62dc6 100644 --- a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/remote/BUILD.either-1.6.1.bazel index 0320f3dd9..bb3e95699 100644 --- a/bazel/cargo/remote/BUILD.either-1.6.1.bazel +++ b/bazel/cargo/remote/BUILD.either-1.6.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel index becb8b218..3a58f22e2 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel index 07fb4d818..e3bd077f2 100644 --- a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel index fc2a131dc..91f5d00c4 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel index 44f135452..cf04b8a58 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel index 7e96f9369..58496fce7 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel index 00a458626..51bc7cd45 100644 --- a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel index 6a8bca953..89085623e 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel index e7c236cdc..e0f7777cc 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel index 5767355a4..09cae1bf4 100644 --- a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel +++ b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.libc-0.2.86.bazel b/bazel/cargo/remote/BUILD.libc-0.2.86.bazel index d26469215..f9726919d 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.86.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.86.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.log-0.4.14.bazel b/bazel/cargo/remote/BUILD.log-0.4.14.bazel index af8f0f9e1..4ad281cf9 100644 --- a/bazel/cargo/remote/BUILD.log-0.4.14.bazel +++ b/bazel/cargo/remote/BUILD.log-0.4.14.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 347f58d1b..84efc35fc 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -57,11 +57,11 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", ): [ "@proxy_wasm_cpp_host__libc__0_2_86//:libc", ], diff --git a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel index 94a11099d..ea6ee6f5d 100644 --- a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel +++ b/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel index 323fb117a..69be43421 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel +++ b/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel index f3de4b173..19df4edd4 100644 --- a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel index 4f8c1e2ec..6ccb62dac 100644 --- a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.object-0.21.1.bazel b/bazel/cargo/remote/BUILD.object-0.21.1.bazel index 684c37fe6..c6a9bfac5 100644 --- a/bazel/cargo/remote/BUILD.object-0.21.1.bazel +++ b/bazel/cargo/remote/BUILD.object-0.21.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.object-0.23.0.bazel b/bazel/cargo/remote/BUILD.object-0.23.0.bazel index 71a8ba4ab..61c31a0db 100644 --- a/bazel/cargo/remote/BUILD.object-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.object-0.23.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel b/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel index 19db30623..292e26316 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel index 077304b6a..2d755a942 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel index d4375de98..3d32b5ab0 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel index c64d966fe..1d2156e1f 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel index f8cefaf49..3c916211e 100644 --- a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel +++ b/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) @@ -60,22 +60,22 @@ cargo_build_script( ] + selects.with_or({ # cfg(unix) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", - "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", - "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:i686-linux-android", - "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", - "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ ], "//conditions:default": [], @@ -110,22 +110,22 @@ rust_binary( ] + selects.with_or({ # cfg(unix) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", - "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", - "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:i686-linux-android", - "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", - "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ ], "//conditions:default": [], @@ -164,22 +164,22 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", - "@io_bazel_rules_rust//rust/platform:aarch64-linux-android", - "@io_bazel_rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:i686-linux-android", - "@io_bazel_rules_rust//rust/platform:i686-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:i686-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", - "@io_bazel_rules_rust//rust/platform:x86_64-linux-android", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-freebsd", - "@io_bazel_rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ ], "//conditions:default": [], diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel index 3417b0864..72a91eab8 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.regex-1.4.3.bazel b/bazel/cargo/remote/BUILD.regex-1.4.3.bazel index 72a41654a..dd4b0da22 100644 --- a/bazel/cargo/remote/BUILD.regex-1.4.3.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.4.3.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel index 604791b05..dd94b7b74 100644 --- a/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index cc52b04a9..817aee515 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -56,11 +56,11 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( - "@io_bazel_rules_rust//rust/platform:aarch64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:aarch64-apple-ios", - "@io_bazel_rules_rust//rust/platform:i686-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-darwin", - "@io_bazel_rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", ): [ "@proxy_wasm_cpp_host__mach__0_3_2//:mach", ], @@ -68,8 +68,8 @@ rust_library( }) + selects.with_or({ # cfg(windows) ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel index 7e82c3907..534588108 100644 --- a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel index 5b150e189..db34b3a55 100644 --- a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel index 908f31d55..814174735 100644 --- a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel index 1570738fe..d8f15a632 100644 --- a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.semver-0.9.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel index 8552e3b47..88f645b40 100644 --- a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel +++ b/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.serde-1.0.123.bazel b/bazel/cargo/remote/BUILD.serde-1.0.123.bazel index a090b1f84..b67d15fc9 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.123.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.123.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel index 8e7f69445..17077f87c 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel b/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel index e7900b5eb..773c82bd4 100644 --- a/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel +++ b/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel index 01a9690d3..46f122f65 100644 --- a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.syn-1.0.60.bazel b/bazel/cargo/remote/BUILD.syn-1.0.60.bazel index 31f4d0322..85d5573d0 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.60.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.60.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel index df4598893..90129e715 100644 --- a/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel index 76e4b6bca..110b96b39 100644 --- a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel +++ b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -54,8 +54,8 @@ rust_library( ] + selects.with_or({ # cfg(windows) ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@proxy_wasm_cpp_host__winapi_util__0_1_5//:winapi_util", ], diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel index 098679ebf..e48429490 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel index 03fac9bf6..63089c753 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel b/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel index dc6997bef..089395256 100644 --- a/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel +++ b/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel index 33ed2172e..1312ed500 100644 --- a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel index d86f60e03..c4c189a15 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel index 9e582f820..3d490b520 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel index 271a3cc81..c0dd5fa32 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -71,8 +71,8 @@ rust_library( ] + selects.with_or({ # cfg(target_os = "windows") ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index 841b03994..fec8e7912 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel index 5a7e3bcba..86d7e4a52 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel index 808748aac..7800c1817 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel index 644215b05..964256099 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel index e8ae0dea7..0a3f095f4 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -76,8 +76,8 @@ rust_library( ] + selects.with_or({ # cfg(target_os = "windows") ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel index 069107d9f..a5f41d681 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel index da61f0f6a..40b3ee93a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel index fd759c065..288d3e2df 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) @@ -59,8 +59,8 @@ cargo_build_script( ] + selects.with_or({ # cfg(target_os = "windows") ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ ], "//conditions:default": [], @@ -104,8 +104,8 @@ rust_library( ] + selects.with_or({ # cfg(target_os = "windows") ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index 9fb931871..4fbecf9cf 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 68773fbde..7882e51bc 100644 --- a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel index 9d4873ec0..46338fa7b 100644 --- a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel +++ b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -54,8 +54,8 @@ rust_library( ] + selects.with_or({ # cfg(windows) ( - "@io_bazel_rules_rust//rust/platform:i686-pc-windows-msvc", - "@io_bazel_rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], diff --git a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index 5155a8ee7..b061a5346 100644 --- a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -7,7 +7,7 @@ DO NOT EDIT! Replaced on runs of cargo-raze # buildifier: disable=load load( - "@io_bazel_rules_rust//rust:rust.bzl", + "@rules_rust//rust:rust.bzl", "rust_binary", "rust_library", "rust_test", @@ -31,7 +31,7 @@ licenses([ # Generated Targets # buildifier: disable=load-on-top load( - "@io_bazel_rules_rust//cargo:cargo_build_script.bzl", + "@rules_rust//cargo:cargo_build_script.bzl", "cargo_build_script", ) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index a558e8f5b..031a962ff 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@io_bazel_rules_rust//rust:repositories.bzl", "rust_repositories") load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates") +load("@rules_rust//rust:repositories.bzl", "rust_repositories") def proxy_wasm_cpp_host_dependencies(): rust_repositories() diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index a5cb79844..f6feed7e8 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -1,4 +1,4 @@ -load("@io_bazel_rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:rust.bzl", "rust_library") licenses(["notice"]) # Apache 2 diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 7a13a16e3..41d2c8215 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -53,10 +53,10 @@ def proxy_wasm_cpp_host_repositories(): ) http_archive( - name = "io_bazel_rules_rust", - sha256 = "442a102e2a6f6c75e10d43f21c0c30218947a3e827d91529ced7380c5fec05f0", - strip_prefix = "rules_rust-39523e32ac0bd64f5d60154114a42e61e58ffd17", - url = "https://github.com/bazelbuild/rules_rust/archive/39523e32ac0bd64f5d60154114a42e61e58ffd17.tar.gz", + name = "rules_rust", + sha256 = "0f55b4b69fd9bc1dbcc038e75ec54bd97fa00ddc6cfbc6278fc288dafc98b7f8", + strip_prefix = "rules_rust-fee3b3c658c3d2f49c20c1b12e55063bf7a7f693", + url = "https://github.com/bazelbuild/rules_rust/archive/fee3b3c658c3d2f49c20c1b12e55063bf7a7f693.tar.gz", ) http_archive( diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index a3541aa3e..f76407a2c 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -12,11 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@io_bazel_rules_rust//rust:rust.bzl", "rust_binary") +load("@rules_rust//rust:rust.bzl", "rust_binary") def _wasm_rust_transition_impl(settings, attr): return { - "//command_line_option:platforms": "@io_bazel_rules_rust//rust/platform:wasm", + "//command_line_option:platforms": "@rules_rust//rust/platform:wasm", } wasm_rust_transition = transition( From 5ea92c8acb6bcb4a96bbd252e87b38e71d6d1577 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 24 Feb 2021 20:05:20 +0900 Subject: [PATCH 081/287] Implement wasi.environ_{get,sizes_get}. (#126) Signed-off-by: Takeshi Yoneda --- bazel/wasm.bzl | 26 ++++++++- include/proxy-wasm/null_vm.h | 1 + include/proxy-wasm/wasm.h | 5 ++ include/proxy-wasm/wasm_vm.h | 5 ++ src/exports.cc | 34 ++++++++++-- src/null/null_vm.cc | 2 + src/v8/v8.cc | 1 + src/wasm.cc | 4 +- src/wasmtime/wasmtime.cc | 1 + src/wavm/wavm.cc | 1 + test/BUILD | 33 +++++++++++- test/exports_test.cc | 95 ++++++++++++++++++++++++++++++++ test/runtime_test.cc | 89 +----------------------------- test/test_data/BUILD | 6 +++ test/test_data/env.rs | 28 ++++++++++ test/utility.cc | 35 ++++++++++++ test/utility.h | 101 +++++++++++++++++++++++++++++++++++ 17 files changed, 373 insertions(+), 94 deletions(-) create mode 100644 test/exports_test.cc create mode 100644 test/test_data/env.rs create mode 100644 test/utility.cc create mode 100644 test/utility.h diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index f76407a2c..aba74aeb2 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -19,6 +19,11 @@ def _wasm_rust_transition_impl(settings, attr): "//command_line_option:platforms": "@rules_rust//rust/platform:wasm", } +def _wasi_rust_transition_impl(settings, attr): + return { + "//command_line_option:platforms": "@rules_rust//rust/platform:wasi", + } + wasm_rust_transition = transition( implementation = _wasm_rust_transition_impl, inputs = [], @@ -27,6 +32,14 @@ wasm_rust_transition = transition( ], ) +wasi_rust_transition = transition( + implementation = _wasi_rust_transition_impl, + inputs = [], + outputs = [ + "//command_line_option:platforms", + ], +) + def _wasm_binary_impl(ctx): out = ctx.actions.declare_file(ctx.label.name) ctx.actions.run( @@ -49,7 +62,12 @@ wasm_rust_binary_rule = rule( attrs = _wasm_attrs(wasm_rust_transition), ) -def wasm_rust_binary(name, tags = [], **kwargs): +wasi_rust_binary_rule = rule( + implementation = _wasm_binary_impl, + attrs = _wasm_attrs(wasi_rust_transition), +) + +def wasm_rust_binary(name, tags = [], wasi = False, **kwargs): wasm_name = "_wasm_" + name.replace(".", "_") kwargs.setdefault("visibility", ["//visibility:public"]) @@ -62,7 +80,11 @@ def wasm_rust_binary(name, tags = [], **kwargs): **kwargs ) - wasm_rust_binary_rule( + bin_rule = wasm_rust_binary_rule + if wasi: + bin_rule = wasi_rust_binary_rule + + bin_rule( name = name, binary = ":" + wasm_name, tags = tags + ["manual"], diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index bfa62d896..d731060a2 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -43,6 +43,7 @@ struct NullVm : public WasmVm { bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; bool setWord(uint64_t pointer, Word data) override; bool getWord(uint64_t pointer, Word *data) override; + size_t getWordSize() override; std::string_view getCustomSection(std::string_view name) override; std::string_view getPrecompiledSectionName() override; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 255d2273a..9caf90173 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -53,6 +53,7 @@ class WasmBase : public std::enable_shared_from_this { public: WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, std::string_view vm_configuration, std::string_view vm_key, + std::unordered_map envs, AllowedCapabilitiesMap allowed_capabilities); WasmBase(const std::shared_ptr &other, WasmVmFactory factory); virtual ~WasmBase(); @@ -136,6 +137,8 @@ class WasmBase : public std::enable_shared_from_this { AbiVersion abiVersion() { return abi_version_; } + const std::unordered_map &envs() { return envs_; } + // Called to raise the flag which indicates that the context should stop iteration regardless of // returned filter status from Proxy-Wasm extensions. For example, we ignore // FilterHeadersStatus::Continue after a local reponse is sent by the host. @@ -190,6 +193,8 @@ class WasmBase : public std::enable_shared_from_this { std::unordered_map contexts_; // Contains all contexts. std::unordered_map timer_period_; // per root_id. std::unique_ptr shutdown_handle_; + std::unordered_map + envs_; // environment variables passed through wasi.environ_get WasmCallVoid<0> _initialize_; /* Emscripten v1.39.17+ */ WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 9e9a00700..e88aa3784 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -243,6 +243,11 @@ class WasmVm { */ virtual bool setWord(uint64_t pointer, Word data) = 0; + /** + * @return the Word size in this VM. + */ + virtual size_t getWordSize() = 0; + /** * Get the contents of the custom section with the given name or "" if it does not exist. * @param name the name of the custom section to get. diff --git a/src/exports.cc b/src/exports.cc index 1ffee3228..b5cd20ae3 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -767,7 +767,28 @@ Word wasi_unstable_fd_fdstat_get(void *raw_context, Word fd, Word statOut) { } // __wasi_errno_t __wasi_environ_get(char **environ, char *environ_buf); -Word wasi_unstable_environ_get(void *, Word, Word) { +Word wasi_unstable_environ_get(void *raw_context, Word environ_array_ptr, Word environ_buf) { + auto context = WASM_CONTEXT(raw_context); + auto word_size = context->wasmVm()->getWordSize(); + auto &envs = context->wasm()->envs(); + for (auto e : envs) { + if (!context->wasmVm()->setWord(environ_array_ptr, environ_buf)) { + return 21; // __WASI_EFAULT + } + + std::string data; + data.reserve(e.first.size() + e.second.size() + 2); + data.append(e.first); + data.append("="); + data.append(e.second); + data.append("\x0"); + if (!context->wasmVm()->setMemory(environ_buf, data.size(), data.c_str())) { + return 21; // __WASI_EFAULT + } + environ_buf = environ_buf.u64_ + data.size(); + environ_array_ptr = environ_array_ptr.u64_ + word_size; + } + return 0; // __WASI_ESUCCESS } @@ -775,10 +796,17 @@ Word wasi_unstable_environ_get(void *, Word, Word) { // *environ_buf_size); Word wasi_unstable_environ_sizes_get(void *raw_context, Word count_ptr, Word buf_size_ptr) { auto context = WASM_CONTEXT(raw_context); - if (!context->wasmVm()->setWord(count_ptr, Word(0))) { + auto &envs = context->wasm()->envs(); + if (!context->wasmVm()->setWord(count_ptr, Word(envs.size()))) { return 21; // __WASI_EFAULT } - if (!context->wasmVm()->setWord(buf_size_ptr, Word(0))) { + + size_t size = 0; + for (auto e : envs) { + // len(key) + len(value) + 1('=') + 1(null terminator) + size += e.first.size() + e.second.size() + 2; + } + if (!context->wasmVm()->setWord(buf_size_ptr, Word(size))) { return 21; // __WASI_EFAULT } return 0; // __WASI_ESUCCESS diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index 2159c1223..80a2210e0 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -102,6 +102,8 @@ bool NullVm::getWord(uint64_t pointer, Word *data) { return true; } +size_t NullVm::getWordSize() { return sizeof(uint64_t); } + std::string_view NullVm::getCustomSection(std::string_view /* name */) { // Return nothing: there is no WASM file. return {}; diff --git a/src/v8/v8.cc b/src/v8/v8.cc index c43bfb77c..a873daff7 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -67,6 +67,7 @@ class V8 : public WasmVm { bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; bool getWord(uint64_t pointer, Word *word) override; bool setWord(uint64_t pointer, Word word) override; + size_t getWordSize() override { return sizeof(uint32_t); }; #define _REGISTER_HOST_FUNCTION(T) \ void registerCallback(std::string_view module_name, std::string_view function_name, T, \ diff --git a/src/wasm.cc b/src/wasm.cc index c4b17bb37..2a6117ff0 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -193,6 +193,7 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm : std::enable_shared_from_this(*base_wasm_handle->wasm()), vm_id_(base_wasm_handle->wasm()->vm_id_), vm_key_(base_wasm_handle->wasm()->vm_key_), started_from_(base_wasm_handle->wasm()->wasm_vm()->cloneable()), + envs_(base_wasm_handle->wasm()->envs()), allowed_capabilities_(base_wasm_handle->wasm()->allowed_capabilities_), base_wasm_handle_(base_wasm_handle) { if (started_from_ != Cloneable::NotCloneable) { @@ -209,9 +210,10 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, std::string_view vm_configuration, std::string_view vm_key, + std::unordered_map envs, AllowedCapabilitiesMap allowed_capabilities) : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), - allowed_capabilities_(std::move(allowed_capabilities)), + envs_(envs), allowed_capabilities_(std::move(allowed_capabilities)), vm_configuration_(std::string(vm_configuration)), vm_id_handle_(getVmIdHandle(vm_id)) { if (!wasm_vm_) { failed_ = FailState::UnableToCreateVM; diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index b7d648b6e..82b87b036 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -65,6 +65,7 @@ class Wasmtime : public WasmVm { bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; bool getWord(uint64_t pointer, Word *word) override; bool setWord(uint64_t pointer, Word word) override; + size_t getWordSize() override { return sizeof(uint32_t); }; #define _REGISTER_HOST_FUNCTION(T) \ void registerCallback(std::string_view module_name, std::string_view function_name, T, \ diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 00b3b7358..f96b334fb 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -229,6 +229,7 @@ struct Wavm : public WasmVm { bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; bool getWord(uint64_t pointer, Word *data) override; bool setWord(uint64_t pointer, Word data) override; + size_t getWordSize() override { return sizeof(uint32_t); }; std::string_view getCustomSection(std::string_view name) override; std::string_view getPrecompiledSectionName() override; AbiVersion getAbiVersion() override; diff --git a/test/BUILD b/test/BUILD index ce2c279be..52b6113d0 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,4 +1,4 @@ -load("@rules_cc//cc:defs.bzl", "cc_test") +load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS", "LINKOPTS") cc_test( @@ -23,6 +23,23 @@ cc_test( ], linkopts = LINKOPTS, deps = [ + ":utility_lib", + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + +cc_test( + name = "exports_test", + srcs = ["exports_test.cc"], + copts = COPTS, + data = [ + "//test/test_data:env.wasm", + ], + linkopts = LINKOPTS, + deps = [ + ":utility_lib", "//:lib", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", @@ -72,3 +89,17 @@ cc_test( "@com_google_googletest//:gtest_main", ], ) + +cc_library( + name = "utility_lib", + srcs = [ + "utility.cc", + "utility.h", + ], + hdrs = ["utility.h"], + copts = COPTS, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + ], +) diff --git a/test/exports_test.cc b/test/exports_test.cc new file mode 100644 index 000000000..2e8ad43bd --- /dev/null +++ b/test/exports_test.cc @@ -0,0 +1,95 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "gtest/gtest.h" + +#include +#include +#include +#include +#include +#include + +#include "include/proxy-wasm/context.h" +#include "include/proxy-wasm/exports.h" +#include "include/proxy-wasm/wasm.h" + +#include "test/utility.h" + +namespace proxy_wasm { +namespace { + +auto test_values = testing::ValuesIn(getRuntimes()); + +INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); + +class TestContext : public ContextBase { +public: + TestContext(WasmBase *base) : ContextBase(base){}; + WasmResult log(uint32_t, std::string_view msg) override { + log_ += std::string(msg) + "\n"; + return WasmResult::Ok; + } + std::string &log_msg() { return log_; } + +private: + std::string log_; +}; + +TEST_P(TestVM, Environment) { + std::unordered_map envs = {{"KEY1", "VALUE1"}, {"KEY2", "VALUE2"}}; + initialize("env.wasm"); + + auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", envs, {}); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, false)); + + TestContext context(&wasm_base); + current_context_ = &context; + + wasm_base.registerCallbacks(); + + ASSERT_TRUE(wasm_base.wasm_vm()->link("")); + + WasmCallVoid<0> run; + wasm_base.wasm_vm()->getFunction("run", &run); + + run(current_context_); + + auto msg = context.log_msg(); + EXPECT_NE(std::string::npos, msg.find("KEY1: VALUE1")) << msg; + EXPECT_NE(std::string::npos, msg.find("KEY2: VALUE2")) << msg; +} + +TEST_P(TestVM, WithoutEnvironment) { + initialize("env.wasm"); + auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, false)); + + TestContext context(&wasm_base); + current_context_ = &context; + + wasm_base.registerCallbacks(); + + ASSERT_TRUE(wasm_base.wasm_vm()->link("")); + + WasmCallVoid<0> run; + wasm_base.wasm_vm()->getFunction("run", &run); + + run(current_context_); + + EXPECT_EQ(context.log_msg(), ""); +} + +} // namespace +} // namespace proxy_wasm diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 8f5c524a1..078a1db05 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -13,6 +13,7 @@ // limitations under the License. #include "gtest/gtest.h" + #include #include #include @@ -23,97 +24,11 @@ #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm.h" -#if defined(WASM_V8) -#include "include/proxy-wasm/v8.h" -#endif -#if defined(WASM_WAVM) -#include "include/proxy-wasm/wavm.h" -#endif -#if defined(WASM_WASMTIME) -#include "include/proxy-wasm/wasmtime.h" -#endif +#include "test/utility.h" namespace proxy_wasm { namespace { -struct DummyIntegration : public WasmVmIntegration { - ~DummyIntegration() override{}; - WasmVmIntegration *clone() override { return new DummyIntegration{}; } - void error(std::string_view message) override { - std::cout << "ERROR from integration: " << message << std::endl; - error_message_ = message; - } - void trace(std::string_view message) override { - std::cout << "TRACE from integration: " << message << std::endl; - trace_message_ = message; - } - bool getNullVmFunction(std::string_view function_name, bool returns_word, int number_of_arguments, - NullPlugin *plugin, void *ptr_to_function_return) override { - return false; - }; - - LogLevel getLogLevel() override { return log_level_; } - std::string error_message_; - std::string trace_message_; - LogLevel log_level_ = LogLevel::info; -}; - -class TestVM : public testing::TestWithParam { -public: - std::unique_ptr vm_; - - TestVM() : integration_(new DummyIntegration{}) { - runtime_ = GetParam(); - if (runtime_ == "") { - EXPECT_TRUE(false) << "runtime must not be empty"; -#if defined(WASM_V8) - } else if (runtime_ == "v8") { - vm_ = proxy_wasm::createV8Vm(); -#endif -#if defined(WASM_WAVM) - } else if (runtime_ == "wavm") { - vm_ = proxy_wasm::createWavmVm(); -#endif -#if defined(WASM_WASMTIME) - } else if (runtime_ == "wasmtime") { - vm_ = proxy_wasm::createWasmtimeVm(); -#endif - } - vm_->integration().reset(integration_); - } - - DummyIntegration *integration_; - - void initialize(std::string filename) { - auto path = "test/test_data/" + filename; - std::ifstream file(path, std::ios::binary); - EXPECT_FALSE(file.fail()) << "failed to open: " << path; - std::stringstream file_string_stream; - file_string_stream << file.rdbuf(); - source_ = file_string_stream.str(); - } - - std::string source_; - std::string runtime_; -}; - -static std::vector getRuntimes() { - std::vector runtimes = { -#if defined(WASM_V8) - "v8", -#endif -#if defined(WASM_WAVM) - "wavm", -#endif -#if defined(WASM_WASMTIME) - "wasmtime", -#endif - "" - }; - runtimes.pop_back(); - return runtimes; -} - auto test_values = testing::ValuesIn(getRuntimes()); INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 051f051cd..715ed92e3 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -16,3 +16,9 @@ wasm_rust_binary( name = "trap.wasm", srcs = ["trap.rs"], ) + +wasm_rust_binary( + name = "env.wasm", + srcs = ["env.rs"], + wasi = True, +) diff --git a/test/test_data/env.rs b/test/test_data/env.rs new file mode 100644 index 000000000..af7793b2e --- /dev/null +++ b/test/test_data/env.rs @@ -0,0 +1,28 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +extern "C" { + fn __wasilibc_initialize_environ(); +} + +#[no_mangle] +pub extern "C" fn run() { + unsafe { + __wasilibc_initialize_environ(); + } + for (key, value) in std::env::vars() { + println!("{}: {}", key, value); + } +} diff --git a/test/utility.cc b/test/utility.cc new file mode 100644 index 000000000..7e7ba4177 --- /dev/null +++ b/test/utility.cc @@ -0,0 +1,35 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "test/utility.h" + +namespace proxy_wasm { + +std::vector getRuntimes() { + std::vector runtimes = { +#if defined(WASM_V8) + "v8", +#endif +#if defined(WASM_WAVM) + "wavm", +#endif +#if defined(WASM_WASMTIME) + "wasmtime", +#endif + "" + }; + runtimes.pop_back(); + return runtimes; +} +} // namespace proxy_wasm diff --git a/test/utility.h b/test/utility.h new file mode 100644 index 000000000..de844d8da --- /dev/null +++ b/test/utility.h @@ -0,0 +1,101 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#include "gtest/gtest.h" + +#include +#include +#include +#include +#include +#include + +#include "include/proxy-wasm/context.h" +#include "include/proxy-wasm/wasm.h" + +#if defined(WASM_V8) +#include "include/proxy-wasm/v8.h" +#endif +#if defined(WASM_WAVM) +#include "include/proxy-wasm/wavm.h" +#endif +#if defined(WASM_WASMTIME) +#include "include/proxy-wasm/wasmtime.h" +#endif + +namespace proxy_wasm { + +struct DummyIntegration : public WasmVmIntegration { + ~DummyIntegration() override{}; + WasmVmIntegration *clone() override { return new DummyIntegration{}; } + void error(std::string_view message) override { + std::cout << "ERROR from integration: " << message << std::endl; + error_message_ = message; + } + void trace(std::string_view message) override { + std::cout << "TRACE from integration: " << message << std::endl; + trace_message_ = message; + } + bool getNullVmFunction(std::string_view function_name, bool returns_word, int number_of_arguments, + NullPlugin *plugin, void *ptr_to_function_return) override { + return false; + }; + + LogLevel getLogLevel() override { return log_level_; } + std::string error_message_; + std::string trace_message_; + LogLevel log_level_ = LogLevel::info; +}; + +class TestVM : public testing::TestWithParam { +public: + std::unique_ptr vm_; + + TestVM() : integration_(new DummyIntegration{}) { + runtime_ = GetParam(); + if (runtime_ == "") { + EXPECT_TRUE(false) << "runtime must not be empty"; +#if defined(WASM_V8) + } else if (runtime_ == "v8") { + vm_ = proxy_wasm::createV8Vm(); +#endif +#if defined(WASM_WAVM) + } else if (runtime_ == "wavm") { + vm_ = proxy_wasm::createWavmVm(); +#endif +#if defined(WASM_WASMTIME) + } else if (runtime_ == "wasmtime") { + vm_ = proxy_wasm::createWasmtimeVm(); +#endif + } + vm_->integration().reset(integration_); + } + + DummyIntegration *integration_; + + void initialize(std::string filename) { + auto path = "test/test_data/" + filename; + std::ifstream file(path, std::ios::binary); + EXPECT_FALSE(file.fail()) << "failed to open: " << path; + std::stringstream file_string_stream; + file_string_stream << file.rdbuf(); + source_ = file_string_stream.str(); + } + + std::string source_; + std::string runtime_; +}; + +std::vector getRuntimes(); + +} // namespace proxy_wasm From bc6fe15893cd5ab8cdaaf7bb4bfad9baf8b25aba Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 2 Mar 2021 14:26:20 -0800 Subject: [PATCH 082/287] Optionally call main() in WASI reactors as a convenience. (#133) WASI reactors differ from WASI commands in that they have multiple entrypoints (i.e. proxy_on_* callbacks) instead of only main(). Currently, each Proxy-Wasm SDK uses different approch to startup: - AssemblyScript SDK uses Wasm's start function. - C++ SDK creates WASI reactor with global C++ constructors taking care of early initialization and registration of plugins. - Rust SDK creates Wasm library, and suggests (via examples) using _start() function called at startup to do early initialization. Unfortunately, this is the same function name that WASI commands are using, which means that WASI constructors cannot be injected and executed at startup. - TinyGo SDK creates WASI command and calls main() at startup, but it doesn't exit after main() function returns. Calling main() in WASI reactors would allow us to prepare for when they are stablized in Rust, and to have a non-breaking fallback in case TinyGo decides to exit after main() function returns. Signed-off-by: Piotr Sikora --- include/proxy-wasm/wasm.h | 6 +++--- src/null/null_plugin.cc | 6 +++--- src/wasm.cc | 19 +++++++++++++++---- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 9caf90173..e77b9b03d 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -196,10 +196,10 @@ class WasmBase : public std::enable_shared_from_this { std::unordered_map envs_; // environment variables passed through wasi.environ_get - WasmCallVoid<0> _initialize_; /* Emscripten v1.39.17+ */ - WasmCallVoid<0> _start_; /* Emscripten v1.39.0+ */ - WasmCallVoid<0> __wasm_call_ctors_; + WasmCallVoid<0> _initialize_; /* WASI reactor (Emscripten v1.39.17+, Rust nightly) */ + WasmCallVoid<0> _start_; /* WASI command (Emscripten v1.39.0+, TinyGo) */ + WasmCallWord<2> main_; WasmCallWord<1> malloc_; // Calls into the VM. diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index dfc2dbfaa..25f575e19 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -37,8 +37,6 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<0> *f) *f = nullptr; } else if (function_name == "_start") { *f = nullptr; - } else if (function_name == "__wasm_call_ctors") { - *f = nullptr; } else if (!wasm_vm_->integration()->getNullVmFunction(function_name, false, 0, this, f)) { error("Missing getFunction for: " + std::string(function_name)); *f = nullptr; @@ -167,7 +165,9 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<1> *f) void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<2> *f) { auto plugin = this; - if (function_name == "proxy_on_vm_start") { + if (function_name == "main") { + *f = nullptr; + } else if (function_name == "proxy_on_vm_start") { *f = [plugin](ContextBase *context, Word context_id, Word configuration_size) { SaveRestoreContext saved_context(context); return Word(plugin->onStart(context_id, configuration_size)); diff --git a/src/wasm.cc b/src/wasm.cc index 2a6117ff0..7fda02629 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -147,8 +147,11 @@ void WasmBase::getFunctions() { #define _GET(_fn) wasm_vm_->getFunction(#_fn, &_fn##_); #define _GET_ALIAS(_fn, _alias) wasm_vm_->getFunction(#_alias, &_fn##_); _GET(_initialize); - _GET(_start); - _GET(__wasm_call_ctors); + if (_initialize_) { + _GET(main); + } else { + _GET(_start); + } _GET(malloc); if (!malloc_) { @@ -284,11 +287,19 @@ ContextBase *WasmBase::getRootContext(const std::shared_ptr &plugin, void WasmBase::startVm(ContextBase *root_context) { if (_initialize_) { + // WASI reactor. _initialize_(root_context); + if (main_) { + // Call main() if it exists in WASI reactor, to allow module to + // do early initialization (e.g. configure SDK). + // + // Re-using main() keeps this consistent when switching between + // WASI command (that calls main()) and reactor (that doesn't). + main_(root_context, Word(0), Word(0)); + } } else if (_start_) { + // WASI command. _start_(root_context); - } else if (__wasm_call_ctors_) { - __wasm_call_ctors_(root_context); } } From d83a60f68615719f527853f819c19b9ac71e773e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 2 Mar 2021 16:45:34 -0800 Subject: [PATCH 083/287] Update Bazel to v4.0.0. (#136) Signed-off-by: Piotr Sikora --- .bazelversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelversion b/.bazelversion index 40c341bdc..fcdb2e109 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -3.6.0 +4.0.0 From dd33aa6d825cd63deaa0f793c8caca8a9132a05f Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 3 Mar 2021 14:44:46 +0900 Subject: [PATCH 084/287] Fix environ_get: append null. (#137) Signed-off-by: Takeshi Yoneda --- src/exports.cc | 2 +- test/exports_test.cc | 4 ++-- test/test_data/env.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/exports.cc b/src/exports.cc index b5cd20ae3..97bbab068 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -781,7 +781,7 @@ Word wasi_unstable_environ_get(void *raw_context, Word environ_array_ptr, Word e data.append(e.first); data.append("="); data.append(e.second); - data.append("\x0"); + data.append({0x0}); if (!context->wasmVm()->setMemory(environ_buf, data.size(), data.c_str())) { return 21; // __WASI_EFAULT } diff --git a/test/exports_test.cc b/test/exports_test.cc index 2e8ad43bd..74e23c080 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -67,8 +67,8 @@ TEST_P(TestVM, Environment) { run(current_context_); auto msg = context.log_msg(); - EXPECT_NE(std::string::npos, msg.find("KEY1: VALUE1")) << msg; - EXPECT_NE(std::string::npos, msg.find("KEY2: VALUE2")) << msg; + EXPECT_NE(std::string::npos, msg.find("KEY1: VALUE1\n")) << msg; + EXPECT_NE(std::string::npos, msg.find("KEY2: VALUE2\n")) << msg; } TEST_P(TestVM, WithoutEnvironment) { diff --git a/test/test_data/env.rs b/test/test_data/env.rs index af7793b2e..f31810d5c 100644 --- a/test/test_data/env.rs +++ b/test/test_data/env.rs @@ -23,6 +23,6 @@ pub extern "C" fn run() { __wasilibc_initialize_environ(); } for (key, value) in std::env::vars() { - println!("{}: {}", key, value); + println!("{}: {}\n", key, value); } } From 217320a45ef21db1bf79e7bd8e0190f9a9750b94 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Sun, 7 Mar 2021 23:24:42 -0800 Subject: [PATCH 085/287] Allow using empty vm_id to indicate the current WasmVM. (#138) Signed-off-by: Piotr Sikora --- src/context.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/context.cc b/src/context.cc index f00442320..c213feed3 100644 --- a/src/context.cc +++ b/src/context.cc @@ -224,7 +224,8 @@ WasmResult ContextBase::registerSharedQueue(std::string_view queue_name, WasmResult ContextBase::lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, uint32_t *token_ptr) { - uint32_t token = getGlobalSharedQueue().resolveQueue(vm_id, queue_name); + uint32_t token = + getGlobalSharedQueue().resolveQueue(vm_id.empty() ? wasm_->vm_id() : vm_id, queue_name); if (isFailed() || !token) { return WasmResult::NotFound; } From 2b559959c4733be137ab5aa92cc19a55ef69fb47 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 1 Apr 2021 06:12:29 -0700 Subject: [PATCH 086/287] v8: use signal handlers to catch out of bounds memory access. (#144) This change improves performance by up to 36% in microbenchmarks. Benchmark Diff -------------------------------------------------------------------- WasmSpeedTest_empty -0.0185 WasmSpeedTest_get_current_time -0.1184 WasmSpeedTest_small_string -0.0081 WasmSpeedTest_small_string1000 -0.1324 WasmSpeedTest_small_string_check_compiler -0.0654 WasmSpeedTest_small_string_check_compiler1000 -0.1338 WasmSpeedTest_large_string -0.3187 WasmSpeedTest_large_string1000 -0.3624 WasmSpeedTest_get_property -0.0213 WasmSpeedTest_grpc_service -0.1426 WasmSpeedTest_grpc_service1000 -0.2431 WasmSpeedTest_modify_metadata -0.0287 WasmSpeedTest_modify_metadata1000 -0.0431 WasmSpeedTest_json_serialize -0.2729 WasmSpeedTest_json_deserialize -0.2594 WasmSpeedTest_json_deserialize_empty -0.2609 WasmSpeedTest_convert_to_filter_state -0.2889 Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index a873daff7..e83351a9d 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -18,12 +18,14 @@ #include #include #include +#include #include #include #include #include #include +#include "v8.h" #include "v8-version.h" #include "wasm-api/wasm.hh" @@ -31,7 +33,14 @@ namespace proxy_wasm { namespace { wasm::Engine *engine() { - static const auto engine = wasm::Engine::make(); + static std::once_flag init; + static wasm::own engine; + + std::call_once(init, []() { + v8::V8::EnableWebAssemblyTrapHandler(true); + engine = wasm::Engine::make(); + }); + return engine.get(); } From ca7ec41d2dd4276b246a454f7fd975a883b87c80 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 2 Apr 2021 03:36:34 -0700 Subject: [PATCH 087/287] v8: avoid unnecessary log level checks. (#146) It's mostly a pedantic change, but it slightly improves performance in microbenchmarks. Benchmark Diff -------------------------------------------------------------------- WasmSpeedTest_empty -0.0891 WasmSpeedTest_get_current_time -0.0424 WasmSpeedTest_small_string -0.0507 WasmSpeedTest_small_string1000 -0.0118 WasmSpeedTest_small_string_check_compiler -0.0556 WasmSpeedTest_small_string_check_compiler1000 +0.0041 WasmSpeedTest_large_string -0.0322 WasmSpeedTest_large_string1000 -0.0311 WasmSpeedTest_get_property -0.0173 WasmSpeedTest_grpc_service -0.0558 WasmSpeedTest_grpc_service1000 -0.0021 WasmSpeedTest_modify_metadata +0.0410 WasmSpeedTest_modify_metadata1000 -0.0298 WasmSpeedTest_json_serialize +0.0009 WasmSpeedTest_json_deserialize +0.0028 WasmSpeedTest_json_deserialize_empty -0.0028 WasmSpeedTest_convert_to_filter_state -0.0172 Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index e83351a9d..986ce10f1 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -649,7 +649,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view store_.get(), type.get(), [](void *data, const wasm::Val params[], wasm::Val[]) -> wasm::own { auto func_data = reinterpret_cast(data); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } @@ -657,7 +658,7 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto function = reinterpret_cast(func_data->raw_func_); std::apply(function, args); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); } return nullptr; @@ -682,7 +683,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view store_.get(), type.get(), [](void *data, const wasm::Val params[], wasm::Val results[]) -> wasm::own { auto func_data = reinterpret_cast(data); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } @@ -691,7 +693,7 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view auto function = reinterpret_cast(func_data->raw_func_); R rvalue = std::apply(function, args); results[0] = makeVal(rvalue); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: " + std::to_string(rvalue)); } @@ -729,17 +731,18 @@ void V8::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> void { wasm::Val params[] = {makeVal(args)...}; - SaveRestoreContext saved_context(context); - if (cmpLogLevel(LogLevel::trace)) { + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(params, sizeof...(Args)) + ")"); } + SaveRestoreContext saved_context(context); auto trap = func->call(params, nullptr); if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return; } - if (cmpLogLevel(LogLevel::trace)) { + if (log) { integration()->trace("[host<-vm] " + std::string(function_name) + " return: void"); } }; @@ -769,18 +772,19 @@ void V8::getModuleFunctionImpl(std::string_view function_name, *function = [func, function_name, this](ContextBase *context, Args... args) -> R { wasm::Val params[] = {makeVal(args)...}; wasm::Val results[1]; - SaveRestoreContext saved_context(context); - if (cmpLogLevel(LogLevel::trace)) { + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(params, sizeof...(Args)) + ")"); } + SaveRestoreContext saved_context(context); auto trap = func->call(params, results); if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return R{}; } R rvalue = results[0].get::type>(); - if (cmpLogLevel(LogLevel::trace)) { + if (log) { integration()->trace("[host<-vm] " + std::string(function_name) + " return: " + std::to_string(rvalue)); } From 1d4bdb9a4cf9c74387473c25f3db58e23f9118f3 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 5 Apr 2021 02:48:09 -0700 Subject: [PATCH 088/287] wasmtime: update to v0.25. (#145) Signed-off-by: Piotr Sikora --- bazel/cargo/BUILD.bazel | 24 +- bazel/cargo/Cargo.raze.lock | 332 ++++++----- bazel/cargo/Cargo.toml | 10 +- bazel/cargo/crates.bzl | 522 +++++++++--------- ...er-0.2.3.bazel => BUILD.adler-1.0.2.bazel} | 2 +- ...1.0.38.bazel => BUILD.anyhow-1.0.40.bazel} | 4 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 2 +- .../cargo/remote/BUILD.backtrace-0.3.56.bazel | 4 +- ...-1.3.1.bazel => BUILD.bincode-1.3.2.bazel} | 6 +- .../cargo/remote/BUILD.byteorder-1.3.4.bazel | 88 +++ ....cc-1.0.66.bazel => BUILD.cc-1.0.67.bazel} | 4 +- .../remote/BUILD.cpp_demangle-0.3.2.bazel | 118 ++++ ...l => BUILD.cranelift-bforest-0.72.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.72.0.bazel} | 20 +- ...BUILD.cranelift-codegen-meta-0.72.0.bazel} | 6 +- ...ILD.cranelift-codegen-shared-0.72.0.bazel} | 5 +- ...el => BUILD.cranelift-entity-0.72.0.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.72.0.bazel} | 4 +- .../BUILD.cranelift-native-0.72.0.bazel | 57 ++ ...azel => BUILD.cranelift-wasm-0.72.0.bazel} | 16 +- .../cargo/remote/BUILD.env_logger-0.8.3.bazel | 2 +- ...0.4.bazel => BUILD.getrandom-0.1.16.bazel} | 102 ++-- bazel/cargo/remote/BUILD.gimli-0.22.0.bazel | 78 --- bazel/cargo/remote/BUILD.gimli-0.23.0.bazel | 10 + ...ser-0.7.0.bazel => BUILD.glob-0.3.0.bazel} | 6 +- ....1.3.bazel => BUILD.hashbrown-0.9.1.bazel} | 16 +- .../remote/BUILD.hermit-abi-0.1.18.bazel | 2 +- bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel | 68 --- bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel | 101 ++++ ...9.0.bazel => BUILD.itertools-0.10.0.bazel} | 9 +- ...c-0.2.86.bazel => BUILD.libc-0.2.92.bazel} | 4 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 2 +- ....5.6.bazel => BUILD.memoffset-0.6.3.bazel} | 4 +- ....3.bazel => BUILD.miniz_oxide-0.4.4.bazel} | 6 +- bazel/cargo/remote/BUILD.object-0.21.1.bazel | 80 --- bazel/cargo/remote/BUILD.object-0.23.0.bazel | 7 + ....5.2.bazel => BUILD.once_cell-1.7.2.bazel} | 3 +- ...er-0.9.0.bazel => BUILD.paste-1.0.5.bazel} | 20 +- ....3.bazel => BUILD.ppv-lite86-0.2.10.bazel} | 9 +- ...4.bazel => BUILD.proc-macro2-1.0.26.bazel} | 4 +- bazel/cargo/remote/BUILD.psm-0.1.12.bazel | 2 +- bazel/cargo/remote/BUILD.quote-1.0.9.bazel | 2 +- ...ve-0.68.0.bazel => BUILD.rand-0.7.3.bazel} | 41 +- .../remote/BUILD.rand_chacha-0.2.2.bazel | 56 ++ .../cargo/remote/BUILD.rand_core-0.5.1.bazel | 57 ++ bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel | 54 ++ .../cargo/remote/BUILD.regalloc-0.0.31.bazel | 3 + ...ex-1.4.3.bazel => BUILD.regex-1.4.5.bazel} | 6 +- ....bazel => BUILD.regex-syntax-0.6.23.bazel} | 2 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 2 +- ....0.123.bazel => BUILD.serde-1.0.125.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.125.bazel} | 8 +- ...yn-1.0.60.bazel => BUILD.syn-1.0.68.bazel} | 6 +- ....23.bazel => BUILD.thiserror-1.0.24.bazel} | 4 +- ...azel => BUILD.thiserror-impl-1.0.24.bazel} | 6 +- ...D.wasi-0.9.0+wasi-snapshot-preview1.bazel} | 8 +- .../remote/BUILD.wasmparser-0.57.0.bazel | 59 -- ....0.bazel => BUILD.wasmparser-0.76.0.bazel} | 2 +- ...21.0.bazel => BUILD.wasmtime-0.25.0.bazel} | 26 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 2 +- ... => BUILD.wasmtime-cranelift-0.25.0.bazel} | 13 +- ...azel => BUILD.wasmtime-debug-0.25.0.bazel} | 14 +- ...el => BUILD.wasmtime-environ-0.25.0.bazel} | 21 +- ....bazel => BUILD.wasmtime-jit-0.25.0.bazel} | 37 +- ....bazel => BUILD.wasmtime-obj-0.25.0.bazel} | 10 +- ... => BUILD.wasmtime-profiling-0.25.0.bazel} | 12 +- ...el => BUILD.wasmtime-runtime-0.25.0.bazel} | 44 +- bazel/repositories.bzl | 18 +- src/wasmtime/wasmtime.cc | 87 +-- 69 files changed, 1375 insertions(+), 998 deletions(-) rename bazel/cargo/remote/{BUILD.adler-0.2.3.bazel => BUILD.adler-1.0.2.bazel} (97%) rename bazel/cargo/remote/{BUILD.anyhow-1.0.38.bazel => BUILD.anyhow-1.0.40.bazel} (98%) rename bazel/cargo/remote/{BUILD.bincode-1.3.1.bazel => BUILD.bincode-1.3.2.bazel} (88%) create mode 100644 bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel rename bazel/cargo/remote/{BUILD.cc-1.0.66.bazel => BUILD.cc-1.0.67.bazel} (97%) create mode 100644 bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel rename bazel/cargo/remote/{BUILD.cranelift-bforest-0.68.0.bazel => BUILD.cranelift-bforest-0.72.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-0.68.0.bazel => BUILD.cranelift-codegen-0.72.0.bazel} (79%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-meta-0.68.0.bazel => BUILD.cranelift-codegen-meta-0.72.0.bazel} (87%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-shared-0.68.0.bazel => BUILD.cranelift-codegen-shared-0.72.0.bazel} (89%) rename bazel/cargo/remote/{BUILD.cranelift-entity-0.68.0.bazel => BUILD.cranelift-entity-0.72.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-frontend-0.68.0.bazel => BUILD.cranelift-frontend-0.72.0.bazel} (93%) create mode 100644 bazel/cargo/remote/BUILD.cranelift-native-0.72.0.bazel rename bazel/cargo/remote/{BUILD.cranelift-wasm-0.68.0.bazel => BUILD.cranelift-wasm-0.72.0.bazel} (73%) rename bazel/cargo/remote/{BUILD.raw-cpuid-7.0.4.bazel => BUILD.getrandom-0.1.16.bazel} (61%) delete mode 100644 bazel/cargo/remote/BUILD.gimli-0.22.0.bazel rename bazel/cargo/remote/{BUILD.semver-parser-0.7.0.bazel => BUILD.glob-0.3.0.bazel} (90%) rename bazel/cargo/remote/{BUILD.thread_local-1.1.3.bazel => BUILD.hashbrown-0.9.1.bazel} (74%) delete mode 100644 bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel create mode 100644 bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel rename bazel/cargo/remote/{BUILD.itertools-0.9.0.bazel => BUILD.itertools-0.10.0.bazel} (90%) rename bazel/cargo/remote/{BUILD.libc-0.2.86.bazel => BUILD.libc-0.2.92.bazel} (97%) rename bazel/cargo/remote/{BUILD.memoffset-0.5.6.bazel => BUILD.memoffset-0.6.3.bazel} (97%) rename bazel/cargo/remote/{BUILD.miniz_oxide-0.4.3.bazel => BUILD.miniz_oxide-0.4.4.bazel} (94%) delete mode 100644 bazel/cargo/remote/BUILD.object-0.21.1.bazel rename bazel/cargo/remote/{BUILD.once_cell-1.5.2.bazel => BUILD.once_cell-1.7.2.bazel} (97%) rename bazel/cargo/remote/{BUILD.semver-0.9.0.bazel => BUILD.paste-1.0.5.bazel} (70%) rename bazel/cargo/remote/{BUILD.rustc_version-0.2.3.bazel => BUILD.ppv-lite86-0.2.10.bazel} (88%) rename bazel/cargo/remote/{BUILD.proc-macro2-1.0.24.bazel => BUILD.proc-macro2-1.0.26.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-native-0.68.0.bazel => BUILD.rand-0.7.3.bazel} (55%) create mode 100644 bazel/cargo/remote/BUILD.rand_chacha-0.2.2.bazel create mode 100644 bazel/cargo/remote/BUILD.rand_core-0.5.1.bazel create mode 100644 bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel rename bazel/cargo/remote/{BUILD.regex-1.4.3.bazel => BUILD.regex-1.4.5.bazel} (92%) rename bazel/cargo/remote/{BUILD.regex-syntax-0.6.22.bazel => BUILD.regex-syntax-0.6.23.bazel} (97%) rename bazel/cargo/remote/{BUILD.serde-1.0.123.bazel => BUILD.serde-1.0.125.bazel} (93%) rename bazel/cargo/remote/{BUILD.serde_derive-1.0.123.bazel => BUILD.serde_derive-1.0.125.bazel} (91%) rename bazel/cargo/remote/{BUILD.syn-1.0.60.bazel => BUILD.syn-1.0.68.bazel} (97%) rename bazel/cargo/remote/{BUILD.thiserror-1.0.23.bazel => BUILD.thiserror-1.0.24.bazel} (95%) rename bazel/cargo/remote/{BUILD.thiserror-impl-1.0.23.bazel => BUILD.thiserror-impl-1.0.24.bazel} (88%) rename bazel/cargo/remote/{BUILD.byteorder-1.4.2.bazel => BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel} (84%) delete mode 100644 bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel rename bazel/cargo/remote/{BUILD.wasmparser-0.65.0.bazel => BUILD.wasmparser-0.76.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.wasmtime-0.21.0.bazel => BUILD.wasmtime-0.25.0.bazel} (70%) rename bazel/cargo/remote/{BUILD.wasmtime-cranelift-0.21.0.bazel => BUILD.wasmtime-cranelift-0.25.0.bazel} (72%) rename bazel/cargo/remote/{BUILD.wasmtime-debug-0.21.0.bazel => BUILD.wasmtime-debug-0.25.0.bazel} (75%) rename bazel/cargo/remote/{BUILD.wasmtime-environ-0.21.0.bazel => BUILD.wasmtime-environ-0.25.0.bazel} (66%) rename bazel/cargo/remote/{BUILD.wasmtime-jit-0.21.0.bazel => BUILD.wasmtime-jit-0.25.0.bazel} (61%) rename bazel/cargo/remote/{BUILD.wasmtime-obj-0.21.0.bazel => BUILD.wasmtime-obj-0.25.0.bazel} (81%) rename bazel/cargo/remote/{BUILD.wasmtime-profiling-0.21.0.bazel => BUILD.wasmtime-profiling-0.25.0.bazel} (79%) rename bazel/cargo/remote/{BUILD.wasmtime-runtime-0.21.0.bazel => BUILD.wasmtime-runtime-0.25.0.bazel} (61%) diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index 4ee8495f9..36448d9ef 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", + actual = "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", tags = [ "cargo-raze", "manual", @@ -30,27 +30,9 @@ alias( ], ) -alias( - name = "indexmap", - actual = "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "object", - actual = "@proxy_wasm_cpp_host__object__0_21_1//:object", - tags = [ - "cargo-raze", - "manual", - ], -) - alias( name = "once_cell", - actual = "@proxy_wasm_cpp_host__once_cell__1_5_2//:once_cell", + actual = "@proxy_wasm_cpp_host__once_cell__1_7_2//:once_cell", tags = [ "cargo-raze", "manual", @@ -59,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_21_0//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_25_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index d025df1b3..958a38635 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -6,14 +6,14 @@ version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7" dependencies = [ - "gimli 0.23.0", + "gimli", ] [[package]] name = "adler" -version = "0.2.3" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e" +checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aho-corasick" @@ -26,9 +26,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.38" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1" +checksum = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b" [[package]] name = "atty" @@ -57,15 +57,15 @@ dependencies = [ "cfg-if", "libc", "miniz_oxide", - "object 0.23.0", + "object", "rustc-demangle", ] [[package]] name = "bincode" -version = "1.3.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d" +checksum = "d175dfa69e619905c4c3cdb7c3c203fa3bdd5d51184e3afdb2742c0280493772" dependencies = [ "byteorder", "serde", @@ -79,15 +79,15 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "byteorder" -version = "1.4.2" +version = "1.3.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b" +checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" [[package]] name = "cc" -version = "1.0.66" +version = "1.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48" +checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" [[package]] name = "cfg-if" @@ -95,27 +95,37 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "cpp_demangle" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "44919ecaf6f99e8e737bc239408931c9a01e9a6c74814fee8242dd2506b65390" +dependencies = [ + "cfg-if", + "glob", +] + [[package]] name = "cranelift-bforest" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9221545c0507dc08a62b2d8b5ffe8e17ac580b0a74d1813b496b8d70b070fbd0" +checksum = "841476ab6d3530136b5162b64a2c6969d68141843ad2fd59126e5ea84fd9b5fe" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e9936ea608b6cd176f107037f6adbb4deac933466fc7231154f96598b2d3ab1" +checksum = "2b5619cef8d19530298301f91e9a0390d369260799a3d8dd01e28fc88e53637a" dependencies = [ "byteorder", "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", - "gimli 0.22.0", + "gimli", "log", "regalloc", "serde", @@ -126,9 +136,9 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ef2b2768568306540f4c8db3acce9105534d34c4a1e440529c1e702d7f8c8d7" +checksum = "2a319709b8267939155924114ea83f2a5b5af65ece3ac6f703d4735f3c66bb0d" dependencies = [ "cranelift-codegen-shared", "cranelift-entity", @@ -136,24 +146,27 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6759012d6d19c4caec95793f052613e9d4113e925e7f14154defbac0f1d4c938" +checksum = "15925b23cd3a448443f289d85a8f53f3cf7a80f0137aa53c8e3b01ae8aefaef7" +dependencies = [ + "serde", +] [[package]] name = "cranelift-entity" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86badbce14e15f52a45b666b38abe47b204969dd7f8fb7488cb55dd46b361fa6" +checksum = "610cf464396c89af0f9f7c64b5aa90aa9e8812ac84084098f1565b40051bc415" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b608bb7656c554d0a4cf8f50c7a10b857e80306f6ff829ad6d468a7e2323c8d8" +checksum = "4d20c8bd4a1c41ded051734f0e33ad1d843a0adc98b9bd975ee6657e2c70cdc9" dependencies = [ "cranelift-codegen", "log", @@ -163,20 +176,19 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5246a1af14b7812ee4d94a3f0c4b295ec02c370c08b0ecc3dec512890fdad175" +checksum = "304e100df41f34a5a15291b37bfe0fd7abd0427a2c84195cc69578b4137f9099" dependencies = [ "cranelift-codegen", - "raw-cpuid", "target-lexicon", ] [[package]] name = "cranelift-wasm" -version = "0.68.0" +version = "0.72.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ef491714e82f9fb910547e2047a3b1c47c03861eca67540c5abd0416371a2ac" +checksum = "4efd473b2917303957e0bfaea6ea9d08b8c93695bee015a611a2514ce5254abc" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -186,7 +198,7 @@ dependencies = [ "serde", "smallvec", "thiserror", - "wasmparser 0.65.0", + "wasmparser", ] [[package]] @@ -223,11 +235,22 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +[[package]] +name = "getrandom" +version = "0.1.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + [[package]] name = "gimli" -version = "0.22.0" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724" +checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" dependencies = [ "fallible-iterator", "indexmap", @@ -235,10 +258,16 @@ dependencies = [ ] [[package]] -name = "gimli" -version = "0.23.0" +name = "glob" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" +checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" + +[[package]] +name = "hashbrown" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" [[package]] name = "hermit-abi" @@ -257,18 +286,20 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indexmap" -version = "1.1.0" +version = "1.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356" +checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3" dependencies = [ + "autocfg", + "hashbrown", "serde", ] [[package]] name = "itertools" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b" +checksum = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319" dependencies = [ "either", ] @@ -281,9 +312,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.86" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1c" +checksum = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714" [[package]] name = "log" @@ -311,18 +342,18 @@ checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" [[package]] name = "memoffset" -version = "0.5.6" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa" +checksum = "f83fb6581e8ed1f85fd45c116db8405483899489e38406156c25eb743554361d" dependencies = [ "autocfg", ] [[package]] name = "miniz_oxide" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d" +checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" dependencies = [ "adler", "autocfg", @@ -336,32 +367,37 @@ checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" [[package]] name = "object" -version = "0.21.1" +version = "0.23.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693" +checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" dependencies = [ "crc32fast", "indexmap", - "wasmparser 0.57.0", ] [[package]] -name = "object" -version = "0.23.0" +name = "once_cell" +version = "1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" +checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3" [[package]] -name = "once_cell" -version = "1.5.2" +name = "paste" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0" +checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58" + +[[package]] +name = "ppv-lite86" +version = "0.2.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" [[package]] name = "proc-macro2" -version = "1.0.24" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71" +checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" dependencies = [ "unicode-xid", ] @@ -385,14 +421,44 @@ dependencies = [ ] [[package]] -name = "raw-cpuid" -version = "7.0.4" +name = "rand" +version = "0.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "beb71f708fe39b2c5e98076204c3cc094ee5a4c12c4cdb119a2b72dc34164f41" +checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" dependencies = [ - "bitflags", - "cc", - "rustc_version", + "getrandom", + "libc", + "rand_chacha", + "rand_core", + "rand_hc", +] + +[[package]] +name = "rand_chacha" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +dependencies = [ + "getrandom", +] + +[[package]] +name = "rand_hc" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +dependencies = [ + "rand_core", ] [[package]] @@ -403,26 +469,26 @@ checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" dependencies = [ "log", "rustc-hash", + "serde", "smallvec", ] [[package]] name = "regex" -version = "1.4.3" +version = "1.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a" +checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19" dependencies = [ "aho-corasick", "memchr", "regex-syntax", - "thread_local", ] [[package]] name = "regex-syntax" -version = "0.6.22" +version = "0.6.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581" +checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548" [[package]] name = "region" @@ -448,44 +514,20 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" -[[package]] -name = "rustc_version" -version = "0.2.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a" -dependencies = [ - "semver", -] - -[[package]] -name = "semver" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403" -dependencies = [ - "semver-parser", -] - -[[package]] -name = "semver-parser" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" - [[package]] name = "serde" -version = "1.0.123" +version = "1.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae" +checksum = "558dc50e1a5a5fa7112ca2ce4effcb321b0300c0d4ccf0776a9f60cd89031171" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.123" +version = "1.0.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9391c295d64fc0abb2c556bad848f33cb8296276b1ad2677d1ae1ace4f258f31" +checksum = "b093b7a2bb58203b5da3056c05b4ec1fed827dcfdb37347a8841695263b3d06d" dependencies = [ "proc-macro2", "quote", @@ -506,9 +548,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.60" +version = "1.0.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081" +checksum = "3ce15dd3ed8aa2f8eeac4716d6ef5ab58b6b9256db41d7e1a0224c2788e8fd87" dependencies = [ "proc-macro2", "quote", @@ -532,33 +574,24 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146" +checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.23" +version = "1.0.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1" +checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" dependencies = [ "proc-macro2", "quote", "syn", ] -[[package]] -name = "thread_local" -version = "1.1.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd" -dependencies = [ - "once_cell", -] - [[package]] name = "unicode-xid" version = "0.2.1" @@ -566,36 +599,38 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" [[package]] -name = "wasmparser" -version = "0.57.0" +name = "wasi" +version = "0.9.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6" +checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" [[package]] name = "wasmparser" -version = "0.65.0" +version = "0.76.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc2fe6350834b4e528ba0901e7aa405d78b89dc1fa3145359eb4de0e323fcf" +checksum = "755a9a4afe3f6cccbbe6d7e965eef44cf260b001f93e547eba84255c1d0187d8" [[package]] name = "wasmtime" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a4d945221f4d29feecdac80514c1ef1527dfcdcc7715ff1b4a5161fe5c8ebab" +checksum = "26ea2ad49bb047e10ca292f55cd67040bef14b676d07e7b04ed65fd312d52ece" dependencies = [ "anyhow", "backtrace", "bincode", "cfg-if", - "lazy_static", + "cpp_demangle", + "indexmap", "libc", "log", + "paste", "region", "rustc-demangle", "serde", "smallvec", "target-lexicon", - "wasmparser 0.65.0", + "wasmparser", "wasmtime-environ", "wasmtime-jit", "wasmtime-profiling", @@ -605,12 +640,10 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.21.0" +version = "0.25.0" dependencies = [ "anyhow", "env_logger", - "indexmap", - "object 0.21.1", "once_cell", "wasmtime", "wasmtime-c-api-macros", @@ -619,7 +652,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.21.0#ab1958434a2b7a5b07d197e71b88200d9e06e026" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.25.0#a8aaf812ef675e92f717893fc845db2dc5018128" dependencies = [ "proc-macro2", "quote", @@ -627,59 +660,62 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1e55c17317922951a9bdd5547b527d2cc7be3cea118dc17ad7c05a4c8e67c7a" +checksum = "5e769b80abbb89255926f69ba37085f7dd6608c980134838c3c89d7bf6e776bc" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", "cranelift-wasm", + "wasmparser", "wasmtime-environ", ] [[package]] name = "wasmtime-debug" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576daa6b228f8663c38bede2f7f23d094d578b0061c39fc122cc28eee1e2c18" +checksum = "38501788c936a4932b0ddf61135963a4b7d1f549f63a6908ae56a1c86d74fc7b" dependencies = [ "anyhow", - "gimli 0.22.0", + "gimli", "more-asserts", - "object 0.21.1", + "object", "target-lexicon", "thiserror", - "wasmparser 0.65.0", + "wasmparser", "wasmtime-environ", ] [[package]] name = "wasmtime-environ" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307" +checksum = "fae793ea1387b2fede277d209bb27285366df58f0a3ae9d59e58a7941dce60fa" dependencies = [ "anyhow", "cfg-if", "cranelift-codegen", "cranelift-entity", "cranelift-wasm", - "gimli 0.22.0", + "gimli", "indexmap", "log", "more-asserts", + "region", "serde", "thiserror", - "wasmparser 0.65.0", + "wasmparser", ] [[package]] name = "wasmtime-jit" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50" +checksum = "9b3bd0fae8396473a68a1491559d61776127bb9bea75c9a6a6c038ae4a656eb2" dependencies = [ + "addr2line", "anyhow", "cfg-if", "cranelift-codegen", @@ -687,15 +723,15 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli 0.22.0", + "gimli", "log", "more-asserts", - "object 0.21.1", + "object", "region", "serde", "target-lexicon", "thiserror", - "wasmparser 0.65.0", + "wasmparser", "wasmtime-cranelift", "wasmtime-debug", "wasmtime-environ", @@ -707,13 +743,13 @@ dependencies = [ [[package]] name = "wasmtime-obj" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a84aebe3b4331a603625f069944192fa3f6ffe499802ef91273fd73af9a8087d" +checksum = "a79fa098a3be8fabc50f5be60f8e47694d569afdc255de37850fc80295485012" dependencies = [ "anyhow", "more-asserts", - "object 0.21.1", + "object", "target-lexicon", "wasmtime-debug", "wasmtime-environ", @@ -721,9 +757,9 @@ dependencies = [ [[package]] name = "wasmtime-profiling" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c" +checksum = "d81e2106efeef4c01917fd16956a91d39bb78c07cf97027abdba9ca98da3f258" dependencies = [ "anyhow", "cfg-if", @@ -737,10 +773,11 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.21.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c" +checksum = "f747c656ca4680cad7846ae91c57d03f2dd4f4170da77a700df4e21f0d805378" dependencies = [ + "anyhow", "backtrace", "cc", "cfg-if", @@ -751,6 +788,7 @@ dependencies = [ "memoffset", "more-asserts", "psm", + "rand", "region", "thiserror", "wasmtime-environ", diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 1c7324365..b081d562a 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -1,19 +1,17 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.21.0" +version = "0.25.0" [lib] path = "fake_lib.rs" [dependencies] -anyhow = "1.0" env_logger = "0.8" -indexmap = {version = "=1.1.0", features = ["serde-1"]} -object = {version = "=0.21.1", default-features = false, features = ["write"]} +anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.21.0", default-features = false} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.21.0", path = "crates/c-api/macros"} +wasmtime = {version = "0.25.0", default-features = false} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.25.0", path = "crates/c-api/macros"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index a27aa34ca..53fe7e24f 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -23,12 +23,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__adler__0_2_3", - url = "https://crates.io/api/v1/crates/adler/0.2.3/download", + name = "proxy_wasm_cpp_host__adler__1_0_2", + url = "https://crates.io/api/v1/crates/adler/1.0.2/download", type = "tar.gz", - sha256 = "ee2a4ec343196209d6594e19543ae87a39f96d5534d7174822a3ad825dd6ed7e", - strip_prefix = "adler-0.2.3", - build_file = Label("//bazel/cargo/remote:BUILD.adler-0.2.3.bazel"), + sha256 = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe", + strip_prefix = "adler-1.0.2", + build_file = Label("//bazel/cargo/remote:BUILD.adler-1.0.2.bazel"), ) maybe( @@ -43,12 +43,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__anyhow__1_0_38", - url = "https://crates.io/api/v1/crates/anyhow/1.0.38/download", + name = "proxy_wasm_cpp_host__anyhow__1_0_40", + url = "https://crates.io/api/v1/crates/anyhow/1.0.40/download", type = "tar.gz", - sha256 = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1", - strip_prefix = "anyhow-1.0.38", - build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.38.bazel"), + sha256 = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b", + strip_prefix = "anyhow-1.0.40", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.40.bazel"), ) maybe( @@ -83,12 +83,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__bincode__1_3_1", - url = "https://crates.io/api/v1/crates/bincode/1.3.1/download", + name = "proxy_wasm_cpp_host__bincode__1_3_2", + url = "https://crates.io/api/v1/crates/bincode/1.3.2/download", type = "tar.gz", - sha256 = "f30d3a39baa26f9651f17b375061f3233dde33424a8b72b0dbe93a68a0bc896d", - strip_prefix = "bincode-1.3.1", - build_file = Label("//bazel/cargo/remote:BUILD.bincode-1.3.1.bazel"), + sha256 = "d175dfa69e619905c4c3cdb7c3c203fa3bdd5d51184e3afdb2742c0280493772", + strip_prefix = "bincode-1.3.2", + build_file = Label("//bazel/cargo/remote:BUILD.bincode-1.3.2.bazel"), ) maybe( @@ -103,22 +103,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__byteorder__1_4_2", - url = "https://crates.io/api/v1/crates/byteorder/1.4.2/download", + name = "proxy_wasm_cpp_host__byteorder__1_3_4", + url = "https://crates.io/api/v1/crates/byteorder/1.3.4/download", type = "tar.gz", - sha256 = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b", - strip_prefix = "byteorder-1.4.2", - build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.4.2.bazel"), + sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", + strip_prefix = "byteorder-1.3.4", + build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.3.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cc__1_0_66", - url = "https://crates.io/api/v1/crates/cc/1.0.66/download", + name = "proxy_wasm_cpp_host__cc__1_0_67", + url = "https://crates.io/api/v1/crates/cc/1.0.67/download", type = "tar.gz", - sha256 = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48", - strip_prefix = "cc-1.0.66", - build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.66.bazel"), + sha256 = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd", + strip_prefix = "cc-1.0.67", + build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.67.bazel"), ) maybe( @@ -133,82 +133,92 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.68.0/download", + name = "proxy_wasm_cpp_host__cpp_demangle__0_3_2", + url = "https://crates.io/api/v1/crates/cpp_demangle/0.3.2/download", type = "tar.gz", - sha256 = "9221545c0507dc08a62b2d8b5ffe8e17ac580b0a74d1813b496b8d70b070fbd0", - strip_prefix = "cranelift-bforest-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.68.0.bazel"), + sha256 = "44919ecaf6f99e8e737bc239408931c9a01e9a6c74814fee8242dd2506b65390", + strip_prefix = "cpp_demangle-0.3.2", + build_file = Label("//bazel/cargo/remote:BUILD.cpp_demangle-0.3.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.68.0/download", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.72.0/download", type = "tar.gz", - sha256 = "7e9936ea608b6cd176f107037f6adbb4deac933466fc7231154f96598b2d3ab1", - strip_prefix = "cranelift-codegen-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.68.0.bazel"), + sha256 = "841476ab6d3530136b5162b64a2c6969d68141843ad2fd59126e5ea84fd9b5fe", + strip_prefix = "cranelift-bforest-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.72.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.68.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.72.0/download", type = "tar.gz", - sha256 = "4ef2b2768568306540f4c8db3acce9105534d34c4a1e440529c1e702d7f8c8d7", - strip_prefix = "cranelift-codegen-meta-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.68.0.bazel"), + sha256 = "2b5619cef8d19530298301f91e9a0390d369260799a3d8dd01e28fc88e53637a", + strip_prefix = "cranelift-codegen-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.72.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.68.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.72.0/download", type = "tar.gz", - sha256 = "6759012d6d19c4caec95793f052613e9d4113e925e7f14154defbac0f1d4c938", - strip_prefix = "cranelift-codegen-shared-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.68.0.bazel"), + sha256 = "2a319709b8267939155924114ea83f2a5b5af65ece3ac6f703d4735f3c66bb0d", + strip_prefix = "cranelift-codegen-meta-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.72.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.68.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.72.0/download", type = "tar.gz", - sha256 = "86badbce14e15f52a45b666b38abe47b204969dd7f8fb7488cb55dd46b361fa6", - strip_prefix = "cranelift-entity-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.68.0.bazel"), + sha256 = "15925b23cd3a448443f289d85a8f53f3cf7a80f0137aa53c8e3b01ae8aefaef7", + strip_prefix = "cranelift-codegen-shared-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.72.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.68.0/download", + name = "proxy_wasm_cpp_host__cranelift_entity__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.72.0/download", type = "tar.gz", - sha256 = "b608bb7656c554d0a4cf8f50c7a10b857e80306f6ff829ad6d468a7e2323c8d8", - strip_prefix = "cranelift-frontend-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.68.0.bazel"), + sha256 = "610cf464396c89af0f9f7c64b5aa90aa9e8812ac84084098f1565b40051bc415", + strip_prefix = "cranelift-entity-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.72.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.68.0/download", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.72.0/download", type = "tar.gz", - sha256 = "5246a1af14b7812ee4d94a3f0c4b295ec02c370c08b0ecc3dec512890fdad175", - strip_prefix = "cranelift-native-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.68.0.bazel"), + sha256 = "4d20c8bd4a1c41ded051734f0e33ad1d843a0adc98b9bd975ee6657e2c70cdc9", + strip_prefix = "cranelift-frontend-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.72.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_68_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.68.0/download", + name = "proxy_wasm_cpp_host__cranelift_native__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.72.0/download", type = "tar.gz", - sha256 = "8ef491714e82f9fb910547e2047a3b1c47c03861eca67540c5abd0416371a2ac", - strip_prefix = "cranelift-wasm-0.68.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.68.0.bazel"), + sha256 = "304e100df41f34a5a15291b37bfe0fd7abd0427a2c84195cc69578b4137f9099", + strip_prefix = "cranelift-native-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.72.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__cranelift_wasm__0_72_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.72.0/download", + type = "tar.gz", + sha256 = "4efd473b2917303957e0bfaea6ea9d08b8c93695bee015a611a2514ce5254abc", + strip_prefix = "cranelift-wasm-0.72.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.72.0.bazel"), ) maybe( @@ -253,12 +263,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__gimli__0_22_0", - url = "https://crates.io/api/v1/crates/gimli/0.22.0/download", + name = "proxy_wasm_cpp_host__getrandom__0_1_16", + url = "https://crates.io/api/v1/crates/getrandom/0.1.16/download", type = "tar.gz", - sha256 = "aaf91faf136cb47367fa430cd46e37a788775e7fa104f8b4bcb3861dc389b724", - strip_prefix = "gimli-0.22.0", - build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.22.0.bazel"), + sha256 = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce", + strip_prefix = "getrandom-0.1.16", + build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.1.16.bazel"), ) maybe( @@ -271,6 +281,26 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.23.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__glob__0_3_0", + url = "https://crates.io/api/v1/crates/glob/0.3.0/download", + type = "tar.gz", + sha256 = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574", + strip_prefix = "glob-0.3.0", + build_file = Label("//bazel/cargo/remote:BUILD.glob-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__hashbrown__0_9_1", + url = "https://crates.io/api/v1/crates/hashbrown/0.9.1/download", + type = "tar.gz", + sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04", + strip_prefix = "hashbrown-0.9.1", + build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.9.1.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__hermit_abi__0_1_18", @@ -293,22 +323,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__indexmap__1_1_0", - url = "https://crates.io/api/v1/crates/indexmap/1.1.0/download", + name = "proxy_wasm_cpp_host__indexmap__1_6_2", + url = "https://crates.io/api/v1/crates/indexmap/1.6.2/download", type = "tar.gz", - sha256 = "a4d6d89e0948bf10c08b9ecc8ac5b83f07f857ebe2c0cbe38de15b4e4f510356", - strip_prefix = "indexmap-1.1.0", - build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.1.0.bazel"), + sha256 = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3", + strip_prefix = "indexmap-1.6.2", + build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.6.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__itertools__0_9_0", - url = "https://crates.io/api/v1/crates/itertools/0.9.0/download", + name = "proxy_wasm_cpp_host__itertools__0_10_0", + url = "https://crates.io/api/v1/crates/itertools/0.10.0/download", type = "tar.gz", - sha256 = "284f18f85651fe11e8a991b2adb42cb078325c996ed026d994719efcfca1d54b", - strip_prefix = "itertools-0.9.0", - build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.9.0.bazel"), + sha256 = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319", + strip_prefix = "itertools-0.10.0", + build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.10.0.bazel"), ) maybe( @@ -323,12 +353,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_86", - url = "https://crates.io/api/v1/crates/libc/0.2.86/download", + name = "proxy_wasm_cpp_host__libc__0_2_92", + url = "https://crates.io/api/v1/crates/libc/0.2.92/download", type = "tar.gz", - sha256 = "b7282d924be3275cec7f6756ff4121987bc6481325397dde6ba3e7802b1a8b1c", - strip_prefix = "libc-0.2.86", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.86.bazel"), + sha256 = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714", + strip_prefix = "libc-0.2.92", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.92.bazel"), ) maybe( @@ -363,22 +393,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__memoffset__0_5_6", - url = "https://crates.io/api/v1/crates/memoffset/0.5.6/download", + name = "proxy_wasm_cpp_host__memoffset__0_6_3", + url = "https://crates.io/api/v1/crates/memoffset/0.6.3/download", type = "tar.gz", - sha256 = "043175f069eda7b85febe4a74abbaeff828d9f8b448515d3151a14a3542811aa", - strip_prefix = "memoffset-0.5.6", - build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.5.6.bazel"), + sha256 = "f83fb6581e8ed1f85fd45c116db8405483899489e38406156c25eb743554361d", + strip_prefix = "memoffset-0.6.3", + build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.6.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__miniz_oxide__0_4_3", - url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.3/download", + name = "proxy_wasm_cpp_host__miniz_oxide__0_4_4", + url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.4/download", type = "tar.gz", - sha256 = "0f2d26ec3309788e423cfbf68ad1800f061638098d76a83681af979dc4eda19d", - strip_prefix = "miniz_oxide-0.4.3", - build_file = Label("//bazel/cargo/remote:BUILD.miniz_oxide-0.4.3.bazel"), + sha256 = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b", + strip_prefix = "miniz_oxide-0.4.4", + build_file = Label("//bazel/cargo/remote:BUILD.miniz_oxide-0.4.4.bazel"), ) maybe( @@ -391,16 +421,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.more-asserts-0.2.1.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__object__0_21_1", - url = "https://crates.io/api/v1/crates/object/0.21.1/download", - type = "tar.gz", - sha256 = "37fd5004feb2ce328a52b0b3d01dbf4ffff72583493900ed15f22d4111c51693", - strip_prefix = "object-0.21.1", - build_file = Label("//bazel/cargo/remote:BUILD.object-0.21.1.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__object__0_23_0", @@ -413,22 +433,42 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__once_cell__1_5_2", - url = "https://crates.io/api/v1/crates/once_cell/1.5.2/download", + name = "proxy_wasm_cpp_host__once_cell__1_7_2", + url = "https://crates.io/api/v1/crates/once_cell/1.7.2/download", + type = "tar.gz", + sha256 = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3", + strip_prefix = "once_cell-1.7.2", + build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.7.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__paste__1_0_5", + url = "https://crates.io/api/v1/crates/paste/1.0.5/download", type = "tar.gz", - sha256 = "13bd41f508810a131401606d54ac32a467c97172d74ba7662562ebba5ad07fa0", - strip_prefix = "once_cell-1.5.2", - build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.5.2.bazel"), + sha256 = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58", + strip_prefix = "paste-1.0.5", + build_file = Label("//bazel/cargo/remote:BUILD.paste-1.0.5.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__proc_macro2__1_0_24", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.24/download", + name = "proxy_wasm_cpp_host__ppv_lite86__0_2_10", + url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.10/download", type = "tar.gz", - sha256 = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71", - strip_prefix = "proc-macro2-1.0.24", - build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.24.bazel"), + sha256 = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857", + strip_prefix = "ppv-lite86-0.2.10", + build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.10.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__proc_macro2__1_0_26", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.26/download", + type = "tar.gz", + sha256 = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec", + strip_prefix = "proc-macro2-1.0.26", + build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.26.bazel"), ) maybe( @@ -453,12 +493,42 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__raw_cpuid__7_0_4", - url = "https://crates.io/api/v1/crates/raw-cpuid/7.0.4/download", + name = "proxy_wasm_cpp_host__rand__0_7_3", + url = "https://crates.io/api/v1/crates/rand/0.7.3/download", type = "tar.gz", - sha256 = "beb71f708fe39b2c5e98076204c3cc094ee5a4c12c4cdb119a2b72dc34164f41", - strip_prefix = "raw-cpuid-7.0.4", - build_file = Label("//bazel/cargo/remote:BUILD.raw-cpuid-7.0.4.bazel"), + sha256 = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03", + strip_prefix = "rand-0.7.3", + build_file = Label("//bazel/cargo/remote:BUILD.rand-0.7.3.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__rand_chacha__0_2_2", + url = "https://crates.io/api/v1/crates/rand_chacha/0.2.2/download", + type = "tar.gz", + sha256 = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402", + strip_prefix = "rand_chacha-0.2.2", + build_file = Label("//bazel/cargo/remote:BUILD.rand_chacha-0.2.2.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__rand_core__0_5_1", + url = "https://crates.io/api/v1/crates/rand_core/0.5.1/download", + type = "tar.gz", + sha256 = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19", + strip_prefix = "rand_core-0.5.1", + build_file = Label("//bazel/cargo/remote:BUILD.rand_core-0.5.1.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__rand_hc__0_2_0", + url = "https://crates.io/api/v1/crates/rand_hc/0.2.0/download", + type = "tar.gz", + sha256 = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c", + strip_prefix = "rand_hc-0.2.0", + build_file = Label("//bazel/cargo/remote:BUILD.rand_hc-0.2.0.bazel"), ) maybe( @@ -473,22 +543,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__regex__1_4_3", - url = "https://crates.io/api/v1/crates/regex/1.4.3/download", + name = "proxy_wasm_cpp_host__regex__1_4_5", + url = "https://crates.io/api/v1/crates/regex/1.4.5/download", type = "tar.gz", - sha256 = "d9251239e129e16308e70d853559389de218ac275b515068abc96829d05b948a", - strip_prefix = "regex-1.4.3", - build_file = Label("//bazel/cargo/remote:BUILD.regex-1.4.3.bazel"), + sha256 = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19", + strip_prefix = "regex-1.4.5", + build_file = Label("//bazel/cargo/remote:BUILD.regex-1.4.5.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__regex_syntax__0_6_22", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.22/download", + name = "proxy_wasm_cpp_host__regex_syntax__0_6_23", + url = "https://crates.io/api/v1/crates/regex-syntax/0.6.23/download", type = "tar.gz", - sha256 = "b5eb417147ba9860a96cfe72a0b93bf88fee1744b5636ec99ab20c1aa9376581", - strip_prefix = "regex-syntax-0.6.22", - build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.22.bazel"), + sha256 = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548", + strip_prefix = "regex-syntax-0.6.23", + build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.23.bazel"), ) maybe( @@ -523,52 +593,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__rustc_version__0_2_3", - url = "https://crates.io/api/v1/crates/rustc_version/0.2.3/download", - type = "tar.gz", - sha256 = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a", - strip_prefix = "rustc_version-0.2.3", - build_file = Label("//bazel/cargo/remote:BUILD.rustc_version-0.2.3.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__semver__0_9_0", - url = "https://crates.io/api/v1/crates/semver/0.9.0/download", - type = "tar.gz", - sha256 = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403", - strip_prefix = "semver-0.9.0", - build_file = Label("//bazel/cargo/remote:BUILD.semver-0.9.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__semver_parser__0_7_0", - url = "https://crates.io/api/v1/crates/semver-parser/0.7.0/download", - type = "tar.gz", - sha256 = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3", - strip_prefix = "semver-parser-0.7.0", - build_file = Label("//bazel/cargo/remote:BUILD.semver-parser-0.7.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__serde__1_0_123", - url = "https://crates.io/api/v1/crates/serde/1.0.123/download", + name = "proxy_wasm_cpp_host__serde__1_0_125", + url = "https://crates.io/api/v1/crates/serde/1.0.125/download", type = "tar.gz", - sha256 = "92d5161132722baa40d802cc70b15262b98258453e85e5d1d365c757c73869ae", - strip_prefix = "serde-1.0.123", - build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.123.bazel"), + sha256 = "558dc50e1a5a5fa7112ca2ce4effcb321b0300c0d4ccf0776a9f60cd89031171", + strip_prefix = "serde-1.0.125", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.125.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__serde_derive__1_0_123", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.123/download", + name = "proxy_wasm_cpp_host__serde_derive__1_0_125", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.125/download", type = "tar.gz", - sha256 = "9391c295d64fc0abb2c556bad848f33cb8296276b1ad2677d1ae1ace4f258f31", - strip_prefix = "serde_derive-1.0.123", - build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.123.bazel"), + sha256 = "b093b7a2bb58203b5da3056c05b4ec1fed827dcfdb37347a8841695263b3d06d", + strip_prefix = "serde_derive-1.0.125", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.125.bazel"), ) maybe( @@ -593,12 +633,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_60", - url = "https://crates.io/api/v1/crates/syn/1.0.60/download", + name = "proxy_wasm_cpp_host__syn__1_0_68", + url = "https://crates.io/api/v1/crates/syn/1.0.68/download", type = "tar.gz", - sha256 = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081", - strip_prefix = "syn-1.0.60", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.60.bazel"), + sha256 = "3ce15dd3ed8aa2f8eeac4716d6ef5ab58b6b9256db41d7e1a0224c2788e8fd87", + strip_prefix = "syn-1.0.68", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.68.bazel"), ) maybe( @@ -623,32 +663,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__thiserror__1_0_23", - url = "https://crates.io/api/v1/crates/thiserror/1.0.23/download", - type = "tar.gz", - sha256 = "76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146", - strip_prefix = "thiserror-1.0.23", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.23.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__thiserror_impl__1_0_23", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.23/download", + name = "proxy_wasm_cpp_host__thiserror__1_0_24", + url = "https://crates.io/api/v1/crates/thiserror/1.0.24/download", type = "tar.gz", - sha256 = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1", - strip_prefix = "thiserror-impl-1.0.23", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.23.bazel"), + sha256 = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e", + strip_prefix = "thiserror-1.0.24", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.24.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__thread_local__1_1_3", - url = "https://crates.io/api/v1/crates/thread_local/1.1.3/download", + name = "proxy_wasm_cpp_host__thiserror_impl__1_0_24", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.24/download", type = "tar.gz", - sha256 = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd", - strip_prefix = "thread_local-1.1.3", - build_file = Label("//bazel/cargo/remote:BUILD.thread_local-1.1.3.bazel"), + sha256 = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0", + strip_prefix = "thiserror-impl-1.0.24", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.24.bazel"), ) maybe( @@ -663,111 +693,111 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmparser__0_57_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.57.0/download", + name = "proxy_wasm_cpp_host__wasi__0_9_0_wasi_snapshot_preview1", + url = "https://crates.io/api/v1/crates/wasi/0.9.0+wasi-snapshot-preview1/download", type = "tar.gz", - sha256 = "32fddd575d477c6e9702484139cf9f23dcd554b06d185ed0f56c857dd3a47aa6", - strip_prefix = "wasmparser-0.57.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.57.0.bazel"), + sha256 = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519", + strip_prefix = "wasi-0.9.0+wasi-snapshot-preview1", + build_file = Label("//bazel/cargo/remote:BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmparser__0_65_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.65.0/download", + name = "proxy_wasm_cpp_host__wasmparser__0_76_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.76.0/download", type = "tar.gz", - sha256 = "87cc2fe6350834b4e528ba0901e7aa405d78b89dc1fa3145359eb4de0e323fcf", - strip_prefix = "wasmparser-0.65.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.65.0.bazel"), + sha256 = "755a9a4afe3f6cccbbe6d7e965eef44cf260b001f93e547eba84255c1d0187d8", + strip_prefix = "wasmparser-0.76.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.76.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.25.0/download", type = "tar.gz", - sha256 = "7a4d945221f4d29feecdac80514c1ef1527dfcdcc7715ff1b4a5161fe5c8ebab", - strip_prefix = "wasmtime-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.21.0.bazel"), + sha256 = "26ea2ad49bb047e10ca292f55cd67040bef14b676d07e7b04ed65fd312d52ece", + strip_prefix = "wasmtime-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.25.0.bazel"), ) maybe( new_git_repository, name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "ab1958434a2b7a5b07d197e71b88200d9e06e026", + commit = "a8aaf812ef675e92f717893fc845db2dc5018128", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.25.0/download", type = "tar.gz", - sha256 = "f1e55c17317922951a9bdd5547b527d2cc7be3cea118dc17ad7c05a4c8e67c7a", - strip_prefix = "wasmtime-cranelift-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.21.0.bazel"), + sha256 = "5e769b80abbb89255926f69ba37085f7dd6608c980134838c3c89d7bf6e776bc", + strip_prefix = "wasmtime-cranelift-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.25.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_debug__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime-debug/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime_debug__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime-debug/0.25.0/download", type = "tar.gz", - sha256 = "a576daa6b228f8663c38bede2f7f23d094d578b0061c39fc122cc28eee1e2c18", - strip_prefix = "wasmtime-debug-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-debug-0.21.0.bazel"), + sha256 = "38501788c936a4932b0ddf61135963a4b7d1f549f63a6908ae56a1c86d74fc7b", + strip_prefix = "wasmtime-debug-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-debug-0.25.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.25.0/download", type = "tar.gz", - sha256 = "396ceda32fd67205235c098e092a85716942883bfd2c773c250cf5f2457b8307", - strip_prefix = "wasmtime-environ-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.21.0.bazel"), + sha256 = "fae793ea1387b2fede277d209bb27285366df58f0a3ae9d59e58a7941dce60fa", + strip_prefix = "wasmtime-environ-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.25.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.25.0/download", type = "tar.gz", - sha256 = "b2a45f6dd5bdf12d41f10100482d58d9cb160a85af5884dfd41a2861af4b0f50", - strip_prefix = "wasmtime-jit-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.21.0.bazel"), + sha256 = "9b3bd0fae8396473a68a1491559d61776127bb9bea75c9a6a6c038ae4a656eb2", + strip_prefix = "wasmtime-jit-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.25.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_obj__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime-obj/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime_obj__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime-obj/0.25.0/download", type = "tar.gz", - sha256 = "a84aebe3b4331a603625f069944192fa3f6ffe499802ef91273fd73af9a8087d", - strip_prefix = "wasmtime-obj-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-obj-0.21.0.bazel"), + sha256 = "a79fa098a3be8fabc50f5be60f8e47694d569afdc255de37850fc80295485012", + strip_prefix = "wasmtime-obj-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-obj-0.25.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_profiling__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime_profiling__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.25.0/download", type = "tar.gz", - sha256 = "25f27fda1b81d701f7ea1da9ae51b5b62d4cdc37ca5b93eae771ca2cde53b70c", - strip_prefix = "wasmtime-profiling-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-profiling-0.21.0.bazel"), + sha256 = "d81e2106efeef4c01917fd16956a91d39bb78c07cf97027abdba9ca98da3f258", + strip_prefix = "wasmtime-profiling-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-profiling-0.25.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_21_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.21.0/download", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_25_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.25.0/download", type = "tar.gz", - sha256 = "e452b8b3b32dbf1b831f05003a740581cc2c3c2122f5806bae9f167495e1e66c", - strip_prefix = "wasmtime-runtime-0.21.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.21.0.bazel"), + sha256 = "f747c656ca4680cad7846ae91c57d03f2dd4f4170da77a700df4e21f0d805378", + strip_prefix = "wasmtime-runtime-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.25.0.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel b/bazel/cargo/remote/BUILD.adler-1.0.2.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.adler-0.2.3.bazel rename to bazel/cargo/remote/BUILD.adler-1.0.2.bazel index 30a2d3ae6..446473ed4 100644 --- a/bazel/cargo/remote/BUILD.adler-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.adler-1.0.2.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.3", + version = "1.0.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel rename to bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel index 15957d4d0..11382ed44 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.38.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.38", + version = "1.0.40", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.38", + version = "1.0.40", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index c6336c186..0efa5c291 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel index ca909a6e1..073acc80a 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel @@ -65,8 +65,8 @@ rust_library( deps = [ "@proxy_wasm_cpp_host__addr2line__0_14_1//:addr2line", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", - "@proxy_wasm_cpp_host__miniz_oxide__0_4_3//:miniz_oxide", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", ] + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.2.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.bincode-1.3.1.bazel rename to bazel/cargo/remote/BUILD.bincode-1.3.2.bazel index 1fa6c006c..5eb8d55cd 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.1.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.2.bazel @@ -46,11 +46,11 @@ rust_library( "cargo-raze", "manual", ], - version = "1.3.1", + version = "1.3.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__byteorder__1_4_2//:byteorder", - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel b/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel new file mode 100644 index 000000000..a86dd1923 --- /dev/null +++ b/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel @@ -0,0 +1,88 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "byteorder_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.4", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "byteorder", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.4", + # buildifier: leave-alone + deps = [ + ":byteorder_build_script", + ], +) diff --git a/bazel/cargo/remote/BUILD.cc-1.0.66.bazel b/bazel/cargo/remote/BUILD.cc-1.0.67.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cc-1.0.66.bazel rename to bazel/cargo/remote/BUILD.cc-1.0.67.bazel index 9445d1774..308b021de 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.66.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.67.bazel @@ -47,7 +47,7 @@ rust_binary( "cargo-raze", "manual", ], - version = "1.0.66", + version = "1.0.67", # buildifier: leave-alone deps = [ ":cc", @@ -70,7 +70,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.66", + version = "1.0.67", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel new file mode 100644 index 000000000..89ff66eb7 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel @@ -0,0 +1,118 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "cpp_demangle_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__glob__0_3_0//:glob", + ], +) + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_afl_runner", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/bin/afl_runner.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + # buildifier: leave-alone + deps = [ + ":cpp_demangle", + ":cpp_demangle_build_script", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + ], +) + +# Unsupported target "cppfilt" with type "example" omitted + +rust_library( + name = "cpp_demangle", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.2", + # buildifier: leave-alone + deps = [ + ":cpp_demangle_build_script", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.72.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-bforest-0.72.0.bazel index 43bff94ee..4271ac51d 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.72.0.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.72.0.bazel similarity index 79% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-0.72.0.bazel index 6632d3260..6158e438b 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.72.0.bazel @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_68_0//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_72_0//:cranelift_codegen_meta", ], ) @@ -87,20 +87,20 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__byteorder__1_4_2//:byteorder", - "@proxy_wasm_cpp_host__cranelift_bforest__0_68_0//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host__cranelift_bforest__0_72_0//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_72_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__regalloc__0_0_31//:regalloc", - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.72.0.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.72.0.bazel index da39e8a2c..afb4d8151 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.72.0.bazel @@ -46,10 +46,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_68_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_72_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.72.0.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.72.0.bazel index e765ab5c0..5d2a856f2 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.72.0.bazel @@ -34,6 +34,8 @@ rust_library( name = "cranelift_codegen_shared", srcs = glob(["**/*.rs"]), crate_features = [ + "enable-serde", + "serde", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -46,8 +48,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", # buildifier: leave-alone deps = [ + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.72.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-entity-0.72.0.bazel index 2ffda6a14..8980a2438 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.72.0.bazel @@ -48,9 +48,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.72.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-frontend-0.72.0.bazel index f707cc67c..776af4898 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.72.0.bazel @@ -48,10 +48,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.72.0.bazel new file mode 100644 index 000000000..ead9ddf18 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.72.0.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_native", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.72.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + ], +) diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.72.0.bazel similarity index 73% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-wasm-0.72.0.bazel index 8830c1749..d250ff94e 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.72.0.bazel @@ -50,18 +50,18 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.72.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_68_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__itertools__0_9_0//:itertools", + "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_72_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__itertools__0_10_0//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel index 3a58f22e2..a60ce2e4f 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel @@ -57,7 +57,7 @@ rust_library( "@proxy_wasm_cpp_host__atty__0_2_14//:atty", "@proxy_wasm_cpp_host__humantime__2_1_0//:humantime", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__regex__1_4_3//:regex", + "@proxy_wasm_cpp_host__regex__1_4_5//:regex", "@proxy_wasm_cpp_host__termcolor__1_1_2//:termcolor", ], ) diff --git a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel b/bazel/cargo/remote/BUILD.getrandom-0.1.16.bazel similarity index 61% rename from bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel rename to bazel/cargo/remote/BUILD.getrandom-0.1.16.bazel index 3c916211e..4266e9736 100644 --- a/bazel/cargo/remote/BUILD.raw-cpuid-7.0.4.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.1.16.bazel @@ -25,7 +25,7 @@ package(default_visibility = [ ]) licenses([ - "notice", # MIT from expression "MIT" + "notice", # MIT from expression "MIT OR Apache-2.0" ]) # Generated Targets @@ -36,15 +36,16 @@ load( ) cargo_build_script( - name = "raw_cpuid_build_script", + name = "getrandom_build_script", srcs = glob(["**/*.rs"]), build_script_env = { }, crate_features = [ + "std", ], crate_root = "build.rs", data = glob(["**"]), - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -52,62 +53,17 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "7.0.4", + version = "0.1.16", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_66//:cc", - "@proxy_wasm_cpp_host__rustc_version__0_2_3//:rustc_version", ] + selects.with_or({ - # cfg(unix) + # cfg(target_os = "wasi") ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-wasi", ): [ ], "//conditions:default": [], - }), -) - -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_cpuid", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/bin/cpuid.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "7.0.4", - # buildifier: leave-alone - deps = [ - ":raw_cpuid", - ":raw_cpuid_build_script", - "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", - ] + selects.with_or({ + }) + selects.with_or({ # cfg(unix) ( "@rules_rust//rust/platform:aarch64-apple-darwin", @@ -129,26 +85,30 @@ rust_binary( ): [ ], "//conditions:default": [], + }) + selects.with_or({ + # wasm32-unknown-unknown + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + ): [ + ], + "//conditions:default": [], }), ) -# Unsupported target "cache" with type "example" omitted - -# Unsupported target "topology" with type "example" omitted - -# Unsupported target "tsc_frequency" with type "example" omitted +# Unsupported target "mod" with type "bench" omitted rust_library( - name = "raw_cpuid", + name = "getrandom", srcs = glob(["**/*.rs"]), aliases = { }, crate_features = [ + "std", ], crate_root = "src/lib.rs", crate_type = "lib", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -156,12 +116,20 @@ rust_library( "cargo-raze", "manual", ], - version = "7.0.4", + version = "0.1.16", # buildifier: leave-alone deps = [ - ":raw_cpuid_build_script", - "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", + ":getrandom_build_script", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", ] + selects.with_or({ + # cfg(target_os = "wasi") + ( + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + "@proxy_wasm_cpp_host__wasi__0_9_0_wasi_snapshot_preview1//:wasi", + ], + "//conditions:default": [], + }) + selects.with_or({ # cfg(unix) ( "@rules_rust//rust/platform:aarch64-apple-darwin", @@ -180,8 +148,18 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # wasm32-unknown-unknown + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", ): [ ], "//conditions:default": [], }), ) + +# Unsupported target "common" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel deleted file mode 100644 index 91f5d00c4..000000000 --- a/bazel/cargo/remote/BUILD.gimli-0.22.0.bazel +++ /dev/null @@ -1,78 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "dwarf-validate" with type "example" omitted - -# Unsupported target "dwarfdump" with type "example" omitted - -# Unsupported target "simple" with type "example" omitted - -# Unsupported target "simple_line" with type "example" omitted - -rust_library( - name = "gimli", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "endian-reader", - "fallible-iterator", - "indexmap", - "read", - "stable_deref_trait", - "std", - "write", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.22.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", - "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", - "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", - ], -) - -# Unsupported target "convert_self" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel index cf04b8a58..426051935 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel @@ -44,7 +44,14 @@ rust_library( name = "gimli", srcs = glob(["**/*.rs"]), crate_features = [ + "default", + "endian-reader", + "fallible-iterator", + "indexmap", "read", + "stable_deref_trait", + "std", + "write", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -60,6 +67,9 @@ rust_library( version = "0.23.0", # buildifier: leave-alone deps = [ + "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", + "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", + "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel b/bazel/cargo/remote/BUILD.glob-0.3.0.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel rename to bazel/cargo/remote/BUILD.glob-0.3.0.bazel index 88f645b40..8da73ad15 100644 --- a/bazel/cargo/remote/BUILD.semver-parser-0.7.0.bazel +++ b/bazel/cargo/remote/BUILD.glob-0.3.0.bazel @@ -31,7 +31,7 @@ licenses([ # Generated Targets rust_library( - name = "semver_parser", + name = "glob", srcs = glob(["**/*.rs"]), crate_features = [ ], @@ -46,8 +46,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.7.0", + version = "0.3.0", # buildifier: leave-alone deps = [ ], ) + +# Unsupported target "glob-std" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel b/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel similarity index 74% rename from bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel rename to bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel index 089395256..e1feaa496 100644 --- a/bazel/cargo/remote/BUILD.thread_local-1.1.3.bazel +++ b/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel @@ -30,12 +30,13 @@ licenses([ # Generated Targets -# Unsupported target "thread_local" with type "bench" omitted +# Unsupported target "bench" with type "bench" omitted rust_library( - name = "thread_local", + name = "hashbrown", srcs = glob(["**/*.rs"]), crate_features = [ + "raw", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -48,9 +49,16 @@ rust_library( "cargo-raze", "manual", ], - version = "1.1.3", + version = "0.9.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__once_cell__1_5_2//:once_cell", ], ) + +# Unsupported target "hasher" with type "test" omitted + +# Unsupported target "rayon" with type "test" omitted + +# Unsupported target "serde" with type "test" omitted + +# Unsupported target "set" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel index 58496fce7..478e2c5fa 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel @@ -50,6 +50,6 @@ rust_library( version = "0.1.18", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel deleted file mode 100644 index 89085623e..000000000 --- a/bazel/cargo/remote/BUILD.indexmap-1.1.0.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "faststring" with type "bench" omitted - -rust_library( - name = "indexmap", - srcs = glob(["**/*.rs"]), - crate_features = [ - "serde", - "serde-1", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.1.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", - ], -) - -# Unsupported target "equivalent_trait" with type "test" omitted - -# Unsupported target "quick" with type "test" omitted - -# Unsupported target "serde" with type "test" omitted - -# Unsupported target "tests" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel b/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel new file mode 100644 index 000000000..0c68b4e51 --- /dev/null +++ b/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel @@ -0,0 +1,101 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "indexmap_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "serde", + "serde-1", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.6.2", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", + ], +) + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "faststring" with type "bench" omitted + +rust_library( + name = "indexmap", + srcs = glob(["**/*.rs"]), + crate_features = [ + "serde", + "serde-1", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.6.2", + # buildifier: leave-alone + deps = [ + ":indexmap_build_script", + "@proxy_wasm_cpp_host__hashbrown__0_9_1//:hashbrown", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + ], +) + +# Unsupported target "equivalent_trait" with type "test" omitted + +# Unsupported target "macros_full_path" with type "test" omitted + +# Unsupported target "quick" with type "test" omitted + +# Unsupported target "tests" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.itertools-0.9.0.bazel rename to bazel/cargo/remote/BUILD.itertools-0.10.0.bazel index e0f7777cc..1fbad6cf4 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel @@ -32,10 +32,14 @@ licenses([ # Unsupported target "bench1" with type "bench" omitted +# Unsupported target "combinations" with type "bench" omitted + # Unsupported target "combinations_with_replacement" with type "bench" omitted # Unsupported target "fold_specialization" with type "bench" omitted +# Unsupported target "powerset" with type "bench" omitted + # Unsupported target "tree_fold1" with type "bench" omitted # Unsupported target "tuple_combinations" with type "bench" omitted @@ -49,6 +53,7 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "default", + "use_alloc", "use_std", ], crate_root = "src/lib.rs", @@ -62,7 +67,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.9.0", + version = "0.10.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__either__1_6_1//:either", @@ -73,6 +78,8 @@ rust_library( # Unsupported target "fold_specialization" with type "test" omitted +# Unsupported target "macros_hygiene" with type "test" omitted + # Unsupported target "merge_join" with type "test" omitted # Unsupported target "peeking_take_while" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.libc-0.2.86.bazel b/bazel/cargo/remote/BUILD.libc-0.2.92.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.libc-0.2.86.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.92.bazel index f9726919d..8f3e6a17c 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.86.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.92.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.86", + version = "0.2.92", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.86", + version = "0.2.92", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 84efc35fc..b526f8766 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -63,7 +63,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel b/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel rename to bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel index 69be43421..23aeecc47 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.5.6.bazel +++ b/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel @@ -53,7 +53,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.5.6", + version = "0.6.3", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", @@ -77,7 +77,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.5.6", + version = "0.6.3", # buildifier: leave-alone deps = [ ":memoffset_build_script", diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel rename to bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel index 19df4edd4..13017071c 100644 --- a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.3.bazel +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel @@ -52,7 +52,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.4.3", + version = "0.4.4", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", @@ -75,10 +75,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.4.3", + version = "0.4.4", # buildifier: leave-alone deps = [ ":miniz_oxide_build_script", - "@proxy_wasm_cpp_host__adler__0_2_3//:adler", + "@proxy_wasm_cpp_host__adler__1_0_2//:adler", ], ) diff --git a/bazel/cargo/remote/BUILD.object-0.21.1.bazel b/bazel/cargo/remote/BUILD.object-0.21.1.bazel deleted file mode 100644 index c6a9bfac5..000000000 --- a/bazel/cargo/remote/BUILD.object-0.21.1.bazel +++ /dev/null @@ -1,80 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "nm" with type "example" omitted - -# Unsupported target "objcopy" with type "example" omitted - -# Unsupported target "objdump" with type "example" omitted - -rust_library( - name = "object", - srcs = glob(["**/*.rs"]), - crate_features = [ - "coff", - "crc32fast", - "elf", - "indexmap", - "macho", - "pe", - "read", - "read_core", - "std", - "unaligned", - "wasm", - "wasmparser", - "write", - "write_core", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.21.1", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__crc32fast__1_2_1//:crc32fast", - "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", - "@proxy_wasm_cpp_host__wasmparser__0_57_0//:wasmparser", - ], -) - -# Unsupported target "integration" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.object-0.23.0.bazel b/bazel/cargo/remote/BUILD.object-0.23.0.bazel index 61c31a0db..95cd3cbe9 100644 --- a/bazel/cargo/remote/BUILD.object-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.object-0.23.0.bazel @@ -48,11 +48,16 @@ rust_library( crate_features = [ "archive", "coff", + "crc32fast", "elf", + "indexmap", "macho", "pe", "read_core", + "std", "unaligned", + "write", + "write_core", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -68,6 +73,8 @@ rust_library( version = "0.23.0", # buildifier: leave-alone deps = [ + "@proxy_wasm_cpp_host__crc32fast__1_2_1//:crc32fast", + "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", ], ) diff --git a/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel b/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel rename to bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel index 292e26316..46211fd2a 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.5.2.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel @@ -50,6 +50,7 @@ rust_library( crate_features = [ "alloc", "default", + "race", "std", ], crate_root = "src/lib.rs", @@ -63,7 +64,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.5.2", + version = "1.7.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel b/bazel/cargo/remote/BUILD.paste-1.0.5.bazel similarity index 70% rename from bazel/cargo/remote/BUILD.semver-0.9.0.bazel rename to bazel/cargo/remote/BUILD.paste-1.0.5.bazel index d8f15a632..331dd436f 100644 --- a/bazel/cargo/remote/BUILD.semver-0.9.0.bazel +++ b/bazel/cargo/remote/BUILD.paste-1.0.5.bazel @@ -31,15 +31,14 @@ licenses([ # Generated Targets rust_library( - name = "semver", + name = "paste", srcs = glob(["**/*.rs"]), crate_features = [ - "default", ], crate_root = "src/lib.rs", - crate_type = "lib", + crate_type = "proc-macro", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -47,15 +46,18 @@ rust_library( "cargo-raze", "manual", ], - version = "0.9.0", + version = "1.0.5", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__semver_parser__0_7_0//:semver_parser", ], ) -# Unsupported target "deprecation" with type "test" omitted +# Unsupported target "compiletest" with type "test" omitted -# Unsupported target "regression" with type "test" omitted +# Unsupported target "test_attr" with type "test" omitted -# Unsupported target "serde" with type "test" omitted +# Unsupported target "test_doc" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_item" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel rename to bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel index 814174735..454797f52 100644 --- a/bazel/cargo/remote/BUILD.rustc_version-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel @@ -31,14 +31,16 @@ licenses([ # Generated Targets rust_library( - name = "rustc_version", + name = "ppv_lite86", srcs = glob(["**/*.rs"]), crate_features = [ + "simd", + "std", ], crate_root = "src/lib.rs", crate_type = "lib", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -46,9 +48,8 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.3", + version = "0.2.10", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__semver__0_9_0//:semver", ], ) diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel rename to bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel index 2d755a942..0a202087b 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.24", + version = "1.0.26", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.24", + version = "1.0.26", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", diff --git a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel index 3d32b5ab0..61cb6c741 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel @@ -55,7 +55,7 @@ cargo_build_script( version = "0.1.12", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_66//:cc", + "@proxy_wasm_cpp_host__cc__1_0_67//:cc", ], ) diff --git a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel index 1d2156e1f..644e3b3e1 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel @@ -51,7 +51,7 @@ rust_library( version = "1.0.9", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel b/bazel/cargo/remote/BUILD.rand-0.7.3.bazel similarity index 55% rename from bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel rename to bazel/cargo/remote/BUILD.rand-0.7.3.bazel index e97f634f6..0f7329d5e 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.68.0.bazel +++ b/bazel/cargo/remote/BUILD.rand-0.7.3.bazel @@ -25,18 +25,35 @@ package(default_visibility = [ ]) licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" + "notice", # MIT from expression "MIT OR Apache-2.0" ]) # Generated Targets +# Unsupported target "generators" with type "bench" omitted + +# Unsupported target "misc" with type "bench" omitted + +# Unsupported target "seq" with type "bench" omitted + +# Unsupported target "weighted" with type "bench" omitted + +# Unsupported target "monte-carlo" with type "example" omitted + +# Unsupported target "monty-hall" with type "example" omitted + rust_library( - name = "cranelift_native", + name = "rand", srcs = glob(["**/*.rs"]), aliases = { + "@proxy_wasm_cpp_host__getrandom__0_1_16//:getrandom": "getrandom_package", }, crate_features = [ + "alloc", "default", + "getrandom", + "getrandom_package", + "libc", "std", ], crate_root = "src/lib.rs", @@ -50,27 +67,33 @@ rust_library( "cargo-raze", "manual", ], - version = "0.68.0", + version = "0.7.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__getrandom__0_1_16//:getrandom", + "@proxy_wasm_cpp_host__rand_chacha__0_2_2//:rand_chacha", + "@proxy_wasm_cpp_host__rand_core__0_5_1//:rand_core", ] + selects.with_or({ - # cfg(any(target_arch = "x86", target_arch = "x86_64")) + # cfg(unix) ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__raw_cpuid__7_0_4//:raw_cpuid", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.2.2.bazel b/bazel/cargo/remote/BUILD.rand_chacha-0.2.2.bazel new file mode 100644 index 000000000..ed893b572 --- /dev/null +++ b/bazel/cargo/remote/BUILD.rand_chacha-0.2.2.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "rand_chacha", + srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.2", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__ppv_lite86__0_2_10//:ppv_lite86", + "@proxy_wasm_cpp_host__rand_core__0_5_1//:rand_core", + ], +) diff --git a/bazel/cargo/remote/BUILD.rand_core-0.5.1.bazel b/bazel/cargo/remote/BUILD.rand_core-0.5.1.bazel new file mode 100644 index 000000000..302278bcf --- /dev/null +++ b/bazel/cargo/remote/BUILD.rand_core-0.5.1.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "rand_core", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "getrandom", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.5.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__getrandom__0_1_16//:getrandom", + ], +) diff --git a/bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel b/bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel new file mode 100644 index 000000000..a8ec6aae2 --- /dev/null +++ b/bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "rand_hc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__rand_core__0_5_1//:rand_core", + ], +) diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel index 72a91eab8..3f0346cfe 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -35,6 +35,8 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "default", + "enable-serde", + "serde", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -52,6 +54,7 @@ rust_library( deps = [ "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__rustc_hash__1_1_0//:rustc_hash", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-1.4.3.bazel b/bazel/cargo/remote/BUILD.regex-1.4.5.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.regex-1.4.3.bazel rename to bazel/cargo/remote/BUILD.regex-1.4.5.bazel index dd4b0da22..240c1dfe2 100644 --- a/bazel/cargo/remote/BUILD.regex-1.4.3.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.4.5.bazel @@ -54,7 +54,6 @@ rust_library( "perf-inline", "perf-literal", "std", - "thread_local", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -67,13 +66,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.4.3", + version = "1.4.5", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__aho_corasick__0_7_15//:aho_corasick", "@proxy_wasm_cpp_host__memchr__2_3_4//:memchr", - "@proxy_wasm_cpp_host__regex_syntax__0_6_22//:regex_syntax", - "@proxy_wasm_cpp_host__thread_local__1_1_3//:thread_local", + "@proxy_wasm_cpp_host__regex_syntax__0_6_23//:regex_syntax", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.23.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel rename to bazel/cargo/remote/BUILD.regex-syntax-0.6.23.bazel index dd94b7b74..6228437fc 100644 --- a/bazel/cargo/remote/BUILD.regex-syntax-0.6.22.bazel +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.23.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.6.22", + version = "0.6.23", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index 817aee515..e524f23ac 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -52,7 +52,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/remote/BUILD.serde-1.0.123.bazel b/bazel/cargo/remote/BUILD.serde-1.0.125.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.serde-1.0.123.bazel rename to bazel/cargo/remote/BUILD.serde-1.0.125.bazel index b67d15fc9..6a5d3585e 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.123.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.125.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.123", + version = "1.0.125", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@proxy_wasm_cpp_host__serde_derive__1_0_123//:serde_derive", + "@proxy_wasm_cpp_host__serde_derive__1_0_125//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -85,7 +85,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.123", + version = "1.0.125", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.125.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel rename to bazel/cargo/remote/BUILD.serde_derive-1.0.125.bazel index 17077f87c..6af1ed775 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.123.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.125.bazel @@ -53,7 +53,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.123", + version = "1.0.125", visibility = ["//visibility:private"], deps = [ ], @@ -76,12 +76,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.123", + version = "1.0.125", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_9//:quote", - "@proxy_wasm_cpp_host__syn__1_0_60//:syn", + "@proxy_wasm_cpp_host__syn__1_0_68//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.syn-1.0.60.bazel b/bazel/cargo/remote/BUILD.syn-1.0.68.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.syn-1.0.60.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.68.bazel index 85d5573d0..054bd1f98 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.60.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.68.bazel @@ -59,7 +59,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.60", + version = "1.0.68", visibility = ["//visibility:private"], deps = [ ], @@ -92,11 +92,11 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.60", + version = "1.0.68", # buildifier: leave-alone deps = [ ":syn_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_9//:quote", "@proxy_wasm_cpp_host__unicode_xid__0_2_1//:unicode_xid", ], diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel rename to bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel index e48429490..87cb8414f 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.23.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel @@ -40,7 +40,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host__thiserror_impl__1_0_23//:thiserror_impl", + "@proxy_wasm_cpp_host__thiserror_impl__1_0_24//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", @@ -49,7 +49,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.23", + version = "1.0.24", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel rename to bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel index 63089c753..01eab8cb9 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.23.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel @@ -46,11 +46,11 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.23", + version = "1.0.24", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_9//:quote", - "@proxy_wasm_cpp_host__syn__1_0_60//:syn", + "@proxy_wasm_cpp_host__syn__1_0_68//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel b/bazel/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel rename to bazel/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel index 2a49eb276..a963d2aed 100644 --- a/bazel/cargo/remote/BUILD.byteorder-1.4.2.bazel +++ b/bazel/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel @@ -25,15 +25,13 @@ package(default_visibility = [ ]) licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" ]) # Generated Targets -# Unsupported target "bench" with type "bench" omitted - rust_library( - name = "byteorder", + name = "wasi", srcs = glob(["**/*.rs"]), crate_features = [ "default", @@ -50,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.4.2", + version = "0.9.0+wasi-snapshot-preview1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel deleted file mode 100644 index c4c189a15..000000000 --- a/bazel/cargo/remote/BUILD.wasmparser-0.57.0.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "benchmark" with type "bench" omitted - -# Unsupported target "dump" with type "example" omitted - -# Unsupported target "simple" with type "example" omitted - -rust_library( - name = "wasmparser", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.57.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.76.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel rename to bazel/cargo/remote/BUILD.wasmparser-0.76.0.bazel index 3d490b520..9694b63ed 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.65.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.76.0.bazel @@ -50,7 +50,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.65.0", + version = "0.76.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.25.0.bazel similarity index 70% rename from bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-0.25.0.bazel index c0dd5fa32..eeb0a7437 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.25.0.bazel @@ -41,6 +41,9 @@ rust_library( crate_type = "lib", data = [], edition = "2018", + proc_macro_deps = [ + "@proxy_wasm_cpp_host__paste__1_0_5//:paste", + ], rustc_flags = [ "--cap-lints=allow", ], @@ -48,26 +51,27 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__backtrace__0_3_56//:backtrace", - "@proxy_wasm_cpp_host__bincode__1_3_1//:bincode", + "@proxy_wasm_cpp_host__bincode__1_3_2//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__cpp_demangle__0_3_2//:cpp_demangle", + "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_21_0//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_profiling__0_21_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_21_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_25_0//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_profiling__0_25_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_25_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index fec8e7912..449545fc4 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -49,7 +49,7 @@ rust_library( version = "0.19.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_24//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_9//:quote", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.25.0.bazel similarity index 72% rename from bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-cranelift-0.25.0.bazel index 86d7e4a52..5b99e0d26 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.25.0.bazel @@ -46,13 +46,14 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_68_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_72_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_wasm__0_72_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.25.0.bazel similarity index 75% rename from bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-debug-0.25.0.bazel index 7800c1817..f1bbabe46 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-debug-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.25.0.bazel @@ -46,16 +46,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", - "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", + "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_21_1//:object", + "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.25.0.bazel similarity index 66% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-environ-0.25.0.bazel index 964256099..dc92a1fa4 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.25.0.bazel @@ -46,20 +46,21 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", - "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_wasm__0_72_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", + "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", - "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", + "@proxy_wasm_cpp_host__region__2_2_0//:region", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.25.0.bazel similarity index 61% rename from bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-jit-0.25.0.bazel index 0a3f095f4..4eb0e5964 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.25.0.bazel @@ -48,31 +48,32 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", + "@proxy_wasm_cpp_host__addr2line__0_14_1//:addr2line", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_codegen__0_68_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_68_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_68_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_68_0//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_68_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__gimli__0_22_0//:gimli", + "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_72_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_72_0//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_72_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_21_1//:object", + "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_65_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_21_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_debug__0_21_0//:wasmtime_debug", - "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_obj__0_21_0//:wasmtime_obj", - "@proxy_wasm_cpp_host__wasmtime_profiling__0_21_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_21_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_25_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_debug__0_25_0//:wasmtime_debug", + "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_obj__0_25_0//:wasmtime_obj", + "@proxy_wasm_cpp_host__wasmtime_profiling__0_25_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_25_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.25.0.bazel similarity index 81% rename from bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-obj-0.25.0.bazel index a5f41d681..bda38af1e 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-obj-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.25.0.bazel @@ -46,14 +46,14 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_21_1//:object", + "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmtime_debug__0_21_0//:wasmtime_debug", - "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_debug__0_25_0//:wasmtime_debug", + "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.25.0.bazel similarity index 79% rename from bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-profiling-0.25.0.bazel index 40b3ee93a..0eacb6304 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.25.0.bazel @@ -46,16 +46,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_38//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", - "@proxy_wasm_cpp_host__serde__1_0_123//:serde", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_21_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_25_0//:wasmtime_runtime", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.25.0.bazel similarity index 61% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-runtime-0.25.0.bazel index 288d3e2df..2647e0116 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.21.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.25.0.bazel @@ -41,6 +41,7 @@ cargo_build_script( build_script_env = { }, crate_features = [ + "default", ], crate_root = "build.rs", data = glob(["**"]), @@ -52,11 +53,23 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_66//:cc", + "@proxy_wasm_cpp_host__cc__1_0_67//:cc", ] + selects.with_or({ + # cfg(target_os = "linux") + ( + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -73,6 +86,7 @@ rust_library( aliases = { }, crate_features = [ + "default", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -85,23 +99,37 @@ rust_library( "cargo-raze", "manual", ], - version = "0.21.0", + version = "0.25.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__backtrace__0_3_56//:backtrace", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__indexmap__1_1_0//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_86//:libc", + "@proxy_wasm_cpp_host__libc__0_2_92//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__memoffset__0_5_6//:memoffset", + "@proxy_wasm_cpp_host__memoffset__0_6_3//:memoffset", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__psm__0_1_12//:psm", + "@proxy_wasm_cpp_host__rand__0_7_3//:rand", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__thiserror__1_0_23//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_21_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", ] + selects.with_or({ + # cfg(target_os = "linux") + ( + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 41d2c8215..53da5fd91 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -39,24 +39,24 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "7874feb1026bbef06796bd5ab80e73f15b8e83752bde8dc93994f5bc039a4952", - strip_prefix = "wasmtime-0.21.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.21.0.tar.gz", + sha256 = "219b79db4084a0f9d720d430d625a676d68dd0228b11cab46fd6c2a649f77034", + strip_prefix = "wasmtime-0.25.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.25.0.tar.gz", ) http_archive( name = "wasm_c_api", build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", - sha256 = "aea8cd095e9937f1e14f2c93e026317b197eb2345e7a817fe3932062eb7b792c", - strip_prefix = "wasm-c-api-d9a80099d496b5cdba6f3fe8fc77586e0e505ddc", - url = "https://github.com/WebAssembly/wasm-c-api/archive/d9a80099d496b5cdba6f3fe8fc77586e0e505ddc.tar.gz", + sha256 = "c774044f51431429e878bd1b9e2a4e38932f861f9211df72f75e9427eb6b8d32", + strip_prefix = "wasm-c-api-c9d31284651b975f05ac27cee0bab1377560b87e", + url = "https://github.com/WebAssembly/wasm-c-api/archive/c9d31284651b975f05ac27cee0bab1377560b87e.tar.gz", ) http_archive( name = "rules_rust", - sha256 = "0f55b4b69fd9bc1dbcc038e75ec54bd97fa00ddc6cfbc6278fc288dafc98b7f8", - strip_prefix = "rules_rust-fee3b3c658c3d2f49c20c1b12e55063bf7a7f693", - url = "https://github.com/bazelbuild/rules_rust/archive/fee3b3c658c3d2f49c20c1b12e55063bf7a7f693.tar.gz", + sha256 = "242deacf4c9e4274d90964689dfae6c245bfb1bfa5e3336b2ad3b44f2541b70c", + strip_prefix = "rules_rust-1b648302edb64d3ddcc159655bf065bff40e6571", + url = "https://github.com/bazelbuild/rules_rust/archive/1b648302edb64d3ddcc159655bf065bff40e6571.tar.gz", ) http_archive( diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 82b87b036..dec8ecbbb 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -241,17 +241,17 @@ static std::string printValue(const wasm_val_t &value) { } } -static std::string printValues(const wasm_val_t values[], size_t size) { - if (size == 0) { +static std::string printValues(const wasm_val_vec_t *values) { + if (values->size == 0) { return ""; } std::string s; - for (size_t i = 0; i < size; i++) { + for (size_t i = 0; i < values->size; i++) { if (i) { s.append(", "); } - s.append(printValue(values[i])); + s.append(printValue(values->data[i])); } return s; } @@ -297,7 +297,7 @@ bool Wasmtime::link(std::string_view debug_name) { WasmImporttypeVec import_types; wasm_module_imports(module_.get(), import_types.get()); - std::vector imports; + std::vector imports; for (size_t i = 0; i < import_types.get()->size; i++) { const wasm_name_t *module_name_ptr = wasm_importtype_module(import_types.get()->data[i]); const wasm_name_t *name_ptr = wasm_importtype_name(import_types.get()->data[i]); @@ -361,7 +361,8 @@ bool Wasmtime::link(std::string_view debug_name) { return false; } - instance_ = wasm_instance_new(store_.get(), module_.get(), imports.data(), nullptr); + wasm_extern_vec_t imports_vec = {imports.size(), imports.data()}; + instance_ = wasm_instance_new(store_.get(), module_.get(), &imports_vec, nullptr); assert(instance_ != nullptr); WasmExportTypeVec export_types; @@ -526,14 +527,10 @@ template <> uint64_t convertValueTypeToArg(wasm_val_t val) { template <> double convertValueTypeToArg(wasm_val_t val) { return val.of.f64; } template -constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence) { +constexpr T convertValTypesToArgsTuple(const U &vec, std::index_sequence) { return std::make_tuple( - convertValueTypeToArg>::type>(arr[I])...); -} - -template ::value>> -constexpr T convertValTypesToArgsTuple(const U &arr) { - return convertValTypesToArgsTupleImpl(arr, Is()); + convertValueTypeToArg>::type>( + vec->data[I])...); } template @@ -576,17 +573,19 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), - [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { auto func_data = reinterpret_cast(data); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + - printValues(params, sizeof...(Args)) + ")"); + printValues(params) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>(params); + auto args_tuple = convertValTypesToArgsTuple>( + params, std::make_index_sequence{}); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto fn = reinterpret_cast(func_data->raw_func_); std::apply(fn, args); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); } return nullptr; @@ -609,18 +608,20 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), - [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { auto func_data = reinterpret_cast(data); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + - printValues(params, sizeof...(Args)) + ")"); + printValues(params) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>(params); + auto args_tuple = convertValTypesToArgsTuple>( + params, std::make_index_sequence{}); auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); auto fn = reinterpret_cast(func_data->raw_func_); R res = std::apply(fn, args); - assignVal(res, results[0]); - if (func_data->vm_->cmpLogLevel(LogLevel::trace)) { + assignVal(res, results->data[0]); + if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: " + std::to_string(res)); } @@ -662,13 +663,16 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> void { - wasm_val_t params[] = {makeVal(args)...}; - SaveRestoreContext saved_context(context); - if (cmpLogLevel(LogLevel::trace)) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + - printValues(params, sizeof...(Args)) + ")"); + wasm_val_t params_arr[] = {makeVal(args)...}; + const wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + wasm_val_vec_t results = WASM_EMPTY_VEC; + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(¶ms) + + ")"); } - WasmTrapPtr trap{wasm_func_call(func, params, nullptr)}; + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, ¶ms, &results)}; if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); @@ -677,7 +681,7 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, std::string(error_message.get()->data, error_message.get()->size)); return; } - if (cmpLogLevel(LogLevel::trace)) { + if (log) { integration()->trace("[host<-vm] " + std::string(function_name) + " return: void"); } }; @@ -707,14 +711,17 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> R { - wasm_val_t params[] = {makeVal(args)...}; - wasm_val_t results[1]; - SaveRestoreContext saved_context(context); - if (cmpLogLevel(LogLevel::trace)) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + - printValues(params, sizeof...(Args)) + ")"); + wasm_val_t params_arr[] = {makeVal(args)...}; + const wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + wasm_val_t results_arr[1]; + wasm_val_vec_t results = WASM_ARRAY_VEC(results_arr); + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(¶ms) + + ")"); } - WasmTrapPtr trap{wasm_func_call(func, params, results)}; + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, ¶ms, &results)}; if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); @@ -723,8 +730,8 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, std::string(error_message.get()->data, error_message.get()->size)); return R{}; } - R ret = convertValueTypeToArg(results[0]); - if (cmpLogLevel(LogLevel::trace)) { + R ret = convertValueTypeToArg(results.data[0]); + if (log) { integration()->trace("[host<-vm] " + std::string(function_name) + " return: " + std::to_string(ret)); } From aba2704bcd7d8adce2ccaf07c4ecbaf0cffeb7ef Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 7 Apr 2021 17:52:19 -0700 Subject: [PATCH 089/287] wasmtime: update to v0.26. (#150) Performance improved ~10% in microbenchmarks (compared to v0.25): Benchmark Diff -------------------------------------------------------------------- WasmSpeedTest_empty -0.1513 WasmSpeedTest_get_current_time -0.0328 WasmSpeedTest_small_string -0.1145 WasmSpeedTest_small_string1000 -0.0697 WasmSpeedTest_small_string_check_compiler -0.1039 WasmSpeedTest_small_string_check_compiler1000 -0.0966 WasmSpeedTest_large_string -0.0623 WasmSpeedTest_large_string1000 -0.0689 WasmSpeedTest_get_property -0.1385 WasmSpeedTest_grpc_service -0.1250 WasmSpeedTest_grpc_service1000 -0.1917 WasmSpeedTest_modify_metadata -0.0297 WasmSpeedTest_modify_metadata1000 -0.0318 WasmSpeedTest_json_serialize -0.0920 WasmSpeedTest_json_deserialize -0.0723 WasmSpeedTest_json_deserialize_empty -0.1481 WasmSpeedTest_convert_to_filter_state -0.1074 Signed-off-by: Piotr Sikora --- bazel/cargo/BUILD.bazel | 2 +- bazel/cargo/Cargo.raze.lock | 107 ++++---- bazel/cargo/Cargo.toml | 4 +- bazel/cargo/crates.bzl | 252 +++++++++--------- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 2 +- .../cargo/remote/BUILD.backtrace-0.3.56.bazel | 2 +- ...l => BUILD.cranelift-bforest-0.73.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.73.0.bazel} | 14 +- ...BUILD.cranelift-codegen-meta-0.73.0.bazel} | 6 +- ...ILD.cranelift-codegen-shared-0.73.0.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.73.0.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.73.0.bazel} | 6 +- ...el => BUILD.cranelift-native-0.73.0.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.73.0.bazel} | 10 +- ...1.16.bazel => BUILD.getrandom-0.2.2.bazel} | 42 +-- .../remote/BUILD.hermit-abi-0.1.18.bazel | 2 +- ...c-0.2.92.bazel => BUILD.libc-0.2.93.bazel} | 4 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 2 +- ...and-0.7.3.bazel => BUILD.rand-0.8.3.bazel} | 26 +- ....2.bazel => BUILD.rand_chacha-0.3.0.bazel} | 4 +- ....5.1.bazel => BUILD.rand_core-0.6.2.bazel} | 4 +- ...-0.2.0.bazel => BUILD.rand_hc-0.3.0.bazel} | 4 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 2 +- ...azel => BUILD.target-lexicon-0.12.0.bazel} | 4 +- ....wasi-0.10.2+wasi-snapshot-preview1.bazel} | 2 +- ....0.bazel => BUILD.wasmparser-0.77.0.bazel} | 2 +- ...25.0.bazel => BUILD.wasmtime-0.26.0.bazel} | 18 +- ... => BUILD.wasmtime-cranelift-0.26.0.bazel} | 14 +- ...azel => BUILD.wasmtime-debug-0.26.0.bazel} | 8 +- ...el => BUILD.wasmtime-environ-0.26.0.bazel} | 10 +- ....bazel => BUILD.wasmtime-jit-0.26.0.bazel} | 28 +- ....bazel => BUILD.wasmtime-obj-0.26.0.bazel} | 8 +- ... => BUILD.wasmtime-profiling-0.26.0.bazel} | 10 +- ...el => BUILD.wasmtime-runtime-0.26.0.bazel} | 30 ++- bazel/repositories.bzl | 6 +- 35 files changed, 331 insertions(+), 318 deletions(-) rename bazel/cargo/remote/{BUILD.cranelift-bforest-0.72.0.bazel => BUILD.cranelift-bforest-0.73.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-0.72.0.bazel => BUILD.cranelift-codegen-0.73.0.bazel} (86%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-meta-0.72.0.bazel => BUILD.cranelift-codegen-meta-0.73.0.bazel} (87%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-shared-0.72.0.bazel => BUILD.cranelift-codegen-shared-0.73.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-entity-0.72.0.bazel => BUILD.cranelift-entity-0.73.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-frontend-0.72.0.bazel => BUILD.cranelift-frontend-0.73.0.bazel} (88%) rename bazel/cargo/remote/{BUILD.cranelift-native-0.72.0.bazel => BUILD.cranelift-native-0.73.0.bazel} (87%) rename bazel/cargo/remote/{BUILD.cranelift-wasm-0.72.0.bazel => BUILD.cranelift-wasm-0.73.0.bazel} (84%) rename bazel/cargo/remote/{BUILD.getrandom-0.1.16.bazel => BUILD.getrandom-0.2.2.bazel} (90%) rename bazel/cargo/remote/{BUILD.libc-0.2.92.bazel => BUILD.libc-0.2.93.bazel} (97%) rename bazel/cargo/remote/{BUILD.rand-0.7.3.bazel => BUILD.rand-0.8.3.bazel} (75%) rename bazel/cargo/remote/{BUILD.rand_chacha-0.2.2.bazel => BUILD.rand_chacha-0.3.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.rand_core-0.5.1.bazel => BUILD.rand_core-0.6.2.bazel} (92%) rename bazel/cargo/remote/{BUILD.rand_hc-0.2.0.bazel => BUILD.rand_hc-0.3.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.target-lexicon-0.11.2.bazel => BUILD.target-lexicon-0.12.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel => BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel} (95%) rename bazel/cargo/remote/{BUILD.wasmparser-0.76.0.bazel => BUILD.wasmparser-0.77.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.wasmtime-0.25.0.bazel => BUILD.wasmtime-0.26.0.bazel} (78%) rename bazel/cargo/remote/{BUILD.wasmtime-cranelift-0.25.0.bazel => BUILD.wasmtime-cranelift-0.26.0.bazel} (72%) rename bazel/cargo/remote/{BUILD.wasmtime-debug-0.25.0.bazel => BUILD.wasmtime-debug-0.26.0.bazel} (86%) rename bazel/cargo/remote/{BUILD.wasmtime-environ-0.25.0.bazel => BUILD.wasmtime-environ-0.26.0.bazel} (84%) rename bazel/cargo/remote/{BUILD.wasmtime-jit-0.25.0.bazel => BUILD.wasmtime-jit-0.26.0.bazel} (70%) rename bazel/cargo/remote/{BUILD.wasmtime-obj-0.25.0.bazel => BUILD.wasmtime-obj-0.26.0.bazel} (84%) rename bazel/cargo/remote/{BUILD.wasmtime-profiling-0.25.0.bazel => BUILD.wasmtime-profiling-0.26.0.bazel} (82%) rename bazel/cargo/remote/{BUILD.wasmtime-runtime-0.25.0.bazel => BUILD.wasmtime-runtime-0.26.0.bazel} (81%) diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index 36448d9ef..b52a8febe 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_25_0//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_26_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index 958a38635..ff2de70ef 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -107,18 +107,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "841476ab6d3530136b5162b64a2c6969d68141843ad2fd59126e5ea84fd9b5fe" +checksum = "07f641ec9146b7d7498d78cd832007d66ca44a9b61f23474d1fb78e5a3701e99" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b5619cef8d19530298301f91e9a0390d369260799a3d8dd01e28fc88e53637a" +checksum = "fd1f2c0cd4ac12c954116ab2e26e40df0d51db322a855b5664fa208bc32d6686" dependencies = [ "byteorder", "cranelift-bforest", @@ -136,9 +136,9 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2a319709b8267939155924114ea83f2a5b5af65ece3ac6f703d4735f3c66bb0d" +checksum = "105e11b2f0ff7ac81f80dd05ec938ce529a75e36f3d598360d806bb5bfa75e5a" dependencies = [ "cranelift-codegen-shared", "cranelift-entity", @@ -146,27 +146,27 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15925b23cd3a448443f289d85a8f53f3cf7a80f0137aa53c8e3b01ae8aefaef7" +checksum = "51e5eba2c1858d50abf023be4d88bd0450cb12d4ec2ba3ffac56353e6d09caf2" dependencies = [ "serde", ] [[package]] name = "cranelift-entity" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "610cf464396c89af0f9f7c64b5aa90aa9e8812ac84084098f1565b40051bc415" +checksum = "79fa6fdd77a8d317763cd21668d3e72b96e09ac8a974326c6149f7de5aafa8ed" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d20c8bd4a1c41ded051734f0e33ad1d843a0adc98b9bd975ee6657e2c70cdc9" +checksum = "ae11da9ca99f987c29e3eb39ebe10e9b879ecca30f3aeaee13db5e8e02b80fb6" dependencies = [ "cranelift-codegen", "log", @@ -176,9 +176,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "304e100df41f34a5a15291b37bfe0fd7abd0427a2c84195cc69578b4137f9099" +checksum = "100ca4810058e23a5c4dcaedfa25289d1853f4a899d0960265aa7c54a4789351" dependencies = [ "cranelift-codegen", "target-lexicon", @@ -186,9 +186,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.72.0" +version = "0.73.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4efd473b2917303957e0bfaea6ea9d08b8c93695bee015a611a2514ce5254abc" +checksum = "607826643d74cf2cc36973ebffd1790a11d1781e14e3f95cf5529942b2168a67" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -237,9 +237,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "getrandom" -version = "0.1.16" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce" +checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8" dependencies = [ "cfg-if", "libc", @@ -312,9 +312,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.92" +version = "0.2.93" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714" +checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" [[package]] name = "log" @@ -422,11 +422,10 @@ dependencies = [ [[package]] name = "rand" -version = "0.7.3" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03" +checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e" dependencies = [ - "getrandom", "libc", "rand_chacha", "rand_core", @@ -435,9 +434,9 @@ dependencies = [ [[package]] name = "rand_chacha" -version = "0.2.2" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402" +checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" dependencies = [ "ppv-lite86", "rand_core", @@ -445,18 +444,18 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.5.1" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19" +checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" dependencies = [ "getrandom", ] [[package]] name = "rand_hc" -version = "0.2.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c" +checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" dependencies = [ "rand_core", ] @@ -559,9 +558,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.11.2" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "422045212ea98508ae3d28025bc5aaa2bd4a9cdaecd442a08da2ee620ee9ea95" +checksum = "64ae3b39281e4b14b8123bdbaddd472b7dfe215e444181f2f9d2443c2444f834" [[package]] name = "termcolor" @@ -600,21 +599,21 @@ checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" [[package]] name = "wasi" -version = "0.9.0+wasi-snapshot-preview1" +version = "0.10.2+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519" +checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasmparser" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "755a9a4afe3f6cccbbe6d7e965eef44cf260b001f93e547eba84255c1d0187d8" +checksum = "b35c86d22e720a07d954ebbed772d01180501afe7d03d464f413bb5f8914a8d6" [[package]] name = "wasmtime" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26ea2ad49bb047e10ca292f55cd67040bef14b676d07e7b04ed65fd312d52ece" +checksum = "4da03115f8ad36e50edeb6640f4ba27ed7e9a6f05c2f98f728c762966f7054c6" dependencies = [ "anyhow", "backtrace", @@ -622,9 +621,11 @@ dependencies = [ "cfg-if", "cpp_demangle", "indexmap", + "lazy_static", "libc", "log", "paste", + "psm", "region", "rustc-demangle", "serde", @@ -652,7 +653,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.25.0#a8aaf812ef675e92f717893fc845db2dc5018128" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.26.0#6b77786a6e758e91da9484a1c80b6fa5f88e1b3d" dependencies = [ "proc-macro2", "quote", @@ -660,9 +661,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e769b80abbb89255926f69ba37085f7dd6608c980134838c3c89d7bf6e776bc" +checksum = "b73c47553954eab22f432a7a60bcd695eb46508c2088cb0aa1cfd060538db3b6" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -674,9 +675,9 @@ dependencies = [ [[package]] name = "wasmtime-debug" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38501788c936a4932b0ddf61135963a4b7d1f549f63a6908ae56a1c86d74fc7b" +checksum = "5241e603c262b2ee0dfb5b2245ad539d0a99f0589909fbffc91d2a8035f2d20a" dependencies = [ "anyhow", "gimli", @@ -690,9 +691,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fae793ea1387b2fede277d209bb27285366df58f0a3ae9d59e58a7941dce60fa" +checksum = "fb8d356abc04754f5936b9377441a4a202f6bba7ad997d2cd66acb3908bc85a3" dependencies = [ "anyhow", "cfg-if", @@ -711,9 +712,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b3bd0fae8396473a68a1491559d61776127bb9bea75c9a6a6c038ae4a656eb2" +checksum = "81b066a3290a903c5beb7d765b3e82e00cd4f8ac0475297f91330fbe8e16bb17" dependencies = [ "addr2line", "anyhow", @@ -743,9 +744,9 @@ dependencies = [ [[package]] name = "wasmtime-obj" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a79fa098a3be8fabc50f5be60f8e47694d569afdc255de37850fc80295485012" +checksum = "bd9d5c6c8924ea1fb2372d26c0546a8c5aab94001d5ddedaa36fd7b090c04de2" dependencies = [ "anyhow", "more-asserts", @@ -757,9 +758,9 @@ dependencies = [ [[package]] name = "wasmtime-profiling" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d81e2106efeef4c01917fd16956a91d39bb78c07cf97027abdba9ca98da3f258" +checksum = "44760e80dd5f53e9af6c976120f9f1d35908ee0c646a3144083f0a57b7123ba7" dependencies = [ "anyhow", "cfg-if", @@ -773,9 +774,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.25.0" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f747c656ca4680cad7846ae91c57d03f2dd4f4170da77a700df4e21f0d805378" +checksum = "9701c6412897ba3a10fb4e17c4ec29723ed33d6feaaaeaf59f53799107ce7351" dependencies = [ "anyhow", "backtrace", @@ -785,9 +786,9 @@ dependencies = [ "lazy_static", "libc", "log", + "mach", "memoffset", "more-asserts", - "psm", "rand", "region", "thiserror", diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index b081d562a..52b2a3618 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.25.0", default-features = false} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.25.0", path = "crates/c-api/macros"} +wasmtime = {version = "0.26.0", default-features = false} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.26.0", path = "crates/c-api/macros"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 53fe7e24f..68c49b0d4 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -143,82 +143,82 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.73.0/download", type = "tar.gz", - sha256 = "841476ab6d3530136b5162b64a2c6969d68141843ad2fd59126e5ea84fd9b5fe", - strip_prefix = "cranelift-bforest-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.72.0.bazel"), + sha256 = "07f641ec9146b7d7498d78cd832007d66ca44a9b61f23474d1fb78e5a3701e99", + strip_prefix = "cranelift-bforest-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.73.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.73.0/download", type = "tar.gz", - sha256 = "2b5619cef8d19530298301f91e9a0390d369260799a3d8dd01e28fc88e53637a", - strip_prefix = "cranelift-codegen-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.72.0.bazel"), + sha256 = "fd1f2c0cd4ac12c954116ab2e26e40df0d51db322a855b5664fa208bc32d6686", + strip_prefix = "cranelift-codegen-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.73.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.73.0/download", type = "tar.gz", - sha256 = "2a319709b8267939155924114ea83f2a5b5af65ece3ac6f703d4735f3c66bb0d", - strip_prefix = "cranelift-codegen-meta-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.72.0.bazel"), + sha256 = "105e11b2f0ff7ac81f80dd05ec938ce529a75e36f3d598360d806bb5bfa75e5a", + strip_prefix = "cranelift-codegen-meta-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.73.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.73.0/download", type = "tar.gz", - sha256 = "15925b23cd3a448443f289d85a8f53f3cf7a80f0137aa53c8e3b01ae8aefaef7", - strip_prefix = "cranelift-codegen-shared-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.72.0.bazel"), + sha256 = "51e5eba2c1858d50abf023be4d88bd0450cb12d4ec2ba3ffac56353e6d09caf2", + strip_prefix = "cranelift-codegen-shared-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.73.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_entity__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.73.0/download", type = "tar.gz", - sha256 = "610cf464396c89af0f9f7c64b5aa90aa9e8812ac84084098f1565b40051bc415", - strip_prefix = "cranelift-entity-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.72.0.bazel"), + sha256 = "79fa6fdd77a8d317763cd21668d3e72b96e09ac8a974326c6149f7de5aafa8ed", + strip_prefix = "cranelift-entity-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.73.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.73.0/download", type = "tar.gz", - sha256 = "4d20c8bd4a1c41ded051734f0e33ad1d843a0adc98b9bd975ee6657e2c70cdc9", - strip_prefix = "cranelift-frontend-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.72.0.bazel"), + sha256 = "ae11da9ca99f987c29e3eb39ebe10e9b879ecca30f3aeaee13db5e8e02b80fb6", + strip_prefix = "cranelift-frontend-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.73.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_native__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.73.0/download", type = "tar.gz", - sha256 = "304e100df41f34a5a15291b37bfe0fd7abd0427a2c84195cc69578b4137f9099", - strip_prefix = "cranelift-native-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.72.0.bazel"), + sha256 = "100ca4810058e23a5c4dcaedfa25289d1853f4a899d0960265aa7c54a4789351", + strip_prefix = "cranelift-native-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.73.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_72_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.72.0/download", + name = "proxy_wasm_cpp_host__cranelift_wasm__0_73_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.73.0/download", type = "tar.gz", - sha256 = "4efd473b2917303957e0bfaea6ea9d08b8c93695bee015a611a2514ce5254abc", - strip_prefix = "cranelift-wasm-0.72.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.72.0.bazel"), + sha256 = "607826643d74cf2cc36973ebffd1790a11d1781e14e3f95cf5529942b2168a67", + strip_prefix = "cranelift-wasm-0.73.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.73.0.bazel"), ) maybe( @@ -263,12 +263,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__getrandom__0_1_16", - url = "https://crates.io/api/v1/crates/getrandom/0.1.16/download", + name = "proxy_wasm_cpp_host__getrandom__0_2_2", + url = "https://crates.io/api/v1/crates/getrandom/0.2.2/download", type = "tar.gz", - sha256 = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce", - strip_prefix = "getrandom-0.1.16", - build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.1.16.bazel"), + sha256 = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8", + strip_prefix = "getrandom-0.2.2", + build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.2.bazel"), ) maybe( @@ -353,12 +353,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_92", - url = "https://crates.io/api/v1/crates/libc/0.2.92/download", + name = "proxy_wasm_cpp_host__libc__0_2_93", + url = "https://crates.io/api/v1/crates/libc/0.2.93/download", type = "tar.gz", - sha256 = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714", - strip_prefix = "libc-0.2.92", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.92.bazel"), + sha256 = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41", + strip_prefix = "libc-0.2.93", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.93.bazel"), ) maybe( @@ -493,42 +493,42 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__rand__0_7_3", - url = "https://crates.io/api/v1/crates/rand/0.7.3/download", + name = "proxy_wasm_cpp_host__rand__0_8_3", + url = "https://crates.io/api/v1/crates/rand/0.8.3/download", type = "tar.gz", - sha256 = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03", - strip_prefix = "rand-0.7.3", - build_file = Label("//bazel/cargo/remote:BUILD.rand-0.7.3.bazel"), + sha256 = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e", + strip_prefix = "rand-0.8.3", + build_file = Label("//bazel/cargo/remote:BUILD.rand-0.8.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_chacha__0_2_2", - url = "https://crates.io/api/v1/crates/rand_chacha/0.2.2/download", + name = "proxy_wasm_cpp_host__rand_chacha__0_3_0", + url = "https://crates.io/api/v1/crates/rand_chacha/0.3.0/download", type = "tar.gz", - sha256 = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402", - strip_prefix = "rand_chacha-0.2.2", - build_file = Label("//bazel/cargo/remote:BUILD.rand_chacha-0.2.2.bazel"), + sha256 = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d", + strip_prefix = "rand_chacha-0.3.0", + build_file = Label("//bazel/cargo/remote:BUILD.rand_chacha-0.3.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_core__0_5_1", - url = "https://crates.io/api/v1/crates/rand_core/0.5.1/download", + name = "proxy_wasm_cpp_host__rand_core__0_6_2", + url = "https://crates.io/api/v1/crates/rand_core/0.6.2/download", type = "tar.gz", - sha256 = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19", - strip_prefix = "rand_core-0.5.1", - build_file = Label("//bazel/cargo/remote:BUILD.rand_core-0.5.1.bazel"), + sha256 = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7", + strip_prefix = "rand_core-0.6.2", + build_file = Label("//bazel/cargo/remote:BUILD.rand_core-0.6.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_hc__0_2_0", - url = "https://crates.io/api/v1/crates/rand_hc/0.2.0/download", + name = "proxy_wasm_cpp_host__rand_hc__0_3_0", + url = "https://crates.io/api/v1/crates/rand_hc/0.3.0/download", type = "tar.gz", - sha256 = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c", - strip_prefix = "rand_hc-0.2.0", - build_file = Label("//bazel/cargo/remote:BUILD.rand_hc-0.2.0.bazel"), + sha256 = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73", + strip_prefix = "rand_hc-0.3.0", + build_file = Label("//bazel/cargo/remote:BUILD.rand_hc-0.3.0.bazel"), ) maybe( @@ -643,12 +643,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__target_lexicon__0_11_2", - url = "https://crates.io/api/v1/crates/target-lexicon/0.11.2/download", + name = "proxy_wasm_cpp_host__target_lexicon__0_12_0", + url = "https://crates.io/api/v1/crates/target-lexicon/0.12.0/download", type = "tar.gz", - sha256 = "422045212ea98508ae3d28025bc5aaa2bd4a9cdaecd442a08da2ee620ee9ea95", - strip_prefix = "target-lexicon-0.11.2", - build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.11.2.bazel"), + sha256 = "64ae3b39281e4b14b8123bdbaddd472b7dfe215e444181f2f9d2443c2444f834", + strip_prefix = "target-lexicon-0.12.0", + build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.12.0.bazel"), ) maybe( @@ -693,111 +693,111 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasi__0_9_0_wasi_snapshot_preview1", - url = "https://crates.io/api/v1/crates/wasi/0.9.0+wasi-snapshot-preview1/download", + name = "proxy_wasm_cpp_host__wasi__0_10_2_wasi_snapshot_preview1", + url = "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download", type = "tar.gz", - sha256 = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519", - strip_prefix = "wasi-0.9.0+wasi-snapshot-preview1", - build_file = Label("//bazel/cargo/remote:BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel"), + sha256 = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6", + strip_prefix = "wasi-0.10.2+wasi-snapshot-preview1", + build_file = Label("//bazel/cargo/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmparser__0_76_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.76.0/download", + name = "proxy_wasm_cpp_host__wasmparser__0_77_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.77.0/download", type = "tar.gz", - sha256 = "755a9a4afe3f6cccbbe6d7e965eef44cf260b001f93e547eba84255c1d0187d8", - strip_prefix = "wasmparser-0.76.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.76.0.bazel"), + sha256 = "b35c86d22e720a07d954ebbed772d01180501afe7d03d464f413bb5f8914a8d6", + strip_prefix = "wasmparser-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.26.0/download", type = "tar.gz", - sha256 = "26ea2ad49bb047e10ca292f55cd67040bef14b676d07e7b04ed65fd312d52ece", - strip_prefix = "wasmtime-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.25.0.bazel"), + sha256 = "4da03115f8ad36e50edeb6640f4ba27ed7e9a6f05c2f98f728c762966f7054c6", + strip_prefix = "wasmtime-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.26.0.bazel"), ) maybe( new_git_repository, name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "a8aaf812ef675e92f717893fc845db2dc5018128", + commit = "6b77786a6e758e91da9484a1c80b6fa5f88e1b3d", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.26.0/download", type = "tar.gz", - sha256 = "5e769b80abbb89255926f69ba37085f7dd6608c980134838c3c89d7bf6e776bc", - strip_prefix = "wasmtime-cranelift-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.25.0.bazel"), + sha256 = "b73c47553954eab22f432a7a60bcd695eb46508c2088cb0aa1cfd060538db3b6", + strip_prefix = "wasmtime-cranelift-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.26.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_debug__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime-debug/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime_debug__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime-debug/0.26.0/download", type = "tar.gz", - sha256 = "38501788c936a4932b0ddf61135963a4b7d1f549f63a6908ae56a1c86d74fc7b", - strip_prefix = "wasmtime-debug-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-debug-0.25.0.bazel"), + sha256 = "5241e603c262b2ee0dfb5b2245ad539d0a99f0589909fbffc91d2a8035f2d20a", + strip_prefix = "wasmtime-debug-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-debug-0.26.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.26.0/download", type = "tar.gz", - sha256 = "fae793ea1387b2fede277d209bb27285366df58f0a3ae9d59e58a7941dce60fa", - strip_prefix = "wasmtime-environ-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.25.0.bazel"), + sha256 = "fb8d356abc04754f5936b9377441a4a202f6bba7ad997d2cd66acb3908bc85a3", + strip_prefix = "wasmtime-environ-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.26.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.26.0/download", type = "tar.gz", - sha256 = "9b3bd0fae8396473a68a1491559d61776127bb9bea75c9a6a6c038ae4a656eb2", - strip_prefix = "wasmtime-jit-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.25.0.bazel"), + sha256 = "81b066a3290a903c5beb7d765b3e82e00cd4f8ac0475297f91330fbe8e16bb17", + strip_prefix = "wasmtime-jit-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.26.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_obj__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime-obj/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime_obj__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime-obj/0.26.0/download", type = "tar.gz", - sha256 = "a79fa098a3be8fabc50f5be60f8e47694d569afdc255de37850fc80295485012", - strip_prefix = "wasmtime-obj-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-obj-0.25.0.bazel"), + sha256 = "bd9d5c6c8924ea1fb2372d26c0546a8c5aab94001d5ddedaa36fd7b090c04de2", + strip_prefix = "wasmtime-obj-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-obj-0.26.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_profiling__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime_profiling__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.26.0/download", type = "tar.gz", - sha256 = "d81e2106efeef4c01917fd16956a91d39bb78c07cf97027abdba9ca98da3f258", - strip_prefix = "wasmtime-profiling-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-profiling-0.25.0.bazel"), + sha256 = "44760e80dd5f53e9af6c976120f9f1d35908ee0c646a3144083f0a57b7123ba7", + strip_prefix = "wasmtime-profiling-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-profiling-0.26.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_25_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.25.0/download", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_26_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.26.0/download", type = "tar.gz", - sha256 = "f747c656ca4680cad7846ae91c57d03f2dd4f4170da77a700df4e21f0d805378", - strip_prefix = "wasmtime-runtime-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.25.0.bazel"), + sha256 = "9701c6412897ba3a10fb4e17c4ec29723ed33d6feaaaeaf59f53799107ce7351", + strip_prefix = "wasmtime-runtime-0.26.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.26.0.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index 0efa5c291..04d2e1eac 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel index 073acc80a..75d6534d0 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel @@ -65,7 +65,7 @@ rust_library( deps = [ "@proxy_wasm_cpp_host__addr2line__0_14_1//:addr2line", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel index 4271ac51d..a5db24b98 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel index 6158e438b..b06085b97 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_72_0//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_73_0//:cranelift_codegen_meta", ], ) @@ -87,20 +87,20 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", - "@proxy_wasm_cpp_host__cranelift_bforest__0_72_0//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_72_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_bforest__0_73_0//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_73_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__regalloc__0_0_31//:regalloc", "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel index afb4d8151..d2d65b057 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel @@ -46,10 +46,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_72_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_73_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel index 5d2a856f2..8d35e2b5e 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__serde__1_0_125//:serde", diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel index 8980a2438..e43a74fdc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__serde__1_0_125//:serde", diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel index 776af4898..a074c6c01 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel @@ -48,12 +48,12 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.cranelift-native-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel index ead9ddf18..ab9c85791 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel @@ -48,10 +48,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.72.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.72.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel index d250ff94e..b21160eb2 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.72.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel @@ -50,18 +50,18 @@ rust_library( "cargo-raze", "manual", ], - version = "0.72.0", + version = "0.73.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_72_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_73_0//:cranelift_frontend", "@proxy_wasm_cpp_host__itertools__0_10_0//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.getrandom-0.1.16.bazel b/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.getrandom-0.1.16.bazel rename to bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel index 4266e9736..30fefb619 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.1.16.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel @@ -53,10 +53,17 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.16", + version = "0.2.2", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ + # cfg(all(target_arch = "wasm32", target_os = "unknown")) + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ # cfg(target_os = "wasi") ( "@rules_rust//rust/platform:wasm32-wasi", @@ -85,13 +92,6 @@ cargo_build_script( ): [ ], "//conditions:default": [], - }) + selects.with_or({ - # wasm32-unknown-unknown - ( - "@rules_rust//rust/platform:wasm32-unknown-unknown", - ): [ - ], - "//conditions:default": [], }), ) @@ -116,17 +116,24 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.16", + version = "0.2.2", # buildifier: leave-alone deps = [ ":getrandom_build_script", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", ] + selects.with_or({ + # cfg(all(target_arch = "wasm32", target_os = "unknown")) + ( + "@rules_rust//rust/platform:wasm32-unknown-unknown", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ # cfg(target_os = "wasi") ( "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@proxy_wasm_cpp_host__wasi__0_9_0_wasi_snapshot_preview1//:wasi", + "@proxy_wasm_cpp_host__wasi__0_10_2_wasi_snapshot_preview1//:wasi", ], "//conditions:default": [], }) + selects.with_or({ @@ -149,17 +156,14 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # wasm32-unknown-unknown - ( - "@rules_rust//rust/platform:wasm32-unknown-unknown", - ): [ + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", ], "//conditions:default": [], }), ) -# Unsupported target "common" with type "test" omitted +# Unsupported target "custom" with type "test" omitted + +# Unsupported target "normal" with type "test" omitted + +# Unsupported target "rdrand" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel index 478e2c5fa..3732fb4fa 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel @@ -50,6 +50,6 @@ rust_library( version = "0.1.18", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.libc-0.2.92.bazel b/bazel/cargo/remote/BUILD.libc-0.2.93.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.libc-0.2.92.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.93.bazel index 8f3e6a17c..5da81e7fe 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.92.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.93.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.92", + version = "0.2.93", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.92", + version = "0.2.93", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index b526f8766..876184848 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -63,7 +63,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand-0.7.3.bazel b/bazel/cargo/remote/BUILD.rand-0.8.3.bazel similarity index 75% rename from bazel/cargo/remote/BUILD.rand-0.7.3.bazel rename to bazel/cargo/remote/BUILD.rand-0.8.3.bazel index 0f7329d5e..0209569ad 100644 --- a/bazel/cargo/remote/BUILD.rand-0.7.3.bazel +++ b/bazel/cargo/remote/BUILD.rand-0.8.3.bazel @@ -30,31 +30,20 @@ licenses([ # Generated Targets -# Unsupported target "generators" with type "bench" omitted - -# Unsupported target "misc" with type "bench" omitted - -# Unsupported target "seq" with type "bench" omitted - -# Unsupported target "weighted" with type "bench" omitted - -# Unsupported target "monte-carlo" with type "example" omitted - -# Unsupported target "monty-hall" with type "example" omitted - rust_library( name = "rand", srcs = glob(["**/*.rs"]), aliases = { - "@proxy_wasm_cpp_host__getrandom__0_1_16//:getrandom": "getrandom_package", }, crate_features = [ "alloc", "default", "getrandom", - "getrandom_package", "libc", + "rand_chacha", + "rand_hc", "std", + "std_rng", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -67,12 +56,11 @@ rust_library( "cargo-raze", "manual", ], - version = "0.7.3", + version = "0.8.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__getrandom__0_1_16//:getrandom", - "@proxy_wasm_cpp_host__rand_chacha__0_2_2//:rand_chacha", - "@proxy_wasm_cpp_host__rand_core__0_5_1//:rand_core", + "@proxy_wasm_cpp_host__rand_chacha__0_3_0//:rand_chacha", + "@proxy_wasm_cpp_host__rand_core__0_6_2//:rand_core", ] + selects.with_or({ # cfg(unix) ( @@ -93,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.2.2.bazel b/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.rand_chacha-0.2.2.bazel rename to bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel index ed893b572..8ff80133a 100644 --- a/bazel/cargo/remote/BUILD.rand_chacha-0.2.2.bazel +++ b/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel @@ -47,10 +47,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.2", + version = "0.3.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__ppv_lite86__0_2_10//:ppv_lite86", - "@proxy_wasm_cpp_host__rand_core__0_5_1//:rand_core", + "@proxy_wasm_cpp_host__rand_core__0_6_2//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.rand_core-0.5.1.bazel b/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.rand_core-0.5.1.bazel rename to bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel index 302278bcf..51cd0b42f 100644 --- a/bazel/cargo/remote/BUILD.rand_core-0.5.1.bazel +++ b/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel @@ -49,9 +49,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.5.1", + version = "0.6.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__getrandom__0_1_16//:getrandom", + "@proxy_wasm_cpp_host__getrandom__0_2_2//:getrandom", ], ) diff --git a/bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel b/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel rename to bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel index a8ec6aae2..5eb4b94d0 100644 --- a/bazel/cargo/remote/BUILD.rand_hc-0.2.0.bazel +++ b/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.0", + version = "0.3.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__rand_core__0_5_1//:rand_core", + "@proxy_wasm_cpp_host__rand_core__0_6_2//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index e524f23ac..a2de6c09a 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -52,7 +52,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel rename to bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel index 90129e715..b87c0b081 100644 --- a/bazel/cargo/remote/BUILD.target-lexicon-0.11.2.bazel +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel @@ -53,7 +53,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.11.2", + version = "0.12.0", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.11.2", + version = "0.12.0", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel rename to bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel index a963d2aed..dc3e3feff 100644 --- a/bazel/cargo/remote/BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.9.0+wasi-snapshot-preview1", + version = "0.10.2+wasi-snapshot-preview1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.76.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.wasmparser-0.76.0.bazel rename to bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel index 9694b63ed..ab824e65f 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.76.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel @@ -50,7 +50,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.76.0", + version = "0.77.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel similarity index 78% rename from bazel/cargo/remote/BUILD.wasmtime-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel index eeb0a7437..b8a777a1b 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel @@ -51,7 +51,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", @@ -60,18 +60,20 @@ rust_library( "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__cpp_demangle__0_3_2//:cpp_demangle", "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", + "@proxy_wasm_cpp_host__psm__0_1_12//:psm", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_25_0//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_profiling__0_25_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_25_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", + "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_26_0//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_profiling__0_26_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_26_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel similarity index 72% rename from bazel/cargo/remote/BUILD.wasmtime-cranelift-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel index 5b99e0d26..2a7ffcfa0 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel @@ -46,14 +46,14 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_72_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_wasm__0_72_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_73_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_wasm__0_73_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.wasmtime-debug-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel index f1bbabe46..545ee9f74 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-debug-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel @@ -46,16 +46,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__object__0_23_0//:object", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel index dc92a1fa4..e3d9615a3 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel @@ -46,14 +46,14 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_wasm__0_72_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_wasm__0_73_0//:cranelift_wasm", "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", "@proxy_wasm_cpp_host__log__0_4_14//:log", @@ -61,6 +61,6 @@ rust_library( "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__serde__1_0_125//:serde", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel similarity index 70% rename from bazel/cargo/remote/BUILD.wasmtime-jit-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel index 4eb0e5964..e5d99dacf 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel @@ -48,32 +48,32 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__addr2line__0_14_1//:addr2line", "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_codegen__0_72_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_72_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_72_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_72_0//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_72_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_73_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_73_0//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_73_0//:cranelift_wasm", "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__serde__1_0_125//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_76_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_25_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_debug__0_25_0//:wasmtime_debug", - "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_obj__0_25_0//:wasmtime_obj", - "@proxy_wasm_cpp_host__wasmtime_profiling__0_25_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_25_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_26_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_debug__0_26_0//:wasmtime_debug", + "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_obj__0_26_0//:wasmtime_obj", + "@proxy_wasm_cpp_host__wasmtime_profiling__0_26_0//:wasmtime_profiling", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_26_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.wasmtime-obj-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel index bda38af1e..0024ed713 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-obj-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel @@ -46,14 +46,14 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__object__0_23_0//:object", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmtime_debug__0_25_0//:wasmtime_debug", - "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", + "@proxy_wasm_cpp_host__wasmtime_debug__0_26_0//:wasmtime_debug", + "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel similarity index 82% rename from bazel/cargo/remote/BUILD.wasmtime-profiling-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel index 0eacb6304..3bd603d96 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel @@ -46,16 +46,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", "@proxy_wasm_cpp_host__serde__1_0_125//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_11_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_25_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", + "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_26_0//:wasmtime_runtime", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.25.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel similarity index 81% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.25.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel index 2647e0116..801a1dc03 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.25.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel @@ -53,7 +53,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_67//:cc", @@ -69,6 +69,15 @@ cargo_build_script( ): [ ], "//conditions:default": [], + }) + selects.with_or({ + # cfg(target_os = "macos") + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-darwin", + ): [ + ], + "//conditions:default": [], }) + selects.with_or({ # cfg(target_os = "windows") ( @@ -99,7 +108,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.25.0", + version = "0.26.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", @@ -108,15 +117,14 @@ rust_library( "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_92//:libc", + "@proxy_wasm_cpp_host__libc__0_2_93//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__memoffset__0_6_3//:memoffset", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__psm__0_1_12//:psm", - "@proxy_wasm_cpp_host__rand__0_7_3//:rand", + "@proxy_wasm_cpp_host__rand__0_8_3//:rand", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_25_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -129,6 +137,16 @@ rust_library( ): [ ], "//conditions:default": [], + }) + selects.with_or({ + # cfg(target_os = "macos") + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-darwin", + ): [ + "@proxy_wasm_cpp_host__mach__0_3_2//:mach", + ], + "//conditions:default": [], }) + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 53da5fd91..280368494 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -39,9 +39,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "219b79db4084a0f9d720d430d625a676d68dd0228b11cab46fd6c2a649f77034", - strip_prefix = "wasmtime-0.25.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.25.0.tar.gz", + sha256 = "e95d274822ac72bf06355bdfbeddcacae60d7e98fec8ee4b2e21740636fb5c2c", + strip_prefix = "wasmtime-0.26.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.26.0.tar.gz", ) http_archive( From c81a554c0ff564c8a264f4a234c264d8aa3a1195 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 8 Apr 2021 01:59:27 -0700 Subject: [PATCH 090/287] Remove freshness check for Cargo.raze.lock. (#151) Signed-off-by: Piotr Sikora --- .github/workflows/cargo.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 05f7b6cdb..30511c6d9 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -39,5 +39,5 @@ jobs: working-directory: bazel/cargo run: | cargo install cargo-raze --version 0.9.2 - cargo raze --generate-lockfile + cargo raze git diff --exit-code From 8f8bcc84d47291168dad7baaae2079f1b263506a Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 13 Apr 2021 18:22:26 +0900 Subject: [PATCH 091/287] Extract common code from runtime implementations. (#152) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/null_vm.h | 1 - include/proxy-wasm/wasm_vm.h | 8 - src/common/bytecode_util.cc | 244 ++++++++++++++++++++++++++++++ src/common/bytecode_util.h | 77 ++++++++++ src/null/null_vm.cc | 5 - src/v8/v8.cc | 206 +++---------------------- src/wasmtime/wasmtime.cc | 152 +++---------------- src/wavm/wavm.cc | 57 +++---- test/BUILD | 2 + test/common/BUILD | 17 +++ test/common/bytecode_util_test.cc | 121 +++++++++++++++ test/null_vm_test.cc | 1 - test/runtime_test.cc | 36 +++-- test/utility.cc | 9 ++ test/utility.h | 18 +-- 15 files changed, 556 insertions(+), 398 deletions(-) create mode 100644 src/common/bytecode_util.cc create mode 100644 src/common/bytecode_util.h create mode 100644 test/common/BUILD create mode 100644 test/common/bytecode_util_test.cc diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index d731060a2..a1a2f73d5 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -44,7 +44,6 @@ struct NullVm : public WasmVm { bool setWord(uint64_t pointer, Word data) override; bool getWord(uint64_t pointer, Word *data) override; size_t getWordSize() override; - std::string_view getCustomSection(std::string_view name) override; std::string_view getPrecompiledSectionName() override; #define _FORWARD_GET_FUNCTION(_T) \ diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index e88aa3784..c794e6f4c 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -248,14 +248,6 @@ class WasmVm { */ virtual size_t getWordSize() = 0; - /** - * Get the contents of the custom section with the given name or "" if it does not exist. - * @param name the name of the custom section to get. - * @return the contents of the custom section (if any). The result will be empty if there - * is no such section. - */ - virtual std::string_view getCustomSection(std::string_view name) = 0; - /** * Get the name of the custom section that contains precompiled module. * @return the name of the custom section that contains precompiled module. diff --git a/src/common/bytecode_util.cc b/src/common/bytecode_util.cc new file mode 100644 index 000000000..4b6a8a804 --- /dev/null +++ b/src/common/bytecode_util.cc @@ -0,0 +1,244 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/common/bytecode_util.h" +#include + +namespace proxy_wasm { +namespace common { + +bool BytecodeUtil::checkWasmHeader(std::string_view bytecode) { + // Wasm file header is 8 bytes (magic number + version). + static const uint8_t wasm_magic_number[4] = {0x00, 0x61, 0x73, 0x6d}; + return bytecode.size() < 8 || !::memcmp(bytecode.data(), wasm_magic_number, 4); +} + +bool BytecodeUtil::getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersion &ret) { + ret = proxy_wasm::AbiVersion::Unknown; + // Check Wasm header. + if (!checkWasmHeader(bytecode)) { + return false; + } + + // Skip the Wasm header. + const char *pos = bytecode.data() + 8; + const char *end = bytecode.data() + bytecode.size(); + while (pos < end) { + if (pos + 1 > end) { + return false; + } + const auto section_type = *pos++; + uint32_t section_len = 0; + if (!parseVarint(pos, end, section_len) || pos + section_len > end) { + return false; + } + if (section_type == 7 /* export section */) { + uint32_t export_vector_size = 0; + if (!parseVarint(pos, end, export_vector_size) || pos + export_vector_size > end) { + return false; + } + // Search thourgh exports. + for (uint32_t i = 0; i < export_vector_size; i++) { + // Parse name of the export. + uint32_t export_name_size = 0; + if (!parseVarint(pos, end, export_name_size) || pos + export_name_size > end) { + return false; + } + const auto name_begin = pos; + pos += export_name_size; + if (pos + 1 > end) { + return false; + } + // Check if it is a function type export + if (*pos++ == 0x00) { + const std::string export_name = {name_begin, export_name_size}; + // Check the name of the function. + if (export_name == "proxy_abi_version_0_1_0") { + ret = AbiVersion::ProxyWasm_0_1_0; + return true; + } else if (export_name == "proxy_abi_version_0_2_0") { + ret = AbiVersion::ProxyWasm_0_2_0; + return true; + } else if (export_name == "proxy_abi_version_0_2_1") { + ret = AbiVersion::ProxyWasm_0_2_1; + return true; + } + } + // Skip export's index. + if (!parseVarint(pos, end, export_name_size)) { + return false; + } + } + return true; + } else { + pos += section_len; + } + } + return true; +} + +bool BytecodeUtil::getCustomSection(std::string_view bytecode, std::string_view name, + std::string_view &ret) { + // Check Wasm header. + if (!checkWasmHeader(bytecode)) { + return false; + } + + // Skip the Wasm header. + const char *pos = bytecode.data() + 8; + const char *end = bytecode.data() + bytecode.size(); + while (pos < end) { + if (pos + 1 > end) { + return false; + } + const auto section_type = *pos++; + uint32_t section_len = 0; + if (!parseVarint(pos, end, section_len) || pos + section_len > end) { + return false; + } + if (section_type == 0) { + // Custom section. + const auto section_data_start = pos; + uint32_t section_name_len = 0; + if (!BytecodeUtil::parseVarint(pos, end, section_name_len) || pos + section_name_len > end) { + return false; + } + if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { + pos += section_name_len; + ret = {pos, static_cast(section_data_start + section_len - pos)}; + return true; + } + pos = section_data_start + section_len; + } else { + // Skip other sections. + pos += section_len; + } + } + return true; +}; + +bool BytecodeUtil::getFunctionNameIndex(std::string_view bytecode, + std::unordered_map &ret) { + std::string_view name_section = {}; + if (!BytecodeUtil::getCustomSection(bytecode, "name", name_section)) { + return false; + }; + if (!name_section.empty()) { + const char *pos = name_section.data(); + const char *end = name_section.data() + name_section.size(); + while (pos < end) { + const auto subsection_id = *pos++; + uint32_t subsection_size = 0; + if (!parseVarint(pos, end, subsection_size) || pos + subsection_size > end) { + return false; + } + + if (subsection_id != 1) { + // Skip other subsctions. + pos += subsection_size; + } else { + // Enters function name subsection. + const auto start = pos; + uint32_t namemap_vector_size = 0; + if (!parseVarint(pos, end, namemap_vector_size) || pos + namemap_vector_size > end) { + return false; + } + for (uint32_t i = 0; i < namemap_vector_size; i++) { + uint32_t func_index = 0; + if (!parseVarint(pos, end, func_index)) { + return false; + } + + uint32_t func_name_size = 0; + if (!parseVarint(pos, end, func_name_size) || pos + func_name_size > end) { + return false; + } + ret.insert({func_index, std::string(pos, func_name_size)}); + pos += func_name_size; + } + if (start + subsection_size != pos) { + return false; + } + } + } + } + return true; +} + +bool BytecodeUtil::getStrippedSource(std::string_view bytecode, std::string &ret) { + // Check Wasm header. + if (!checkWasmHeader(bytecode)) { + return false; + } + + // Skip the Wasm header. + const char *pos = bytecode.data() + 8; + const char *end = bytecode.data() + bytecode.size(); + while (pos < end) { + const auto section_start = pos; + if (pos + 1 > end) { + return false; + } + const auto section_type = *pos++; + uint32_t section_len = 0; + if (!parseVarint(pos, end, section_len) || pos + section_len > end) { + return false; + } + if (section_type == 0 /* custom section */) { + const auto section_data_start = pos; + uint32_t section_name_len = 0; + if (!parseVarint(pos, end, section_name_len) || pos + section_name_len > end) { + return false; + } + auto section_name = std::string_view(pos, section_name_len); + if (section_name.find("precompiled_") != std::string::npos) { + // If this is the first "precompiled_" section, then save everything + // before it, otherwise skip it. + if (ret.empty()) { + const char *start = bytecode.data(); + ret.append(start, section_start); + } + } + pos = section_data_start + section_len; + } else { + pos += section_len; + // Save this section if we already saw a custom "precompiled_" section. + if (!ret.empty()) { + ret.append(section_start, pos); + } + } + } + if (ret.empty()) { + // Copy the original source code if it is empty. + ret = std::string(bytecode); + } + return true; +} + +bool BytecodeUtil::parseVarint(const char *&pos, const char *end, uint32_t &ret) { + uint32_t shift = 0; + char b; + do { + if (pos + 1 > end) { + return false; + } + b = *pos++; + ret += (b & 0x7f) << shift; + shift += 7; + } while ((b & 0x80) != 0); + return ret != static_cast(-1); +} + +} // namespace common +} // namespace proxy_wasm diff --git a/src/common/bytecode_util.h b/src/common/bytecode_util.h new file mode 100644 index 000000000..438969fb5 --- /dev/null +++ b/src/common/bytecode_util.h @@ -0,0 +1,77 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +#pragma once + +#include +#include +#include + +#include "include/proxy-wasm/wasm_vm.h" + +namespace proxy_wasm { +namespace common { + +// Utilitiy functions which directly operate on Wasm bytecodes. +class BytecodeUtil { +public: + /** + * checkWasmHeader validates Wasm header. + * @param bytecode is the target bytecode. + * @return indicates whether the bytecode has valid Wasm header. + */ + static bool checkWasmHeader(std::string_view bytecode); + + /** + * getAbiVersion extracts ABI version from the bytecode. + * @param bytecode is the target bytecode. + * @param ret is the reference to store the extracted ABI version or UnKnown if it doesn't exist. + * @return indicates whether parsing succeeded or not. + */ + static bool getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersion &ret); + + /** + * getCustomSection extract the view of the custom section for a given name. + * @param bytecode is the target bytecode. + * @param name is the name of the custom section. + * @param ret is the reference to store the resulting view to the custom section. + * @return indicates whether parsing succeeded or not. + */ + static bool getCustomSection(std::string_view bytecode, std::string_view name, + std::string_view &ret); + + /** + * getFunctionNameIndex constructs the map from function indexes to function names stored in + * the function name subsection in "name" custom section. + * See https://webassembly.github.io/spec/core/appendix/custom.html#binary-funcnamesec for detail. + * @param bytecode is the target bytecode. + * @param ret is the reference to store map from function indexes to function names. + * @return indicates whether parsing succeeded or not. + */ + static bool getFunctionNameIndex(std::string_view bytecode, + std::unordered_map &ret); + + /** + * getStrippedSource gets Wasm module without Custom Sections to save some memory in workers. + * @param bytecode is the original bytecode. + * @param ret is the reference to the stripped bytecode or a copy of the original bytecode. + * @return indicates whether parsing succeeded or not. + */ + static bool getStrippedSource(std::string_view bytecode, std::string &ret); + +private: + static bool parseVarint(const char *&begin, const char *end, uint32_t &ret); +}; + +} // namespace common +} // namespace proxy_wasm diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index 80a2210e0..a048c7da4 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -104,11 +104,6 @@ bool NullVm::getWord(uint64_t pointer, Word *data) { size_t NullVm::getWordSize() { return sizeof(uint64_t); } -std::string_view NullVm::getCustomSection(std::string_view /* name */) { - // Return nothing: there is no WASM file. - return {}; -} - std::string_view NullVm::getPrecompiledSectionName() { // Return nothing: there is no WASM file. return {}; diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 986ce10f1..14ba46f65 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -25,6 +25,8 @@ #include #include +#include "src/common/bytecode_util.h" + #include "v8.h" #include "v8-version.h" #include "wasm-api/wasm.hh" @@ -64,7 +66,6 @@ class V8 : public WasmVm { bool load(const std::string &code, bool allow_precompiled) override; AbiVersion getAbiVersion() override; - std::string_view getCustomSection(std::string_view name) override; std::string_view getPrecompiledSectionName() override; bool link(std::string_view debug_name) override; @@ -94,8 +95,6 @@ class V8 : public WasmVm { #undef _GET_MODULE_FUNCTION private: - void buildFunctionNameIndex(); - wasm::vec getStrippedSource(); std::string getFailMessage(std::string_view function_name, wasm::own trap); template @@ -114,7 +113,6 @@ class V8 : public WasmVm { void getModuleFunctionImpl(std::string_view function_name, std::function *function); - wasm::vec source_ = wasm::vec::invalid(); wasm::own store_; wasm::own module_; wasm::own> shared_module_; @@ -125,6 +123,7 @@ class V8 : public WasmVm { std::unordered_map host_functions_; std::unordered_map> module_functions_; + AbiVersion abi_version_; std::unordered_map function_names_index_; }; @@ -208,21 +207,6 @@ static bool equalValTypes(const wasm::ownvec &left, return true; } -static uint32_t parseVarint(const byte_t *&pos, const byte_t *end) { - uint32_t n = 0; - uint32_t shift = 0; - byte_t b; - do { - if (pos + 1 > end) { - abort(); - } - b = *pos++; - n += (b & 0x7f) << shift; - shift += 7; - } while ((b & 0x80) != 0); - return n; -} - // Template magic. template struct ConvertWordType { @@ -270,19 +254,20 @@ template constexpr T convertValTypesToArgsTuple(const U bool V8::load(const std::string &code, bool allow_precompiled) { store_ = wasm::Store::make(engine()); - // Wasm file header is 8 bytes (magic number + version). - static const uint8_t magic_number[4] = {0x00, 0x61, 0x73, 0x6d}; - if (code.size() < 8 || ::memcmp(code.data(), magic_number, 4) != 0) { + // Get ABI version from bytecode. + if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); return false; } - source_ = wasm::vec::make_uninitialized(code.size()); - ::memcpy(source_.get(), code.data(), code.size()); - if (allow_precompiled) { const auto section_name = getPrecompiledSectionName(); if (!section_name.empty()) { - const auto precompiled = getCustomSection(section_name); + std::string_view precompiled = {}; + if (!common::BytecodeUtil::getCustomSection(code, section_name, precompiled)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + } if (!precompiled.empty()) { auto vec = wasm::vec::make_uninitialized(precompiled.size()); ::memcpy(vec.get(), precompiled.data(), precompiled.size()); @@ -298,8 +283,13 @@ bool V8::load(const std::string &code, bool allow_precompiled) { } if (!module_) { - const auto stripped_source = getStrippedSource(); - module_ = wasm::Module::make(store_.get(), stripped_source ? stripped_source : source_); + std::string stripped; + if (!common::BytecodeUtil::getStrippedSource(code, stripped)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + }; + wasm::vec stripped_vec = wasm::vec::make(stripped.size(), stripped.data()); + module_ = wasm::Module::make(store_.get(), stripped_vec); } if (module_) { @@ -307,58 +297,14 @@ bool V8::load(const std::string &code, bool allow_precompiled) { assert((shared_module_ != nullptr)); } - buildFunctionNameIndex(); + if (!common::BytecodeUtil::getFunctionNameIndex(code, function_names_index_)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + }; return module_ != nullptr; } -void V8::buildFunctionNameIndex() { - // build function index -> function name map for backtrace - // https://webassembly.github.io/spec/core/appendix/custom.html#binary-namesubsection - auto name_section = getCustomSection("name"); - if (name_section.size()) { - const byte_t *pos = name_section.data(); - const byte_t *end = name_section.data() + name_section.size(); - while (pos < end) { - if (*pos++ != 1) { - pos += parseVarint(pos, end); - } else { - const auto size = parseVarint(pos, end); - if (size == static_cast(-1) || pos + size > end) { - function_names_index_ = {}; - return; - } - const auto start = pos; - const auto namemap_vector_size = parseVarint(pos, end); - if (namemap_vector_size == static_cast(-1) || pos + namemap_vector_size > end) { - function_names_index_ = {}; - return; - } - for (auto i = 0; i < namemap_vector_size; i++) { - const auto func_index = parseVarint(pos, end); - if (func_index == static_cast(-1)) { - function_names_index_ = {}; - return; - } - - const auto func_name_size = parseVarint(pos, end); - if (func_name_size == static_cast(-1) || pos + func_name_size > end) { - function_names_index_ = {}; - return; - } - function_names_index_.insert({func_index, std::string(pos, func_name_size)}); - pos += func_name_size; - } - - if (start + size != pos) { - function_names_index_ = {}; - return; - } - } - } - } -} - std::unique_ptr V8::clone() { assert(shared_module_ != nullptr); @@ -368,97 +314,11 @@ std::unique_ptr V8::clone() { clone->module_ = wasm::Module::obtain(clone->store_.get(), shared_module_.get()); clone->function_names_index_ = function_names_index_; + clone->abi_version_ = abi_version_; return clone; } -// Get Wasm module without Custom Sections to save some memory in workers. -wasm::vec V8::getStrippedSource() { - assert(source_.get() != nullptr); - - std::vector stripped; - - const byte_t *pos = source_.get() + 8 /* Wasm header */; - const byte_t *end = source_.get() + source_.size(); - while (pos < end) { - const auto section_start = pos; - if (pos + 1 > end) { - return wasm::vec::invalid(); - } - const auto section_type = *pos++; - const auto section_len = parseVarint(pos, end); - if (section_len == static_cast(-1) || pos + section_len > end) { - return wasm::vec::invalid(); - } - if (section_type == 0 /* custom section */) { - const auto section_data_start = pos; - const auto section_name_len = parseVarint(pos, end); - if (section_name_len == static_cast(-1) || pos + section_name_len > end) { - return wasm::vec::invalid(); - } - auto section_name = std::string_view(pos, section_name_len); - if (section_name.find("precompiled_") != std::string::npos) { - // If this is the first "precompiled_" section, then save everything - // before it, otherwise skip it. - if (stripped.empty()) { - const byte_t *start = source_.get(); - stripped.insert(stripped.end(), start, section_start); - } - } - pos = section_data_start + section_len; - } else { - pos += section_len; - // Save this section if we already saw a custom "precompiled_" section. - if (!stripped.empty()) { - stripped.insert(stripped.end(), section_start, pos /* section end */); - } - } - } - - // No custom sections found, use the original source. - if (stripped.empty()) { - return wasm::vec::invalid(); - } - - // Return stripped source, without custom sections. - return wasm::vec::make(stripped.size(), stripped.data()); -} - -std::string_view V8::getCustomSection(std::string_view name) { - assert(source_.get() != nullptr); - - const byte_t *pos = source_.get() + 8 /* Wasm header */; - const byte_t *end = source_.get() + source_.size(); - while (pos < end) { - if (pos + 1 > end) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return ""; - } - const auto section_type = *pos++; - const auto section_len = parseVarint(pos, end); - if (section_len == static_cast(-1) || pos + section_len > end) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return ""; - } - if (section_type == 0 /* custom section */) { - const auto section_data_start = pos; - const auto section_name_len = parseVarint(pos, end); - if (section_name_len == static_cast(-1) || pos + section_name_len > end) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return ""; - } - if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { - pos += section_name_len; - return {pos, static_cast(section_data_start + section_len - pos)}; - } - pos = section_data_start + section_len; - } else { - pos += section_len; - } - } - return ""; -} - #if defined(__linux__) && defined(__x86_64__) #define WEE8_PLATFORM "linux_x86_64" #else @@ -475,25 +335,7 @@ std::string_view V8::getPrecompiledSectionName() { return name; } -AbiVersion V8::getAbiVersion() { - assert(module_ != nullptr); - - const auto export_types = module_.get()->exports(); - for (size_t i = 0; i < export_types.size(); i++) { - if (export_types[i]->type()->kind() == wasm::EXTERN_FUNC) { - std::string_view name(export_types[i]->name().get(), export_types[i]->name().size()); - if (name == "proxy_abi_version_0_1_0") { - return AbiVersion::ProxyWasm_0_1_0; - } else if (name == "proxy_abi_version_0_2_0") { - return AbiVersion::ProxyWasm_0_2_0; - } else if (name == "proxy_abi_version_0_2_1") { - return AbiVersion::ProxyWasm_0_2_1; - } - } - } - - return AbiVersion::Unknown; -} +AbiVersion V8::getAbiVersion() { return abi_version_; } bool V8::link(std::string_view debug_name) { assert(module_ != nullptr); diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index dec8ecbbb..3ff503645 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -25,7 +25,9 @@ #include #include "include/proxy-wasm/wasm_vm.h" +#include "src/common/bytecode_util.h" #include "src/wasmtime/types.h" + #include "wasmtime/include/wasm.h" namespace proxy_wasm { @@ -57,7 +59,6 @@ class Wasmtime : public WasmVm { bool load(const std::string &code, bool allow_precompiled = false) override; AbiVersion getAbiVersion() override; - std::string_view getCustomSection(std::string_view name) override; bool link(std::string_view debug_name) override; std::unique_ptr clone() override; uint64_t getMemorySize() override; @@ -82,8 +83,6 @@ class Wasmtime : public WasmVm { FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) #undef _GET_MODULE_FUNCTION private: - bool getStrippedSource(WasmByteVec *out); - template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, void (*function)(void *, Args...)); @@ -100,50 +99,37 @@ class Wasmtime : public WasmVm { void getModuleFunctionImpl(std::string_view function_name, std::function *function); - WasmByteVec source_; WasmStorePtr store_; WasmModulePtr module_; WasmSharedModulePtr shared_module_; WasmInstancePtr instance_; - WasmMemoryPtr memory_; WasmTablePtr table_; std::unordered_map host_functions_; std::unordered_map module_functions_; -}; -// TODO(mathetake): move to proxy_wasm::common::* -static uint32_t parseVarint(const byte_t *&pos, const byte_t *end) { - uint32_t n = 0; - uint32_t shift = 0; - byte_t b; - do { - if (pos + 1 > end) { - abort(); - } - b = *pos++; - n += (b & 0x7f) << shift; - shift += 7; - } while ((b & 0x80) != 0); - return n; -} + AbiVersion abi_version_; +}; bool Wasmtime::load(const std::string &code, bool allow_precompiled) { store_ = wasm_store_new(engine()); - // Wasm file header is 8 bytes (magic number + version). - static const uint8_t magic_number[4] = {0x00, 0x61, 0x73, 0x6d}; - if (code.size() < 8 || ::memcmp(code.data(), magic_number, 4) != 0) { + // Get ABI version from bytecode. + if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); return false; } - wasm_byte_vec_new_uninitialized(source_.get(), code.size()); - ::memcpy(source_.get()->data, code.data(), code.size()); + std::string stripped; + if (!common::BytecodeUtil::getStrippedSource(code, stripped)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + }; - WasmByteVec stripped; - module_ = - wasm_module_new(store_.get(), getStrippedSource(&stripped) ? stripped.get() : source_.get()); + WasmByteVec stripped_vec; + wasm_byte_vec_new(stripped_vec.get(), stripped.size(), stripped.data()); + module_ = wasm_module_new(store_.get(), stripped_vec.get()); if (module_) { shared_module_ = wasm_module_share(module_.get()); @@ -160,56 +146,9 @@ std::unique_ptr Wasmtime::clone() { clone->integration().reset(integration()->clone()); clone->store_ = wasm_store_new(engine()); clone->module_ = wasm_module_obtain(clone->store_.get(), shared_module_.get()); - return clone; -} - -// TODO(mathetake): move to proxy_wasm::common::* -bool Wasmtime::getStrippedSource(WasmByteVec *out) { - std::vector stripped; - - const byte_t *pos = source_.get()->data + 8 /* Wasm header */; - const byte_t *end = source_.get()->data + source_.get()->size; - while (pos < end) { - const auto section_start = pos; - if (pos + 1 > end) { - return false; - } - const auto section_type = *pos++; - const auto section_len = parseVarint(pos, end); - if (section_len == static_cast(-1) || pos + section_len > end) { - return false; - } - if (section_type == 0 /* custom section */) { - const auto section_data_start = pos; - const auto section_name_len = parseVarint(pos, end); - if (section_name_len == static_cast(-1) || pos + section_name_len > end) { - return false; - } - auto section_name = std::string_view(pos, section_name_len); - if (section_name.find("precompiled_") != std::string::npos) { - // If this is the first "precompiled_" section, then save everything - // before it, otherwise skip it. - if (stripped.empty()) { - const byte_t *start = source_.get()->data; - stripped.insert(stripped.end(), start, section_start); - } - } - pos = section_data_start + section_len; - } else { - pos += section_len; - // Save this section if we already saw a custom "precompiled_" section. - if (!stripped.empty()) { - stripped.insert(stripped.end(), section_start, pos /* section end */); - } - } - } + clone->abi_version_ = abi_version_; - if (!stripped.empty()) { - wasm_byte_vec_new_uninitialized(out->get(), stripped.size()); - ::memcpy(out->get()->data, stripped.data(), stripped.size()); - return true; - } - return false; + return clone; } static bool equalValTypes(const wasm_valtype_vec_t *left, const wasm_valtype_vec_t *right) { @@ -400,41 +339,6 @@ bool Wasmtime::link(std::string_view debug_name) { return true; } -std::string_view Wasmtime::getCustomSection(std::string_view name) { - const byte_t *pos = source_.get()->data + 8 /* Wasm header */; - const byte_t *end = source_.get()->data + source_.get()->size; - while (pos < end) { - if (pos + 1 > end) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return ""; - } - const auto section_type = *pos++; - const auto section_len = parseVarint(pos, end); - if (section_len == static_cast(-1) || pos + section_len > end) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return ""; - } - - if (section_type == 0 /* custom section */) { - const auto section_data_start = pos; - const auto section_name_len = parseVarint(pos, end); - if (section_name_len == static_cast(-1) || pos + section_name_len > end) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return ""; - } - if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { - pos += section_name_len; - return {pos, static_cast(section_data_start + section_len - pos)}; - } - pos = section_data_start + section_len; - } else { - pos += section_len; - } - } - - return ""; -} - uint64_t Wasmtime::getMemorySize() { return wasm_memory_data_size(memory_.get()); } std::optional Wasmtime::getMemory(uint64_t pointer, uint64_t size) { @@ -739,27 +643,7 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, }; }; -AbiVersion Wasmtime::getAbiVersion() { - assert(module_ != nullptr); - WasmExportTypeVec export_types; - wasm_module_exports(module_.get(), export_types.get()); - - for (size_t i = 0; i < export_types.get()->size; i++) { - const wasm_externtype_t *exp_extern_type = wasm_exporttype_type(export_types.get()->data[i]); - if (wasm_externtype_kind(exp_extern_type) == WASM_EXTERN_FUNC) { - const wasm_name_t *name_ptr = wasm_exporttype_name(export_types.get()->data[i]); - std::string_view name(name_ptr->data, name_ptr->size); - if (name == "proxy_abi_version_0_1_0") { - return AbiVersion::ProxyWasm_0_1_0; - } else if (name == "proxy_abi_version_0_2_0") { - return AbiVersion::ProxyWasm_0_2_0; - } else if (name == "proxy_abi_version_0_2_1") { - return AbiVersion::ProxyWasm_0_2_1; - } - } - } - return AbiVersion::Unknown; -} +AbiVersion Wasmtime::getAbiVersion() { return abi_version_; } } // namespace wasmtime diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index f96b334fb..d3a4d7627 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -27,6 +27,8 @@ #include #include +#include "src/common/bytecode_util.h" + #include "WAVM/IR/Module.h" #include "WAVM/IR/Operators.h" #include "WAVM/IR/Types.h" @@ -230,7 +232,6 @@ struct Wavm : public WasmVm { bool getWord(uint64_t pointer, Word *data) override; bool setWord(uint64_t pointer, Word data) override; size_t getWordSize() override { return sizeof(uint32_t); }; - std::string_view getCustomSection(std::string_view name) override; std::string_view getPrecompiledSectionName() override; AbiVersion getAbiVersion() override; @@ -278,6 +279,7 @@ Wavm::~Wavm() { std::unique_ptr Wavm::clone() { auto wavm = std::make_unique(); wavm->integration().reset(integration()->clone()); + wavm->abi_version_ = abi_version_; wavm->compartment_ = WAVM::Runtime::cloneCompartment(compartment_); wavm->memory_ = WAVM::Runtime::remapToClonedCompartment(memory_, wavm->compartment_); @@ -301,44 +303,30 @@ bool Wavm::load(const std::string &code, bool allow_precompiled) { if (!loadModule(code, ir_module_)) { return false; } - getAbiVersion(); // Cache ABI version. - const CustomSection *precompiled_object_section = nullptr; + + // Get ABI version from bytecode. + if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + } + + std::string_view precompiled = {}; if (allow_precompiled) { - for (const CustomSection &customSection : ir_module_.customSections) { - if (customSection.name == getPrecompiledSectionName()) { - precompiled_object_section = &customSection; - break; - } + if (!common::BytecodeUtil::getCustomSection(code, getPrecompiledSectionName(), precompiled)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; } } - if (!precompiled_object_section) { + if (precompiled.empty()) { module_ = WAVM::Runtime::compileModule(ir_module_); } else { - module_ = WAVM::Runtime::loadPrecompiledModule(ir_module_, precompiled_object_section->data); + module_ = WAVM::Runtime::loadPrecompiledModule( + ir_module_, {precompiled.data(), precompiled.data() + precompiled.size()}); } return true; } -AbiVersion Wavm::getAbiVersion() { - if (abi_version_ != AbiVersion::Unknown) { - return abi_version_; - } - for (auto &e : ir_module_.exports) { - if (e.name == "proxy_abi_version_0_1_0") { - abi_version_ = AbiVersion::ProxyWasm_0_1_0; - return abi_version_; - } - if (e.name == "proxy_abi_version_0_2_0") { - abi_version_ = AbiVersion::ProxyWasm_0_2_0; - return abi_version_; - } - if (e.name == "proxy_abi_version_0_2_1") { - abi_version_ = AbiVersion::ProxyWasm_0_2_1; - return abi_version_; - } - } - return AbiVersion::Unknown; -} +AbiVersion Wavm::getAbiVersion() { return abi_version_; } bool Wavm::link(std::string_view debug_name) { RootResolver rootResolver(compartment_, this); @@ -400,15 +388,6 @@ bool Wavm::setWord(uint64_t pointer, Word data) { return setMemory(pointer, sizeof(uint32_t), &data32); } -std::string_view Wavm::getCustomSection(std::string_view name) { - for (auto §ion : ir_module_.customSections) { - if (section.name == name) { - return {reinterpret_cast(section.data.data()), section.data.size()}; - } - } - return {}; -} - std::string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_object"; } } // namespace Wavm diff --git a/test/BUILD b/test/BUILD index 52b6113d0..0fad5ceb6 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,6 +1,8 @@ load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS", "LINKOPTS") +package(default_visibility = ["//visibility:public"]) + cc_test( name = "null_vm_test", srcs = ["null_vm_test.cc"], diff --git a/test/common/BUILD b/test/common/BUILD new file mode 100644 index 000000000..c76fc5e48 --- /dev/null +++ b/test/common/BUILD @@ -0,0 +1,17 @@ +load("@rules_cc//cc:defs.bzl", "cc_test") +load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS") + +cc_test( + name = "bytecode_util_test", + srcs = ["bytecode_util_test.cc"], + copts = COPTS, + data = [ + "//test/test_data:abi_export.wasm", + ], + deps = [ + "//:lib", + "//test:utility_lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) diff --git a/test/common/bytecode_util_test.cc b/test/common/bytecode_util_test.cc new file mode 100644 index 000000000..50900c0ce --- /dev/null +++ b/test/common/bytecode_util_test.cc @@ -0,0 +1,121 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/common/bytecode_util.h" + +#include +#include +#include + +#include "test/utility.h" + +#include "gtest/gtest.h" + +namespace proxy_wasm { +namespace common { + +TEST(TestWasmCommonUtil, getCustomSection) { + std::string custom_section = { + 0x00, 0x61, 0x73, 0x6d, // Wasm magic + 0x01, 0x00, 0x00, 0x00, // Wasm version + 0x00, // custom section id + 0x0a, // section length + 0x04, 0x68, 0x65, 0x79, 0x21, // section name: "hey!" + 0x68, 0x65, 0x6c, 0x6c, 0x6f, // content: "hello" + }; + std::string_view section = {}; + + // OK. + EXPECT_TRUE(BytecodeUtil::getCustomSection(custom_section, "hey!", section)); + EXPECT_EQ(std::string(section), "hello"); + section = {}; + + // Non exist. + EXPECT_TRUE(BytecodeUtil::getCustomSection(custom_section, "non-exist", section)); + EXPECT_EQ(section, ""); + + // Fail due to the corrupted bytecode. + // TODO(@mathetake): here we haven't covered all the parsing failure branches. Add more cases. + std::string corrupted = {custom_section.data(), + custom_section.data() + custom_section.size() - 3}; + EXPECT_FALSE(BytecodeUtil::getCustomSection(corrupted, "hey", section)); + corrupted = {custom_section.data() + 1, custom_section.data() + custom_section.size()}; + EXPECT_FALSE(BytecodeUtil::getCustomSection(corrupted, "hey", section)); +} + +TEST(TestWasmCommonUtil, getFunctionNameIndex) { + const auto source = readTestWasmFile("abi_export.wasm"); + std::unordered_map actual; + // OK. + EXPECT_TRUE(BytecodeUtil::getFunctionNameIndex(source, actual)); + EXPECT_FALSE(actual.empty()); + EXPECT_EQ(actual.find(0)->second, "proxy_abi_version_0_2_0"); + + // Fail due to the corrupted bytecode. + // TODO(@mathetake): here we haven't covered all the parsing failure branches. Add more cases. + actual = {}; + std::string_view name_section = {}; + EXPECT_TRUE(BytecodeUtil::getCustomSection(source, "name", name_section)); + // Passing module with malformed custom section. + std::string corrupted = {source.data(), name_section.data() + 1}; + EXPECT_FALSE(BytecodeUtil::getFunctionNameIndex(corrupted, actual)); + EXPECT_TRUE(actual.empty()); +} + +TEST(TestWasmCommonUtil, getStrippedSource) { + // Unmodified case. + auto source = readTestWasmFile("abi_export.wasm"); + std::string actual; + EXPECT_TRUE(BytecodeUtil::getStrippedSource(source, actual)); + // If no `precompiled_` is found in the custom sections, + // then the copy of the original should be returned. + EXPECT_FALSE(actual.empty()); + EXPECT_TRUE(actual.data() != source.data()); + EXPECT_EQ(actual, source); + + // Append "precompiled_test" custom section + std::vector custom_section = {// custom section id + 0x00, + // section length + 0x13, + // name length + 0x10, + // name = precompiled_test + 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x64, 0x5f, 0x74, 0x65, 0x73, 0x74, + // content + 0x01, 0x01}; + + source.append(custom_section.data(), custom_section.size()); + std::string_view section = {}; + EXPECT_TRUE(BytecodeUtil::getCustomSection(source, "precompiled_test", section)); + EXPECT_FALSE(section.empty()); + + // Chcek if the custom section is stripped. + actual = {}; + EXPECT_TRUE(BytecodeUtil::getStrippedSource(source, actual)); + // No `precompiled_` is found in the custom sections. + EXPECT_FALSE(actual.empty()); + EXPECT_EQ(actual.size(), source.size() - custom_section.size()); +} + +TEST(TestWasmCommonUtil, getAbiVersion) { + const auto source = readTestWasmFile("abi_export.wasm"); + proxy_wasm::AbiVersion actual; + EXPECT_TRUE(BytecodeUtil::getAbiVersion(source, actual)); + EXPECT_EQ(actual, proxy_wasm::AbiVersion::ProxyWasm_0_2_0); +} + +} // namespace common +} // namespace proxy_wasm diff --git a/test/null_vm_test.cc b/test/null_vm_test.cc index 26d45473d..0201b8599 100644 --- a/test/null_vm_test.cc +++ b/test/null_vm_test.cc @@ -68,7 +68,6 @@ TEST_F(BaseVmTest, NullVmStartup) { EXPECT_TRUE(wasm_vm->cloneable() == Cloneable::InstantiatedModule); auto wasm_vm_clone = wasm_vm->clone(); EXPECT_TRUE(wasm_vm_clone != nullptr); - EXPECT_TRUE(wasm_vm->getCustomSection("user").empty()); EXPECT_TRUE(wasm_vm->load("test_null_vm_plugin", true)); EXPECT_NE(test_null_vm_plugin, nullptr); } diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 078a1db05..7128d8c76 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -44,21 +44,6 @@ TEST_P(TestVM, ABIVersion) { ASSERT_EQ(vm_->getAbiVersion(), AbiVersion::ProxyWasm_0_2_0); } -TEST_P(TestVM, CustomSection) { - initialize("abi_export.wasm"); - char custom_section[12] = { - 0x00, // custom section id - 0x0a, // section length - 0x04, 0x68, 0x65, 0x79, 0x21, // section name: "hey!" - 0x68, 0x65, 0x6c, 0x6c, 0x6f, // content: "hello" - }; - - source_ = source_.append(&custom_section[0], 12); - ASSERT_TRUE(vm_->load(source_, false)); - auto name_section = vm_->getCustomSection("hey!"); - ASSERT_EQ(name_section, "hello"); -} - TEST_P(TestVM, Memory) { initialize("abi_export.wasm"); ASSERT_TRUE(vm_->load(source_, false)); @@ -188,5 +173,26 @@ TEST_P(TestVM, Trap) { ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); } +TEST_P(TestVM, WithPrecompiledSection) { + // Verify that stripping precompile_* custom section works. + initialize("abi_export.wasm"); + // Append precompiled_test section + std::vector custom_section = {// custom section id + 0x00, + // section length + 0x13, + // name length + 0x10, + // name = precompiled_test + 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, + 0x64, 0x5f, 0x74, 0x65, 0x73, 0x74, + // content + 0x01, 0x01}; + + source_.append(custom_section.data(), custom_section.size()); + ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_EQ(vm_->getAbiVersion(), AbiVersion::ProxyWasm_0_2_0); +} + } // namespace } // namespace proxy_wasm diff --git a/test/utility.cc b/test/utility.cc index 7e7ba4177..e55a5773c 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -32,4 +32,13 @@ std::vector getRuntimes() { runtimes.pop_back(); return runtimes; } + +std::string readTestWasmFile(std::string filename) { + auto path = "test/test_data/" + filename; + std::ifstream file(path, std::ios::binary); + EXPECT_FALSE(file.fail()) << "failed to open: " << path; + std::stringstream file_string_stream; + file_string_stream << file.rdbuf(); + return file_string_stream.str(); +} } // namespace proxy_wasm diff --git a/test/utility.h b/test/utility.h index de844d8da..22a86f1f0 100644 --- a/test/utility.h +++ b/test/utility.h @@ -35,6 +35,9 @@ namespace proxy_wasm { +std::vector getRuntimes(); +std::string readTestWasmFile(std::string filename); + struct DummyIntegration : public WasmVmIntegration { ~DummyIntegration() override{}; WasmVmIntegration *clone() override { return new DummyIntegration{}; } @@ -81,21 +84,10 @@ class TestVM : public testing::TestWithParam { vm_->integration().reset(integration_); } - DummyIntegration *integration_; - - void initialize(std::string filename) { - auto path = "test/test_data/" + filename; - std::ifstream file(path, std::ios::binary); - EXPECT_FALSE(file.fail()) << "failed to open: " << path; - std::stringstream file_string_stream; - file_string_stream << file.rdbuf(); - source_ = file_string_stream.str(); - } + void initialize(std::string filename) { source_ = readTestWasmFile(filename); } + DummyIntegration *integration_; std::string source_; std::string runtime_; }; - -std::vector getRuntimes(); - } // namespace proxy_wasm From 38e6dbdb5e61be71f86517eeac7c0993f72cc7b3 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 15 Apr 2021 04:02:54 -0700 Subject: [PATCH 092/287] v8: fix build on Windows. (#117) Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 42 +++++++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 14ba46f65..57c9c6dcc 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -572,14 +572,22 @@ void V8::getModuleFunctionImpl(std::string_view function_name, return; } *function = [func, function_name, this](ContextBase *context, Args... args) -> void { - wasm::Val params[] = {makeVal(args)...}; const bool log = cmpLogLevel(LogLevel::trace); - if (log) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + - printValues(params, sizeof...(Args)) + ")"); - } SaveRestoreContext saved_context(context); - auto trap = func->call(params, nullptr); + wasm::own trap = nullptr; + if constexpr (sizeof...(args) > 0) { + wasm::Val params[] = {makeVal(args)...}; + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + trap = func->call(params, nullptr); + } else { + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "()"); + } + trap = func->call(nullptr, nullptr); + } if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return; @@ -612,15 +620,23 @@ void V8::getModuleFunctionImpl(std::string_view function_name, return; } *function = [func, function_name, this](ContextBase *context, Args... args) -> R { - wasm::Val params[] = {makeVal(args)...}; - wasm::Val results[1]; const bool log = cmpLogLevel(LogLevel::trace); - if (log) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + - printValues(params, sizeof...(Args)) + ")"); - } SaveRestoreContext saved_context(context); - auto trap = func->call(params, results); + wasm::Val results[1]; + wasm::own trap = nullptr; + if constexpr (sizeof...(args) > 0) { + wasm::Val params[] = {makeVal(args)...}; + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + trap = func->call(params, results); + } else { + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "()"); + } + trap = func->call(nullptr, results); + } if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return R{}; From 4b33df7638637fcc680291daa9d7a57c59e0411e Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 20 Apr 2021 11:41:57 +0900 Subject: [PATCH 093/287] Return StopAllIterationAndWatermark in fail_close cases. (#154) in favor of #95, returns StopAllIterationAndWatermark to stop the further body processing in VM failure with fail_close cases. Signed-off-by: Takeshi Yoneda --- src/context.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/context.cc b/src/context.cc index c213feed3..6825f1336 100644 --- a/src/context.cc +++ b/src/context.cc @@ -308,7 +308,7 @@ template static uint32_t headerSize(const P &p) { return p ? p->siz FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_stream) { CHECK_HTTP2(on_request_headers_abi_01_, on_request_headers_abi_02_, FilterHeadersStatus::Continue, - FilterHeadersStatus::StopIteration); + FilterHeadersStatus::StopAllIterationAndWatermark); DeferAfterCallActions actions(this); return convertVmCallResultToFilterHeadersStatus( wasm_->on_request_headers_abi_01_ @@ -343,7 +343,7 @@ FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of_stream) { CHECK_HTTP2(on_response_headers_abi_01_, on_response_headers_abi_02_, - FilterHeadersStatus::Continue, FilterHeadersStatus::StopIteration); + FilterHeadersStatus::Continue, FilterHeadersStatus::StopAllIterationAndWatermark); DeferAfterCallActions actions(this); return convertVmCallResultToFilterHeadersStatus( wasm_->on_response_headers_abi_01_ From 579189940ee48ebf1fb1d6539483506bee89f0b4 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 28 Apr 2021 09:29:27 +0900 Subject: [PATCH 094/287] Refactor around VM failure check on Http/Tcp callbacks. (#155) Refactored around VM failure check on Http and Tcp callbacks in order to handle the VM failure right after it happens. Previously, for example, when panic happens in OnResponseHeaders, then we return Continue since we didn't check the isFail after the Wasm calls. That means Envoy sends the response headers to the client even if the VM fails in OnResponseHeaders, and the failClose is called on OnResponseBody. This seems problematic and unintended. Relevant to https://github.com/envoyproxy/envoy/issues/14947. Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/context.h | 1 + src/context.cc | 165 +++++++++++++++++++---------------- 2 files changed, 92 insertions(+), 74 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index bf770a7bf..c373cf324 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -389,6 +389,7 @@ class ContextBase : public RootInterface, std::shared_ptr temp_plugin_; // Remove once ABI v0.1.0 is gone. bool in_vm_context_created_ = false; bool destroyed_ = false; + bool stream_failed_ = false; // Set true after failStream is called in case of VM failure. private: // helper functions diff --git a/src/context.cc b/src/context.cc index 6825f1336..a13f79000 100644 --- a/src/context.cc +++ b/src/context.cc @@ -25,40 +25,22 @@ #include "src/shared_data.h" #include "src/shared_queue.h" -#define CHECK_FAIL(_call, _stream_type, _return_open, _return_closed) \ +#define CHECK_FAIL(_stream_type, _stream_type2, _return_open, _return_closed) \ if (isFailed()) { \ if (plugin_->fail_open_) { \ return _return_open; \ - } else { \ + } else if (!stream_failed_) { \ failStream(_stream_type); \ - return _return_closed; \ - } \ - } else { \ - if (!wasm_->_call) { \ - return _return_open; \ - } \ - } - -#define CHECK_FAIL2(_call1, _call2, _stream_type, _return_open, _return_closed) \ - if (isFailed()) { \ - if (plugin_->fail_open_) { \ - return _return_open; \ - } else { \ - failStream(_stream_type); \ - return _return_closed; \ - } \ - } else { \ - if (!wasm_->_call1 && !wasm_->_call2) { \ - return _return_open; \ + failStream(_stream_type2); \ + stream_failed_ = true; \ } \ + return _return_closed; \ } -#define CHECK_HTTP(_call, _return_open, _return_closed) \ - CHECK_FAIL(_call, WasmStreamType::Request, _return_open, _return_closed) -#define CHECK_HTTP2(_call1, _call2, _return_open, _return_closed) \ - CHECK_FAIL2(_call1, _call2, WasmStreamType::Request, _return_open, _return_closed) -#define CHECK_NET(_call, _return_open, _return_closed) \ - CHECK_FAIL(_call, WasmStreamType::Downstream, _return_open, _return_closed) +#define CHECK_FAIL_HTTP(_return_open, _return_closed) \ + CHECK_FAIL(WasmStreamType::Request, WasmStreamType::Response, _return_open, _return_closed) +#define CHECK_FAIL_NET(_return_open, _return_closed) \ + CHECK_FAIL(WasmStreamType::Downstream, WasmStreamType::Upstream, _return_open, _return_closed) namespace proxy_wasm { @@ -263,30 +245,40 @@ void ContextBase::onForeignFunction(uint32_t foreign_function_id, uint32_t data_ } FilterStatus ContextBase::onNetworkNewConnection() { - CHECK_NET(on_new_connection_, FilterStatus::Continue, FilterStatus::StopIteration); - DeferAfterCallActions actions(this); - if (wasm_->on_new_connection_(this, id_).u64_ == 0) { + CHECK_FAIL_NET(FilterStatus::Continue, FilterStatus::StopIteration); + if (!wasm_->on_new_connection_) { return FilterStatus::Continue; } - return FilterStatus::StopIteration; + DeferAfterCallActions actions(this); + const auto result = wasm_->on_new_connection_(this, id_); + CHECK_FAIL_NET(FilterStatus::Continue, FilterStatus::StopIteration); + return result == 0 ? FilterStatus::Continue : FilterStatus::StopIteration; } FilterStatus ContextBase::onDownstreamData(uint32_t data_length, bool end_of_stream) { - CHECK_NET(on_downstream_data_, FilterStatus::Continue, FilterStatus::StopIteration); + CHECK_FAIL_NET(FilterStatus::Continue, FilterStatus::StopIteration); + if (!wasm_->on_downstream_data_) { + return FilterStatus::Continue; + } DeferAfterCallActions actions(this); auto result = wasm_->on_downstream_data_(this, id_, static_cast(data_length), static_cast(end_of_stream)); // TODO(PiotrSikora): pull Proxy-WASM's FilterStatus values. - return result.u64_ == 0 ? FilterStatus::Continue : FilterStatus::StopIteration; + CHECK_FAIL_NET(FilterStatus::Continue, FilterStatus::StopIteration); + return result == 0 ? FilterStatus::Continue : FilterStatus::StopIteration; } FilterStatus ContextBase::onUpstreamData(uint32_t data_length, bool end_of_stream) { - CHECK_NET(on_upstream_data_, FilterStatus::Continue, FilterStatus::StopIteration); + CHECK_FAIL_NET(FilterStatus::Continue, FilterStatus::StopIteration); + if (!wasm_->on_upstream_data_) { + return FilterStatus::Continue; + } DeferAfterCallActions actions(this); auto result = wasm_->on_upstream_data_(this, id_, static_cast(data_length), static_cast(end_of_stream)); // TODO(PiotrSikora): pull Proxy-WASM's FilterStatus values. - return result.u64_ == 0 ? FilterStatus::Continue : FilterStatus::StopIteration; + CHECK_FAIL_NET(FilterStatus::Continue, FilterStatus::StopIteration); + return result == 0 ? FilterStatus::Continue : FilterStatus::StopIteration; } void ContextBase::onDownstreamConnectionClose(CloseType close_type) { @@ -307,74 +299,99 @@ void ContextBase::onUpstreamConnectionClose(CloseType close_type) { template static uint32_t headerSize(const P &p) { return p ? p->size() : 0; } FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_stream) { - CHECK_HTTP2(on_request_headers_abi_01_, on_request_headers_abi_02_, FilterHeadersStatus::Continue, - FilterHeadersStatus::StopAllIterationAndWatermark); + CHECK_FAIL_HTTP(FilterHeadersStatus::Continue, FilterHeadersStatus::StopAllIterationAndWatermark); + if (!wasm_->on_request_headers_abi_01_ && !wasm_->on_request_headers_abi_02_) { + return FilterHeadersStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterHeadersStatus( - wasm_->on_request_headers_abi_01_ - ? wasm_->on_request_headers_abi_01_(this, id_, headers).u64_ - : wasm_ - ->on_request_headers_abi_02_(this, id_, headers, - static_cast(end_of_stream)) - .u64_); + const auto result = wasm_->on_request_headers_abi_01_ + ? wasm_->on_request_headers_abi_01_(this, id_, headers) + : wasm_->on_request_headers_abi_02_(this, id_, headers, + static_cast(end_of_stream)); + CHECK_FAIL_HTTP(FilterHeadersStatus::Continue, FilterHeadersStatus::StopAllIterationAndWatermark); + return convertVmCallResultToFilterHeadersStatus(result); } FilterDataStatus ContextBase::onRequestBody(uint32_t data_length, bool end_of_stream) { - CHECK_HTTP(on_request_body_, FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); + CHECK_FAIL_HTTP(FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); + if (!wasm_->on_request_body_) { + return FilterDataStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterDataStatus( - wasm_->on_request_body_(this, id_, data_length, static_cast(end_of_stream)).u64_); + const auto result = + wasm_->on_request_body_(this, id_, data_length, static_cast(end_of_stream)); + CHECK_FAIL_HTTP(FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); + return convertVmCallResultToFilterDataStatus(result); } FilterTrailersStatus ContextBase::onRequestTrailers(uint32_t trailers) { - CHECK_HTTP(on_request_trailers_, FilterTrailersStatus::Continue, - FilterTrailersStatus::StopIteration); + CHECK_FAIL_HTTP(FilterTrailersStatus::Continue, FilterTrailersStatus::StopIteration); + if (!wasm_->on_request_trailers_) { + return FilterTrailersStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterTrailersStatus( - wasm_->on_request_trailers_(this, id_, trailers).u64_); + const auto result = wasm_->on_request_trailers_(this, id_, trailers); + CHECK_FAIL_HTTP(FilterTrailersStatus::Continue, FilterTrailersStatus::StopIteration); + return convertVmCallResultToFilterTrailersStatus(result); } FilterMetadataStatus ContextBase::onRequestMetadata(uint32_t elements) { - CHECK_HTTP(on_request_metadata_, FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); + CHECK_FAIL_HTTP(FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); + if (!wasm_->on_request_metadata_) { + return FilterMetadataStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterMetadataStatus( - wasm_->on_request_metadata_(this, id_, elements).u64_); + const auto result = wasm_->on_request_metadata_(this, id_, elements); + CHECK_FAIL_HTTP(FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); + return convertVmCallResultToFilterMetadataStatus(result); } FilterHeadersStatus ContextBase::onResponseHeaders(uint32_t headers, bool end_of_stream) { - CHECK_HTTP2(on_response_headers_abi_01_, on_response_headers_abi_02_, - FilterHeadersStatus::Continue, FilterHeadersStatus::StopAllIterationAndWatermark); + CHECK_FAIL_HTTP(FilterHeadersStatus::Continue, FilterHeadersStatus::StopAllIterationAndWatermark); + if (!wasm_->on_response_headers_abi_01_ && !wasm_->on_response_headers_abi_02_) { + return FilterHeadersStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterHeadersStatus( - wasm_->on_response_headers_abi_01_ - ? wasm_->on_response_headers_abi_01_(this, id_, headers).u64_ - : wasm_ - ->on_response_headers_abi_02_(this, id_, headers, - static_cast(end_of_stream)) - .u64_); + const auto result = wasm_->on_response_headers_abi_01_ + ? wasm_->on_response_headers_abi_01_(this, id_, headers) + : wasm_->on_response_headers_abi_02_( + this, id_, headers, static_cast(end_of_stream)); + CHECK_FAIL_HTTP(FilterHeadersStatus::Continue, FilterHeadersStatus::StopAllIterationAndWatermark); + return convertVmCallResultToFilterHeadersStatus(result); } FilterDataStatus ContextBase::onResponseBody(uint32_t body_length, bool end_of_stream) { - CHECK_HTTP(on_response_body_, FilterDataStatus::Continue, - FilterDataStatus::StopIterationNoBuffer); + CHECK_FAIL_HTTP(FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); + if (!wasm_->on_response_body_) { + return FilterDataStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterDataStatus( - wasm_->on_response_body_(this, id_, body_length, static_cast(end_of_stream)).u64_); + const auto result = + wasm_->on_response_body_(this, id_, body_length, static_cast(end_of_stream)); + CHECK_FAIL_HTTP(FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); + return convertVmCallResultToFilterDataStatus(result); } FilterTrailersStatus ContextBase::onResponseTrailers(uint32_t trailers) { - CHECK_HTTP(on_response_trailers_, FilterTrailersStatus::Continue, - FilterTrailersStatus::StopIteration); + CHECK_FAIL_HTTP(FilterTrailersStatus::Continue, FilterTrailersStatus::StopIteration); + if (!wasm_->on_response_trailers_) { + return FilterTrailersStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterTrailersStatus( - wasm_->on_response_trailers_(this, id_, trailers).u64_); + const auto result = wasm_->on_response_trailers_(this, id_, trailers); + CHECK_FAIL_HTTP(FilterTrailersStatus::Continue, FilterTrailersStatus::StopIteration); + return convertVmCallResultToFilterTrailersStatus(result); } FilterMetadataStatus ContextBase::onResponseMetadata(uint32_t elements) { - CHECK_HTTP(on_response_metadata_, FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); + CHECK_FAIL_HTTP(FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); + if (!wasm_->on_response_metadata_) { + return FilterMetadataStatus::Continue; + } DeferAfterCallActions actions(this); - return convertVmCallResultToFilterMetadataStatus( - wasm_->on_response_metadata_(this, id_, elements).u64_); + const auto result = wasm_->on_response_metadata_(this, id_, elements); + CHECK_FAIL_HTTP(FilterMetadataStatus::Continue, FilterMetadataStatus::Continue); + return convertVmCallResultToFilterMetadataStatus(result); } void ContextBase::onHttpCallResponse(uint32_t token, uint32_t headers, uint32_t body_size, From 31c75e0039f2f5c42dc6e12556cb151a38da6d8b Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Thu, 6 May 2021 16:40:14 +0900 Subject: [PATCH 095/287] wasi: support monotonic clock on clock_time_get. (#156) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/context.h | 13 +++++++++++++ include/proxy-wasm/context_interface.h | 3 +++ src/exports.cc | 15 +++++++++++---- test/BUILD | 1 + test/exports_test.cc | 23 +++++++++++++++++++++++ test/test_data/BUILD | 6 ++++++ test/test_data/clock.rs | 21 +++++++++++++++++++++ 7 files changed, 78 insertions(+), 4 deletions(-) create mode 100644 test/test_data/clock.rs diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index c373cf324..2487e30aa 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -245,6 +245,19 @@ class ContextBase : public RootInterface, #else unimplemented(); return 0; +#endif + } + uint64_t getMonotonicTimeNanoseconds() override { +#if !defined(_MSC_VER) + struct timespec tpe; + clock_gettime(CLOCK_MONOTONIC, &tpe); + uint64_t t = tpe.tv_sec; + t *= 1000000000; + t += tpe.tv_nsec; + return t; +#else + unimplemented(); + return 0; #endif } std::string_view getConfiguration() override { diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 1a6f738d9..841dd0e16 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -557,6 +557,9 @@ struct GeneralInterface { // Provides the current time in nanoseconds since the Unix epoch. virtual uint64_t getCurrentTimeNanoseconds() = 0; + // Provides the monotonic time in nanoseconds. + virtual uint64_t getMonotonicTimeNanoseconds() = 0; + // Returns plugin configuration. virtual std::string_view getConfiguration() = 0; diff --git a/src/exports.cc b/src/exports.cc index 97bbab068..9a6431ceb 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -833,12 +833,19 @@ Word wasi_unstable_args_sizes_get(void *raw_context, Word argc_ptr, Word argv_bu Word wasi_unstable_clock_time_get(void *raw_context, Word clock_id, uint64_t precision, Word result_time_uint64_ptr) { - if (clock_id != 0 /* realtime */) { + uint64_t result = 0; + auto context = WASM_CONTEXT(raw_context); + switch (clock_id) { + case 0 /* realtime */: + result = context->getCurrentTimeNanoseconds(); + break; + case 1 /* monotonic */: + result = context->getMonotonicTimeNanoseconds(); + break; + default: + // process_cputime_id and thread_cputime_id are not supported yet. return 58; // __WASI_ENOTSUP } - - auto context = WASM_CONTEXT(raw_context); - uint64_t result = context->getCurrentTimeNanoseconds(); if (!context->wasm()->setDatatype(result_time_uint64_ptr, result)) { return 21; // __WASI_EFAULT } diff --git a/test/BUILD b/test/BUILD index 0fad5ceb6..60ff362a3 100644 --- a/test/BUILD +++ b/test/BUILD @@ -37,6 +37,7 @@ cc_test( srcs = ["exports_test.cc"], copts = COPTS, data = [ + "//test/test_data:clock.wasm", "//test/test_data:env.wasm", ], linkopts = LINKOPTS, diff --git a/test/exports_test.cc b/test/exports_test.cc index 74e23c080..c35ea02d8 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -91,5 +91,28 @@ TEST_P(TestVM, WithoutEnvironment) { EXPECT_EQ(context.log_msg(), ""); } +TEST_P(TestVM, Clock) { + initialize("clock.wasm"); + auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, false)); + + TestContext context(&wasm_base); + current_context_ = &context; + + wasm_base.registerCallbacks(); + + ASSERT_TRUE(wasm_base.wasm_vm()->link("")); + + WasmCallVoid<0> run; + wasm_base.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run); + run(current_context_); + + // Check logs. + auto msg = context.log_msg(); + EXPECT_NE(std::string::npos, msg.find("monotonic: ")) << msg; + EXPECT_NE(std::string::npos, msg.find("realtime: ")) << msg; +} + } // namespace } // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 715ed92e3..3d99c103e 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -22,3 +22,9 @@ wasm_rust_binary( srcs = ["env.rs"], wasi = True, ) + +wasm_rust_binary( + name = "clock.wasm", + srcs = ["clock.rs"], + wasi = True, +) diff --git a/test/test_data/clock.rs b/test/test_data/clock.rs new file mode 100644 index 000000000..480a2b1bd --- /dev/null +++ b/test/test_data/clock.rs @@ -0,0 +1,21 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use std::time::{Instant, SystemTime}; + +#[no_mangle] +pub extern "C" fn run() { + println!("monotonic: {:?}", Instant::now()); + println!("realtime: {:?}", SystemTime::now()); +} From e641ffa8893477cdb4720f572f50f003cd51a083 Mon Sep 17 00:00:00 2001 From: YaoLe Date: Fri, 7 May 2021 14:02:38 +0800 Subject: [PATCH 096/287] Add support for WebAssembly Micro Runtime (WAMR). (#142) Fixes #134. Signed-off-by: Le Yao Co-authored-by: Liang He --- BUILD | 3 +- WORKSPACE | 4 + bazel/external/wamr.BUILD | 25 ++ bazel/repositories.bzl | 15 + include/proxy-wasm/wamr.h | 26 ++ src/wamr/types.h | 45 +++ src/wamr/wamr.cc | 631 ++++++++++++++++++++++++++++++++++++++ test/utility.cc | 3 + test/utility.h | 7 + 9 files changed, 758 insertions(+), 1 deletion(-) create mode 100644 bazel/external/wamr.BUILD create mode 100644 include/proxy-wasm/wamr.h create mode 100644 src/wamr/types.h create mode 100644 src/wamr/wamr.cc diff --git a/BUILD b/BUILD index 840ccd3a2..74e861df9 100644 --- a/BUILD +++ b/BUILD @@ -23,8 +23,9 @@ cc_library( "src/**/*.h", ], exclude = [ - "src/**/wavm*", "src/**/v8*", + "src/**/wamr*", + "src/**/wavm*", ], ), hdrs = glob(["src/**/*.h"]), diff --git a/WORKSPACE b/WORKSPACE index 77ecd3a0b..2008efc3e 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -7,3 +7,7 @@ proxy_wasm_cpp_host_repositories() load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "proxy_wasm_cpp_host_dependencies") proxy_wasm_cpp_host_dependencies() + +load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") + +rules_foreign_cc_dependencies() diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD new file mode 100644 index 000000000..f1d82a061 --- /dev/null +++ b/bazel/external/wamr.BUILD @@ -0,0 +1,25 @@ +licenses(["notice"]) # Apache 2 + +load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "srcs", + srcs = glob(["**"]), + visibility = ["//visibility:public"], +) + +cmake( + name = "libiwasm", + cache_entries = { + "WAMR_BUILD_INTERP": "1", + "WAMR_BUILD_JIT": "0", + "WAMR_BUILD_AOT": "0", + "WAMR_BUILD_SIMD": "0", + "WAMR_BUILD_MULTI_MODULE": "1", + "WAMR_BUILD_LIBC_WASI": "0", + }, + lib_source = ":srcs", + out_shared_libs = ["libiwasm.so"], +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 280368494..d87c8fbbd 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -36,6 +36,14 @@ def proxy_wasm_cpp_host_repositories(): urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], ) + http_archive( + name = "wamr", + build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", + sha256 = "1d870f396bb6bdcb5c816326655b19a2877bbdf879255c335b8e84ce4ee37780", + strip_prefix = "wasm-micro-runtime-9710d9325f426121cc1f2c62386a71d0c022d613", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/9710d9325f426121cc1f2c62386a71d0c022d613.tar.gz", + ) + http_archive( name = "wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", @@ -65,3 +73,10 @@ def proxy_wasm_cpp_host_repositories(): strip_prefix = "protobuf-655310ca192a6e3a050e0ca0b7084a2968072260", url = "https://github.com/protocolbuffers/protobuf/archive/655310ca192a6e3a050e0ca0b7084a2968072260.tar.gz", ) + + http_archive( + name = "rules_foreign_cc", + sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6", + strip_prefix = "rules_foreign_cc-0.2.0", + url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.2.0.tar.gz", + ) diff --git a/include/proxy-wasm/wamr.h b/include/proxy-wasm/wamr.h new file mode 100644 index 000000000..98ff72e31 --- /dev/null +++ b/include/proxy-wasm/wamr.h @@ -0,0 +1,26 @@ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +#include "include/proxy-wasm/wasm_vm.h" + +namespace proxy_wasm { + +std::unique_ptr createWamrVm(); + +} // namespace proxy_wasm diff --git a/src/wamr/types.h b/src/wamr/types.h new file mode 100644 index 000000000..4ea9c4fb4 --- /dev/null +++ b/src/wamr/types.h @@ -0,0 +1,45 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/common/types.h" +#include "wasm_c_api.h" + +namespace proxy_wasm { +namespace wamr { + +using WasmEnginePtr = common::CSmartPtr; +using WasmFuncPtr = common::CSmartPtr; +using WasmStorePtr = common::CSmartPtr; +using WasmModulePtr = common::CSmartPtr; +using WasmMemoryPtr = common::CSmartPtr; +using WasmTablePtr = common::CSmartPtr; +using WasmInstancePtr = common::CSmartPtr; +using WasmFunctypePtr = common::CSmartPtr; +using WasmTrapPtr = common::CSmartPtr; +using WasmExternPtr = common::CSmartPtr; + +using WasmByteVec = + common::CSmartType; +using WasmImporttypeVec = common::CSmartType; +using WasmExportTypeVec = common::CSmartType; +using WasmExternVec = + common::CSmartType; +using WasmValtypeVec = + common::CSmartType; + +} // namespace wamr + +} // namespace proxy_wasm diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc new file mode 100644 index 000000000..5cc63f06b --- /dev/null +++ b/src/wamr/wamr.cc @@ -0,0 +1,631 @@ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/wamr.h" +#include "include/proxy-wasm/wasm_vm.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "src/wamr/types.h" +#include "wasm_c_api.h" +#include "src/common/bytecode_util.h" + +namespace proxy_wasm { +namespace wamr { + +struct HostFuncData { + HostFuncData(std::string name) : name_(std::move(name)) {} + + std::string name_; + WasmFuncPtr callback_; + void *raw_func_; + WasmVm *vm_; +}; + +using HostFuncDataPtr = std::unique_ptr; + +wasm_engine_t *engine() { + static const auto engine = WasmEnginePtr(wasm_engine_new()); + return engine.get(); +} + +class Wamr : public WasmVm { +public: + Wamr() {} + + std::string_view runtime() override { return "wamr"; } + std::string_view getPrecompiledSectionName() override { return ""; } + + Cloneable cloneable() override { return Cloneable::NotCloneable; } + std::unique_ptr clone() override { return nullptr; } + + AbiVersion getAbiVersion() override; + + bool load(const std::string &code, bool allow_precompiled = false) override; + bool link(std::string_view debug_name) override; + uint64_t getMemorySize() override; + std::optional getMemory(uint64_t pointer, uint64_t size) override; + bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; + bool getWord(uint64_t pointer, Word *word) override; + bool setWord(uint64_t pointer, Word word) override; + size_t getWordSize() override { return sizeof(uint32_t); }; + +#define _REGISTER_HOST_FUNCTION(T) \ + void registerCallback(std::string_view module_name, std::string_view function_name, T, \ + typename ConvertFunctionTypeWordToUint32::type f) override { \ + registerHostFunctionImpl(module_name, function_name, f); \ + }; + FOR_ALL_WASM_VM_IMPORTS(_REGISTER_HOST_FUNCTION) +#undef _REGISTER_HOST_FUNCTION + +#define _GET_MODULE_FUNCTION(T) \ + void getFunction(std::string_view function_name, T *f) override { \ + getModuleFunctionImpl(function_name, f); \ + }; + FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) +#undef _GET_MODULE_FUNCTION +private: + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + void (*function)(void *, Args...)); + + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + R (*function)(void *, Args...)); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + WasmStorePtr store_; + WasmModulePtr module_; + WasmInstancePtr instance_; + + WasmMemoryPtr memory_; + WasmTablePtr table_; + + std::unordered_map host_functions_; + std::unordered_map module_functions_; + AbiVersion abi_version_; +}; + +bool Wamr::load(const std::string &code, bool allow_precompiled) { + store_ = wasm_store_new(engine()); + + // Get ABI version from bytecode. + if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + } + + std::string stripped; + if (!common::BytecodeUtil::getStrippedSource(code, stripped)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + }; + + WasmByteVec stripped_vec; + wasm_byte_vec_new(stripped_vec.get(), stripped.size(), stripped.data()); + module_ = wasm_module_new(store_.get(), stripped_vec.get()); + + return module_ != nullptr; +} + +static bool equalValTypes(const wasm_valtype_vec_t *left, const wasm_valtype_vec_t *right) { + if (left->size != right->size) { + return false; + } + + for (size_t i = 0; i < left->size; i++) { + if (wasm_valtype_kind(left->data[i]) != wasm_valtype_kind(right->data[i])) { + return false; + } + } + + return true; +} + +static std::string printValue(const wasm_val_t &value) { + switch (value.kind) { + case WASM_I32: + return std::to_string(value.of.i32); + case WASM_I64: + return std::to_string(value.of.i64); + case WASM_F32: + return std::to_string(value.of.f32); + case WASM_F64: + return std::to_string(value.of.f64); + default: + return "unknown"; + } +} + +static std::string printValues(const wasm_val_t values[], size_t size) { + if (size == 0) { + return ""; + } + + std::string s; + for (size_t i = 0; i < size; i++) { + if (i) { + s.append(", "); + } + s.append(printValue(values[i])); + } + return s; +} + +static const char *printValKind(wasm_valkind_t kind) { + switch (kind) { + case WASM_I32: + return "i32"; + case WASM_I64: + return "i64"; + case WASM_F32: + return "f32"; + case WASM_F64: + return "f64"; + case WASM_ANYREF: + return "anyref"; + case WASM_FUNCREF: + return "funcref"; + default: + return "unknown"; + } +} + +static std::string printValTypes(const wasm_valtype_vec_t *types) { + if (types->size == 0) { + return "void"; + } + + std::string s; + s.reserve(types->size * 8 /* max size + " " */ - 1); + for (size_t i = 0; i < types->size; i++) { + if (i) { + s.append(" "); + } + s.append(printValKind(wasm_valtype_kind(types->data[i]))); + } + return s; +} + +bool Wamr::link(std::string_view debug_name) { + assert(module_ != nullptr); + + WasmImporttypeVec import_types; + wasm_module_imports(module_.get(), import_types.get()); + + std::vector imports; + for (size_t i = 0; i < import_types.get()->size; i++) { + const wasm_name_t *module_name_ptr = wasm_importtype_module(import_types.get()->data[i]); + const wasm_name_t *name_ptr = wasm_importtype_name(import_types.get()->data[i]); + const wasm_externtype_t *extern_type = wasm_importtype_type(import_types.get()->data[i]); + + std::string_view module_name(module_name_ptr->data, module_name_ptr->size); + std::string_view name(name_ptr->data, name_ptr->size); + assert(name_ptr->size > 0); + switch (wasm_externtype_kind(extern_type)) { + case WASM_EXTERN_FUNC: { + auto it = host_functions_.find(std::string(module_name) + "." + std::string(name)); + if (it == host_functions_.end()) { + fail(FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to a missing import: ") + + std::string(module_name) + "." + std::string(name)); + break; + } + + auto func = it->second->callback_.get(); + const wasm_functype_t *exp_type = wasm_externtype_as_functype_const(extern_type); + WasmFunctypePtr actual_type = wasm_func_type(it->second->callback_.get()); + if (!equalValTypes(wasm_functype_params(exp_type), wasm_functype_params(actual_type.get())) || + !equalValTypes(wasm_functype_results(exp_type), + wasm_functype_results(actual_type.get()))) { + fail( + FailState::UnableToInitializeCode, + std::string("Failed to load Wasm module due to an import type mismatch for function ") + + std::string(module_name) + "." + std::string(name) + + ", want: " + printValTypes(wasm_functype_params(exp_type)) + " -> " + + printValTypes(wasm_functype_results(exp_type)) + + ", but host exports: " + printValTypes(wasm_functype_params(actual_type.get())) + + " -> " + printValTypes(wasm_functype_results(actual_type.get()))); + break; + } + imports.push_back(wasm_func_as_extern(func)); + } break; + case WASM_EXTERN_GLOBAL: { + // TODO(mathetake): add support when/if needed. + fail(FailState::UnableToInitializeCode, + "Failed to load Wasm module due to a missing import: " + std::string(module_name) + "." + + std::string(name)); + } break; + case WASM_EXTERN_MEMORY: { + assert(memory_ == nullptr); + const wasm_memorytype_t *memory_type = + wasm_externtype_as_memorytype_const(extern_type); // owned by `extern_type` + memory_ = wasm_memory_new(store_.get(), memory_type); + imports.push_back(wasm_memory_as_extern(memory_.get())); + } break; + case WASM_EXTERN_TABLE: { + assert(table_ == nullptr); + const wasm_tabletype_t *table_type = + wasm_externtype_as_tabletype_const(extern_type); // owned by `extern_type` + table_ = wasm_table_new(store_.get(), table_type, nullptr); + imports.push_back(wasm_table_as_extern(table_.get())); + } break; + } + } + + if (import_types.get()->size != imports.size()) { + return false; + } + + instance_ = wasm_instance_new(store_.get(), module_.get(), imports.data(), nullptr); + assert(instance_ != nullptr); + + WasmExportTypeVec export_types; + wasm_module_exports(module_.get(), export_types.get()); + + WasmExternVec exports; + wasm_instance_exports(instance_.get(), exports.get()); + + for (size_t i = 0; i < export_types.get()->size; i++) { + const wasm_externtype_t *exp_extern_type = wasm_exporttype_type(export_types.get()->data[i]); + wasm_extern_t *actual_extern = exports.get()->data[i]; + + wasm_externkind_t kind = wasm_extern_kind(actual_extern); + assert(kind == wasm_externtype_kind(exp_extern_type)); + switch (kind) { + case WASM_EXTERN_FUNC: { + WasmFuncPtr func = wasm_func_copy(wasm_extern_as_func(actual_extern)); + const wasm_name_t *name_ptr = wasm_exporttype_name(export_types.get()->data[i]); + module_functions_.insert_or_assign(std::string(name_ptr->data, name_ptr->size), + std::move(func)); + } break; + case WASM_EXTERN_GLOBAL: { + // TODO(mathetake): add support when/if needed. + } break; + case WASM_EXTERN_MEMORY: { + assert(memory_ == nullptr); + memory_ = wasm_memory_copy(wasm_extern_as_memory(actual_extern)); + assert(memory_ != nullptr); + } break; + case WASM_EXTERN_TABLE: { + // TODO(mathetake): add support when/if needed. + } break; + } + } + return true; +} + +uint64_t Wamr::getMemorySize() { return wasm_memory_data_size(memory_.get()); } + +std::optional Wamr::getMemory(uint64_t pointer, uint64_t size) { + assert(memory_ != nullptr); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return std::nullopt; + } + return std::string_view(wasm_memory_data(memory_.get()) + pointer, size); +} + +bool Wamr::setMemory(uint64_t pointer, uint64_t size, const void *data) { + assert(memory_ != nullptr); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + ::memcpy(wasm_memory_data(memory_.get()) + pointer, data, size); + return true; +} + +bool Wamr::getWord(uint64_t pointer, Word *word) { + assert(memory_ != nullptr); + constexpr auto size = sizeof(uint32_t); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + + uint32_t word32; + ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); + word->u64_ = word32; + return true; +} + +bool Wamr::setWord(uint64_t pointer, Word word) { + constexpr auto size = sizeof(uint32_t); + if (pointer + size > wasm_memory_data_size(memory_.get())) { + return false; + } + uint32_t word32 = word.u32(); + ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); + return true; +} + +template void assignVal(T t, wasm_val_t &val); +template <> void assignVal(Word t, wasm_val_t &val) { + val.kind = WASM_I32; + val.of.i32 = static_cast(t.u64_); +} +template <> void assignVal(uint32_t t, wasm_val_t &val) { + val.kind = WASM_I32; + val.of.i32 = static_cast(t); +} +template <> void assignVal(uint64_t t, wasm_val_t &val) { + val.kind = WASM_I64; + val.of.i64 = static_cast(t); +} +template <> void assignVal(double t, wasm_val_t &val) { + val.kind = WASM_F64; + val.of.f64 = t; +} + +template wasm_val_t makeVal(T t) { + wasm_val_t val{}; + assignVal(t, val); + return val; +} + +template struct ConvertWordType { + using type = T; // NOLINT(readability-identifier-naming) +}; +template <> struct ConvertWordType { + using type = uint32_t; // NOLINT(readability-identifier-naming) +}; + +template auto convertArgToValTypePtr(); +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i32(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i32(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i64(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_i64(); }; +template <> auto convertArgToValTypePtr() { return wasm_valtype_new_f64(); }; + +template T convertValueTypeToArg(wasm_val_t val); +template <> uint32_t convertValueTypeToArg(wasm_val_t val) { + return static_cast(val.of.i32); +} +template <> Word convertValueTypeToArg(wasm_val_t val) { return val.of.i32; } +template <> int64_t convertValueTypeToArg(wasm_val_t val) { return val.of.i64; } +template <> uint64_t convertValueTypeToArg(wasm_val_t val) { + return static_cast(val.of.i64); +} +template <> double convertValueTypeToArg(wasm_val_t val) { return val.of.f64; } + +template +constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence) { + return std::make_tuple( + convertValueTypeToArg>::type>(arr[I])...); +} + +template ::value>> +constexpr T convertValTypesToArgsTuple(const U &arr) { + return convertValTypesToArgsTupleImpl(arr, Is()); +} + +template +void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, std::index_sequence) { + auto size = std::tuple_size::value; + auto ps = std::array::value>{ + convertArgToValTypePtr::type>()...}; + wasm_valtype_vec_new(types, size, ps.data()); +} + +template ::value>> +void convertArgsTupleToValTypes(wasm_valtype_vec_t *types) { + convertArgsTupleToValTypesImpl(types, Is()); +} + +template WasmFunctypePtr newWasmNewFuncType() { + wasm_valtype_vec_t params, results; + convertArgsTupleToValTypes(¶ms); + convertArgsTupleToValTypes>(&results); + return wasm_functype_new(¶ms, &results); +} + +template WasmFunctypePtr newWasmNewFuncType() { + wasm_valtype_vec_t params, results; + convertArgsTupleToValTypes(¶ms); + convertArgsTupleToValTypes>(&results); + return wasm_functype_new(¶ms, &results); +} + +template +void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + void (*function)(void *, Args...)) { + auto data = + std::make_unique(std::string(module_name) + "." + std::string(function_name)); + + WasmFunctypePtr type = newWasmNewFuncType>(); + WasmFuncPtr func = wasm_func_new_with_env( + store_.get(), type.get(), + [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + auto func_data = reinterpret_cast(data); + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + auto args_tuple = convertValTypesToArgsTuple>(params); + auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); + auto fn = reinterpret_cast(func_data->raw_func_); + std::apply(fn, args); + if (log) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); + } + return nullptr; + }, + data.get(), nullptr); + + data->vm_ = this; + data->callback_ = std::move(func); + data->raw_func_ = reinterpret_cast(function); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +}; + +template +void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + R (*function)(void *, Args...)) { + auto data = + std::make_unique(std::string(module_name) + "." + std::string(function_name)); + WasmFunctypePtr type = newWasmNewFuncType>(); + WasmFuncPtr func = wasm_func_new_with_env( + store_.get(), type.get(), + [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + auto func_data = reinterpret_cast(data); + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + auto args_tuple = convertValTypesToArgsTuple>(params); + auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); + auto fn = reinterpret_cast(func_data->raw_func_); + R res = std::apply(fn, args); + assignVal(res, results[0]); + if (log) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + + " return: " + std::to_string(res)); + } + return nullptr; + }, + data.get(), nullptr); + + data->vm_ = this; + data->callback_ = std::move(func); + data->raw_func_ = reinterpret_cast(function); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +}; + +template +void Wamr::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + + auto it = module_functions_.find(std::string(function_name)); + if (it == module_functions_.end()) { + *function = nullptr; + return; + } + + WasmValtypeVec exp_args, exp_returns; + convertArgsTupleToValTypes>(exp_args.get()); + convertArgsTupleToValTypes>(exp_returns.get()); + wasm_func_t *func = it->second.get(); + WasmFunctypePtr func_type = wasm_func_type(func); + + if (!equalValTypes(wasm_functype_params(func_type.get()), exp_args.get()) || + !equalValTypes(wasm_functype_results(func_type.get()), exp_returns.get())) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + ", want: " + + printValTypes(exp_args.get()) + " -> " + printValTypes(exp_returns.get()) + + ", but the module exports: " + printValTypes(wasm_functype_params(func_type.get())) + + " -> " + printValTypes(wasm_functype_results(func_type.get()))); + return; + } + + *function = [func, function_name, this](ContextBase *context, Args... args) -> void { + wasm_val_t params[] = {makeVal(args)...}; + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, params, nullptr)}; + if (trap) { + WasmByteVec error_message; + wasm_trap_message(trap.get(), error_message.get()); + fail(FailState::RuntimeError, + "Function: " + std::string(function_name) + " failed:\n" + + std::string(error_message.get()->data, error_message.get()->size)); + return; + } + if (log) { + integration()->trace("[host<-vm] " + std::string(function_name) + " return: void"); + } + }; +}; + +template +void Wamr::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + auto it = module_functions_.find(std::string(function_name)); + if (it == module_functions_.end()) { + *function = nullptr; + return; + } + WasmValtypeVec exp_args, exp_returns; + convertArgsTupleToValTypes>(exp_args.get()); + convertArgsTupleToValTypes>(exp_returns.get()); + wasm_func_t *func = it->second.get(); + WasmFunctypePtr func_type = wasm_func_type(func); + if (!equalValTypes(wasm_functype_params(func_type.get()), exp_args.get()) || + !equalValTypes(wasm_functype_results(func_type.get()), exp_returns.get())) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + ", want: " + + printValTypes(exp_args.get()) + " -> " + printValTypes(exp_returns.get()) + + ", but the module exports: " + printValTypes(wasm_functype_params(func_type.get())) + + " -> " + printValTypes(wasm_functype_results(func_type.get()))); + return; + } + + *function = [func, function_name, this](ContextBase *context, Args... args) -> R { + wasm_val_t params[] = {makeVal(args)...}; + wasm_val_t results[1]; + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + SaveRestoreContext saved_context(context); + WasmTrapPtr trap{wasm_func_call(func, params, results)}; + if (trap) { + WasmByteVec error_message; + wasm_trap_message(trap.get(), error_message.get()); + fail(FailState::RuntimeError, + "Function: " + std::string(function_name) + " failed:\n" + + std::string(error_message.get()->data, error_message.get()->size)); + return R{}; + } + R ret = convertValueTypeToArg(results[0]); + if (log) { + integration()->trace("[host<-vm] " + std::string(function_name) + + " return: " + std::to_string(ret)); + } + return ret; + }; +}; + +AbiVersion Wamr::getAbiVersion() { return abi_version_; } + +} // namespace wamr + +std::unique_ptr createWamrVm() { return std::make_unique(); } + +} // namespace proxy_wasm diff --git a/test/utility.cc b/test/utility.cc index e55a5773c..5b999c0c4 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -26,6 +26,9 @@ std::vector getRuntimes() { #endif #if defined(WASM_WASMTIME) "wasmtime", +#endif +#if defined(WASM_WAMR) + "wamr", #endif "" }; diff --git a/test/utility.h b/test/utility.h index 22a86f1f0..05ed1cf59 100644 --- a/test/utility.h +++ b/test/utility.h @@ -32,6 +32,9 @@ #if defined(WASM_WASMTIME) #include "include/proxy-wasm/wasmtime.h" #endif +#if defined(WASM_WAMR) +#include "include/proxy-wasm/wamr.h" +#endif namespace proxy_wasm { @@ -79,6 +82,10 @@ class TestVM : public testing::TestWithParam { #if defined(WASM_WASMTIME) } else if (runtime_ == "wasmtime") { vm_ = proxy_wasm::createWasmtimeVm(); +#endif +#if defined(WASM_WAMR) + } else if (runtime_ == "wamr") { + vm_ = proxy_wasm::createWamrVm(); #endif } vm_->integration().reset(integration_); From 314743b715472789ea39ce0094aebbe071870560 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Fri, 7 May 2021 17:15:16 +0900 Subject: [PATCH 097/287] build: refactor Bazel configuration towards multiple runtime tests. (#160) Signed-off-by: Takeshi Yoneda --- .bazelrc | 14 ++++++ .github/workflows/cpp.yml | 11 +++-- BUILD | 99 ++++++++++++++++++++++++++++++++------- bazel/BUILD | 19 ++++++++ bazel/select.bzl | 37 +++++++++++++++ bazel/variables.bzl | 42 ----------------- test/BUILD | 11 ----- test/common/BUILD | 2 - 8 files changed, 160 insertions(+), 75 deletions(-) create mode 100644 .bazelrc create mode 100644 bazel/select.bzl delete mode 100644 bazel/variables.bzl diff --git a/.bazelrc b/.bazelrc new file mode 100644 index 000000000..d63c7058a --- /dev/null +++ b/.bazelrc @@ -0,0 +1,14 @@ +build --enable_platform_specific_config + +build:linux --cxxopt=-std=c++17 +# See https://bytecodealliance.github.io/wasmtime/c-api/ +build:linux --linkopt=-lm +build:linux --linkopt=-lpthread +build:linux --linkopt=-ldl + +build:macos --cxxopt=-std=c++17 + +# TODO(mathetake): Windows build is not verified yet. +# build:windows --cxxopt="/std:c++17" +# See https://bytecodealliance.github.io/wasmtime/c-api/ +# build:windows --linkopt="ws2_32.lib advapi32.lib userenv.lib ntdll.lib shell32.lib ole32.lib" diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index d509c7842..ab27b2797 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -56,7 +56,12 @@ jobs: build: runs-on: ubuntu-latest - + + strategy: + matrix: + # TODO(mathetake): Add other runtimes. + runtime: [ "wasmtime" ] + steps: - uses: actions/checkout@v2 @@ -64,9 +69,9 @@ jobs: uses: actions/cache@v1 with: path: "/home/runner/.cache/bazel" - key: bazel + key: bazel-${{ matrix.runtime }} - name: Test run: | - bazel test //... + bazel test --define runtime=${{ matrix.runtime }} //... diff --git a/BUILD b/BUILD index 74e861df9..2f760f841 100644 --- a/BUILD +++ b/BUILD @@ -1,5 +1,11 @@ load("@rules_cc//cc:defs.bzl", "cc_library") -load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS") +load( + "@proxy_wasm_cpp_host//bazel:select.bzl", + "proxy_wasm_select_runtime_v8", + "proxy_wasm_select_runtime_wamr", + "proxy_wasm_select_runtime_wasmtime", + "proxy_wasm_select_runtime_wavm", +) licenses(["notice"]) # Apache 2 @@ -13,28 +19,87 @@ cc_library( ], ) -# TODO(mathetkae): once other runtimes(WAVM,V8) can be linked in this repos, -# use -define=wasm=v8|wavm|wasmtime and switch cc_library( - name = "lib", - srcs = glob( - [ - "src/**/*.cc", - "src/**/*.h", - ], - exclude = [ - "src/**/v8*", - "src/**/wamr*", - "src/**/wavm*", - ], - ), - hdrs = glob(["src/**/*.h"]), - copts = COPTS, + name = "common_lib", + srcs = glob([ + "src/*.h", + "src/*.cc", + "src/common/*.h", + "src/common/*.cc", + "src/third_party/*.h", + "src/third_party/*.cc", + "src/null/*.cc", + ]), deps = [ ":include", "@boringssl//:crypto", "@com_google_protobuf//:protobuf_lite", "@proxy_wasm_cpp_sdk//:api_lib", + ], +) + +cc_library( + name = "v8_lib", + srcs = glob([ + # TODO(@mathetake): Add V8 lib. + # "src/v8/*.h", + # "src/v8/*.cc", + ]), + deps = [ + ":common_lib", + # TODO(@mathetake): Add V8 lib. + ], +) + +cc_library( + name = "wamr_lib", + srcs = glob([ + # TODO(@mathetake): Add WAMR lib. + # "src/wamr/*.h", + # "src/wamr/*.cc", + ]), + deps = [ + ":common_lib", + # TODO(@mathetake): Add WAMR lib. + ], +) + +cc_library( + name = "wasmtime_lib", + srcs = glob([ + "src/wasmtime/*.h", + "src/wasmtime/*.cc", + ]), + deps = [ + ":common_lib", "@wasm_c_api//:wasmtime_lib", ], ) + +cc_library( + name = "wavm_lib", + srcs = glob([ + # TODO(@mathetake): Add WAVM lib. + # "src/wavm/*.h", + # "src/wavm/*.cc", + ]), + deps = [ + ":common_lib", + # TODO(@mathetake): Add WAVM lib. + ], +) + +cc_library( + name = "lib", + deps = [ + ":common_lib", + ] + proxy_wasm_select_runtime_v8( + [":v8_lib"], + ) + proxy_wasm_select_runtime_wamr( + [":wamr_lib"], + ) + proxy_wasm_select_runtime_wasmtime( + [":wasmtime_lib"], + ) + proxy_wasm_select_runtime_wavm( + [":wavm_lib"], + ), +) diff --git a/bazel/BUILD b/bazel/BUILD index e69de29bb..b6eb774cd 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -0,0 +1,19 @@ +config_setting( + name = "runtime_v8", + values = {"define": "runtime=v8"}, +) + +config_setting( + name = "runtime_wamr", + values = {"define": "runtime=wamr"}, +) + +config_setting( + name = "runtime_wasmtime", + values = {"define": "runtime=wasmtime"}, +) + +config_setting( + name = "runtime_wavm", + values = {"define": "runtime=wavm"}, +) diff --git a/bazel/select.bzl b/bazel/select.bzl new file mode 100644 index 000000000..7d4a305a3 --- /dev/null +++ b/bazel/select.bzl @@ -0,0 +1,37 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +def proxy_wasm_select_runtime_v8(xs): + return select({ + "@proxy_wasm_cpp_host//bazel:runtime_v8": xs, + "//conditions:default": [], + }) + +def proxy_wasm_select_runtime_wamr(xs): + return select({ + "@proxy_wasm_cpp_host//bazel:runtime_wamr": xs, + "//conditions:default": [], + }) + +def proxy_wasm_select_runtime_wasmtime(xs): + return select({ + "@proxy_wasm_cpp_host//bazel:runtime_wasmtime": xs, + "//conditions:default": [], + }) + +def proxy_wasm_select_runtime_wavm(xs): + return select({ + "@proxy_wasm_cpp_host//bazel:runtime_wavm": xs, + "//conditions:default": [], + }) diff --git a/bazel/variables.bzl b/bazel/variables.bzl deleted file mode 100644 index 1d28c04ae..000000000 --- a/bazel/variables.bzl +++ /dev/null @@ -1,42 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -COPTS = select({ - "@bazel_tools//src/conditions:windows": [ - "/std:c++17", - ], - "//conditions:default": [ - "-std=c++17", - ], -}) - -# https://bytecodealliance.github.io/wasmtime/c-api/ -LINKOPTS = select({ - "@bazel_tools//src/conditions:windows": [ - "-", - "ws2_32.lib", - "advapi32.lib", - "userenv.lib", - "ntdll.lib", - "shell32.lib", - "ole32.lib", - ], - "@bazel_tools//src/conditions:darwin": [], - "//conditions:default": [ - # required for linux - "-lpthread", - "-ldl", - "-lm", - ], -}) diff --git a/test/BUILD b/test/BUILD index 60ff362a3..f1e179f32 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,12 +1,10 @@ load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") -load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS", "LINKOPTS") package(default_visibility = ["//visibility:public"]) cc_test( name = "null_vm_test", srcs = ["null_vm_test.cc"], - copts = COPTS, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -17,13 +15,11 @@ cc_test( cc_test( name = "runtime_test", srcs = ["runtime_test.cc"], - copts = COPTS, data = [ "//test/test_data:abi_export.wasm", "//test/test_data:callback.wasm", "//test/test_data:trap.wasm", ], - linkopts = LINKOPTS, deps = [ ":utility_lib", "//:lib", @@ -35,12 +31,10 @@ cc_test( cc_test( name = "exports_test", srcs = ["exports_test.cc"], - copts = COPTS, data = [ "//test/test_data:clock.wasm", "//test/test_data:env.wasm", ], - linkopts = LINKOPTS, deps = [ ":utility_lib", "//:lib", @@ -52,7 +46,6 @@ cc_test( cc_test( name = "context_test", srcs = ["context_test.cc"], - copts = COPTS, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -63,7 +56,6 @@ cc_test( cc_test( name = "shared_data", srcs = ["shared_data_test.cc"], - copts = COPTS, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -74,7 +66,6 @@ cc_test( cc_test( name = "shared_queue", srcs = ["shared_queue_test.cc"], - copts = COPTS, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -85,7 +76,6 @@ cc_test( cc_test( name = "vm_id_handle", srcs = ["vm_id_handle_test.cc"], - copts = COPTS, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -100,7 +90,6 @@ cc_library( "utility.h", ], hdrs = ["utility.h"], - copts = COPTS, deps = [ "//:lib", "@com_google_googletest//:gtest", diff --git a/test/common/BUILD b/test/common/BUILD index c76fc5e48..23e21ba71 100644 --- a/test/common/BUILD +++ b/test/common/BUILD @@ -1,10 +1,8 @@ load("@rules_cc//cc:defs.bzl", "cc_test") -load("@proxy_wasm_cpp_host//bazel:variables.bzl", "COPTS") cc_test( name = "bytecode_util_test", srcs = ["bytecode_util_test.cc"], - copts = COPTS, data = [ "//test/test_data:abi_export.wasm", ], From 8ccb826b987bd81cc225a6011aa8251aca28ae80 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 12 May 2021 02:52:25 -0700 Subject: [PATCH 098/287] Extract common bytecode operations into WasmBase. (#161) Signed-off-by: Piotr Sikora --- BUILD | 3 +- .../proxy-wasm}/bytecode_util.h | 2 - include/proxy-wasm/null_vm.h | 4 +- include/proxy-wasm/wasm.h | 25 +++-- include/proxy-wasm/wasm_vm.h | 18 ++-- src/{common => }/bytecode_util.cc | 5 +- src/null/null_vm.cc | 11 +-- src/v8/v8.cc | 68 ++++--------- src/wamr/wamr.cc | 32 ++----- src/wasm.cc | 96 ++++++++++++++++--- src/wasmtime/wasmtime.cc | 39 +++----- src/wavm/wavm.cc | 59 +++--------- test/BUILD | 14 +++ test/{common => }/bytecode_util_test.cc | 12 +-- test/common/BUILD | 15 --- test/exports_test.cc | 6 +- test/null_vm_test.cc | 2 +- test/runtime_test.cc | 37 +------ 18 files changed, 193 insertions(+), 255 deletions(-) rename {src/common => include/proxy-wasm}/bytecode_util.h (98%) rename src/{common => }/bytecode_util.cc (98%) rename test/{common => }/bytecode_util_test.cc (94%) delete mode 100644 test/common/BUILD diff --git a/BUILD b/BUILD index 2f760f841..350eccbd2 100644 --- a/BUILD +++ b/BUILD @@ -25,10 +25,9 @@ cc_library( "src/*.h", "src/*.cc", "src/common/*.h", - "src/common/*.cc", + "src/null/*.cc", "src/third_party/*.h", "src/third_party/*.cc", - "src/null/*.cc", ]), deps = [ ":include", diff --git a/src/common/bytecode_util.h b/include/proxy-wasm/bytecode_util.h similarity index 98% rename from src/common/bytecode_util.h rename to include/proxy-wasm/bytecode_util.h index 438969fb5..1f4b600b2 100644 --- a/src/common/bytecode_util.h +++ b/include/proxy-wasm/bytecode_util.h @@ -20,7 +20,6 @@ #include "include/proxy-wasm/wasm_vm.h" namespace proxy_wasm { -namespace common { // Utilitiy functions which directly operate on Wasm bytecodes. class BytecodeUtil { @@ -73,5 +72,4 @@ class BytecodeUtil { static bool parseVarint(const char *&begin, const char *end, uint32_t &ret); }; -} // namespace common } // namespace proxy_wasm diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index a1a2f73d5..27e371389 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -35,8 +35,8 @@ struct NullVm : public WasmVm { std::string_view runtime() override { return "null"; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; - bool load(const std::string &code, bool allow_precompiled) override; - AbiVersion getAbiVersion() override; + bool load(std::string_view bytecode, std::string_view precompiled, + std::unordered_map function_names) override; bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index e77b9b03d..9accb4c7b 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -58,7 +58,8 @@ class WasmBase : public std::enable_shared_from_this { WasmBase(const std::shared_ptr &other, WasmVmFactory factory); virtual ~WasmBase(); - bool initialize(const std::string &code, bool allow_precompiled = false); + bool load(const std::string &code, bool allow_precompiled = false); + bool initialize(); void startVm(ContextBase *root_context); bool configure(ContextBase *root_context, std::shared_ptr plugin); // Returns the root ContextBase or nullptr if onStart returns false. @@ -79,9 +80,11 @@ class WasmBase : public std::enable_shared_from_this { bool isFailed() { return failed_ != FailState::Ok; } FailState fail_state() { return failed_; } - const std::string &code() const { return code_; } const std::string &vm_configuration() const; - bool allow_precompiled() const { return allow_precompiled_; } + + const std::string &moduleBytecode() const { return module_bytecode_; } + const std::string &modulePrecompiled() const { return module_precompiled_; } + const std::unordered_map functionNames() const { return function_names_; } void timerReady(uint32_t root_context_id); void queueReady(uint32_t root_context_id, uint32_t token); @@ -135,7 +138,7 @@ class WasmBase : public std::enable_shared_from_this { virtual void error(std::string_view message) { std::cerr << message << "\n"; } virtual void unimplemented() { error("unimplemented proxy-wasm API"); } - AbiVersion abiVersion() { return abi_version_; } + AbiVersion abiVersion() const { return abi_version_; } const std::unordered_map &envs() { return envs_; } @@ -182,7 +185,7 @@ class WasmBase : public std::enable_shared_from_this { std::string vm_id_; // User-provided vm_id. std::string vm_key_; // vm_id + hash of code. std::unique_ptr wasm_vm_; - Cloneable started_from_{Cloneable::NotCloneable}; + std::optional started_from_; uint32_t next_context_id_ = 1; // 0 is reserved for the VM context. std::shared_ptr vm_context_; // Context unrelated to any specific root or stream @@ -260,15 +263,17 @@ class WasmBase : public std::enable_shared_from_this { std::shared_ptr base_wasm_handle_; // Used by the base_wasm to enable non-clonable thread local Wasm(s) to be constructed. - std::string code_; - std::string vm_configuration_; - bool allow_precompiled_ = false; - bool stop_iteration_ = false; - FailState failed_ = FailState::Ok; // Wasm VM fatal error. + std::string module_bytecode_; + std::string module_precompiled_; + std::unordered_map function_names_; // ABI version. AbiVersion abi_version_ = AbiVersion::Unknown; + std::string vm_configuration_; + bool stop_iteration_ = false; + FailState failed_ = FailState::Ok; // Wasm VM fatal error. + // Plugin Stats/Metrics uint32_t next_counter_metric_id_ = static_cast(MetricType::Counter); uint32_t next_gauge_metric_id_ = static_cast(MetricType::Gauge); diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index c794e6f4c..4e07086ed 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -19,6 +19,7 @@ #include #include #include +#include #include "include/proxy-wasm/word.h" @@ -174,14 +175,13 @@ class WasmVm { * Load the WASM code from a file. Return true on success. Once the module is loaded it can be * queried, e.g. to see which version of emscripten support is required. After loading, the * appropriate ABI callbacks can be registered and then the module can be link()ed (see below). - * @param code the WASM binary code (or registered NullVm plugin name). - * @param allow_precompiled if true, allows supporting VMs (e.g. WAVM) to load the binary - * machine code from a user-defined section of the WASM file. Because that code is not verified by - * the proxy process it is up to the user to ensure that the code is both safe and is built for - * the linked in version of WAVM. + * @param bytecode the Wasm bytecode or registered NullVm plugin name. + * @param precompiled (optional) the precompiled Wasm module. + * @param function_names (optional) an index-to-name mapping for the functions. * @return whether or not the load was successful. */ - virtual bool load(const std::string &code, bool allow_precompiled) = 0; + virtual bool load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map function_names) = 0; /** * Link the WASM code to the host-provided functions, e.g. the ABI. Prior to linking, the module @@ -192,12 +192,6 @@ class WasmVm { */ virtual bool link(std::string_view debug_name) = 0; - /** - * Get ABI version of the module. - * @return the ABI version. - */ - virtual AbiVersion getAbiVersion() = 0; - /** * Get size of the currently allocated memory in the VM. * @return the size of memory in bytes. diff --git a/src/common/bytecode_util.cc b/src/bytecode_util.cc similarity index 98% rename from src/common/bytecode_util.cc rename to src/bytecode_util.cc index 4b6a8a804..22866c3a7 100644 --- a/src/common/bytecode_util.cc +++ b/src/bytecode_util.cc @@ -12,11 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "src/common/bytecode_util.h" +#include "include/proxy-wasm/bytecode_util.h" + #include namespace proxy_wasm { -namespace common { bool BytecodeUtil::checkWasmHeader(std::string_view bytecode) { // Wasm file header is 8 bytes (magic number + version). @@ -240,5 +240,4 @@ bool BytecodeUtil::parseVarint(const char *&pos, const char *end, uint32_t &ret) return ret != static_cast(-1); } -} // namespace common } // namespace proxy_wasm diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index a048c7da4..de2511a0f 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -40,24 +40,23 @@ std::unique_ptr NullVm::clone() { auto cloned_null_vm = std::make_unique(*this); if (integration()) cloned_null_vm->integration().reset(integration()->clone()); - cloned_null_vm->load(plugin_name_, false /* unused */); + cloned_null_vm->load(plugin_name_, {} /* unused */, {} /* unused */); return cloned_null_vm; } // "Load" the plugin by obtaining a pointer to it from the factory. -bool NullVm::load(const std::string &name, bool /* allow_precompiled */) { +bool NullVm::load(std::string_view name, std::string_view, + const std::unordered_map) { if (!null_vm_plugin_factories_) return false; - auto factory = (*null_vm_plugin_factories_)[name]; + auto factory = (*null_vm_plugin_factories_)[std::string(name)]; if (!factory) return false; plugin_name_ = name; plugin_ = factory(); plugin_->wasm_vm_ = this; return true; -} - -AbiVersion NullVm::getAbiVersion() { return AbiVersion::ProxyWasm_0_2_1; } +} // namespace proxy_wasm bool NullVm::link(std::string_view /* name */) { return true; } diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 57c9c6dcc..dee841702 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -25,8 +25,6 @@ #include #include -#include "src/common/bytecode_util.h" - #include "v8.h" #include "v8-version.h" #include "wasm-api/wasm.hh" @@ -64,8 +62,8 @@ class V8 : public WasmVm { // WasmVm std::string_view runtime() override { return "v8"; } - bool load(const std::string &code, bool allow_precompiled) override; - AbiVersion getAbiVersion() override; + bool load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map function_names) override; std::string_view getPrecompiledSectionName() override; bool link(std::string_view debug_name) override; @@ -122,8 +120,6 @@ class V8 : public WasmVm { std::unordered_map host_functions_; std::unordered_map> module_functions_; - - AbiVersion abi_version_; std::unordered_map function_names_index_; }; @@ -251,58 +247,31 @@ template constexpr T convertValTypesToArgsTuple(const U // V8 implementation. -bool V8::load(const std::string &code, bool allow_precompiled) { +bool V8::load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map function_names) { store_ = wasm::Store::make(engine()); - // Get ABI version from bytecode. - if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - } + if (!precompiled.empty()) { + auto vec = wasm::vec::make_uninitialized(precompiled.size()); + ::memcpy(vec.get(), precompiled.data(), precompiled.size()); + module_ = wasm::Module::deserialize(store_.get(), vec); - if (allow_precompiled) { - const auto section_name = getPrecompiledSectionName(); - if (!section_name.empty()) { - std::string_view precompiled = {}; - if (!common::BytecodeUtil::getCustomSection(code, section_name, precompiled)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - } - if (!precompiled.empty()) { - auto vec = wasm::vec::make_uninitialized(precompiled.size()); - ::memcpy(vec.get(), precompiled.data(), precompiled.size()); - - module_ = wasm::Module::deserialize(store_.get(), vec); - if (!module_) { - // Precompiled module that cannot be loaded is considered a hard error, - // so don't fallback to compiling the bytecode. - return false; - } - } - } + } else { + auto vec = wasm::vec::make_uninitialized(bytecode.size()); + ::memcpy(vec.get(), bytecode.data(), bytecode.size()); + module_ = wasm::Module::make(store_.get(), vec); } if (!module_) { - std::string stripped; - if (!common::BytecodeUtil::getStrippedSource(code, stripped)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - }; - wasm::vec stripped_vec = wasm::vec::make(stripped.size(), stripped.data()); - module_ = wasm::Module::make(store_.get(), stripped_vec); + return false; } - if (module_) { - shared_module_ = module_->share(); - assert((shared_module_ != nullptr)); - } + shared_module_ = module_->share(); + assert(shared_module_ != nullptr); - if (!common::BytecodeUtil::getFunctionNameIndex(code, function_names_index_)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - }; + function_names_index_ = function_names; - return module_ != nullptr; + return true; } std::unique_ptr V8::clone() { @@ -314,7 +283,6 @@ std::unique_ptr V8::clone() { clone->module_ = wasm::Module::obtain(clone->store_.get(), shared_module_.get()); clone->function_names_index_ = function_names_index_; - clone->abi_version_ = abi_version_; return clone; } @@ -335,8 +303,6 @@ std::string_view V8::getPrecompiledSectionName() { return name; } -AbiVersion V8::getAbiVersion() { return abi_version_; } - bool V8::link(std::string_view debug_name) { assert(module_ != nullptr); diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 5cc63f06b..9b7375137 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -29,9 +29,10 @@ #include #include +#include "include/proxy-wasm/bytecode_util.h" + #include "src/wamr/types.h" #include "wasm_c_api.h" -#include "src/common/bytecode_util.h" namespace proxy_wasm { namespace wamr { @@ -62,9 +63,8 @@ class Wamr : public WasmVm { Cloneable cloneable() override { return Cloneable::NotCloneable; } std::unique_ptr clone() override { return nullptr; } - AbiVersion getAbiVersion() override; - - bool load(const std::string &code, bool allow_precompiled = false) override; + bool load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map function_names) override; bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; @@ -113,27 +113,15 @@ class Wamr : public WasmVm { std::unordered_map host_functions_; std::unordered_map module_functions_; - AbiVersion abi_version_; }; -bool Wamr::load(const std::string &code, bool allow_precompiled) { +bool Wamr::load(std::string_view bytecode, std::string_view, + const std::unordered_map) { store_ = wasm_store_new(engine()); - // Get ABI version from bytecode. - if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - } - - std::string stripped; - if (!common::BytecodeUtil::getStrippedSource(code, stripped)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - }; - - WasmByteVec stripped_vec; - wasm_byte_vec_new(stripped_vec.get(), stripped.size(), stripped.data()); - module_ = wasm_module_new(store_.get(), stripped_vec.get()); + WasmByteVec vec; + wasm_byte_vec_new(vec.get(), bytecode.size(), bytecode.data()); + module_ = wasm_module_new(store_.get(), vec.get()); return module_ != nullptr; } @@ -622,8 +610,6 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, }; }; -AbiVersion Wamr::getAbiVersion() { return abi_version_; } - } // namespace wamr std::unique_ptr createWamrVm() { return std::make_unique(); } diff --git a/src/wasm.cc b/src/wasm.cc index 7fda02629..cf2010ff9 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -26,9 +26,11 @@ #include #include +#include "include/proxy-wasm/bytecode_util.h" +#include "include/proxy-wasm/vm_id_handle.h" + #include "src/third_party/base64.h" #include "src/third_party/picosha2.h" -#include "include/proxy-wasm/vm_id_handle.h" namespace proxy_wasm { @@ -231,27 +233,93 @@ WasmBase::~WasmBase() { pending_delete_.clear(); } -bool WasmBase::initialize(const std::string &code, bool allow_precompiled) { +bool WasmBase::load(const std::string &code, bool allow_precompiled) { + assert(!started_from_.has_value()); + if (!wasm_vm_) { return false; } - if (started_from_ == Cloneable::NotCloneable) { - auto ok = wasm_vm_->load(code, allow_precompiled); + if (wasm_vm_->runtime() == "null") { + auto ok = wasm_vm_->load(code, {}, {}); if (!ok) { - fail(FailState::UnableToInitializeCode, "Failed to load Wasm code"); + fail(FailState::UnableToInitializeCode, "Failed to load NullVM plugin"); return false; } - code_ = code; - allow_precompiled_ = allow_precompiled; + abi_version_ = AbiVersion::ProxyWasm_0_2_1; + return true; } - abi_version_ = wasm_vm_->getAbiVersion(); + // Get ABI version from the module. + if (!BytecodeUtil::getAbiVersion(code, abi_version_)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + } if (abi_version_ == AbiVersion::Unknown) { fail(FailState::UnableToInitializeCode, "Missing or unknown Proxy-Wasm ABI version"); return false; } + // Get function names from the module. + if (!BytecodeUtil::getFunctionNameIndex(code, function_names_)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + } + + std::string_view precompiled = {}; + + if (allow_precompiled) { + // Check if precompiled module exists. + const auto section_name = wasm_vm_->getPrecompiledSectionName(); + if (!section_name.empty()) { + if (!BytecodeUtil::getCustomSection(code, section_name, precompiled)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + } + } + } + + // Get original bytecode (possibly stripped). + std::string stripped; + if (!BytecodeUtil::getStrippedSource(code, stripped)) { + fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + return false; + } + + auto ok = wasm_vm_->load(stripped, precompiled, function_names_); + if (!ok) { + fail(FailState::UnableToInitializeCode, "Failed to load Wasm bytecode"); + return false; + } + + // Store for future use in non-cloneable runtimes. + if (wasm_vm_->cloneable() == Cloneable::NotCloneable) { + module_bytecode_ = stripped; + module_precompiled_ = precompiled; + } + + return true; +} + +bool WasmBase::initialize() { + if (!wasm_vm_) { + return false; + } + + if (started_from_ == Cloneable::NotCloneable) { + auto ok = wasm_vm_->load(base_wasm_handle_->wasm()->moduleBytecode(), + base_wasm_handle_->wasm()->modulePrecompiled(), + base_wasm_handle_->wasm()->functionNames()); + if (!ok) { + fail(FailState::UnableToInitializeCode, "Failed to load Wasm module from base Wasm"); + return false; + } + } + + if (started_from_.has_value()) { + abi_version_ = base_wasm_handle_->wasm()->abiVersion(); + } + if (started_from_ != Cloneable::InstantiatedModule) { registerCallbacks(); if (!wasm_vm_->link(vm_id_)) { @@ -414,7 +482,11 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, (*base_wasms)[vm_key] = wasm_handle; } - if (!wasm_handle->wasm()->initialize(code, allow_precompiled)) { + if (!wasm_handle->wasm()->load(code, allow_precompiled)) { + wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to load Wasm code"); + return nullptr; + } + if (!wasm_handle->wasm()->initialize()) { wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } @@ -423,7 +495,7 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, wasm_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); return nullptr; } - if (!configuration_canary_handle->wasm()->initialize(code, allow_precompiled)) { + if (!configuration_canary_handle->wasm()->initialize()) { wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } @@ -473,8 +545,8 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_handle, base_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); return nullptr; } - if (!wasm_handle->wasm()->initialize(base_handle->wasm()->code(), - base_handle->wasm()->allow_precompiled())) { + + if (!wasm_handle->wasm()->initialize()) { base_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 3ff503645..98b339658 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -25,7 +25,6 @@ #include #include "include/proxy-wasm/wasm_vm.h" -#include "src/common/bytecode_util.h" #include "src/wasmtime/types.h" #include "wasmtime/include/wasm.h" @@ -57,8 +56,8 @@ class Wasmtime : public WasmVm { Cloneable cloneable() override { return Cloneable::CompiledBytecode; } std::string_view getPrecompiledSectionName() override { return ""; } - bool load(const std::string &code, bool allow_precompiled = false) override; - AbiVersion getAbiVersion() override; + bool load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map function_names) override; bool link(std::string_view debug_name) override; std::unique_ptr clone() override; uint64_t getMemorySize() override; @@ -108,35 +107,24 @@ class Wasmtime : public WasmVm { std::unordered_map host_functions_; std::unordered_map module_functions_; - - AbiVersion abi_version_; }; -bool Wasmtime::load(const std::string &code, bool allow_precompiled) { +bool Wasmtime::load(std::string_view bytecode, std::string_view, + const std::unordered_map) { store_ = wasm_store_new(engine()); - // Get ABI version from bytecode. - if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - } + WasmByteVec vec; + wasm_byte_vec_new(vec.get(), bytecode.size(), bytecode.data()); - std::string stripped; - if (!common::BytecodeUtil::getStrippedSource(code, stripped)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + module_ = wasm_module_new(store_.get(), vec.get()); + if (!module_) { return false; - }; - - WasmByteVec stripped_vec; - wasm_byte_vec_new(stripped_vec.get(), stripped.size(), stripped.data()); - module_ = wasm_module_new(store_.get(), stripped_vec.get()); - - if (module_) { - shared_module_ = wasm_module_share(module_.get()); - assert(shared_module_ != nullptr); } - return module_ != nullptr; + shared_module_ = wasm_module_share(module_.get()); + assert(shared_module_ != nullptr); + + return true; } std::unique_ptr Wasmtime::clone() { @@ -146,7 +134,6 @@ std::unique_ptr Wasmtime::clone() { clone->integration().reset(integration()->clone()); clone->store_ = wasm_store_new(engine()); clone->module_ = wasm_module_obtain(clone->store_.get(), shared_module_.get()); - clone->abi_version_ = abi_version_; return clone; } @@ -643,8 +630,6 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, }; }; -AbiVersion Wasmtime::getAbiVersion() { return abi_version_; } - } // namespace wasmtime std::unique_ptr createWasmtimeVm() { return std::make_unique(); } diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index d3a4d7627..2c3a3adb9 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -27,8 +27,6 @@ #include #include -#include "src/common/bytecode_util.h" - #include "WAVM/IR/Module.h" #include "WAVM/IR/Operators.h" #include "WAVM/IR/Types.h" @@ -186,22 +184,6 @@ class RootResolver : public WAVM::Runtime::Resolver { const uint64_t WasmPageSize = 1 << 16; -bool loadModule(const std::string &code, IR::Module &out_module) { - // If the code starts with the WASM binary magic number, load it as a binary IR::Module. - static const uint8_t WasmMagicNumber[4] = {0x00, 0x61, 0x73, 0x6d}; - if (code.size() >= 4 && !memcmp(code.data(), WasmMagicNumber, 4)) { - return WASM::loadBinaryModule(reinterpret_cast(code.data()), code.size(), - out_module); - } else { - // Load it as a text IR::Module. - std::vector parseErrors; - if (!WAST::parseModule(code.c_str(), code.size() + 1, out_module, parseErrors)) { - return false; - } - return true; - } -} - } // namespace template struct NativeWord { using type = T; }; @@ -224,7 +206,8 @@ struct Wavm : public WasmVm { std::string_view runtime() override { return "wavm"; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; - bool load(const std::string &code, bool allow_precompiled) override; + bool load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map function_names) override; bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; @@ -233,7 +216,6 @@ struct Wavm : public WasmVm { bool setWord(uint64_t pointer, Word data) override; size_t getWordSize() override { return sizeof(uint32_t); }; std::string_view getPrecompiledSectionName() override; - AbiVersion getAbiVersion() override; #define _GET_FUNCTION(_T) \ void getFunction(std::string_view function_name, _T *f) override { \ @@ -250,7 +232,6 @@ struct Wavm : public WasmVm { FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK - bool has_instantiated_module_ = false; IR::Module ir_module_; WAVM::Runtime::ModuleRef module_ = nullptr; WAVM::Runtime::GCPointer module_instance_; @@ -262,7 +243,6 @@ struct Wavm : public WasmVm { intrinsic_module_instances_; std::vector> host_functions_; uint8_t *memory_base_ = nullptr; - AbiVersion abi_version_ = AbiVersion::Unknown; }; Wavm::~Wavm() { @@ -279,13 +259,12 @@ Wavm::~Wavm() { std::unique_ptr Wavm::clone() { auto wavm = std::make_unique(); wavm->integration().reset(integration()->clone()); - wavm->abi_version_ = abi_version_; wavm->compartment_ = WAVM::Runtime::cloneCompartment(compartment_); wavm->memory_ = WAVM::Runtime::remapToClonedCompartment(memory_, wavm->compartment_); wavm->memory_base_ = WAVM::Runtime::getMemoryBaseAddress(wavm->memory_); wavm->context_ = WAVM::Runtime::createContext(wavm->compartment_); - wavm->abi_version_ = abi_version_; + for (auto &p : intrinsic_module_instances_) { wavm->intrinsic_module_instances_.emplace( p.first, WAVM::Runtime::remapToClonedCompartment(p.second, wavm->compartment_)); @@ -295,38 +274,24 @@ std::unique_ptr Wavm::clone() { return wavm; } -bool Wavm::load(const std::string &code, bool allow_precompiled) { - ASSERT(!has_instantiated_module_); - has_instantiated_module_ = true; +bool Wavm::load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map) { compartment_ = WAVM::Runtime::createCompartment(); context_ = WAVM::Runtime::createContext(compartment_); - if (!loadModule(code, ir_module_)) { - return false; - } - - // Get ABI version from bytecode. - if (!common::BytecodeUtil::getAbiVersion(code, abi_version_)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); + if (!WASM::loadBinaryModule(reinterpret_cast(bytecode.data()), + bytecode.size(), ir_module_)) { return false; } - std::string_view precompiled = {}; - if (allow_precompiled) { - if (!common::BytecodeUtil::getCustomSection(code, getPrecompiledSectionName(), precompiled)) { - fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); - return false; - } - } - if (precompiled.empty()) { - module_ = WAVM::Runtime::compileModule(ir_module_); - } else { + if (!precompiled.empty()) { module_ = WAVM::Runtime::loadPrecompiledModule( ir_module_, {precompiled.data(), precompiled.data() + precompiled.size()}); + } else { + module_ = WAVM::Runtime::compileModule(ir_module_); } - return true; -} -AbiVersion Wavm::getAbiVersion() { return abi_version_; } + return module_ != nullptr; +} bool Wavm::link(std::string_view debug_name) { RootResolver rootResolver(compartment_, this); diff --git a/test/BUILD b/test/BUILD index f1e179f32..ec45c17b2 100644 --- a/test/BUILD +++ b/test/BUILD @@ -12,6 +12,20 @@ cc_test( ], ) +cc_test( + name = "bytecode_util_test", + srcs = ["bytecode_util_test.cc"], + data = [ + "//test/test_data:abi_export.wasm", + ], + deps = [ + ":utility_lib", + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + cc_test( name = "runtime_test", srcs = ["runtime_test.cc"], diff --git a/test/common/bytecode_util_test.cc b/test/bytecode_util_test.cc similarity index 94% rename from test/common/bytecode_util_test.cc rename to test/bytecode_util_test.cc index 50900c0ce..529434577 100644 --- a/test/common/bytecode_util_test.cc +++ b/test/bytecode_util_test.cc @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include "src/common/bytecode_util.h" +#include "include/proxy-wasm/bytecode_util.h" #include #include @@ -23,9 +23,8 @@ #include "gtest/gtest.h" namespace proxy_wasm { -namespace common { -TEST(TestWasmCommonUtil, getCustomSection) { +TEST(TestBytecodeUtil, getCustomSection) { std::string custom_section = { 0x00, 0x61, 0x73, 0x6d, // Wasm magic 0x01, 0x00, 0x00, 0x00, // Wasm version @@ -54,7 +53,7 @@ TEST(TestWasmCommonUtil, getCustomSection) { EXPECT_FALSE(BytecodeUtil::getCustomSection(corrupted, "hey", section)); } -TEST(TestWasmCommonUtil, getFunctionNameIndex) { +TEST(TestBytecodeUtil, getFunctionNameIndex) { const auto source = readTestWasmFile("abi_export.wasm"); std::unordered_map actual; // OK. @@ -73,7 +72,7 @@ TEST(TestWasmCommonUtil, getFunctionNameIndex) { EXPECT_TRUE(actual.empty()); } -TEST(TestWasmCommonUtil, getStrippedSource) { +TEST(TestBytecodeUtil, getStrippedSource) { // Unmodified case. auto source = readTestWasmFile("abi_export.wasm"); std::string actual; @@ -110,12 +109,11 @@ TEST(TestWasmCommonUtil, getStrippedSource) { EXPECT_EQ(actual.size(), source.size() - custom_section.size()); } -TEST(TestWasmCommonUtil, getAbiVersion) { +TEST(TestBytecodeUtil, getAbiVersion) { const auto source = readTestWasmFile("abi_export.wasm"); proxy_wasm::AbiVersion actual; EXPECT_TRUE(BytecodeUtil::getAbiVersion(source, actual)); EXPECT_EQ(actual, proxy_wasm::AbiVersion::ProxyWasm_0_2_0); } -} // namespace common } // namespace proxy_wasm diff --git a/test/common/BUILD b/test/common/BUILD deleted file mode 100644 index 23e21ba71..000000000 --- a/test/common/BUILD +++ /dev/null @@ -1,15 +0,0 @@ -load("@rules_cc//cc:defs.bzl", "cc_test") - -cc_test( - name = "bytecode_util_test", - srcs = ["bytecode_util_test.cc"], - data = [ - "//test/test_data:abi_export.wasm", - ], - deps = [ - "//:lib", - "//test:utility_lib", - "@com_google_googletest//:gtest", - "@com_google_googletest//:gtest_main", - ], -) diff --git a/test/exports_test.cc b/test/exports_test.cc index c35ea02d8..d18e0983a 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -52,7 +52,7 @@ TEST_P(TestVM, Environment) { initialize("env.wasm"); auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", envs, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, false)); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, {}, {})); TestContext context(&wasm_base); current_context_ = &context; @@ -74,7 +74,7 @@ TEST_P(TestVM, Environment) { TEST_P(TestVM, WithoutEnvironment) { initialize("env.wasm"); auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, false)); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, {}, {})); TestContext context(&wasm_base); current_context_ = &context; @@ -94,7 +94,7 @@ TEST_P(TestVM, WithoutEnvironment) { TEST_P(TestVM, Clock) { initialize("clock.wasm"); auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, false)); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, {}, {})); TestContext context(&wasm_base); current_context_ = &context; diff --git a/test/null_vm_test.cc b/test/null_vm_test.cc index 0201b8599..eeae92698 100644 --- a/test/null_vm_test.cc +++ b/test/null_vm_test.cc @@ -68,7 +68,7 @@ TEST_F(BaseVmTest, NullVmStartup) { EXPECT_TRUE(wasm_vm->cloneable() == Cloneable::InstantiatedModule); auto wasm_vm_clone = wasm_vm->clone(); EXPECT_TRUE(wasm_vm_clone != nullptr); - EXPECT_TRUE(wasm_vm->load("test_null_vm_plugin", true)); + EXPECT_TRUE(wasm_vm->load("test_null_vm_plugin", {}, {})); EXPECT_NE(test_null_vm_plugin, nullptr); } diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 7128d8c76..3ee96ab48 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -38,15 +38,9 @@ TEST_P(TestVM, Basic) { EXPECT_EQ(vm_->runtime(), runtime_); } -TEST_P(TestVM, ABIVersion) { - initialize("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source_, false)); - ASSERT_EQ(vm_->getAbiVersion(), AbiVersion::ProxyWasm_0_2_0); -} - TEST_P(TestVM, Memory) { initialize("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->load(source_, {}, {})); ASSERT_TRUE(vm_->link("")); Word word; @@ -64,7 +58,7 @@ TEST_P(TestVM, Memory) { TEST_P(TestVM, Clone) { initialize("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->load(source_, {}, {})); ASSERT_TRUE(vm_->link("")); const auto address = 0x2000; Word word; @@ -102,7 +96,7 @@ Word callback2(void *raw_context, Word val) { return val + 100; } TEST_P(TestVM, StraceLogLevel) { initialize("callback.wasm"); - ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->load(source_, {}, {})); vm_->registerCallback("env", "callback", &nopCallback, &ConvertFunctionWordToUint32::convertFunctionWordToUint32); @@ -125,7 +119,7 @@ TEST_P(TestVM, StraceLogLevel) { TEST_P(TestVM, Callback) { initialize("callback.wasm"); - ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->load(source_, {}, {})); TestContext context; current_context_ = &context; @@ -156,7 +150,7 @@ TEST_P(TestVM, Callback) { TEST_P(TestVM, Trap) { initialize("trap.wasm"); - ASSERT_TRUE(vm_->load(source_, false)); + ASSERT_TRUE(vm_->load(source_, {}, {})); ASSERT_TRUE(vm_->link("")); WasmCallVoid<0> trigger; vm_->getFunction("trigger", &trigger); @@ -173,26 +167,5 @@ TEST_P(TestVM, Trap) { ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); } -TEST_P(TestVM, WithPrecompiledSection) { - // Verify that stripping precompile_* custom section works. - initialize("abi_export.wasm"); - // Append precompiled_test section - std::vector custom_section = {// custom section id - 0x00, - // section length - 0x13, - // name length - 0x10, - // name = precompiled_test - 0x70, 0x72, 0x65, 0x63, 0x6f, 0x6d, 0x70, 0x69, 0x6c, 0x65, - 0x64, 0x5f, 0x74, 0x65, 0x73, 0x74, - // content - 0x01, 0x01}; - - source_.append(custom_section.data(), custom_section.size()); - ASSERT_TRUE(vm_->load(source_, false)); - ASSERT_EQ(vm_->getAbiVersion(), AbiVersion::ProxyWasm_0_2_0); -} - } // namespace } // namespace proxy_wasm From deb0aea063e624521b91b345ca70730c9c258da4 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 13 May 2021 16:23:15 -0700 Subject: [PATCH 099/287] Update Rust tools and dependencies. (#163) Signed-off-by: Piotr Sikora --- .github/workflows/cargo.yml | 2 +- bazel/cargo/Cargo.raze.lock | 97 ++++++----- bazel/cargo/crates.bzl | 160 +++++++++++------- .../cargo/remote/BUILD.addr2line-0.14.1.bazel | 6 +- .../cargo/remote/BUILD.addr2line-0.15.1.bazel | 62 +++++++ bazel/cargo/remote/BUILD.adler-1.0.2.bazel | 6 +- ....bazel => BUILD.aho-corasick-0.7.18.bazel} | 12 +- bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel | 7 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 8 +- bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel | 6 +- ....56.bazel => BUILD.backtrace-0.3.59.bazel} | 61 +++++-- ...-1.3.2.bazel => BUILD.bincode-1.3.3.bazel} | 11 +- bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel | 7 +- .../cargo/remote/BUILD.byteorder-1.3.4.bazel | 88 ---------- .../cargo/remote/BUILD.byteorder-1.4.3.bazel | 55 ++++++ bazel/cargo/remote/BUILD.cc-1.0.67.bazel | 6 +- bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel | 6 +- .../remote/BUILD.cpp_demangle-0.3.2.bazel | 7 +- .../BUILD.cranelift-bforest-0.73.0.bazel | 6 +- .../BUILD.cranelift-codegen-0.73.0.bazel | 11 +- .../BUILD.cranelift-codegen-meta-0.73.0.bazel | 6 +- ...UILD.cranelift-codegen-shared-0.73.0.bazel | 8 +- .../BUILD.cranelift-entity-0.73.0.bazel | 8 +- .../BUILD.cranelift-frontend-0.73.0.bazel | 6 +- .../BUILD.cranelift-native-0.73.0.bazel | 6 +- .../remote/BUILD.cranelift-wasm-0.73.0.bazel | 8 +- .../cargo/remote/BUILD.crc32fast-1.2.1.bazel | 7 +- bazel/cargo/remote/BUILD.either-1.6.1.bazel | 6 +- .../cargo/remote/BUILD.env_logger-0.8.3.bazel | 8 +- .../BUILD.fallible-iterator-0.2.0.bazel | 6 +- .../cargo/remote/BUILD.getrandom-0.2.2.bazel | 9 +- bazel/cargo/remote/BUILD.gimli-0.23.0.bazel | 6 +- bazel/cargo/remote/BUILD.gimli-0.24.0.bazel | 68 ++++++++ bazel/cargo/remote/BUILD.glob-0.3.0.bazel | 6 +- .../cargo/remote/BUILD.hashbrown-0.9.1.bazel | 6 +- .../remote/BUILD.hermit-abi-0.1.18.bazel | 8 +- .../cargo/remote/BUILD.humantime-2.1.0.bazel | 6 +- bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel | 9 +- .../cargo/remote/BUILD.itertools-0.10.0.bazel | 6 +- .../remote/BUILD.lazy_static-1.4.0.bazel | 6 +- ...c-0.2.93.bazel => BUILD.libc-0.2.94.bazel} | 11 +- bazel/cargo/remote/BUILD.log-0.4.14.bazel | 7 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 8 +- ...r-2.3.4.bazel => BUILD.memchr-2.4.0.bazel} | 17 +- .../cargo/remote/BUILD.memoffset-0.6.3.bazel | 7 +- .../remote/BUILD.miniz_oxide-0.4.4.bazel | 7 +- .../remote/BUILD.more-asserts-0.2.1.bazel | 6 +- bazel/cargo/remote/BUILD.object-0.23.0.bazel | 9 +- bazel/cargo/remote/BUILD.object-0.24.0.bazel | 76 +++++++++ .../cargo/remote/BUILD.once_cell-1.7.2.bazel | 6 +- bazel/cargo/remote/BUILD.paste-1.0.5.bazel | 6 +- .../remote/BUILD.ppv-lite86-0.2.10.bazel | 6 +- .../remote/BUILD.proc-macro2-1.0.26.bazel | 9 +- bazel/cargo/remote/BUILD.psm-0.1.12.bazel | 7 +- bazel/cargo/remote/BUILD.quote-1.0.9.bazel | 6 +- bazel/cargo/remote/BUILD.rand-0.8.3.bazel | 8 +- .../remote/BUILD.rand_chacha-0.3.0.bazel | 6 +- .../cargo/remote/BUILD.rand_core-0.6.2.bazel | 6 +- bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel | 6 +- .../cargo/remote/BUILD.regalloc-0.0.31.bazel | 8 +- ...ex-1.4.5.bazel => BUILD.regex-1.5.4.bazel} | 16 +- ....bazel => BUILD.regex-syntax-0.6.25.bazel} | 10 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 8 +- ...azel => BUILD.rustc-demangle-0.1.19.bazel} | 8 +- .../cargo/remote/BUILD.rustc-hash-1.1.0.bazel | 6 +- ....0.125.bazel => BUILD.serde-1.0.126.bazel} | 13 +- ...bazel => BUILD.serde_derive-1.0.126.bazel} | 13 +- bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel | 6 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 6 +- ...yn-1.0.68.bazel => BUILD.syn-1.0.72.bazel} | 13 +- .../remote/BUILD.target-lexicon-0.12.0.bazel | 7 +- .../cargo/remote/BUILD.termcolor-1.1.2.bazel | 6 +- .../cargo/remote/BUILD.thiserror-1.0.24.bazel | 6 +- .../remote/BUILD.thiserror-impl-1.0.24.bazel | 8 +- ....1.bazel => BUILD.unicode-xid-0.2.2.bazel} | 10 +- ...D.wasi-0.10.2+wasi-snapshot-preview1.bazel | 6 +- .../remote/BUILD.wasmparser-0.77.0.bazel | 6 +- .../cargo/remote/BUILD.wasmtime-0.26.0.bazel | 16 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 6 +- .../BUILD.wasmtime-cranelift-0.26.0.bazel | 6 +- .../remote/BUILD.wasmtime-debug-0.26.0.bazel | 6 +- .../BUILD.wasmtime-environ-0.26.0.bazel | 8 +- .../remote/BUILD.wasmtime-jit-0.26.0.bazel | 8 +- .../remote/BUILD.wasmtime-obj-0.26.0.bazel | 6 +- .../BUILD.wasmtime-profiling-0.26.0.bazel | 10 +- .../BUILD.wasmtime-runtime-0.26.0.bazel | 11 +- bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 7 +- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 7 +- .../remote/BUILD.winapi-util-0.1.5.bazel | 6 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 7 +- bazel/repositories.bzl | 6 +- 91 files changed, 791 insertions(+), 512 deletions(-) create mode 100644 bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel rename bazel/cargo/remote/{BUILD.aho-corasick-0.7.15.bazel => BUILD.aho-corasick-0.7.18.bazel} (90%) rename bazel/cargo/remote/{BUILD.backtrace-0.3.56.bazel => BUILD.backtrace-0.3.59.bazel} (61%) rename bazel/cargo/remote/{BUILD.bincode-1.3.2.bazel => BUILD.bincode-1.3.3.bazel} (88%) delete mode 100644 bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel create mode 100644 bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel create mode 100644 bazel/cargo/remote/BUILD.gimli-0.24.0.bazel rename bazel/cargo/remote/{BUILD.libc-0.2.93.bazel => BUILD.libc-0.2.94.bazel} (95%) rename bazel/cargo/remote/{BUILD.memchr-2.3.4.bazel => BUILD.memchr-2.4.0.bazel} (92%) create mode 100644 bazel/cargo/remote/BUILD.object-0.24.0.bazel rename bazel/cargo/remote/{BUILD.regex-1.4.5.bazel => BUILD.regex-1.5.4.bazel} (90%) rename bazel/cargo/remote/{BUILD.regex-syntax-0.6.23.bazel => BUILD.regex-syntax-0.6.25.bazel} (95%) rename bazel/cargo/remote/{BUILD.rustc-demangle-0.1.18.bazel => BUILD.rustc-demangle-0.1.19.bazel} (97%) rename bazel/cargo/remote/{BUILD.serde-1.0.125.bazel => BUILD.serde-1.0.126.bazel} (91%) rename bazel/cargo/remote/{BUILD.serde_derive-1.0.125.bazel => BUILD.serde_derive-1.0.126.bazel} (92%) rename bazel/cargo/remote/{BUILD.syn-1.0.68.bazel => BUILD.syn-1.0.72.bazel} (96%) rename bazel/cargo/remote/{BUILD.unicode-xid-0.2.1.bazel => BUILD.unicode-xid-0.2.2.bazel} (93%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 30511c6d9..f56b3e97d 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -38,6 +38,6 @@ jobs: - name: Format (cargo raze) working-directory: bazel/cargo run: | - cargo install cargo-raze --version 0.9.2 + cargo install cargo-raze --version 0.12.0 cargo raze git diff --exit-code diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index ff2de70ef..03711991b 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -6,7 +6,16 @@ version = "0.14.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7" dependencies = [ - "gimli", + "gimli 0.23.0", +] + +[[package]] +name = "addr2line" +version = "0.15.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03345e98af8f3d786b6d9f656ccfa6ac316d954e92bc4841f0bba20789d5fb5a" +dependencies = [ + "gimli 0.24.0", ] [[package]] @@ -17,9 +26,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "aho-corasick" -version = "0.7.15" +version = "0.7.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5" +checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" dependencies = [ "memchr", ] @@ -49,25 +58,25 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "backtrace" -version = "0.3.56" +version = "0.3.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9d117600f438b1707d4e4ae15d3595657288f8235a0eb593e80ecc98ab34e1bc" +checksum = "4717cfcbfaa661a0fd48f8453951837ae7e8f81e481fbb136e3202d72805a744" dependencies = [ - "addr2line", + "addr2line 0.15.1", + "cc", "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.24.0", "rustc-demangle", ] [[package]] name = "bincode" -version = "1.3.2" +version = "1.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d175dfa69e619905c4c3cdb7c3c203fa3bdd5d51184e3afdb2742c0280493772" +checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" dependencies = [ - "byteorder", "serde", ] @@ -79,9 +88,9 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "byteorder" -version = "1.3.4" +version = "1.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "cc" @@ -125,7 +134,7 @@ dependencies = [ "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", - "gimli", + "gimli 0.23.0", "log", "regalloc", "serde", @@ -257,6 +266,12 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189" + [[package]] name = "glob" version = "0.3.0" @@ -312,9 +327,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.93" +version = "0.2.94" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41" +checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e" [[package]] name = "log" @@ -336,9 +351,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.3.4" +version = "2.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" +checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" [[package]] name = "memoffset" @@ -375,6 +390,12 @@ dependencies = [ "indexmap", ] +[[package]] +name = "object" +version = "0.24.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170" + [[package]] name = "once_cell" version = "1.7.2" @@ -474,9 +495,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.4.5" +version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19" +checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" dependencies = [ "aho-corasick", "memchr", @@ -485,9 +506,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.23" +version = "0.6.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548" +checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" [[package]] name = "region" @@ -503,9 +524,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232" +checksum = "410f7acf3cb3a44527c5d9546bad4bf4e6c460915d5f9f2fc524498bfe8f70ce" [[package]] name = "rustc-hash" @@ -515,18 +536,18 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "serde" -version = "1.0.125" +version = "1.0.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "558dc50e1a5a5fa7112ca2ce4effcb321b0300c0d4ccf0776a9f60cd89031171" +checksum = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.125" +version = "1.0.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b093b7a2bb58203b5da3056c05b4ec1fed827dcfdb37347a8841695263b3d06d" +checksum = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43" dependencies = [ "proc-macro2", "quote", @@ -547,9 +568,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.68" +version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ce15dd3ed8aa2f8eeac4716d6ef5ab58b6b9256db41d7e1a0224c2788e8fd87" +checksum = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82" dependencies = [ "proc-macro2", "quote", @@ -593,9 +614,9 @@ dependencies = [ [[package]] name = "unicode-xid" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564" +checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" [[package]] name = "wasi" @@ -680,9 +701,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5241e603c262b2ee0dfb5b2245ad539d0a99f0589909fbffc91d2a8035f2d20a" dependencies = [ "anyhow", - "gimli", + "gimli 0.23.0", "more-asserts", - "object", + "object 0.23.0", "target-lexicon", "thiserror", "wasmparser", @@ -700,7 +721,7 @@ dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-wasm", - "gimli", + "gimli 0.23.0", "indexmap", "log", "more-asserts", @@ -716,7 +737,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "81b066a3290a903c5beb7d765b3e82e00cd4f8ac0475297f91330fbe8e16bb17" dependencies = [ - "addr2line", + "addr2line 0.14.1", "anyhow", "cfg-if", "cranelift-codegen", @@ -724,10 +745,10 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli", + "gimli 0.23.0", "log", "more-asserts", - "object", + "object 0.23.0", "region", "serde", "target-lexicon", @@ -750,7 +771,7 @@ checksum = "bd9d5c6c8924ea1fb2372d26c0546a8c5aab94001d5ddedaa36fd7b090c04de2" dependencies = [ "anyhow", "more-asserts", - "object", + "object 0.23.0", "target-lexicon", "wasmtime-debug", "wasmtime-environ", diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 68c49b0d4..7637d4392 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -21,6 +21,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.14.1.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__addr2line__0_15_1", + url = "https://crates.io/api/v1/crates/addr2line/0.15.1/download", + type = "tar.gz", + sha256 = "03345e98af8f3d786b6d9f656ccfa6ac316d954e92bc4841f0bba20789d5fb5a", + strip_prefix = "addr2line-0.15.1", + build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.15.1.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__adler__1_0_2", @@ -33,12 +43,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__aho_corasick__0_7_15", - url = "https://crates.io/api/v1/crates/aho-corasick/0.7.15/download", + name = "proxy_wasm_cpp_host__aho_corasick__0_7_18", + url = "https://crates.io/api/v1/crates/aho-corasick/0.7.18/download", type = "tar.gz", - sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", - strip_prefix = "aho-corasick-0.7.15", - build_file = Label("//bazel/cargo/remote:BUILD.aho-corasick-0.7.15.bazel"), + sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f", + strip_prefix = "aho-corasick-0.7.18", + build_file = Label("//bazel/cargo/remote:BUILD.aho-corasick-0.7.18.bazel"), ) maybe( @@ -73,22 +83,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__backtrace__0_3_56", - url = "https://crates.io/api/v1/crates/backtrace/0.3.56/download", + name = "proxy_wasm_cpp_host__backtrace__0_3_59", + url = "https://crates.io/api/v1/crates/backtrace/0.3.59/download", type = "tar.gz", - sha256 = "9d117600f438b1707d4e4ae15d3595657288f8235a0eb593e80ecc98ab34e1bc", - strip_prefix = "backtrace-0.3.56", - build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.56.bazel"), + sha256 = "4717cfcbfaa661a0fd48f8453951837ae7e8f81e481fbb136e3202d72805a744", + strip_prefix = "backtrace-0.3.59", + build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.59.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__bincode__1_3_2", - url = "https://crates.io/api/v1/crates/bincode/1.3.2/download", + name = "proxy_wasm_cpp_host__bincode__1_3_3", + url = "https://crates.io/api/v1/crates/bincode/1.3.3/download", type = "tar.gz", - sha256 = "d175dfa69e619905c4c3cdb7c3c203fa3bdd5d51184e3afdb2742c0280493772", - strip_prefix = "bincode-1.3.2", - build_file = Label("//bazel/cargo/remote:BUILD.bincode-1.3.2.bazel"), + sha256 = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad", + strip_prefix = "bincode-1.3.3", + build_file = Label("//bazel/cargo/remote:BUILD.bincode-1.3.3.bazel"), ) maybe( @@ -103,12 +113,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__byteorder__1_3_4", - url = "https://crates.io/api/v1/crates/byteorder/1.3.4/download", + name = "proxy_wasm_cpp_host__byteorder__1_4_3", + url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", type = "tar.gz", - sha256 = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de", - strip_prefix = "byteorder-1.3.4", - build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.3.4.bazel"), + sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", + strip_prefix = "byteorder-1.4.3", + build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.4.3.bazel"), ) maybe( @@ -281,6 +291,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.23.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__gimli__0_24_0", + url = "https://crates.io/api/v1/crates/gimli/0.24.0/download", + type = "tar.gz", + sha256 = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189", + strip_prefix = "gimli-0.24.0", + build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.24.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__glob__0_3_0", @@ -353,12 +373,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_93", - url = "https://crates.io/api/v1/crates/libc/0.2.93/download", + name = "proxy_wasm_cpp_host__libc__0_2_94", + url = "https://crates.io/api/v1/crates/libc/0.2.94/download", type = "tar.gz", - sha256 = "9385f66bf6105b241aa65a61cb923ef20efc665cb9f9bb50ac2f0c4b7f378d41", - strip_prefix = "libc-0.2.93", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.93.bazel"), + sha256 = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e", + strip_prefix = "libc-0.2.94", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.94.bazel"), ) maybe( @@ -383,12 +403,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__memchr__2_3_4", - url = "https://crates.io/api/v1/crates/memchr/2.3.4/download", + name = "proxy_wasm_cpp_host__memchr__2_4_0", + url = "https://crates.io/api/v1/crates/memchr/2.4.0/download", type = "tar.gz", - sha256 = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525", - strip_prefix = "memchr-2.3.4", - build_file = Label("//bazel/cargo/remote:BUILD.memchr-2.3.4.bazel"), + sha256 = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc", + strip_prefix = "memchr-2.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.memchr-2.4.0.bazel"), ) maybe( @@ -431,6 +451,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.object-0.23.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__object__0_24_0", + url = "https://crates.io/api/v1/crates/object/0.24.0/download", + type = "tar.gz", + sha256 = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170", + strip_prefix = "object-0.24.0", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.24.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__once_cell__1_7_2", @@ -543,22 +573,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__regex__1_4_5", - url = "https://crates.io/api/v1/crates/regex/1.4.5/download", + name = "proxy_wasm_cpp_host__regex__1_5_4", + url = "https://crates.io/api/v1/crates/regex/1.5.4/download", type = "tar.gz", - sha256 = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19", - strip_prefix = "regex-1.4.5", - build_file = Label("//bazel/cargo/remote:BUILD.regex-1.4.5.bazel"), + sha256 = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461", + strip_prefix = "regex-1.5.4", + build_file = Label("//bazel/cargo/remote:BUILD.regex-1.5.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__regex_syntax__0_6_23", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.23/download", + name = "proxy_wasm_cpp_host__regex_syntax__0_6_25", + url = "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download", type = "tar.gz", - sha256 = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548", - strip_prefix = "regex-syntax-0.6.23", - build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.23.bazel"), + sha256 = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b", + strip_prefix = "regex-syntax-0.6.25", + build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.25.bazel"), ) maybe( @@ -573,12 +603,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__rustc_demangle__0_1_18", - url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.18/download", + name = "proxy_wasm_cpp_host__rustc_demangle__0_1_19", + url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.19/download", type = "tar.gz", - sha256 = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232", - strip_prefix = "rustc-demangle-0.1.18", - build_file = Label("//bazel/cargo/remote:BUILD.rustc-demangle-0.1.18.bazel"), + sha256 = "410f7acf3cb3a44527c5d9546bad4bf4e6c460915d5f9f2fc524498bfe8f70ce", + strip_prefix = "rustc-demangle-0.1.19", + build_file = Label("//bazel/cargo/remote:BUILD.rustc-demangle-0.1.19.bazel"), ) maybe( @@ -593,22 +623,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__serde__1_0_125", - url = "https://crates.io/api/v1/crates/serde/1.0.125/download", + name = "proxy_wasm_cpp_host__serde__1_0_126", + url = "https://crates.io/api/v1/crates/serde/1.0.126/download", type = "tar.gz", - sha256 = "558dc50e1a5a5fa7112ca2ce4effcb321b0300c0d4ccf0776a9f60cd89031171", - strip_prefix = "serde-1.0.125", - build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.125.bazel"), + sha256 = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03", + strip_prefix = "serde-1.0.126", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.126.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__serde_derive__1_0_125", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.125/download", + name = "proxy_wasm_cpp_host__serde_derive__1_0_126", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.126/download", type = "tar.gz", - sha256 = "b093b7a2bb58203b5da3056c05b4ec1fed827dcfdb37347a8841695263b3d06d", - strip_prefix = "serde_derive-1.0.125", - build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.125.bazel"), + sha256 = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43", + strip_prefix = "serde_derive-1.0.126", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.126.bazel"), ) maybe( @@ -633,12 +663,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_68", - url = "https://crates.io/api/v1/crates/syn/1.0.68/download", + name = "proxy_wasm_cpp_host__syn__1_0_72", + url = "https://crates.io/api/v1/crates/syn/1.0.72/download", type = "tar.gz", - sha256 = "3ce15dd3ed8aa2f8eeac4716d6ef5ab58b6b9256db41d7e1a0224c2788e8fd87", - strip_prefix = "syn-1.0.68", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.68.bazel"), + sha256 = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82", + strip_prefix = "syn-1.0.72", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.72.bazel"), ) maybe( @@ -683,12 +713,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__unicode_xid__0_2_1", - url = "https://crates.io/api/v1/crates/unicode-xid/0.2.1/download", + name = "proxy_wasm_cpp_host__unicode_xid__0_2_2", + url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", type = "tar.gz", - sha256 = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564", - strip_prefix = "unicode-xid-0.2.1", - build_file = Label("//bazel/cargo/remote:BUILD.unicode-xid-0.2.1.bazel"), + sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", + strip_prefix = "unicode-xid-0.2.2", + build_file = Label("//bazel/cargo/remote:BUILD.unicode-xid-0.2.2.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel b/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel index 5fad28128..258f44940 100644 --- a/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel +++ b/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel b/bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel new file mode 100644 index 000000000..be83fd09f --- /dev/null +++ b/bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "addr2line" with type "example" omitted + +rust_library( + name = "addr2line", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.15.1", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__gimli__0_24_0//:gimli", + ], +) + +# Unsupported target "correctness" with type "test" omitted + +# Unsupported target "output_equivalence" with type "test" omitted + +# Unsupported target "parse" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.adler-1.0.2.bazel b/bazel/cargo/remote/BUILD.adler-1.0.2.bazel index 446473ed4..c5cb69602 100644 --- a/bazel/cargo/remote/BUILD.adler-1.0.2.bazel +++ b/bazel/cargo/remote/BUILD.adler-1.0.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel rename to bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel index d58cd4c34..6b70370af 100644 --- a/bazel/cargo/remote/BUILD.aho-corasick-0.7.15.bazel +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -40,7 +40,7 @@ rust_library( crate_root = "src/lib.rs", crate_type = "lib", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -48,9 +48,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.7.15", + version = "0.7.18", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__memchr__2_3_4//:memchr", + "@proxy_wasm_cpp_host__memchr__2_4_0//:memchr", ], ) diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel index 11382ed44..ba8033e8b 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index 04d2e1eac..e5f020a0d 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel index d348f9b4f..22a819b6e 100644 --- a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.59.bazel similarity index 61% rename from bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel rename to bazel/cargo/remote/BUILD.backtrace-0.3.59.bazel index 75d6534d0..bc4593f4c 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.56.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.59.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,46 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "backtrace_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.59", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__cc__1_0_67//:cc", + ] + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) # Unsupported target "benchmarks" with type "bench" omitted @@ -42,11 +82,7 @@ rust_library( aliases = { }, crate_features = [ - "addr2line", "default", - "gimli-symbolize", - "miniz_oxide", - "object", "std", ], crate_root = "src/lib.rs", @@ -60,15 +96,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.56", + version = "0.3.59", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__addr2line__0_14_1//:addr2line", + ":backtrace_build_script", + "@proxy_wasm_cpp_host__addr2line__0_15_1//:addr2line", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", - "@proxy_wasm_cpp_host__object__0_23_0//:object", - "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", + "@proxy_wasm_cpp_host__object__0_24_0//:object", + "@proxy_wasm_cpp_host__rustc_demangle__0_1_19//:rustc_demangle", ] + selects.with_or({ # cfg(windows) ( diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.2.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.bincode-1.3.2.bazel rename to bazel/cargo/remote/BUILD.bincode-1.3.3.bazel index 5eb8d55cd..e544d8b53 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.2.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -46,11 +46,10 @@ rust_library( "cargo-raze", "manual", ], - version = "1.3.2", + version = "1.3.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel index 10f261c17..2ff7b8554 100644 --- a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel b/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel deleted file mode 100644 index a86dd1923..000000000 --- a/bazel/cargo/remote/BUILD.byteorder-1.3.4.bazel +++ /dev/null @@ -1,88 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "byteorder_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.3.4", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "byteorder", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.3.4", - # buildifier: leave-alone - deps = [ - ":byteorder_build_script", - ], -) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel b/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel new file mode 100644 index 000000000..af0e2cc75 --- /dev/null +++ b/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "byteorder", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.4.3", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.cc-1.0.67.bazel b/bazel/cargo/remote/BUILD.cc-1.0.67.bazel index 308b021de..8e2d391b2 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.67.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.67.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel index f3bd70ddf..c921ef918 100644 --- a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel index 89ff66eb7..ea8503d58 100644 --- a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel index a5db24b98..d97edd650 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel index b06085b97..8753f4f8a 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -91,14 +92,14 @@ rust_library( # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__byteorder__1_3_4//:byteorder", + "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", "@proxy_wasm_cpp_host__cranelift_bforest__0_73_0//:cranelift_bforest", "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_73_0//:cranelift_codegen_shared", "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__regalloc__0_0_31//:regalloc", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel index d2d65b057..db0b9ef6d 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel index 8d35e2b5e..246ce325c 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -51,6 +51,6 @@ rust_library( version = "0.73.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel index e43a74fdc..029d2c15b 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -51,6 +51,6 @@ rust_library( version = "0.73.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel index a074c6c01..d3ae1b2c1 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel index ab9c85791..85ec5cf92 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel index b21160eb2..e6d689ee7 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -58,7 +58,7 @@ rust_library( "@proxy_wasm_cpp_host__cranelift_frontend__0_73_0//:cranelift_frontend", "@proxy_wasm_cpp_host__itertools__0_10_0//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel index 551f62dc6..a48eb6586 100644 --- a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/remote/BUILD.either-1.6.1.bazel index bb3e95699..49161e7d1 100644 --- a/bazel/cargo/remote/BUILD.either-1.6.1.bazel +++ b/bazel/cargo/remote/BUILD.either-1.6.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel index a60ce2e4f..ca68a4bf8 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -57,7 +57,7 @@ rust_library( "@proxy_wasm_cpp_host__atty__0_2_14//:atty", "@proxy_wasm_cpp_host__humantime__2_1_0//:humantime", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__regex__1_4_5//:regex", + "@proxy_wasm_cpp_host__regex__1_5_4//:regex", "@proxy_wasm_cpp_host__termcolor__1_1_2//:termcolor", ], ) diff --git a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel index e3bd077f2..8ec69bc6c 100644 --- a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel b/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel index 30fefb619..b0c3b88f9 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -156,7 +157,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel index 426051935..4ea9764f3 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.gimli-0.24.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.24.0.bazel new file mode 100644 index 000000000..ce3ad9778 --- /dev/null +++ b/bazel/cargo/remote/BUILD.gimli-0.24.0.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "dwarf-validate" with type "example" omitted + +# Unsupported target "dwarfdump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "simple_line" with type "example" omitted + +rust_library( + name = "gimli", + srcs = glob(["**/*.rs"]), + crate_features = [ + "read", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.24.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "convert_self" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.glob-0.3.0.bazel b/bazel/cargo/remote/BUILD.glob-0.3.0.bazel index 8da73ad15..c0f33f2fd 100644 --- a/bazel/cargo/remote/BUILD.glob-0.3.0.bazel +++ b/bazel/cargo/remote/BUILD.glob-0.3.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel b/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel index e1feaa496..587832a72 100644 --- a/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel +++ b/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel index 3732fb4fa..abbb8011b 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -50,6 +50,6 @@ rust_library( version = "0.1.18", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel index 51bc7cd45..a4fa1f98b 100644 --- a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel b/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel index 0c68b4e51..5ea95aa02 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -88,7 +89,7 @@ rust_library( deps = [ ":indexmap_build_script", "@proxy_wasm_cpp_host__hashbrown__0_9_1//:hashbrown", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel index 1fbad6cf4..c2cf7a364 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel index 09cae1bf4..b414da825 100644 --- a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel +++ b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.libc-0.2.93.bazel b/bazel/cargo/remote/BUILD.libc-0.2.94.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.libc-0.2.93.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.94.bazel index 5da81e7fe..635a21205 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.93.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.94.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -54,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.93", + version = "0.2.94", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.93", + version = "0.2.94", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.log-0.4.14.bazel b/bazel/cargo/remote/BUILD.log-0.4.14.bazel index 4ad281cf9..a0d2abe3f 100644 --- a/bazel/cargo/remote/BUILD.log-0.4.14.bazel +++ b/bazel/cargo/remote/BUILD.log-0.4.14.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 876184848..edfabfb74 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -63,7 +63,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel b/bazel/cargo/remote/BUILD.memchr-2.4.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.memchr-2.3.4.bazel rename to bazel/cargo/remote/BUILD.memchr-2.4.0.bazel index ea6ee6f5d..38cd7713c 100644 --- a/bazel/cargo/remote/BUILD.memchr-2.3.4.bazel +++ b/bazel/cargo/remote/BUILD.memchr-2.4.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -43,11 +44,10 @@ cargo_build_script( crate_features = [ "default", "std", - "use_std", ], crate_root = "build.rs", data = glob(["**"]), - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "2.3.4", + version = "2.4.0", visibility = ["//visibility:private"], deps = [ ], @@ -67,12 +67,11 @@ rust_library( crate_features = [ "default", "std", - "use_std", ], crate_root = "src/lib.rs", crate_type = "lib", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -80,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "2.3.4", + version = "2.4.0", # buildifier: leave-alone deps = [ ":memchr_build_script", diff --git a/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel b/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel index 23aeecc47..af0d61a43 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel +++ b/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel index 13017071c..414ae0899 100644 --- a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel index 6ccb62dac..e1ae00f40 100644 --- a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.object-0.23.0.bazel b/bazel/cargo/remote/BUILD.object-0.23.0.bazel index 95cd3cbe9..6b3f8ad99 100644 --- a/bazel/cargo/remote/BUILD.object-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.object-0.23.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -46,16 +46,13 @@ rust_library( name = "object", srcs = glob(["**/*.rs"]), crate_features = [ - "archive", "coff", "crc32fast", "elf", "indexmap", "macho", - "pe", "read_core", "std", - "unaligned", "write", "write_core", ], diff --git a/bazel/cargo/remote/BUILD.object-0.24.0.bazel b/bazel/cargo/remote/BUILD.object-0.24.0.bazel new file mode 100644 index 000000000..e78332fe1 --- /dev/null +++ b/bazel/cargo/remote/BUILD.object-0.24.0.bazel @@ -0,0 +1,76 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "ar" with type "example" omitted + +# Unsupported target "nm" with type "example" omitted + +# Unsupported target "objcopy" with type "example" omitted + +# Unsupported target "objdump" with type "example" omitted + +# Unsupported target "objectmap" with type "example" omitted + +# Unsupported target "readobj" with type "example" omitted + +rust_library( + name = "object", + srcs = glob(["**/*.rs"]), + crate_features = [ + "archive", + "coff", + "elf", + "macho", + "pe", + "read_core", + "unaligned", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.24.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "integration" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel b/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel index 46211fd2a..f62082a78 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.paste-1.0.5.bazel b/bazel/cargo/remote/BUILD.paste-1.0.5.bazel index 331dd436f..cd68ac546 100644 --- a/bazel/cargo/remote/BUILD.paste-1.0.5.bazel +++ b/bazel/cargo/remote/BUILD.paste-1.0.5.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel index 454797f52..fb8fa0944 100644 --- a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel +++ b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel index 0a202087b..052ad77e4 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -82,7 +83,7 @@ rust_library( # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@proxy_wasm_cpp_host__unicode_xid__0_2_1//:unicode_xid", + "@proxy_wasm_cpp_host__unicode_xid__0_2_2//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel index 61cb6c741..f335e7f55 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.12.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel index 644e3b3e1..38403bbb9 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.9.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.rand-0.8.3.bazel b/bazel/cargo/remote/BUILD.rand-0.8.3.bazel index 0209569ad..c3a7c4037 100644 --- a/bazel/cargo/remote/BUILD.rand-0.8.3.bazel +++ b/bazel/cargo/remote/BUILD.rand-0.8.3.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel b/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel index 8ff80133a..7a0691c0d 100644 --- a/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel +++ b/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel b/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel index 51cd0b42f..7a5581efc 100644 --- a/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel +++ b/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel b/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel index 5eb4b94d0..7d243a2e4 100644 --- a/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel +++ b/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel index 3f0346cfe..83eacacec 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -54,7 +54,7 @@ rust_library( deps = [ "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__rustc_hash__1_1_0//:rustc_hash", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-1.4.5.bazel b/bazel/cargo/remote/BUILD.regex-1.5.4.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.regex-1.4.5.bazel rename to bazel/cargo/remote/BUILD.regex-1.5.4.bazel index 240c1dfe2..ee3a06b22 100644 --- a/bazel/cargo/remote/BUILD.regex-1.4.5.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.5.4.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -58,7 +58,7 @@ rust_library( crate_root = "src/lib.rs", crate_type = "lib", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -66,12 +66,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.4.5", + version = "1.5.4", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__aho_corasick__0_7_15//:aho_corasick", - "@proxy_wasm_cpp_host__memchr__2_3_4//:memchr", - "@proxy_wasm_cpp_host__regex_syntax__0_6_23//:regex_syntax", + "@proxy_wasm_cpp_host__aho_corasick__0_7_18//:aho_corasick", + "@proxy_wasm_cpp_host__memchr__2_4_0//:memchr", + "@proxy_wasm_cpp_host__regex_syntax__0_6_25//:regex_syntax", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.23.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.regex-syntax-0.6.23.bazel rename to bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel index 6228437fc..fbc65b8ad 100644 --- a/bazel/cargo/remote/BUILD.regex-syntax-0.6.23.bazel +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -40,7 +40,7 @@ rust_library( crate_root = "src/lib.rs", crate_type = "lib", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.6.23", + version = "0.6.25", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index a2de6c09a..3f58da6a1 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -52,7 +52,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.19.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel rename to bazel/cargo/remote/BUILD.rustc-demangle-0.1.19.bazel index 534588108..0ecc0b005 100644 --- a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.19.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -46,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.18", + version = "0.1.19", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel index db34b3a55..f3571d78f 100644 --- a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.serde-1.0.125.bazel b/bazel/cargo/remote/BUILD.serde-1.0.126.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.serde-1.0.125.bazel rename to bazel/cargo/remote/BUILD.serde-1.0.126.bazel index 6a5d3585e..35eb68663 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.125.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.126.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -56,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.125", + version = "1.0.126", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@proxy_wasm_cpp_host__serde_derive__1_0_125//:serde_derive", + "@proxy_wasm_cpp_host__serde_derive__1_0_126//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -85,7 +86,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.125", + version = "1.0.126", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.125.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.126.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.serde_derive-1.0.125.bazel rename to bazel/cargo/remote/BUILD.serde_derive-1.0.126.bazel index 6af1ed775..922bccf22 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.125.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.126.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -53,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.125", + version = "1.0.126", visibility = ["//visibility:private"], deps = [ ], @@ -76,12 +77,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.125", + version = "1.0.126", # buildifier: leave-alone deps = [ ":serde_derive_build_script", "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_9//:quote", - "@proxy_wasm_cpp_host__syn__1_0_68//:syn", + "@proxy_wasm_cpp_host__syn__1_0_72//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel b/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel index 773c82bd4..f2c0284e3 100644 --- a/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel +++ b/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel index 46f122f65..2c57c0915 100644 --- a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.syn-1.0.68.bazel b/bazel/cargo/remote/BUILD.syn-1.0.72.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.syn-1.0.68.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.72.bazel index 054bd1f98..69ce0a205 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.68.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.72.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -59,7 +60,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.68", + version = "1.0.72", visibility = ["//visibility:private"], deps = [ ], @@ -92,13 +93,13 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.68", + version = "1.0.72", # buildifier: leave-alone deps = [ ":syn_build_script", "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_9//:quote", - "@proxy_wasm_cpp_host__unicode_xid__0_2_1//:unicode_xid", + "@proxy_wasm_cpp_host__unicode_xid__0_2_2//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel index b87c0b081..62e715ca9 100644 --- a/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel index 110b96b39..67a791cb1 100644 --- a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel +++ b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel index 87cb8414f..9bc28bc5e 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel index 01eab8cb9..ead7dbeb9 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -51,6 +51,6 @@ rust_library( deps = [ "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_9//:quote", - "@proxy_wasm_cpp_host__syn__1_0_68//:syn", + "@proxy_wasm_cpp_host__syn__1_0_72//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel b/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel rename to bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel index 1312ed500..fa0c6424a 100644 --- a/bazel/cargo/remote/BUILD.unicode-xid-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -30,6 +30,8 @@ licenses([ # Generated Targets +# Unsupported target "xid" with type "bench" omitted + rust_library( name = "unicode_xid", srcs = glob(["**/*.rs"]), @@ -47,7 +49,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.1", + version = "0.2.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel index dc3e3feff..d65930a5c 100644 --- a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel index ab824e65f..e7d229e1f 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel index b8a777a1b..0ec4ce0e9 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -55,18 +55,18 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_56//:backtrace", - "@proxy_wasm_cpp_host__bincode__1_3_2//:bincode", + "@proxy_wasm_cpp_host__backtrace__0_3_59//:backtrace", + "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__cpp_demangle__0_3_2//:cpp_demangle", "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__psm__0_1_12//:psm", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__rustc_demangle__0_1_18//:rustc_demangle", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__rustc_demangle__0_1_19//:rustc_demangle", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index 449545fc4..108838ec8 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel index 2a7ffcfa0..81e4995a2 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel index 545ee9f74..8d1516e33 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel index e3d9615a3..1967c275d 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -59,7 +59,7 @@ rust_library( "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel index e5d99dacf..2a61689b8 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -64,7 +64,7 @@ rust_library( "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__object__0_23_0//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel index 0024ed713..6d1e192b6 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel index 3bd603d96..d2a8183e6 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -52,8 +52,8 @@ rust_library( "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", - "@proxy_wasm_cpp_host__serde__1_0_125//:serde", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__serde__1_0_126//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", "@proxy_wasm_cpp_host__wasmtime_runtime__0_26_0//:wasmtime_runtime", diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel index 801a1dc03..8df633e5a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", @@ -113,11 +114,11 @@ rust_library( deps = [ ":wasmtime_runtime_build_script", "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_56//:backtrace", + "@proxy_wasm_cpp_host__backtrace__0_3_59//:backtrace", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_93//:libc", + "@proxy_wasm_cpp_host__libc__0_2_94//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__memoffset__0_6_3//:memoffset", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index 4fbecf9cf..4772a1e25 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 7882e51bc..e501d339a 100644 --- a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel index 46338fa7b..9978322dd 100644 --- a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel +++ b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # diff --git a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index b061a5346..5cf1d6c3a 100644 --- a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -5,6 +5,9 @@ cargo-raze crate build file. DO NOT EDIT! Replaced on runs of cargo-raze """ +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + # buildifier: disable=load load( "@rules_rust//rust:rust.bzl", @@ -13,9 +16,6 @@ load( "rust_test", ) -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # @@ -29,6 +29,7 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load # buildifier: disable=load-on-top load( "@rules_rust//cargo:cargo_build_script.bzl", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index d87c8fbbd..647741d85 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -62,9 +62,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "rules_rust", - sha256 = "242deacf4c9e4274d90964689dfae6c245bfb1bfa5e3336b2ad3b44f2541b70c", - strip_prefix = "rules_rust-1b648302edb64d3ddcc159655bf065bff40e6571", - url = "https://github.com/bazelbuild/rules_rust/archive/1b648302edb64d3ddcc159655bf065bff40e6571.tar.gz", + sha256 = "db182e96b5ed62b044142cdae096742fcfd1aa4febfe3af8afa3c0ee438a52a4", + strip_prefix = "rules_rust-96d5118f03411f80182fd45426e259eedf809d7a", + url = "https://github.com/bazelbuild/rules_rust/archive/96d5118f03411f80182fd45426e259eedf809d7a.tar.gz", ) http_archive( From e4042ae4da7c9c7ee37d3fce99db39685364b81b Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 14 May 2021 21:27:07 -0700 Subject: [PATCH 100/287] Add support for loading and verifying signed Wasm modules. (#147) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 3 + bazel/cargo/BUILD.bazel | 20 +++ bazel/cargo/Cargo.raze.lock | 87 +++++++++++++ bazel/cargo/Cargo.toml | 4 + bazel/cargo/crates.bzl | 99 +++++++++++++++ .../cargo/remote/BUILD.ansi_term-0.11.0.bazel | 66 ++++++++++ .../cargo/remote/BUILD.byteorder-1.4.3.bazel | 2 + bazel/cargo/remote/BUILD.clap-2.33.3.bazel | 93 ++++++++++++++ .../remote/BUILD.ed25519-compact-0.1.9.bazel | 58 +++++++++ .../remote/BUILD.hmac-sha512-0.1.9.bazel | 55 ++++++++ .../remote/BUILD.parity-wasm-0.42.2.bazel | 71 +++++++++++ bazel/cargo/remote/BUILD.strsim-0.8.0.bazel | 57 +++++++++ .../cargo/remote/BUILD.textwrap-0.11.0.bazel | 62 +++++++++ .../remote/BUILD.unicode-width-0.1.8.bazel | 54 ++++++++ bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel | 53 ++++++++ bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel | 91 ++++++++++++++ bazel/wasm.bzl | 25 ++-- include/proxy-wasm/signature_util.h | 33 +++++ src/signature_util.cc | 119 ++++++++++++++++++ src/wasm.cc | 10 ++ test/BUILD | 18 +++ test/signature_util_test.cc | 60 +++++++++ test/test_data/BUILD | 18 +++ test/test_data/signature_key1.key | Bin 0 -> 68 bytes test/test_data/signature_key1.pub | Bin 0 -> 36 bytes test/test_data/signature_key2.key | Bin 0 -> 68 bytes test/test_data/signature_key2.pub | Bin 0 -> 36 bytes 27 files changed, 1151 insertions(+), 7 deletions(-) create mode 100644 bazel/cargo/remote/BUILD.ansi_term-0.11.0.bazel create mode 100644 bazel/cargo/remote/BUILD.clap-2.33.3.bazel create mode 100644 bazel/cargo/remote/BUILD.ed25519-compact-0.1.9.bazel create mode 100644 bazel/cargo/remote/BUILD.hmac-sha512-0.1.9.bazel create mode 100644 bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel create mode 100644 bazel/cargo/remote/BUILD.strsim-0.8.0.bazel create mode 100644 bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel create mode 100644 bazel/cargo/remote/BUILD.unicode-width-0.1.8.bazel create mode 100644 bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel create mode 100644 bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel create mode 100644 include/proxy-wasm/signature_util.h create mode 100644 src/signature_util.cc create mode 100644 test/signature_util_test.cc create mode 100644 test/test_data/signature_key1.key create mode 100644 test/test_data/signature_key1.pub create mode 100644 test/test_data/signature_key2.key create mode 100644 test/test_data/signature_key2.pub diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index ab27b2797..4bfc86199 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -75,3 +75,6 @@ jobs: run: | bazel test --define runtime=${{ matrix.runtime }} //... + - name: Test (signed Wasm module) + run: | + bazel test --define runtime=${{ matrix.runtime }} --cxxopt=-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index b52a8febe..1e5fb6888 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -39,6 +39,26 @@ alias( ], ) +alias( + name = "wasmsign", + actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:wasmsign", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + # Extra aliased target, from raze configuration + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_wasmsign", + actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:cargo_bin_wasmsign", + tags = [ + "cargo-raze", + "manual", + ], +) + alias( name = "wasmtime", actual = "@proxy_wasm_cpp_host__wasmtime__0_26_0//:wasmtime", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index 03711991b..a4c2ece9f 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -33,6 +33,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "ansi_term" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" +dependencies = [ + "winapi", +] + [[package]] name = "anyhow" version = "1.0.40" @@ -104,6 +113,21 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "clap" +version = "2.33.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" +dependencies = [ + "ansi_term", + "atty", + "bitflags", + "strsim", + "textwrap", + "unicode-width", + "vec_map", +] + [[package]] name = "cpp_demangle" version = "0.3.2" @@ -219,6 +243,15 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "ed25519-compact" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aaf396058cc7285b342f9a10ed7a377f088942396c46c4c9a7eb4f0782cb1171" +dependencies = [ + "getrandom", +] + [[package]] name = "either" version = "1.6.1" @@ -293,6 +326,12 @@ dependencies = [ "libc", ] +[[package]] +name = "hmac-sha512" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77e806677ce663d0a199541030c816847b36e8dc095f70dae4a4f4ad63da5383" + [[package]] name = "humantime" version = "2.1.0" @@ -402,6 +441,12 @@ version = "1.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3" +[[package]] +name = "parity-wasm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" + [[package]] name = "paste" version = "1.0.5" @@ -566,6 +611,12 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" +[[package]] +name = "strsim" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" + [[package]] name = "syn" version = "1.0.72" @@ -592,6 +643,15 @@ dependencies = [ "winapi-util", ] +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "unicode-width", +] + [[package]] name = "thiserror" version = "1.0.24" @@ -612,12 +672,24 @@ dependencies = [ "syn", ] +[[package]] +name = "unicode-width" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" + [[package]] name = "unicode-xid" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" +[[package]] +name = "vec_map" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" + [[package]] name = "wasi" version = "0.10.2+wasi-snapshot-preview1" @@ -630,6 +702,20 @@ version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b35c86d22e720a07d954ebbed772d01180501afe7d03d464f413bb5f8914a8d6" +[[package]] +name = "wasmsign" +version = "0.1.2" +source = "git+https://github.com/jedisct1/wasmsign#fa4d5598f778390df09be94232972b5b865a56b8" +dependencies = [ + "anyhow", + "byteorder", + "clap", + "ed25519-compact", + "hmac-sha512", + "parity-wasm", + "thiserror", +] + [[package]] name = "wasmtime" version = "0.26.0" @@ -667,6 +753,7 @@ dependencies = [ "anyhow", "env_logger", "once_cell", + "wasmsign", "wasmtime", "wasmtime-c-api-macros", ] diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 52b2a3618..1b7bdb132 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -12,6 +12,7 @@ anyhow = "1.0" once_cell = "1.3" wasmtime = {version = "0.26.0", default-features = false} wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.26.0", path = "crates/c-api/macros"} +wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" @@ -19,3 +20,6 @@ gen_workspace_prefix = "proxy_wasm_cpp_host" genmode = "Remote" package_aliases_dir = "." workspace_path = "//bazel/cargo" + +[package.metadata.raze.crates.wasmsign.'*'] +extra_aliased_targets = ["cargo_bin_wasmsign"] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 7637d4392..c6b0c1920 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -51,6 +51,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.aho-corasick-0.7.18.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__ansi_term__0_11_0", + url = "https://crates.io/api/v1/crates/ansi_term/0.11.0/download", + type = "tar.gz", + sha256 = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b", + strip_prefix = "ansi_term-0.11.0", + build_file = Label("//bazel/cargo/remote:BUILD.ansi_term-0.11.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__anyhow__1_0_40", @@ -141,6 +151,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-1.0.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__clap__2_33_3", + url = "https://crates.io/api/v1/crates/clap/2.33.3/download", + type = "tar.gz", + sha256 = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002", + strip_prefix = "clap-2.33.3", + build_file = Label("//bazel/cargo/remote:BUILD.clap-2.33.3.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__cpp_demangle__0_3_2", @@ -241,6 +261,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.crc32fast-1.2.1.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__ed25519_compact__0_1_9", + url = "https://crates.io/api/v1/crates/ed25519-compact/0.1.9/download", + type = "tar.gz", + sha256 = "aaf396058cc7285b342f9a10ed7a377f088942396c46c4c9a7eb4f0782cb1171", + strip_prefix = "ed25519-compact-0.1.9", + build_file = Label("//bazel/cargo/remote:BUILD.ed25519-compact-0.1.9.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__either__1_6_1", @@ -331,6 +361,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.18.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__hmac_sha512__0_1_9", + url = "https://crates.io/api/v1/crates/hmac-sha512/0.1.9/download", + type = "tar.gz", + sha256 = "77e806677ce663d0a199541030c816847b36e8dc095f70dae4a4f4ad63da5383", + strip_prefix = "hmac-sha512-0.1.9", + build_file = Label("//bazel/cargo/remote:BUILD.hmac-sha512-0.1.9.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__humantime__2_1_0", @@ -471,6 +511,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.7.2.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__parity_wasm__0_42_2", + url = "https://crates.io/api/v1/crates/parity-wasm/0.42.2/download", + type = "tar.gz", + sha256 = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92", + strip_prefix = "parity-wasm-0.42.2", + build_file = Label("//bazel/cargo/remote:BUILD.parity-wasm-0.42.2.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__paste__1_0_5", @@ -661,6 +711,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.stable_deref_trait-1.2.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__strsim__0_8_0", + url = "https://crates.io/api/v1/crates/strsim/0.8.0/download", + type = "tar.gz", + sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a", + strip_prefix = "strsim-0.8.0", + build_file = Label("//bazel/cargo/remote:BUILD.strsim-0.8.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__syn__1_0_72", @@ -691,6 +751,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.termcolor-1.1.2.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__textwrap__0_11_0", + url = "https://crates.io/api/v1/crates/textwrap/0.11.0/download", + type = "tar.gz", + sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", + strip_prefix = "textwrap-0.11.0", + build_file = Label("//bazel/cargo/remote:BUILD.textwrap-0.11.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__thiserror__1_0_24", @@ -711,6 +781,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.24.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__unicode_width__0_1_8", + url = "https://crates.io/api/v1/crates/unicode-width/0.1.8/download", + type = "tar.gz", + sha256 = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3", + strip_prefix = "unicode-width-0.1.8", + build_file = Label("//bazel/cargo/remote:BUILD.unicode-width-0.1.8.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__unicode_xid__0_2_2", @@ -721,6 +801,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.unicode-xid-0.2.2.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__vec_map__0_8_2", + url = "https://crates.io/api/v1/crates/vec_map/0.8.2/download", + type = "tar.gz", + sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191", + strip_prefix = "vec_map-0.8.2", + build_file = Label("//bazel/cargo/remote:BUILD.vec_map-0.8.2.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__wasi__0_10_2_wasi_snapshot_preview1", @@ -741,6 +831,15 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.77.0.bazel"), ) + maybe( + new_git_repository, + name = "proxy_wasm_cpp_host__wasmsign__0_1_2", + remote = "https://github.com/jedisct1/wasmsign", + commit = "fa4d5598f778390df09be94232972b5b865a56b8", + build_file = Label("//bazel/cargo/remote:BUILD.wasmsign-0.1.2.bazel"), + init_submodules = True, + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__wasmtime__0_26_0", diff --git a/bazel/cargo/remote/BUILD.ansi_term-0.11.0.bazel b/bazel/cargo/remote/BUILD.ansi_term-0.11.0.bazel new file mode 100644 index 000000000..a05ec6e27 --- /dev/null +++ b/bazel/cargo/remote/BUILD.ansi_term-0.11.0.bazel @@ -0,0 +1,66 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "colours" with type "example" omitted + +rust_library( + name = "ansi_term", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.0", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel b/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel index af0e2cc75..b998b1fbd 100644 --- a/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel +++ b/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel @@ -36,6 +36,8 @@ rust_library( name = "byteorder", srcs = glob(["**/*.rs"]), crate_features = [ + "default", + "std", ], crate_root = "src/lib.rs", crate_type = "lib", diff --git a/bazel/cargo/remote/BUILD.clap-2.33.3.bazel b/bazel/cargo/remote/BUILD.clap-2.33.3.bazel new file mode 100644 index 000000000..2211f357c --- /dev/null +++ b/bazel/cargo/remote/BUILD.clap-2.33.3.bazel @@ -0,0 +1,93 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +rust_library( + name = "clap", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "ansi_term", + "atty", + "color", + "default", + "strsim", + "suggestions", + "vec_map", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "2.33.3", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__atty__0_2_14//:atty", + "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", + "@proxy_wasm_cpp_host__strsim__0_8_0//:strsim", + "@proxy_wasm_cpp_host__textwrap__0_11_0//:textwrap", + "@proxy_wasm_cpp_host__unicode_width__0_1_8//:unicode_width", + "@proxy_wasm_cpp_host__vec_map__0_8_2//:vec_map", + ] + selects.with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__ansi_term__0_11_0//:ansi_term", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.ed25519-compact-0.1.9.bazel b/bazel/cargo/remote/BUILD.ed25519-compact-0.1.9.bazel new file mode 100644 index 000000000..166ee5922 --- /dev/null +++ b/bazel/cargo/remote/BUILD.ed25519-compact-0.1.9.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # ISC from expression "ISC" +]) + +# Generated Targets + +rust_library( + name = "ed25519_compact", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "getrandom", + "random", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.9", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__getrandom__0_2_2//:getrandom", + ], +) diff --git a/bazel/cargo/remote/BUILD.hmac-sha512-0.1.9.bazel b/bazel/cargo/remote/BUILD.hmac-sha512-0.1.9.bazel new file mode 100644 index 000000000..cc0ccb2ec --- /dev/null +++ b/bazel/cargo/remote/BUILD.hmac-sha512-0.1.9.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # ISC from expression "ISC" +]) + +# Generated Targets + +rust_library( + name = "hmac_sha512", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "sha384", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.9", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel b/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel new file mode 100644 index 000000000..cdce833cf --- /dev/null +++ b/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel @@ -0,0 +1,71 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench-decoder" with type "example" omitted + +# Unsupported target "build" with type "example" omitted + +# Unsupported target "data" with type "example" omitted + +# Unsupported target "exports" with type "example" omitted + +# Unsupported target "info" with type "example" omitted + +# Unsupported target "inject" with type "example" omitted + +# Unsupported target "roundtrip" with type "example" omitted + +# Unsupported target "show" with type "example" omitted + +rust_library( + name = "parity_wasm", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.42.2", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel b/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel new file mode 100644 index 000000000..131b093fc --- /dev/null +++ b/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "benches" with type "bench" omitted + +rust_library( + name = "strsim", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "lib" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel new file mode 100644 index 000000000..4fd9aab3c --- /dev/null +++ b/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "linear" with type "bench" omitted + +# Unsupported target "layout" with type "example" omitted + +# Unsupported target "termwidth" with type "example" omitted + +rust_library( + name = "textwrap", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.11.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__unicode_width__0_1_8//:unicode_width", + ], +) + +# Unsupported target "version-numbers" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.unicode-width-0.1.8.bazel b/bazel/cargo/remote/BUILD.unicode-width-0.1.8.bazel new file mode 100644 index 000000000..7cc937987 --- /dev/null +++ b/bazel/cargo/remote/BUILD.unicode-width-0.1.8.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "unicode_width", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.8", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel b/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel new file mode 100644 index 000000000..2a6a47295 --- /dev/null +++ b/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel @@ -0,0 +1,53 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "vec_map", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.2", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel new file mode 100644 index 000000000..7d2a94dcb --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel @@ -0,0 +1,91 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "restricted", # no license +]) + +# Generated Targets + +rust_binary( + # Prefix bin name to disambiguate from (probable) collision with lib name + # N.B.: The exact form of this is subject to change. + name = "cargo_bin_wasmsign", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/bin/wasmsign.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.2", + # buildifier: leave-alone + deps = [ + ":wasmsign", + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", + "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", + "@proxy_wasm_cpp_host__clap__2_33_3//:clap", + "@proxy_wasm_cpp_host__ed25519_compact__0_1_9//:ed25519_compact", + "@proxy_wasm_cpp_host__hmac_sha512__0_1_9//:hmac_sha512", + "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + ], +) + +rust_library( + name = "wasmsign", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.2", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", + "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", + "@proxy_wasm_cpp_host__clap__2_33_3//:clap", + "@proxy_wasm_cpp_host__ed25519_compact__0_1_9//:ed25519_compact", + "@proxy_wasm_cpp_host__hmac_sha512__0_1_9//:hmac_sha512", + "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", + "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + ], +) diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index aba74aeb2..8bc3351bf 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -42,18 +42,28 @@ wasi_rust_transition = transition( def _wasm_binary_impl(ctx): out = ctx.actions.declare_file(ctx.label.name) - ctx.actions.run( - executable = "cp", - arguments = [ctx.files.binary[0].path, out.path], - outputs = [out], - inputs = ctx.files.binary, - ) + if ctx.attr.signing_key: + ctx.actions.run( + executable = ctx.executable._wasmsign_tool, + arguments = ["--sign", "--use-custom-section", "--sk-path", ctx.files.signing_key[0].path, "--pk-path", ctx.files.signing_key[1].path, "--input", ctx.files.binary[0].path, "--output", out.path], + outputs = [out], + inputs = ctx.files.binary + ctx.files.signing_key, + ) + else: + ctx.actions.run( + executable = "cp", + arguments = [ctx.files.binary[0].path, out.path], + outputs = [out], + inputs = ctx.files.binary, + ) return [DefaultInfo(files = depset([out]), runfiles = ctx.runfiles([out]))] def _wasm_attrs(transition): return { "binary": attr.label(mandatory = True, cfg = transition), + "signing_key": attr.label_list(allow_files = True), + "_wasmsign_tool": attr.label(default = "//bazel/cargo:cargo_bin_wasmsign", executable = True, cfg = "exec"), "_whitelist_function_transition": attr.label(default = "@bazel_tools//tools/whitelists/function_transition_whitelist"), } @@ -67,7 +77,7 @@ wasi_rust_binary_rule = rule( attrs = _wasm_attrs(wasi_rust_transition), ) -def wasm_rust_binary(name, tags = [], wasi = False, **kwargs): +def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], **kwargs): wasm_name = "_wasm_" + name.replace(".", "_") kwargs.setdefault("visibility", ["//visibility:public"]) @@ -87,5 +97,6 @@ def wasm_rust_binary(name, tags = [], wasi = False, **kwargs): bin_rule( name = name, binary = ":" + wasm_name, + signing_key = signing_key, tags = tags + ["manual"], ) diff --git a/include/proxy-wasm/signature_util.h b/include/proxy-wasm/signature_util.h new file mode 100644 index 000000000..68579dcd1 --- /dev/null +++ b/include/proxy-wasm/signature_util.h @@ -0,0 +1,33 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +namespace proxy_wasm { + +// Utility functions to verify Wasm signatures. +class SignatureUtil { +public: + /** + * verifySignature validates Wasm signature. + * @param bytecode is the source bytecode. + * @param message is the reference to store the message (success or error). + * @return indicates whether the bytecode has a valid Wasm signature. + */ + static bool verifySignature(std::string_view bytecode, std::string &message); +}; + +} // namespace proxy_wasm diff --git a/src/signature_util.cc b/src/signature_util.cc new file mode 100644 index 000000000..71b1341ce --- /dev/null +++ b/src/signature_util.cc @@ -0,0 +1,119 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/signature_util.h" + +#include +#include + +#include +#include + +#include "include/proxy-wasm/bytecode_util.h" + +namespace { + +#ifdef PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY + +static uint8_t hex2dec(const unsigned char c) { + if (c >= '0' && c <= '9') { + return c - '0'; + } else if (c >= 'a' && c <= 'f') { + return c - 'a' + 10; + } else if (c >= 'A' && c <= 'F') { + return c - 'A' + 10; + } else { + throw std::logic_error{"invalid hex character"}; + } +} + +template constexpr std::array hex2pubkey(const char (&hex)[2 * N + 1]) { + std::array pubkey; + for (size_t i = 0; i < pubkey.size(); i++) { + pubkey[i] = hex2dec(hex[2 * i]) << 4 | hex2dec(hex[2 * i + 1]); + } + return pubkey; +} + +#endif + +} // namespace + +namespace proxy_wasm { + +bool SignatureUtil::verifySignature(std::string_view bytecode, std::string &message) { + +#ifdef PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY + + /* + * Ed25519 signature generated using https://github.com/jedisct1/wasmsign + */ + + std::string_view payload; + if (!BytecodeUtil::getCustomSection(bytecode, "signature_wasmsign", payload)) { + message = "Failed to parse corrupted Wasm module"; + return false; + } + + if (payload.empty()) { + message = "Custom Section \"signature_wasmsign\" not found"; + return false; + } + + if (bytecode.data() + bytecode.size() != payload.data() + payload.size()) { + message = "Custom Section \"signature_wasmsign\" not at the end of Wasm module"; + return false; + } + + if (payload.size() != 68) { + message = "Signature has a wrong size (want: 68, is: " + std::to_string(payload.size()) + ")"; + return false; + } + + uint32_t alg_id; + std::memcpy(&alg_id, payload.data(), sizeof(uint32_t)); + + if (alg_id != 2) { + message = "Signature has a wrong alg_id (want: 2, is: " + std::to_string(alg_id) + ")"; + return false; + } + + const auto *signature = reinterpret_cast(payload.data()) + sizeof(uint32_t); + + SHA512_CTX ctx; + SHA512_Init(&ctx); + SHA512_Update(&ctx, "WasmSignature", sizeof("WasmSignature") - 1); + const uint32_t ad_len = 0; + SHA512_Update(&ctx, &ad_len, sizeof(uint32_t)); + const size_t section_len = 3 + sizeof("signature_wasmsign") - 1 + 68; + SHA512_Update(&ctx, bytecode.data(), bytecode.size() - section_len); + uint8_t hash[SHA512_DIGEST_LENGTH]; + SHA512_Final(hash, &ctx); + + static const auto ed25519_pubkey = hex2pubkey<32>(PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY); + + if (!ED25519_verify(hash, sizeof(hash), signature, ed25519_pubkey.data())) { + message = "Signature mismatch"; + return false; + } + + message = "Wasm signature OK (Ed25519)"; + return true; + +#endif + + return true; +} + +} // namespace proxy_wasm diff --git a/src/wasm.cc b/src/wasm.cc index cf2010ff9..a0f248f85 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -27,6 +27,7 @@ #include #include "include/proxy-wasm/bytecode_util.h" +#include "include/proxy-wasm/signature_util.h" #include "include/proxy-wasm/vm_id_handle.h" #include "src/third_party/base64.h" @@ -250,6 +251,15 @@ bool WasmBase::load(const std::string &code, bool allow_precompiled) { return true; } + // Verify signature. + std::string message; + if (!SignatureUtil::verifySignature(code, message)) { + fail(FailState::UnableToInitializeCode, message); + return false; + } else { + wasm_vm_->integration()->trace(message); + } + // Get ABI version from the module. if (!BytecodeUtil::getAbiVersion(code, abi_version_)) { fail(FailState::UnableToInitializeCode, "Failed to parse corrupted Wasm module"); diff --git a/test/BUILD b/test/BUILD index ec45c17b2..d41c657a7 100644 --- a/test/BUILD +++ b/test/BUILD @@ -26,6 +26,24 @@ cc_test( ], ) +cc_test( + name = "signature_util_test", + srcs = ["signature_util_test.cc"], + data = [ + "//test/test_data:abi_export.signed.with.key1.wasm", + "//test/test_data:abi_export.signed.with.key2.wasm", + "//test/test_data:abi_export.wasm", + ], + # Test only when compiled to verify plugins. + tags = ["manual"], + deps = [ + ":utility_lib", + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + cc_test( name = "runtime_test", srcs = ["runtime_test.cc"], diff --git a/test/signature_util_test.cc b/test/signature_util_test.cc new file mode 100644 index 000000000..f4b2ae24e --- /dev/null +++ b/test/signature_util_test.cc @@ -0,0 +1,60 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/signature_util.h" + +#include +#include +#include + +#include "test/utility.h" + +#include "gtest/gtest.h" + +namespace proxy_wasm { + +TEST(TestSignatureUtil, GoodSignature) { +#ifndef PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY + FAIL() << "Built without a key for verifying signed Wasm modules."; +#endif + + const auto bytecode = readTestWasmFile("abi_export.signed.with.key1.wasm"); + std::string message; + EXPECT_TRUE(SignatureUtil::verifySignature(bytecode, message)); + EXPECT_EQ(message, "Wasm signature OK (Ed25519)"); +} + +TEST(TestSignatureUtil, BadSignature) { +#ifndef PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY + FAIL() << "Built without a key for verifying signed Wasm modules."; +#endif + + const auto bytecode = readTestWasmFile("abi_export.signed.with.key2.wasm"); + std::string message; + EXPECT_FALSE(SignatureUtil::verifySignature(bytecode, message)); + EXPECT_EQ(message, "Signature mismatch"); +} + +TEST(TestSignatureUtil, NoSignature) { +#ifndef PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY + FAIL() << "Built without a key for verifying signed Wasm modules."; +#endif + + const auto bytecode = readTestWasmFile("abi_export.wasm"); + std::string message; + EXPECT_FALSE(SignatureUtil::verifySignature(bytecode, message)); + EXPECT_EQ(message, "Custom Section \"signature_wasmsign\" not found"); +} + +} // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 3d99c103e..571ca9304 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -7,6 +7,24 @@ wasm_rust_binary( srcs = ["abi_export.rs"], ) +wasm_rust_binary( + name = "abi_export.signed.with.key1.wasm", + srcs = ["abi_export.rs"], + signing_key = [ + "signature_key1.key", + "signature_key1.pub", + ], +) + +wasm_rust_binary( + name = "abi_export.signed.with.key2.wasm", + srcs = ["abi_export.rs"], + signing_key = [ + "signature_key2.key", + "signature_key2.pub", + ], +) + wasm_rust_binary( name = "callback.wasm", srcs = ["callback.rs"], diff --git a/test/test_data/signature_key1.key b/test/test_data/signature_key1.key new file mode 100644 index 0000000000000000000000000000000000000000..c1a292b6a934dd518e6401114fc226f938f2eac0 GIT binary patch literal 68 zcmV-K0K5MJ0000A!l8mPC&;5789l96_4twE!i>E29FjkUuVyTKj#_*(`}>$Me literal 0 HcmV?d00001 diff --git a/test/test_data/signature_key1.pub b/test/test_data/signature_key1.pub new file mode 100644 index 0000000000000000000000000000000000000000..034a0de349cea573584a30a203b4ceb62c4e30aa GIT binary patch literal 36 scmZQ#U|=x*{X5oC*LY*igq9xmva2hTq3^01d|wr~m)} literal 0 HcmV?d00001 diff --git a/test/test_data/signature_key2.key b/test/test_data/signature_key2.key new file mode 100644 index 0000000000000000000000000000000000000000..8ba90fb90412d035099aaa13214c4a0785126e26 GIT binary patch literal 68 zcmV-K0K5MJ00023sBUg}JWO^_IY)xf=?4Ds?%7$P-gx4)s(-oFDVbGmeZ#tutM`kL ac Date: Mon, 17 May 2021 07:53:40 +0900 Subject: [PATCH 101/287] build: enable WAMR and WAVM runtimes. (#162) Signed-off-by: Takeshi Yoneda Co-authored-by: Piotr Sikora --- .bazelrc | 3 + .github/workflows/cpp.yml | 23 +++-- BUILD | 19 ++-- bazel/external/llvm.BUILD | 115 ++++++++++++++++++++++++ bazel/external/proxy-wasm-cpp-sdk.BUILD | 2 + bazel/external/wamr.BUILD | 16 ++-- bazel/external/wasm-c-api.BUILD | 2 + bazel/external/wasmtime.BUILD | 1 + bazel/external/wavm.BUILD | 38 ++++++++ bazel/repositories.bzl | 22 ++++- src/null/null_vm.cc | 1 + src/wavm/wavm.cc | 2 +- test/runtime_test.cc | 45 ++++++++-- test/test_data/trap.rs | 1 + 14 files changed, 259 insertions(+), 31 deletions(-) create mode 100644 bazel/external/llvm.BUILD create mode 100644 bazel/external/wavm.BUILD diff --git a/.bazelrc b/.bazelrc index d63c7058a..e0247e90e 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,3 +1,6 @@ +build --action_env=CC=clang +build --action_env=CXX=clang++ + build --enable_platform_specific_config build:linux --cxxopt=-std=c++17 diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 4bfc86199..9e58e9974 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -55,26 +55,33 @@ jobs: addlicense -check . build: + name: build (${{ matrix.runtime }}) + runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - # TODO(mathetake): Add other runtimes. - runtime: [ "wasmtime" ] + runtime: ["wamr", "wasmtime", "wavm"] steps: - uses: actions/checkout@v2 - - name: Mount bazel cache - uses: actions/cache@v1 + - name: Install dependency + run: sudo apt-get install ninja-build + + - name: Mount Bazel cache + uses: actions/cache@v2 with: - path: "/home/runner/.cache/bazel" - key: bazel-${{ matrix.runtime }} + path: | + ~/.cache/bazel + ~/.cache/bazelisk + key: bazel-${{ matrix.runtime }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} - name: Test run: | - bazel test --define runtime=${{ matrix.runtime }} //... + bazel test --define runtime=${{ matrix.runtime }} //test/... - name: Test (signed Wasm module) run: | - bazel test --define runtime=${{ matrix.runtime }} --cxxopt=-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test + bazel test --define runtime=${{ matrix.runtime }} --per_file_copt=//...@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test diff --git a/BUILD b/BUILD index 350eccbd2..614301b50 100644 --- a/BUILD +++ b/BUILD @@ -53,13 +53,12 @@ cc_library( cc_library( name = "wamr_lib", srcs = glob([ - # TODO(@mathetake): Add WAMR lib. - # "src/wamr/*.h", - # "src/wamr/*.cc", + "src/wamr/*.h", + "src/wamr/*.cc", ]), deps = [ ":common_lib", - # TODO(@mathetake): Add WAMR lib. + "@wamr//:wamr_lib", ], ) @@ -78,13 +77,17 @@ cc_library( cc_library( name = "wavm_lib", srcs = glob([ - # TODO(@mathetake): Add WAVM lib. - # "src/wavm/*.h", - # "src/wavm/*.cc", + "src/wavm/*.h", + "src/wavm/*.cc", ]), + copts = [ + '-DWAVM_API=""', + "-Wno-non-virtual-dtor", + "-Wno-old-style-cast", + ], deps = [ ":common_lib", - # TODO(@mathetake): Add WAVM lib. + "@wavm//:wavm_lib", ], ) diff --git a/bazel/external/llvm.BUILD b/bazel/external/llvm.BUILD new file mode 100644 index 000000000..2842cee45 --- /dev/null +++ b/bazel/external/llvm.BUILD @@ -0,0 +1,115 @@ +load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "srcs", + srcs = glob(["**"]), +) + +cmake( + name = "llvm_lib", + cache_entries = { + # Disable both: BUILD and INCLUDE, since some of the INCLUDE + # targets build code instead of only generating build files. + "LLVM_BUILD_BENCHMARKS": "off", + "LLVM_INCLUDE_BENCHMARKS": "off", + "LLVM_BUILD_DOCS": "off", + "LLVM_INCLUDE_DOCS": "off", + "LLVM_BUILD_EXAMPLES": "off", + "LLVM_INCLUDE_EXAMPLES": "off", + "LLVM_BUILD_RUNTIME": "off", + "LLVM_BUILD_RUNTIMES": "off", + "LLVM_INCLUDE_RUNTIMES": "off", + "LLVM_BUILD_TESTS": "off", + "LLVM_INCLUDE_TESTS": "off", + "LLVM_BUILD_TOOLS": "off", + "LLVM_INCLUDE_TOOLS": "off", + "LLVM_BUILD_UTILS": "off", + "LLVM_INCLUDE_UTILS": "off", + "LLVM_ENABLE_LIBEDIT": "off", + "LLVM_ENABLE_LIBXML2": "off", + "LLVM_ENABLE_TERMINFO": "off", + "LLVM_ENABLE_ZLIB": "off", + "LLVM_TARGETS_TO_BUILD": "X86", + # Workaround for the issue with statically linked libstdc++ + # using -l:libstdc++.a. + "CMAKE_CXX_FLAGS": "-lstdc++", + }, + env_vars = { + # Workaround for the -DDEBUG flag added in fastbuild on macOS, + # which conflicts with DEBUG macro used in LLVM. + "CFLAGS": "-UDEBUG", + "CXXFLAGS": "-UDEBUG", + "ASMFLAGS": "-UDEBUG", + }, + generate_args = ["-GNinja"], + lib_source = ":srcs", + out_static_libs = [ + "libLLVMInterpreter.a", + "libLLVMWindowsManifest.a", + "libLLVMLibDriver.a", + "libLLVMObjectYAML.a", + "libLLVMCoverage.a", + "libLLVMLineEditor.a", + "libLLVMDlltoolDriver.a", + "libLLVMOption.a", + "libLLVMTableGen.a", + "libLLVMFuzzMutate.a", + "libLLVMSymbolize.a", + "libLLVMCoroutines.a", + "libLLVMDebugInfoPDB.a", + "libLLVMLTO.a", + "libLLVMObjCARCOpts.a", + "libLLVMMIRParser.a", + "libLLVMOrcJIT.a", + "libLLVMOrcError.a", + "libLLVMJITLink.a", + "libLLVMPasses.a", + "libLLVMipo.a", + "libLLVMInstrumentation.a", + "libLLVMVectorize.a", + "libLLVMLinker.a", + "libLLVMIRReader.a", + "libLLVMAsmParser.a", + "libLLVMX86Disassembler.a", + "libLLVMX86AsmParser.a", + "libLLVMX86CodeGen.a", + "libLLVMCFGuard.a", + "libLLVMGlobalISel.a", + "libLLVMSelectionDAG.a", + "libLLVMAsmPrinter.a", + "libLLVMDebugInfoDWARF.a", + "libLLVMCodeGen.a", + "libLLVMScalarOpts.a", + "libLLVMInstCombine.a", + "libLLVMAggressiveInstCombine.a", + "libLLVMTransformUtils.a", + "libLLVMBitWriter.a", + "libLLVMX86Desc.a", + "libLLVMMCDisassembler.a", + "libLLVMX86Utils.a", + "libLLVMX86Info.a", + "libLLVMMCJIT.a", + "libLLVMExecutionEngine.a", + "libLLVMTarget.a", + "libLLVMAnalysis.a", + "libLLVMProfileData.a", + "libLLVMRuntimeDyld.a", + "libLLVMObject.a", + "libLLVMTextAPI.a", + "libLLVMMCParser.a", + "libLLVMBitReader.a", + "libLLVMMC.a", + "libLLVMDebugInfoCodeView.a", + "libLLVMDebugInfoMSF.a", + "libLLVMCore.a", + "libLLVMRemarks.a", + "libLLVMBitstreamReader.a", + "libLLVMBinaryFormat.a", + "libLLVMSupport.a", + "libLLVMDemangle.a", + ], +) diff --git a/bazel/external/proxy-wasm-cpp-sdk.BUILD b/bazel/external/proxy-wasm-cpp-sdk.BUILD index 5df5ef81d..ec99443ca 100644 --- a/bazel/external/proxy-wasm-cpp-sdk.BUILD +++ b/bazel/external/proxy-wasm-cpp-sdk.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index f1d82a061..2d0af954b 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -1,25 +1,31 @@ -licenses(["notice"]) # Apache 2 - load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") +licenses(["notice"]) # Apache 2 + package(default_visibility = ["//visibility:public"]) filegroup( name = "srcs", srcs = glob(["**"]), - visibility = ["//visibility:public"], ) cmake( - name = "libiwasm", + name = "wamr_lib", cache_entries = { + "LLVM_DIR": "$EXT_BUILD_DEPS/copy_llvm/llvm/lib/cmake/llvm", "WAMR_BUILD_INTERP": "1", "WAMR_BUILD_JIT": "0", "WAMR_BUILD_AOT": "0", "WAMR_BUILD_SIMD": "0", "WAMR_BUILD_MULTI_MODULE": "1", "WAMR_BUILD_LIBC_WASI": "0", + "WAMR_BUILD_TAIL_CALL": "1", }, + defines = ["WASM_WAMR"], + generate_args = ["-GNinja"], lib_source = ":srcs", - out_shared_libs = ["libiwasm.so"], + out_static_libs = ["libvmlib.a"], + deps = [ + "@llvm//:llvm_lib", + ], ) diff --git a/bazel/external/wasm-c-api.BUILD b/bazel/external/wasm-c-api.BUILD index 22cd50dac..06a7fa2f8 100644 --- a/bazel/external/wasm-c-api.BUILD +++ b/bazel/external/wasm-c-api.BUILD @@ -1,3 +1,5 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index f6feed7e8..d8afdff3a 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -1,3 +1,4 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_rust//rust:rust.bzl", "rust_library") licenses(["notice"]) # Apache 2 diff --git a/bazel/external/wavm.BUILD b/bazel/external/wavm.BUILD new file mode 100644 index 000000000..55e4a81b0 --- /dev/null +++ b/bazel/external/wavm.BUILD @@ -0,0 +1,38 @@ +load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "srcs", + srcs = glob(["**"]), +) + +cmake( + name = "wavm_lib", + cache_entries = { + "LLVM_DIR": "$EXT_BUILD_DEPS/copy_llvm/llvm/lib/cmake/llvm", + "WAVM_ENABLE_STATIC_LINKING": "on", + "WAVM_ENABLE_RELEASE_ASSERTS": "on", + "WAVM_ENABLE_UNWIND": "on", + # Workaround for the issue with statically linked libstdc++ + # using -l:libstdc++.a. + "CMAKE_CXX_FLAGS": "-lstdc++ -Wno-unused-command-line-argument", + }, + defines = ["WASM_WAVM"], + env_vars = { + # Workaround for the -DDEBUG flag added in fastbuild on macOS, + # which conflicts with DEBUG macro used in LLVM. + "CFLAGS": "-UDEBUG", + "CXXFLAGS": "-UDEBUG", + "ASMFLAGS": "-UDEBUG", + }, + generate_args = ["-GNinja"], + lib_source = ":srcs", + out_static_libs = [ + "libWAVM.a", + "libWAVMUnwind.a", + ], + deps = ["@llvm//:llvm_lib"], +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 647741d85..52a18b1c8 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -39,9 +39,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "wamr", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - sha256 = "1d870f396bb6bdcb5c816326655b19a2877bbdf879255c335b8e84ce4ee37780", - strip_prefix = "wasm-micro-runtime-9710d9325f426121cc1f2c62386a71d0c022d613", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/9710d9325f426121cc1f2c62386a71d0c022d613.tar.gz", + sha256 = "46ad365a1c0668797e69cb868574fd526cd8e26a503213caf782c39061e6d2e1", + strip_prefix = "wasm-micro-runtime-17a216748574499bd3a5130e7e6a20b84fe76798", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/17a216748574499bd3a5130e7e6a20b84fe76798.tar.gz", ) http_archive( @@ -80,3 +80,19 @@ def proxy_wasm_cpp_host_repositories(): strip_prefix = "rules_foreign_cc-0.2.0", url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.2.0.tar.gz", ) + + http_archive( + name = "llvm", + build_file = "@proxy_wasm_cpp_host//bazel/external:llvm.BUILD", + sha256 = "df83a44b3a9a71029049ec101fb0077ecbbdf5fe41e395215025779099a98fdf", + strip_prefix = "llvm-10.0.0.src", + url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/llvm-10.0.0.src.tar.xz", + ) + + http_archive( + name = "wavm", + build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD", + sha256 = "ce899269516313b400005a8cc9bc3bcd8329663f43f7b4baae211ea0cd456a39", + strip_prefix = "WAVM-79c3aa29366615d9b1593cd527e5b4b94cc6072a", + url = "https://github.com/WAVM/WAVM/archive/79c3aa29366615d9b1593cd527e5b4b94cc6072a.tar.gz", + ) diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index de2511a0f..aab2e3231 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -17,6 +17,7 @@ #include +#include #include #include #include diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 2c3a3adb9..92b314688 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -101,7 +101,7 @@ namespace { } while (0) std::string getFailMessage(std::string_view function_name, WAVM::Runtime::Exception *exception) { - std::string message = "Function " + std::string(function_name) + + std::string message = "Function: " + std::string(function_name) + " failed: " + WAVM::Runtime::describeExceptionType(exception->type) + "\nProxy-Wasm plugin in-VM backtrace:\n"; std::vector callstack_descriptions = diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 3ee96ab48..11774f671 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -34,7 +34,15 @@ auto test_values = testing::ValuesIn(getRuntimes()); INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); TEST_P(TestVM, Basic) { - EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); + if (runtime_ == "wamr") { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); + } else if (runtime_ == "wasmtime" || runtime_ == "v8") { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); + } else if (runtime_ == "wavm") { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::InstantiatedModule); + } else { + FAIL(); + } EXPECT_EQ(vm_->runtime(), runtime_); } @@ -57,6 +65,9 @@ TEST_P(TestVM, Memory) { } TEST_P(TestVM, Clone) { + if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { + return; + } initialize("abi_export.wasm"); ASSERT_TRUE(vm_->load(source_, {}, {})); ASSERT_TRUE(vm_->link("")); @@ -66,7 +77,9 @@ TEST_P(TestVM, Clone) { auto clone = vm_->clone(); ASSERT_TRUE(clone != nullptr); ASSERT_NE(vm_, clone); - ASSERT_TRUE(clone->link("")); + if (clone->cloneable() != proxy_wasm::Cloneable::InstantiatedModule) { + ASSERT_TRUE(clone->link("")); + } ASSERT_TRUE(clone->setWord(address, Word(100))); ASSERT_TRUE(clone->getWord(address, &word)); @@ -87,14 +100,19 @@ class TestContext : public ContextBase { void nopCallback(void *raw_context) {} -void callback(void *raw_context) { - TestContext *context = static_cast(raw_context); +void callback(void *) { + TestContext *context = static_cast(current_context_); context->increment(); } -Word callback2(void *raw_context, Word val) { return val + 100; } +Word callback2(void *, Word val) { return val + 100; } TEST_P(TestVM, StraceLogLevel) { + if (runtime_ == "wavm") { + // TODO(mathetake): strace is yet to be implemented for WAVM. + // See https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/120. + return; + } initialize("callback.wasm"); ASSERT_TRUE(vm_->load(source_, {}, {})); vm_->registerCallback("env", "callback", &nopCallback, @@ -152,18 +170,33 @@ TEST_P(TestVM, Trap) { initialize("trap.wasm"); ASSERT_TRUE(vm_->load(source_, {}, {})); ASSERT_TRUE(vm_->link("")); + TestContext context; + current_context_ = &context; WasmCallVoid<0> trigger; vm_->getFunction("trigger", &trigger); EXPECT_TRUE(trigger != nullptr); trigger(current_context_); std::string exp_message = "Function: trigger failed"; ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); +} +TEST_P(TestVM, Trap2) { + if (runtime_ == "wavm") { + // TODO(mathetake): Somehow WAVM exits with 'munmap_chunk(): invalid pointer' on unidentified + // build condition in 'libstdc++ abi::__cxa_demangle' originally from + // WAVM::Runtime::describeCallStack. Needs further investigation. + return; + } + initialize("trap.wasm"); + ASSERT_TRUE(vm_->load(source_, {}, {})); + ASSERT_TRUE(vm_->link("")); + TestContext context; + current_context_ = &context; WasmCallWord<1> trigger2; vm_->getFunction("trigger2", &trigger2); EXPECT_TRUE(trigger2 != nullptr); trigger2(current_context_, 0); - exp_message = "Function: trigger2 failed:"; + std::string exp_message = "Function: trigger2 failed"; ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); } diff --git a/test/test_data/trap.rs b/test/test_data/trap.rs index 2be4cab22..fe6f71f62 100644 --- a/test/test_data/trap.rs +++ b/test/test_data/trap.rs @@ -16,6 +16,7 @@ pub extern "C" fn trigger() { one(); } + #[no_mangle] pub extern "C" fn trigger2(_val: i32) -> i32 { three(); From 152fdb41dc0a9d5c5baeb23a80dc3269db69c9b8 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 28 May 2021 01:53:52 -0700 Subject: [PATCH 102/287] Allow access to status message from a child context. (#165) Previously, proxy_get_status() would return status message only when it was called from the root context, which doesn't work when the effective context is automatically changed to the calling context as part of the SDK. With this change, status can be accessed from either root or child context. Signed-off-by: Piotr Sikora --- src/exports.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exports.cc b/src/exports.cc index 9a6431ceb..9a2d9a03a 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -130,7 +130,7 @@ Word get_configuration(void *raw_context, Word value_ptr_ptr, Word value_size_pt } Word get_status(void *raw_context, Word code_ptr, Word value_ptr_ptr, Word value_size_ptr) { - auto context = WASM_CONTEXT(raw_context); + auto context = WASM_CONTEXT(raw_context)->root_context(); auto status = context->getStatus(); if (!context->wasm()->setDatatype(code_ptr, status.first)) { return WasmResult::InvalidMemoryAccess; From c3712617b28c69ff205e8302f70942c06e35f4e2 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 2 Jun 2021 07:24:16 +0900 Subject: [PATCH 103/287] Update Bazel version to 4.1.0. (#166) Signed-off-by: Takeshi Yoneda --- .bazelversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelversion b/.bazelversion index fcdb2e109..ee74734aa 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -4.0.0 +4.1.0 From b2e0cafdc581d09ad70ca821e196d4203bc8d0e8 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 3 Jun 2021 18:56:40 -0700 Subject: [PATCH 104/287] wavm: update to nightly/2021-05-10. (#168) Signed-off-by: Piotr Sikora --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 52a18b1c8..5c6a8b3fc 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -92,7 +92,7 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "wavm", build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD", - sha256 = "ce899269516313b400005a8cc9bc3bcd8329663f43f7b4baae211ea0cd456a39", - strip_prefix = "WAVM-79c3aa29366615d9b1593cd527e5b4b94cc6072a", - url = "https://github.com/WAVM/WAVM/archive/79c3aa29366615d9b1593cd527e5b4b94cc6072a.tar.gz", + sha256 = "fa9a8dece0f1a51f8789c07f7f0c1f817ceee54c57d85f22ab958e43cde648d3", + strip_prefix = "WAVM-93c3ad73e2938f19c8bb26d4f456b39d6bc4ca01", + url = "https://github.com/WAVM/WAVM/archive/93c3ad73e2938f19c8bb26d4f456b39d6bc4ca01.tar.gz", ) From c358b9b3e062b8881106bd1b5485a70d214917c2 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 8 Jun 2021 23:07:00 -0700 Subject: [PATCH 105/287] Replace base64 and picosha2 with BoringSSL alternatives. (#169) Signed-off-by: Piotr Sikora --- BUILD | 2 - src/third_party/base64.cc | 108 ----------- src/third_party/base64.h | 25 --- src/third_party/picosha2.h | 355 ------------------------------------- src/wasm.cc | 36 ++-- 5 files changed, 18 insertions(+), 508 deletions(-) delete mode 100644 src/third_party/base64.cc delete mode 100644 src/third_party/base64.h delete mode 100644 src/third_party/picosha2.h diff --git a/BUILD b/BUILD index 614301b50..7e5a68936 100644 --- a/BUILD +++ b/BUILD @@ -26,8 +26,6 @@ cc_library( "src/*.cc", "src/common/*.h", "src/null/*.cc", - "src/third_party/*.h", - "src/third_party/*.cc", ]), deps = [ ":include", diff --git a/src/third_party/base64.cc b/src/third_party/base64.cc deleted file mode 100644 index 8e65962e9..000000000 --- a/src/third_party/base64.cc +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Original source Public Domain: -// https://en.wikibooks.org/wiki/Algorithm_Implementation/Miscellaneous/Base64 -#include "base64.h" - -const static char encodeLookup[] = - "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -const static char padCharacter = '='; - -std::string base64Encode(const uint8_t *start, const uint8_t *end) { - std::string encodedString; - size_t size = end - start; - encodedString.reserve(((size / 3) + (size % 3 > 0)) * 4); - uint32_t temp; - auto cursor = start; - for (size_t idx = 0; idx < size / 3; idx++) { - temp = (*cursor++) << 16; // Convert to big endian - temp += (*cursor++) << 8; - temp += (*cursor++); - encodedString.append(1, encodeLookup[(temp & 0x00FC0000) >> 18]); - encodedString.append(1, encodeLookup[(temp & 0x0003F000) >> 12]); - encodedString.append(1, encodeLookup[(temp & 0x00000FC0) >> 6]); - encodedString.append(1, encodeLookup[(temp & 0x0000003F)]); - } - switch (size % 3) { - case 1: - temp = (*cursor++) << 16; // Convert to big endian - encodedString.append(1, encodeLookup[(temp & 0x00FC0000) >> 18]); - encodedString.append(1, encodeLookup[(temp & 0x0003F000) >> 12]); - encodedString.append(2, padCharacter); - break; - case 2: - temp = (*cursor++) << 16; // Convert to big endian - temp += (*cursor++) << 8; - encodedString.append(1, encodeLookup[(temp & 0x00FC0000) >> 18]); - encodedString.append(1, encodeLookup[(temp & 0x0003F000) >> 12]); - encodedString.append(1, encodeLookup[(temp & 0x00000FC0) >> 6]); - encodedString.append(1, padCharacter); - break; - } - return encodedString; -} - -bool base64Decode(const std::basic_string &input, std::vector *output) { - if (input.length() % 4) - return false; - size_t padding = 0; - if (input.length()) { - if (input[input.length() - 1] == padCharacter) - padding++; - if (input[input.length() - 2] == padCharacter) - padding++; - } - // Setup a vector to hold the result - std::vector decodedBytes; - decodedBytes.reserve(((input.length() / 4) * 3) - padding); - uint32_t temp = 0; // Holds decoded quanta - std::basic_string::const_iterator cursor = input.begin(); - while (cursor < input.end()) { - for (size_t quantumPosition = 0; quantumPosition < 4; quantumPosition++) { - temp <<= 6; - if (*cursor >= 0x41 && *cursor <= 0x5A) // This area will need tweaking if - temp |= *cursor - 0x41; // you are using an alternate alphabet - else if (*cursor >= 0x61 && *cursor <= 0x7A) - temp |= *cursor - 0x47; - else if (*cursor >= 0x30 && *cursor <= 0x39) - temp |= *cursor + 0x04; - else if (*cursor == 0x2B) - temp |= 0x3E; // change to 0x2D for URL alphabet - else if (*cursor == 0x2F) - temp |= 0x3F; // change to 0x5F for URL alphabet - else if (*cursor == padCharacter) { // pad - switch (input.end() - cursor) { - case 1: // One pad character - decodedBytes.push_back((temp >> 16) & 0x000000FF); - decodedBytes.push_back((temp >> 8) & 0x000000FF); - goto Ldone; - case 2: // Two pad characters - decodedBytes.push_back((temp >> 10) & 0x000000FF); - goto Ldone; - default: - return false; - } - } else - return false; - cursor++; - } - decodedBytes.push_back((temp >> 16) & 0x000000FF); - decodedBytes.push_back((temp >> 8) & 0x000000FF); - decodedBytes.push_back((temp)&0x000000FF); - } -Ldone: - *output = std::move(decodedBytes); - return true; -} diff --git a/src/third_party/base64.h b/src/third_party/base64.h deleted file mode 100644 index 1340ed768..000000000 --- a/src/third_party/base64.h +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -// Original source Public Domain: -// https://en.wikibooks.org/wiki/Algorithm_Implementation/Miscellaneous/Base64 - -#pragma once - -#include -#include -#include - -std::string base64Encode(const uint8_t *start, const uint8_t *end); -bool base64Decode(const std::string &input, std::vector *output); diff --git a/src/third_party/picosha2.h b/src/third_party/picosha2.h deleted file mode 100644 index 6da12b6f4..000000000 --- a/src/third_party/picosha2.h +++ /dev/null @@ -1,355 +0,0 @@ -/* -The MIT License (MIT) - -Copyright (C) 2017 okdshin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. -*/ -#ifndef PICOSHA2_H -#define PICOSHA2_H -// picosha2:20140213 - -#ifndef PICOSHA2_BUFFER_SIZE_FOR_INPUT_ITERATOR -#define PICOSHA2_BUFFER_SIZE_FOR_INPUT_ITERATOR 1048576 //=1024*1024: default is 1MB memory -#endif - -#include -#include -#include -#include -#include -#include -namespace picosha2 { -typedef unsigned long word_t; -typedef unsigned char byte_t; - -static const size_t k_digest_size = 32; - -namespace detail { -inline byte_t mask_8bit(byte_t x) { return x & 0xff; } - -inline word_t mask_32bit(word_t x) { return x & 0xffffffff; } - -const word_t add_constant[64] = { - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2}; - -const word_t initial_message_digest[8] = {0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, - 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19}; - -inline word_t ch(word_t x, word_t y, word_t z) { return (x & y) ^ ((~x) & z); } - -inline word_t maj(word_t x, word_t y, word_t z) { return (x & y) ^ (x & z) ^ (y & z); } - -inline word_t rotr(word_t x, std::size_t n) { - assert(n < 32); - return mask_32bit((x >> n) | (x << (32 - n))); -} - -inline word_t bsig0(word_t x) { return rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22); } - -inline word_t bsig1(word_t x) { return rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25); } - -inline word_t shr(word_t x, std::size_t n) { - assert(n < 32); - return x >> n; -} - -inline word_t ssig0(word_t x) { return rotr(x, 7) ^ rotr(x, 18) ^ shr(x, 3); } - -inline word_t ssig1(word_t x) { return rotr(x, 17) ^ rotr(x, 19) ^ shr(x, 10); } - -template -void hash256_block(RaIter1 message_digest, RaIter2 first, RaIter2 last) { - assert(first + 64 == last); - static_cast(last); // for avoiding unused-variable warning - word_t w[64]; - std::fill(w, w + 64, 0); - for (std::size_t i = 0; i < 16; ++i) { - w[i] = (static_cast(mask_8bit(*(first + i * 4))) << 24) | - (static_cast(mask_8bit(*(first + i * 4 + 1))) << 16) | - (static_cast(mask_8bit(*(first + i * 4 + 2))) << 8) | - (static_cast(mask_8bit(*(first + i * 4 + 3)))); - } - for (std::size_t i = 16; i < 64; ++i) { - w[i] = mask_32bit(ssig1(w[i - 2]) + w[i - 7] + ssig0(w[i - 15]) + w[i - 16]); - } - - word_t a = *message_digest; - word_t b = *(message_digest + 1); - word_t c = *(message_digest + 2); - word_t d = *(message_digest + 3); - word_t e = *(message_digest + 4); - word_t f = *(message_digest + 5); - word_t g = *(message_digest + 6); - word_t h = *(message_digest + 7); - - for (std::size_t i = 0; i < 64; ++i) { - word_t temp1 = h + bsig1(e) + ch(e, f, g) + add_constant[i] + w[i]; - word_t temp2 = bsig0(a) + maj(a, b, c); - h = g; - g = f; - f = e; - e = mask_32bit(d + temp1); - d = c; - c = b; - b = a; - a = mask_32bit(temp1 + temp2); - } - *message_digest += a; - *(message_digest + 1) += b; - *(message_digest + 2) += c; - *(message_digest + 3) += d; - *(message_digest + 4) += e; - *(message_digest + 5) += f; - *(message_digest + 6) += g; - *(message_digest + 7) += h; - for (std::size_t i = 0; i < 8; ++i) { - *(message_digest + i) = mask_32bit(*(message_digest + i)); - } -} - -} // namespace detail - -template void output_hex(InIter first, InIter last, std::ostream &os) { - os.setf(std::ios::hex, std::ios::basefield); - while (first != last) { - os.width(2); - os.fill('0'); - os << static_cast(*first); - ++first; - } - os.setf(std::ios::dec, std::ios::basefield); -} - -template -void bytes_to_hex_string(InIter first, InIter last, std::string &hex_str) { - std::ostringstream oss; - output_hex(first, last, oss); - hex_str.assign(oss.str()); -} - -template -void bytes_to_hex_string(const InContainer &bytes, std::string &hex_str) { - bytes_to_hex_string(bytes.begin(), bytes.end(), hex_str); -} - -template std::string bytes_to_hex_string(InIter first, InIter last) { - std::string hex_str; - bytes_to_hex_string(first, last, hex_str); - return hex_str; -} - -template std::string bytes_to_hex_string(const InContainer &bytes) { - std::string hex_str; - bytes_to_hex_string(bytes, hex_str); - return hex_str; -} - -class hash256_one_by_one { -public: - hash256_one_by_one() { init(); } - - void init() { - buffer_.clear(); - std::fill(data_length_digits_, data_length_digits_ + 4, 0); - std::copy(detail::initial_message_digest, detail::initial_message_digest + 8, h_); - } - - template void process(RaIter first, RaIter last) { - add_to_data_length(static_cast(std::distance(first, last))); - std::copy(first, last, std::back_inserter(buffer_)); - std::size_t i = 0; - for (; i + 64 <= buffer_.size(); i += 64) { - detail::hash256_block(h_, buffer_.begin() + i, buffer_.begin() + i + 64); - } - buffer_.erase(buffer_.begin(), buffer_.begin() + i); - } - - void finish() { - byte_t temp[64]; - std::fill(temp, temp + 64, 0); - std::size_t remains = buffer_.size(); - std::copy(buffer_.begin(), buffer_.end(), temp); - temp[remains] = 0x80; - - if (remains > 55) { - std::fill(temp + remains + 1, temp + 64, 0); - detail::hash256_block(h_, temp, temp + 64); - std::fill(temp, temp + 64 - 4, 0); - } else { - std::fill(temp + remains + 1, temp + 64 - 4, 0); - } - - write_data_bit_length(&(temp[56])); - detail::hash256_block(h_, temp, temp + 64); - } - - template void get_hash_bytes(OutIter first, OutIter last) const { - for (const word_t *iter = h_; iter != h_ + 8; ++iter) { - for (std::size_t i = 0; i < 4 && first != last; ++i) { - *(first++) = detail::mask_8bit(static_cast((*iter >> (24 - 8 * i)))); - } - } - } - -private: - void add_to_data_length(word_t n) { - word_t carry = 0; - data_length_digits_[0] += n; - for (std::size_t i = 0; i < 4; ++i) { - data_length_digits_[i] += carry; - if (data_length_digits_[i] >= 65536u) { - carry = data_length_digits_[i] >> 16; - data_length_digits_[i] &= 65535u; - } else { - break; - } - } - } - void write_data_bit_length(byte_t *begin) { - word_t data_bit_length_digits[4]; - std::copy(data_length_digits_, data_length_digits_ + 4, data_bit_length_digits); - - // convert byte length to bit length (multiply 8 or shift 3 times left) - word_t carry = 0; - for (std::size_t i = 0; i < 4; ++i) { - word_t before_val = data_bit_length_digits[i]; - data_bit_length_digits[i] <<= 3; - data_bit_length_digits[i] |= carry; - data_bit_length_digits[i] &= 65535u; - carry = (before_val >> (16 - 3)) & 65535u; - } - - // write data_bit_length - for (int i = 3; i >= 0; --i) { - (*begin++) = static_cast(data_bit_length_digits[i] >> 8); - (*begin++) = static_cast(data_bit_length_digits[i]); - } - } - std::vector buffer_; - word_t data_length_digits_[4]; // as 64bit integer (16bit x 4 integer) - word_t h_[8]; -}; - -inline void get_hash_hex_string(const hash256_one_by_one &hasher, std::string &hex_str) { - byte_t hash[k_digest_size]; - hasher.get_hash_bytes(hash, hash + k_digest_size); - return bytes_to_hex_string(hash, hash + k_digest_size, hex_str); -} - -inline std::string get_hash_hex_string(const hash256_one_by_one &hasher) { - std::string hex_str; - get_hash_hex_string(hasher, hex_str); - return hex_str; -} - -namespace impl { -template -void hash256_impl(RaIter first, RaIter last, OutIter first2, OutIter last2, int, - std::random_access_iterator_tag) { - hash256_one_by_one hasher; - // hasher.init(); - hasher.process(first, last); - hasher.finish(); - hasher.get_hash_bytes(first2, last2); -} - -template -void hash256_impl(InputIter first, InputIter last, OutIter first2, OutIter last2, int buffer_size, - std::input_iterator_tag) { - std::vector buffer(buffer_size); - hash256_one_by_one hasher; - // hasher.init(); - while (first != last) { - int size = buffer_size; - for (int i = 0; i != buffer_size; ++i, ++first) { - if (first == last) { - size = i; - break; - } - buffer[i] = *first; - } - hasher.process(buffer.begin(), buffer.begin() + size); - } - hasher.finish(); - hasher.get_hash_bytes(first2, last2); -} -} // namespace impl - -template -void hash256(InIter first, InIter last, OutIter first2, OutIter last2, - int buffer_size = PICOSHA2_BUFFER_SIZE_FOR_INPUT_ITERATOR) { - picosha2::impl::hash256_impl(first, last, first2, last2, buffer_size, - typename std::iterator_traits::iterator_category()); -} - -template -void hash256(InIter first, InIter last, OutContainer &dst) { - hash256(first, last, dst.begin(), dst.end()); -} - -template -void hash256(const InContainer &src, OutIter first, OutIter last) { - hash256(src.begin(), src.end(), first, last); -} - -template -void hash256(const InContainer &src, OutContainer &dst) { - hash256(src.begin(), src.end(), dst.begin(), dst.end()); -} - -template -void hash256_hex_string(InIter first, InIter last, std::string &hex_str) { - byte_t hashed[k_digest_size]; - hash256(first, last, hashed, hashed + k_digest_size); - std::ostringstream oss; - output_hex(hashed, hashed + k_digest_size, oss); - hex_str.assign(oss.str()); -} - -template std::string hash256_hex_string(InIter first, InIter last) { - std::string hex_str; - hash256_hex_string(first, last, hex_str); - return hex_str; -} - -inline void hash256_hex_string(const std::string &src, std::string &hex_str) { - hash256_hex_string(src.begin(), src.end(), hex_str); -} - -template -void hash256_hex_string(const InContainer &src, std::string &hex_str) { - hash256_hex_string(src.begin(), src.end(), hex_str); -} - -template std::string hash256_hex_string(const InContainer &src) { - return hash256_hex_string(src.begin(), src.end()); -} -template void hash256(std::ifstream &f, OutIter first, OutIter last) { - hash256(std::istreambuf_iterator(f), std::istreambuf_iterator(), first, last); -} -} // namespace picosha2 -#endif // PICOSHA2_H diff --git a/src/wasm.cc b/src/wasm.cc index a0f248f85..85a7b1e76 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -26,13 +26,12 @@ #include #include +#include + #include "include/proxy-wasm/bytecode_util.h" #include "include/proxy-wasm/signature_util.h" #include "include/proxy-wasm/vm_id_handle.h" -#include "src/third_party/base64.h" -#include "src/third_party/picosha2.h" - namespace proxy_wasm { thread_local ContextBase *current_context_; @@ -50,18 +49,24 @@ std::unordered_map *foreign_functions = nullpt const std::string INLINE_STRING = ""; -std::string Sha256(std::string_view data) { - std::vector hash(picosha2::k_digest_size); - picosha2::hash256(data.begin(), data.end(), hash.begin(), hash.end()); - return std::string(reinterpret_cast(&hash[0]), hash.size()); +std::vector Sha256(const std::vector parts) { + uint8_t sha256[SHA256_DIGEST_LENGTH]; + SHA256_CTX sha_ctx; + SHA256_Init(&sha_ctx); + for (auto part : parts) { + SHA256_Update(&sha_ctx, part.data(), part.size()); + } + SHA256_Final(sha256, &sha_ctx); + return std::vector(std::begin(sha256), std::end(sha256)); } -std::string Xor(std::string_view a, std::string_view b) { - assert(a.size() == b.size()); +std::string BytesToHex(std::vector bytes) { + static const char *const hex = "0123456789ABCDEF"; std::string result; - result.reserve(a.size()); - for (size_t i = 0; i < a.size(); i++) { - result.push_back(a[i] ^ b[i]); + result.reserve(bytes.size() * 2); + for (auto byte : bytes) { + result.push_back(hex[byte >> 4]); + result.push_back(hex[byte & 0xf]); } return result; } @@ -70,12 +75,7 @@ std::string Xor(std::string_view a, std::string_view b) { std::string makeVmKey(std::string_view vm_id, std::string_view vm_configuration, std::string_view code) { - std::string vm_key = Sha256(vm_id); - vm_key = Xor(vm_key, Sha256(vm_configuration)); - vm_key = Xor(vm_key, Sha256(code)); - auto start = reinterpret_cast(&*vm_key.begin()); - auto end = start + vm_key.size(); - return base64Encode(start, end); + return BytesToHex(Sha256({vm_id, vm_configuration, code})); } class WasmBase::ShutdownHandle { From b974c2ee19a661450c03a06221d293d4e31f7d92 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 9 Jun 2021 00:00:28 -0700 Subject: [PATCH 106/287] Remove unused protobuf dependency. (#170) Signed-off-by: Piotr Sikora --- BUILD | 1 - bazel/external/proxy-wasm-cpp-sdk.BUILD | 3 --- bazel/repositories.bzl | 7 ------- include/proxy-wasm/null_plugin.h | 1 - include/proxy-wasm/wasm_api_impl.h | 11 +++++++++++ 5 files changed, 11 insertions(+), 12 deletions(-) diff --git a/BUILD b/BUILD index 7e5a68936..3ad42cb37 100644 --- a/BUILD +++ b/BUILD @@ -30,7 +30,6 @@ cc_library( deps = [ ":include", "@boringssl//:crypto", - "@com_google_protobuf//:protobuf_lite", "@proxy_wasm_cpp_sdk//:api_lib", ], ) diff --git a/bazel/external/proxy-wasm-cpp-sdk.BUILD b/bazel/external/proxy-wasm-cpp-sdk.BUILD index ec99443ca..34b90aeea 100644 --- a/bazel/external/proxy-wasm-cpp-sdk.BUILD +++ b/bazel/external/proxy-wasm-cpp-sdk.BUILD @@ -15,7 +15,4 @@ cc_library( "proxy_wasm_common.h", "proxy_wasm_enums.h", ], - deps = [ - "@com_google_protobuf//:protobuf_lite", - ], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 5c6a8b3fc..fb25fb781 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -67,13 +67,6 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/bazelbuild/rules_rust/archive/96d5118f03411f80182fd45426e259eedf809d7a.tar.gz", ) - http_archive( - name = "com_google_protobuf", - sha256 = "59621f4011a95df270748dcc0ec1cc51946473f0e140d4848a2f20c8719e43aa", - strip_prefix = "protobuf-655310ca192a6e3a050e0ca0b7084a2968072260", - url = "https://github.com/protocolbuffers/protobuf/archive/655310ca192a6e3a050e0ca0b7084a2968072260.tar.gz", - ) - http_archive( name = "rules_foreign_cc", sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6", diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index c940aee2b..931417f92 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -17,7 +17,6 @@ #include -#include "google/protobuf/message.h" #include "include/proxy-wasm/null_vm_plugin.h" #include "include/proxy-wasm/wasm.h" #include "include/proxy-wasm/exports.h" diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index 78518a7d6..ce5f8aa33 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -15,6 +15,17 @@ #pragma once +// Required by "proxy_wasm_api.h" included within null_plugin namespace. + +#include +#include +#include +#include +#include +#include +#include +#include + namespace proxy_wasm { namespace null_plugin { From 605ee8a0eb78127e81f53bcc3f0b7ec983fb65c2 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 9 Jun 2021 03:45:18 -0700 Subject: [PATCH 107/287] Make Bazel rules usable in different workspaces. (#171) 1. None of the Wasm runtimes we use provide native Bazel support, so use //external bindings to match exposed targets across different workspaces. 2. Split runtime targets from the base library to allow consumers to create desired combination in their workspace. Signed-off-by: Piotr Sikora --- BUILD | 129 +++++++++++++++++++++++--------- bazel/external/wamr.BUILD | 1 - bazel/external/wasm-c-api.BUILD | 3 +- bazel/external/wavm.BUILD | 1 - bazel/repositories.bzl | 23 +++++- src/wamr/wamr.cc | 2 - test/BUILD | 3 + test/test_data/BUILD | 2 + test/utility.cc | 8 +- test/utility.h | 19 +++-- 10 files changed, 133 insertions(+), 58 deletions(-) diff --git a/BUILD b/BUILD index 3ad42cb37..c2eb5d8c2 100644 --- a/BUILD +++ b/BUILD @@ -11,87 +11,144 @@ licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) +exports_files(["LICENSE"]) + cc_library( - name = "include", - hdrs = glob(["include/proxy-wasm/**/*.h"]), + name = "wasm_vm_headers", + hdrs = [ + "include/proxy-wasm/wasm_vm.h", + "include/proxy-wasm/word.h", + ], deps = [ "@proxy_wasm_cpp_sdk//:common_lib", ], ) cc_library( - name = "common_lib", - srcs = glob([ - "src/*.h", - "src/*.cc", - "src/common/*.h", - "src/null/*.cc", - ]), + name = "headers", + hdrs = [ + "include/proxy-wasm/context.h", + "include/proxy-wasm/context_interface.h", + "include/proxy-wasm/exports.h", + "include/proxy-wasm/vm_id_handle.h", + "include/proxy-wasm/wasm.h", + ], deps = [ - ":include", + ":wasm_vm_headers", + ], +) + +cc_library( + name = "base_lib", + srcs = [ + "src/bytecode_util.cc", + "src/context.cc", + "src/exports.cc", + "src/shared_data.cc", + "src/shared_data.h", + "src/shared_queue.cc", + "src/shared_queue.h", + "src/signature_util.cc", + "src/vm_id_handle.cc", + "src/wasm.cc", + ], + hdrs = [ + "include/proxy-wasm/bytecode_util.h", + "include/proxy-wasm/signature_util.h", + ], + deps = [ + ":headers", "@boringssl//:crypto", + ], +) + +cc_library( + name = "null_lib", + srcs = [ + "src/null/null.cc", + "src/null/null_plugin.cc", + "src/null/null_vm.cc", + ], + hdrs = [ + "include/proxy-wasm/null.h", + "include/proxy-wasm/null_plugin.h", + "include/proxy-wasm/null_vm.h", + "include/proxy-wasm/null_vm_plugin.h", + "include/proxy-wasm/wasm_api_impl.h", + ], + defines = ["PROXY_WASM_HAS_RUNTIME_NULL"], + deps = [ + ":headers", "@proxy_wasm_cpp_sdk//:api_lib", ], ) cc_library( name = "v8_lib", - srcs = glob([ - # TODO(@mathetake): Add V8 lib. - # "src/v8/*.h", - # "src/v8/*.cc", - ]), + srcs = [ + "src/v8/v8.cc", + ], + hdrs = ["include/proxy-wasm/v8.h"], + defines = ["PROXY_WASM_HAS_RUNTIME_V8"], deps = [ - ":common_lib", - # TODO(@mathetake): Add V8 lib. + ":wasm_vm_headers", + "//external:wee8", ], ) cc_library( name = "wamr_lib", - srcs = glob([ - "src/wamr/*.h", - "src/wamr/*.cc", - ]), + srcs = [ + "src/common/types.h", + "src/wamr/types.h", + "src/wamr/wamr.cc", + ], + hdrs = ["include/proxy-wasm/wamr.h"], + defines = ["PROXY_WASM_HAS_RUNTIME_WAMR"], deps = [ - ":common_lib", - "@wamr//:wamr_lib", + ":wasm_vm_headers", + "//external:wamr", ], ) cc_library( name = "wasmtime_lib", - srcs = glob([ - "src/wasmtime/*.h", - "src/wasmtime/*.cc", - ]), + srcs = [ + "src/common/types.h", + "src/wasmtime/types.h", + "src/wasmtime/wasmtime.cc", + ], + hdrs = ["include/proxy-wasm/wasmtime.h"], + defines = ["PROXY_WASM_HAS_RUNTIME_WASMTIME"], deps = [ - ":common_lib", - "@wasm_c_api//:wasmtime_lib", + ":wasm_vm_headers", + "//external:wasmtime", ], ) cc_library( name = "wavm_lib", - srcs = glob([ - "src/wavm/*.h", - "src/wavm/*.cc", - ]), + srcs = [ + "src/wavm/wavm.cc", + ], + hdrs = ["include/proxy-wasm/wavm.h"], copts = [ '-DWAVM_API=""', "-Wno-non-virtual-dtor", "-Wno-old-style-cast", ], + defines = ["PROXY_WASM_HAS_RUNTIME_WAVM"], deps = [ - ":common_lib", - "@wavm//:wavm_lib", + ":wasm_vm_headers", + "//external:wavm", ], ) cc_library( name = "lib", deps = [ - ":common_lib", + ":base_lib", + ":null_lib", ] + proxy_wasm_select_runtime_v8( [":v8_lib"], ) + proxy_wasm_select_runtime_wamr( diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index 2d0af954b..0b0df722f 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -21,7 +21,6 @@ cmake( "WAMR_BUILD_LIBC_WASI": "0", "WAMR_BUILD_TAIL_CALL": "1", }, - defines = ["WASM_WAMR"], generate_args = ["-GNinja"], lib_source = ":srcs", out_static_libs = ["libvmlib.a"], diff --git a/bazel/external/wasm-c-api.BUILD b/bazel/external/wasm-c-api.BUILD index 06a7fa2f8..5d4be94f5 100644 --- a/bazel/external/wasm-c-api.BUILD +++ b/bazel/external/wasm-c-api.BUILD @@ -9,9 +9,8 @@ cc_library( hdrs = [ "include/wasm.h", ], - defines = ["WASM_WASMTIME"], include_prefix = "wasmtime", deps = [ - "@wasmtime//:rust_c_api", + "@com_github_bytecodealliance_wasmtime//:rust_c_api", ], ) diff --git a/bazel/external/wavm.BUILD b/bazel/external/wavm.BUILD index 55e4a81b0..a87ece7c1 100644 --- a/bazel/external/wavm.BUILD +++ b/bazel/external/wavm.BUILD @@ -20,7 +20,6 @@ cmake( # using -l:libstdc++.a. "CMAKE_CXX_FLAGS": "-lstdc++ -Wno-unused-command-line-argument", }, - defines = ["WASM_WAVM"], env_vars = { # Workaround for the -DDEBUG flag added in fastbuild on macOS, # which conflicts with DEBUG macro used in LLVM. diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index fb25fb781..c4a725c94 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -37,15 +37,20 @@ def proxy_wasm_cpp_host_repositories(): ) http_archive( - name = "wamr", + name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", sha256 = "46ad365a1c0668797e69cb868574fd526cd8e26a503213caf782c39061e6d2e1", strip_prefix = "wasm-micro-runtime-17a216748574499bd3a5130e7e6a20b84fe76798", url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/17a216748574499bd3a5130e7e6a20b84fe76798.tar.gz", ) + native.bind( + name = "wamr", + actual = "@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib", + ) + http_archive( - name = "wasmtime", + name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", sha256 = "e95d274822ac72bf06355bdfbeddcacae60d7e98fec8ee4b2e21740636fb5c2c", strip_prefix = "wasmtime-0.26.0", @@ -53,13 +58,18 @@ def proxy_wasm_cpp_host_repositories(): ) http_archive( - name = "wasm_c_api", + name = "com_github_webassembly_wasm_c_api", build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", sha256 = "c774044f51431429e878bd1b9e2a4e38932f861f9211df72f75e9427eb6b8d32", strip_prefix = "wasm-c-api-c9d31284651b975f05ac27cee0bab1377560b87e", url = "https://github.com/WebAssembly/wasm-c-api/archive/c9d31284651b975f05ac27cee0bab1377560b87e.tar.gz", ) + native.bind( + name = "wasmtime", + actual = "@com_github_webassembly_wasm_c_api//:wasmtime_lib", + ) + http_archive( name = "rules_rust", sha256 = "db182e96b5ed62b044142cdae096742fcfd1aa4febfe3af8afa3c0ee438a52a4", @@ -83,9 +93,14 @@ def proxy_wasm_cpp_host_repositories(): ) http_archive( - name = "wavm", + name = "com_github_wavm_wavm", build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD", sha256 = "fa9a8dece0f1a51f8789c07f7f0c1f817ceee54c57d85f22ab958e43cde648d3", strip_prefix = "WAVM-93c3ad73e2938f19c8bb26d4f456b39d6bc4ca01", url = "https://github.com/WAVM/WAVM/archive/93c3ad73e2938f19c8bb26d4f456b39d6bc4ca01.tar.gz", ) + + native.bind( + name = "wavm", + actual = "@com_github_wavm_wavm//:wavm_lib", + ) diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 9b7375137..06f9ce465 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -29,8 +29,6 @@ #include #include -#include "include/proxy-wasm/bytecode_util.h" - #include "src/wamr/types.h" #include "wasm_c_api.h" diff --git a/test/BUILD b/test/BUILD index d41c657a7..132404b3f 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,5 +1,7 @@ load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") +licenses(["notice"]) # Apache 2 + package(default_visibility = ["//visibility:public"]) cc_test( @@ -117,6 +119,7 @@ cc_test( cc_library( name = "utility_lib", + testonly = True, srcs = [ "utility.cc", "utility.h", diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 571ca9304..c6ed213e3 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -1,5 +1,7 @@ load("@proxy_wasm_cpp_host//bazel:wasm.bzl", "wasm_rust_binary") +licenses(["notice"]) # Apache 2 + package(default_visibility = ["//visibility:public"]) wasm_rust_binary( diff --git a/test/utility.cc b/test/utility.cc index 5b999c0c4..e833f22e5 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -18,16 +18,16 @@ namespace proxy_wasm { std::vector getRuntimes() { std::vector runtimes = { -#if defined(WASM_V8) +#if defined(PROXY_WASM_HAS_RUNTIME_V8) "v8", #endif -#if defined(WASM_WAVM) +#if defined(PROXY_WASM_HAS_RUNTIME_WAVM) "wavm", #endif -#if defined(WASM_WASMTIME) +#if defined(PROXY_WASM_HAS_RUNTIME_WASMTIME) "wasmtime", #endif -#if defined(WASM_WAMR) +#if defined(PROXY_WASM_HAS_RUNTIME_WAMR) "wamr", #endif "" diff --git a/test/utility.h b/test/utility.h index 05ed1cf59..07094b893 100644 --- a/test/utility.h +++ b/test/utility.h @@ -23,16 +23,16 @@ #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm.h" -#if defined(WASM_V8) +#if defined(PROXY_WASM_HAS_RUNTIME_V8) #include "include/proxy-wasm/v8.h" #endif -#if defined(WASM_WAVM) +#if defined(PROXY_WASM_HAS_RUNTIME_WAVM) #include "include/proxy-wasm/wavm.h" #endif -#if defined(WASM_WASMTIME) +#if defined(PROXY_WASM_HAS_RUNTIME_WASMTIME) #include "include/proxy-wasm/wasmtime.h" #endif -#if defined(WASM_WAMR) +#if defined(PROXY_WASM_HAS_RUNTIME_WAMR) #include "include/proxy-wasm/wamr.h" #endif @@ -71,22 +71,25 @@ class TestVM : public testing::TestWithParam { runtime_ = GetParam(); if (runtime_ == "") { EXPECT_TRUE(false) << "runtime must not be empty"; -#if defined(WASM_V8) +#if defined(PROXY_WASM_HAS_RUNTIME_V8) } else if (runtime_ == "v8") { vm_ = proxy_wasm::createV8Vm(); #endif -#if defined(WASM_WAVM) +#if defined(PROXY_WASM_HAS_RUNTIME_WAVM) } else if (runtime_ == "wavm") { vm_ = proxy_wasm::createWavmVm(); #endif -#if defined(WASM_WASMTIME) +#if defined(PROXY_WASM_HAS_RUNTIME_WASMTIME) } else if (runtime_ == "wasmtime") { vm_ = proxy_wasm::createWasmtimeVm(); #endif -#if defined(WASM_WAMR) +#if defined(PROXY_WASM_HAS_RUNTIME_WAMR) } else if (runtime_ == "wamr") { vm_ = proxy_wasm::createWamrVm(); #endif + } else { + EXPECT_TRUE(false) << "compiled without support for the requested \"" << runtime_ + << "\" runtime"; } vm_->integration().reset(integration_); } From d65908e37ab233302cd8fc621f506f62894df176 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 9 Jun 2021 17:02:00 -0700 Subject: [PATCH 108/287] Add missing includes. (#173) Signed-off-by: Piotr Sikora --- bazel/external/proxy-wasm-cpp-sdk.BUILD | 18 ------------------ bazel/repositories.bzl | 6 +++--- include/proxy-wasm/exports.h | 3 ++- include/proxy-wasm/null_plugin.h | 9 +-------- include/proxy-wasm/wasm_api_impl.h | 6 ++++++ 5 files changed, 12 insertions(+), 30 deletions(-) delete mode 100644 bazel/external/proxy-wasm-cpp-sdk.BUILD diff --git a/bazel/external/proxy-wasm-cpp-sdk.BUILD b/bazel/external/proxy-wasm-cpp-sdk.BUILD deleted file mode 100644 index 34b90aeea..000000000 --- a/bazel/external/proxy-wasm-cpp-sdk.BUILD +++ /dev/null @@ -1,18 +0,0 @@ -load("@rules_cc//cc:defs.bzl", "cc_library") - -licenses(["notice"]) # Apache 2 - -package(default_visibility = ["//visibility:public"]) - -cc_library( - name = "api_lib", - hdrs = ["proxy_wasm_api.h"], -) - -cc_library( - name = "common_lib", - hdrs = [ - "proxy_wasm_common.h", - "proxy_wasm_enums.h", - ], -) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index c4a725c94..1e861df7d 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -17,9 +17,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def proxy_wasm_cpp_host_repositories(): http_archive( name = "proxy_wasm_cpp_sdk", - sha256 = "b97e3e716b1f38dc601487aa0bde72490bbc82b8f3ad73f1f3e69733984955df", - strip_prefix = "proxy-wasm-cpp-sdk-956f0d500c380cc1656a2d861b7ee12c2515a664", - urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/956f0d500c380cc1656a2d861b7ee12c2515a664.tar.gz"], + sha256 = "489768fb95ede507543ee5982610b541a2c5b57216695a9e5c2eb8c83c9d20a3", + strip_prefix = "proxy-wasm-cpp-sdk-9af5ac0145a8790f62ca501c43f6fa1ea24d2d93", + urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/9af5ac0145a8790f62ca501c43f6fa1ea24d2d93.tar.gz"], ) http_archive( diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 5c5171761..9c6e17226 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -17,8 +17,9 @@ #include -#include "include/proxy-wasm/word.h" +#include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm_vm.h" +#include "include/proxy-wasm/word.h" namespace proxy_wasm { diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index 931417f92..f059c32be 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -17,16 +17,9 @@ #include +#include "include/proxy-wasm/exports.h" #include "include/proxy-wasm/null_vm_plugin.h" #include "include/proxy-wasm/wasm.h" -#include "include/proxy-wasm/exports.h" - -namespace proxy_wasm { -namespace null_plugin { -#include "proxy_wasm_enums.h" -} // namespace null_plugin -} // namespace proxy_wasm - #include "include/proxy-wasm/wasm_api_impl.h" namespace proxy_wasm { diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index ce5f8aa33..dd318c9ad 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -26,9 +26,15 @@ #include #include +#include "include/proxy-wasm/exports.h" +#include "include/proxy-wasm/word.h" + namespace proxy_wasm { namespace null_plugin { +#include "proxy_wasm_enums.h" +#include "proxy_wasm_common.h" + #define WS(_x) Word(static_cast(_x)) #define WR(_x) Word(reinterpret_cast(_x)) From b524f41680cbc5563c7f4f9113ec70d54078b4f6 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Thu, 24 Jun 2021 18:19:02 +0900 Subject: [PATCH 109/287] Pass PluginHandle to stream contexts. (#167) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/context.h | 16 +++++++++------- include/proxy-wasm/wasm.h | 11 ++++++++--- src/context.cc | 4 ++-- 3 files changed, 19 insertions(+), 12 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 2487e30aa..94ed93faa 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -32,6 +32,7 @@ namespace proxy_wasm { #include "proxy_wasm_common.h" #include "proxy_wasm_enums.h" +class PluginHandleBase; class WasmBase; class WasmVm; @@ -143,7 +144,7 @@ class ContextBase : public RootInterface, ContextBase(WasmBase *wasm); // Vm Context. ContextBase(WasmBase *wasm, std::shared_ptr plugin); // Root Context. ContextBase(WasmBase *wasm, uint32_t parent_context_id, - std::shared_ptr plugin); // Stream context. + std::shared_ptr plugin_handle); // Stream context. virtual ~ContextBase(); WasmBase *wasm() const { return wasm_; } @@ -394,12 +395,13 @@ class ContextBase : public RootInterface, WasmBase *wasm_{nullptr}; uint32_t id_{0}; - uint32_t parent_context_id_{0}; // 0 for roots and the general context. - ContextBase *parent_context_{nullptr}; // set in all contexts. - std::string root_id_; // set only in root context. - std::string root_log_prefix_; // set only in root context. - std::shared_ptr plugin_; // set in root and stream contexts. - std::shared_ptr temp_plugin_; // Remove once ABI v0.1.0 is gone. + uint32_t parent_context_id_{0}; // 0 for roots and the general context. + ContextBase *parent_context_{nullptr}; // set in all contexts. + std::string root_id_; // set only in root context. + std::string root_log_prefix_; // set only in root context. + std::shared_ptr plugin_; // set in root and stream contexts. + std::shared_ptr plugin_handle_; // set only in stream context. + std::shared_ptr temp_plugin_; // Remove once ABI v0.1.0 is gone. bool in_vm_context_created_ = false; bool destroyed_ = false; bool stream_failed_ = false; // Set true after failStream is called in case of VM failure. diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 9accb4c7b..519a00afb 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -321,14 +321,19 @@ class PluginHandleBase : public std::enable_shared_from_this { public: explicit PluginHandleBase(std::shared_ptr wasm_handle, std::shared_ptr plugin) - : wasm_handle_(wasm_handle), plugin_key_(plugin->key()) {} - ~PluginHandleBase() { wasm_handle_->wasm()->startShutdown(plugin_key_); } + : plugin_(plugin), wasm_handle_(wasm_handle) {} + ~PluginHandleBase() { + if (wasm_handle_) { + wasm_handle_->wasm()->startShutdown(plugin_->key()); + } + } + std::shared_ptr &plugin() { return plugin_; } std::shared_ptr &wasm() { return wasm_handle_->wasm(); } protected: + std::shared_ptr plugin_; std::shared_ptr wasm_handle_; - std::string plugin_key_; }; using PluginHandleFactory = std::function( diff --git a/src/context.cc b/src/context.cc index a13f79000..8a69aec5f 100644 --- a/src/context.cc +++ b/src/context.cc @@ -98,9 +98,9 @@ ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) // NB: wasm can be nullptr if it failed to be created successfully. ContextBase::ContextBase(WasmBase *wasm, uint32_t parent_context_id, - std::shared_ptr plugin) + std::shared_ptr plugin_handle) : wasm_(wasm), id_(wasm ? wasm->allocContextId() : 0), parent_context_id_(parent_context_id), - plugin_(plugin) { + plugin_(plugin_handle->plugin()), plugin_handle_(plugin_handle) { if (wasm_) { wasm_->contexts_[id_] = this; parent_context_ = wasm_->contexts_[parent_context_id_]; From 7b64da1176b42a51b6be2d03f12d578a6028a39b Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 24 Jun 2021 16:46:48 -0700 Subject: [PATCH 110/287] Re-add protobuf dependency. (#174) This was incorrectly removed in #170, but it's needed by NullVM plugins that make gRPC calls (built with -DPROXY_WASM_PROTOBUF). Signed-off-by: Piotr Sikora --- BUILD | 1 + bazel/dependencies.bzl | 2 ++ bazel/repositories.bzl | 13 ++++++++++--- include/proxy-wasm/wasm_api_impl.h | 4 ++++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/BUILD b/BUILD index c2eb5d8c2..66d16d6ce 100644 --- a/BUILD +++ b/BUILD @@ -79,6 +79,7 @@ cc_library( defines = ["PROXY_WASM_HAS_RUNTIME_NULL"], deps = [ ":headers", + "@com_google_protobuf//:protobuf_lite", "@proxy_wasm_cpp_sdk//:api_lib", ], ) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 031a962ff..c325facfe 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -12,9 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates") load("@rules_rust//rust:repositories.bzl", "rust_repositories") def proxy_wasm_cpp_host_dependencies(): + protobuf_deps() rust_repositories() proxy_wasm_cpp_host_fetch_remote_crates() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 1e861df7d..29c0c82cb 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -17,9 +17,9 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def proxy_wasm_cpp_host_repositories(): http_archive( name = "proxy_wasm_cpp_sdk", - sha256 = "489768fb95ede507543ee5982610b541a2c5b57216695a9e5c2eb8c83c9d20a3", - strip_prefix = "proxy-wasm-cpp-sdk-9af5ac0145a8790f62ca501c43f6fa1ea24d2d93", - urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/9af5ac0145a8790f62ca501c43f6fa1ea24d2d93.tar.gz"], + sha256 = "c57de2425b5c61d7f630c5061e319b4557ae1f1c7526e5a51c33dc1299471b08", + strip_prefix = "proxy-wasm-cpp-sdk-fd0be8405db25de0264bdb78fae3a82668c03782", + urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/fd0be8405db25de0264bdb78fae3a82668c03782.tar.gz"], ) http_archive( @@ -36,6 +36,13 @@ def proxy_wasm_cpp_host_repositories(): urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], ) + http_archive( + name = "com_google_protobuf", + sha256 = "77ad26d3f65222fd96ccc18b055632b0bfedf295cb748b712a98ba1ac0b704b2", + strip_prefix = "protobuf-3.17.3", + url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz", + ) + http_archive( name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index dd318c9ad..2529bf2db 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -17,6 +17,10 @@ // Required by "proxy_wasm_api.h" included within null_plugin namespace. +#ifdef PROXY_WASM_PROTOBUF +#include "google/protobuf/message_lite.h" +#endif + #include #include #include From c9760d179fb108bd6c921dfea9c8fc9ebbdebfba Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Mon, 12 Jul 2021 08:33:49 +0900 Subject: [PATCH 111/287] Pass plugin key from embedders to PluginBase. (#178) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/context.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 94ed93faa..f88b4aaac 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -45,13 +45,16 @@ class WasmVm; * @param vm_id is a string used to differentiate VMs with the same code and VM configuration. * @param plugin_configuration is configuration for this plugin. * @param fail_open if true the plugin will pass traffic as opposed to close all streams. + * @param key is used to uniquely identify this plugin instance. */ struct PluginBase { PluginBase(std::string_view name, std::string_view root_id, std::string_view vm_id, - std::string_view runtime, std::string_view plugin_configuration, bool fail_open) + std::string_view runtime, std::string_view plugin_configuration, bool fail_open, + std::string_view key) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), - fail_open_(fail_open), key_(root_id_ + "||" + plugin_configuration_), + fail_open_(fail_open), + key_(root_id_ + "||" + plugin_configuration_ + "||" + std::string(key)), log_prefix_(makeLogPrefix()) {} const std::string name_; From 657bd3a766d36ee98584dd988fd52974b7f4e1c8 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 13 Jul 2021 09:18:32 +0900 Subject: [PATCH 112/287] style: rename VM->Vm in FailState enum. (#179) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/wasm_vm.h | 4 ++-- src/wasm.cc | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 4e07086ed..7c484fe61 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -133,8 +133,8 @@ struct WasmVmIntegration { enum class FailState : int { Ok = 0, - UnableToCreateVM = 1, - UnableToCloneVM = 2, + UnableToCreateVm = 1, + UnableToCloneVm = 2, MissingFunction = 3, UnableToInitializeCode = 4, StartFailed = 5, diff --git a/src/wasm.cc b/src/wasm.cc index 85a7b1e76..ff3772bd0 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -208,7 +208,7 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm wasm_vm_ = factory(); } if (!wasm_vm_) { - failed_ = FailState::UnableToCreateVM; + failed_ = FailState::UnableToCreateVm; } else { wasm_vm_->setFailCallback([this](FailState fail_state) { failed_ = fail_state; }); } @@ -222,7 +222,7 @@ WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, envs_(envs), allowed_capabilities_(std::move(allowed_capabilities)), vm_configuration_(std::string(vm_configuration)), vm_id_handle_(getVmIdHandle(vm_id)) { if (!wasm_vm_) { - failed_ = FailState::UnableToCreateVM; + failed_ = FailState::UnableToCreateVm; } else { wasm_vm_->setFailCallback([this](FailState fail_state) { failed_ = fail_state; }); } @@ -502,7 +502,7 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, } auto configuration_canary_handle = clone_factory(wasm_handle); if (!configuration_canary_handle) { - wasm_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); + wasm_handle->wasm()->fail(FailState::UnableToCloneVm, "Failed to clone Base Wasm"); return nullptr; } if (!configuration_canary_handle->wasm()->initialize()) { @@ -552,7 +552,7 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_handle, // Create and initialize new thread-local WasmVM. auto wasm_handle = clone_factory(base_handle); if (!wasm_handle) { - base_handle->wasm()->fail(FailState::UnableToCloneVM, "Failed to clone Base Wasm"); + base_handle->wasm()->fail(FailState::UnableToCloneVm, "Failed to clone Base Wasm"); return nullptr; } From 82633e3ea94cdb96604e7fb01e3c0a36eb35c54d Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 13 Jul 2021 14:44:11 +0900 Subject: [PATCH 113/287] test: remove no_mangle from extern "c" (#180) Signed-off-by: Takeshi Yoneda --- test/test_data/env.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/test/test_data/env.rs b/test/test_data/env.rs index f31810d5c..59bf2cc72 100644 --- a/test/test_data/env.rs +++ b/test/test_data/env.rs @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -#[no_mangle] extern "C" { fn __wasilibc_initialize_environ(); } From 56075235ec682156139d5bd7771c8eb9d9858d2d Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Sat, 31 Jul 2021 07:24:15 +0900 Subject: [PATCH 114/287] Delete unused INLINE_STRING. (#182) Signed-off-by: Takeshi Yoneda --- src/wasm.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wasm.cc b/src/wasm.cc index ff3772bd0..dd9c1d3e9 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -47,8 +47,6 @@ std::mutex base_wasms_mutex; std::unordered_map> *base_wasms = nullptr; std::unordered_map *foreign_functions = nullptr; -const std::string INLINE_STRING = ""; - std::vector Sha256(const std::vector parts) { uint8_t sha256[SHA256_DIGEST_LENGTH]; SHA256_CTX sha_ctx; From d32cb05cb666216db5e1a383c1ffa2c1aeec19bb Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 3 Aug 2021 08:11:31 +0900 Subject: [PATCH 115/287] Delete unused raw_context arg in host functions. (#183) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/exports.h | 179 +++++++++--------- include/proxy-wasm/wasm_api_impl.h | 144 +++++++-------- include/proxy-wasm/wasm_vm.h | 71 +++++--- src/exports.cc | 284 ++++++++++++++--------------- src/v8/v8.cc | 18 +- src/wamr/wamr.cc | 18 +- src/wasmtime/wasmtime.cc | 20 +- src/wavm/wavm.cc | 5 +- test/runtime_test.cc | 19 +- 9 files changed, 369 insertions(+), 389 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 9c6e17226..ded6419a4 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -25,6 +25,9 @@ namespace proxy_wasm { class ContextBase; +// Any currently executing Wasm call context. +::proxy_wasm::ContextBase *contextOrEffectiveContext(); + extern thread_local ContextBase *current_context_; namespace exports { @@ -61,100 +64,87 @@ template void marshalPairs(const Pairs &result, char *buffer) { // ABI functions exported from host to wasm. -Word get_configuration(void *raw_context, Word address, Word size); -Word get_status(void *raw_context, Word status_code, Word address, Word size); -Word log(void *raw_context, Word level, Word address, Word size); -Word get_log_level(void *raw_context, Word result_level_uint32_ptr); -Word get_property(void *raw_context, Word path_ptr, Word path_size, Word value_ptr_ptr, - Word value_size_ptr); -Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, Word value_size); -Word continue_request(void *raw_context); -Word continue_response(void *raw_context); -Word continue_stream(void *raw_context, Word stream_type); -Word close_stream(void *raw_context, Word stream_type); -Word send_local_response(void *raw_context, Word response_code, Word response_code_details_ptr, +Word get_configuration(Word address, Word size); +Word get_status(Word status_code, Word address, Word size); +Word log(Word level, Word address, Word size); +Word get_log_level(Word result_level_uint32_ptr); +Word get_property(Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_size_ptr); +Word set_property(Word key_ptr, Word key_size, Word value_ptr, Word value_size); +Word continue_request(); +Word continue_response(); +Word continue_stream(Word stream_type); +Word close_stream(Word stream_type); +Word send_local_response(Word response_code, Word response_code_details_ptr, Word response_code_details_size, Word body_ptr, Word body_size, Word additional_response_header_pairs_ptr, Word additional_response_header_pairs_size, Word grpc_status); -Word clear_route_cache(void *raw_context); -Word get_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ptr_ptr, - Word value_size_ptr, Word cas_ptr); -Word set_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, - Word value_size, Word cas); -Word register_shared_queue(void *raw_context, Word queue_name_ptr, Word queue_name_size, - Word token_ptr); -Word resolve_shared_queue(void *raw_context, Word vm_id_ptr, Word vm_id_size, Word queue_name_ptr, +Word clear_route_cache(); +Word get_shared_data(Word key_ptr, Word key_size, Word value_ptr_ptr, Word value_size_ptr, + Word cas_ptr); +Word set_shared_data(Word key_ptr, Word key_size, Word value_ptr, Word value_size, Word cas); +Word register_shared_queue(Word queue_name_ptr, Word queue_name_size, Word token_ptr); +Word resolve_shared_queue(Word vm_id_ptr, Word vm_id_size, Word queue_name_ptr, Word queue_name_size, Word token_ptr); -Word dequeue_shared_queue(void *raw_context, Word token, Word data_ptr_ptr, Word data_size_ptr); -Word enqueue_shared_queue(void *raw_context, Word token, Word data_ptr, Word data_size); -Word get_buffer_bytes(void *raw_context, Word type, Word start, Word length, Word ptr_ptr, - Word size_ptr); -Word get_buffer_status(void *raw_context, Word type, Word length_ptr, Word flags_ptr); -Word set_buffer_bytes(void *raw_context, Word type, Word start, Word length, Word data_ptr, - Word data_size); -Word add_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size, Word value_ptr, - Word value_size); -Word get_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size, - Word value_ptr_ptr, Word value_size_ptr); -Word replace_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size, - Word value_ptr, Word value_size); -Word remove_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size); -Word get_header_map_pairs(void *raw_context, Word type, Word ptr_ptr, Word size_ptr); -Word set_header_map_pairs(void *raw_context, Word type, Word ptr, Word size); -Word get_header_map_size(void *raw_context, Word type, Word result_ptr); -Word getRequestBodyBufferBytes(void *raw_context, Word start, Word length, Word ptr_ptr, - Word size_ptr); -Word get_response_body_buffer_bytes(void *raw_context, Word start, Word length, Word ptr_ptr, - Word size_ptr); -Word http_call(void *raw_context, Word uri_ptr, Word uri_size, Word header_pairs_ptr, - Word header_pairs_size, Word body_ptr, Word body_size, Word trailer_pairs_ptr, - Word trailer_pairs_size, Word timeout_milliseconds, Word token_ptr); -Word define_metric(void *raw_context, Word metric_type, Word name_ptr, Word name_size, - Word result_ptr); -Word increment_metric(void *raw_context, Word metric_id, int64_t offset); -Word record_metric(void *raw_context, Word metric_id, uint64_t value); -Word get_metric(void *raw_context, Word metric_id, Word result_uint64_ptr); -Word grpc_call(void *raw_context, Word service_ptr, Word service_size, Word service_name_ptr, - Word service_name_size, Word method_name_ptr, Word method_name_size, - Word initial_metadata_ptr, Word initial_metadata_size, Word request_ptr, - Word request_size, Word timeout_milliseconds, Word token_ptr); -Word grpc_stream(void *raw_context, Word service_ptr, Word service_size, Word service_name_ptr, - Word service_name_size, Word method_name_ptr, Word method_name_size, - Word initial_metadata_ptr, Word initial_metadata_size, Word token_ptr); -Word grpc_cancel(void *raw_context, Word token); -Word grpc_close(void *raw_context, Word token); -Word grpc_send(void *raw_context, Word token, Word message_ptr, Word message_size, Word end_stream); - -Word set_tick_period_milliseconds(void *raw_context, Word tick_period_milliseconds); -Word get_current_time_nanoseconds(void *raw_context, Word result_uint64_ptr); - -Word set_effective_context(void *raw_context, Word context_id); -Word done(void *raw_context); -Word call_foreign_function(void *raw_context, Word function_name, Word function_name_size, - Word arguments, Word warguments_size, Word results, Word results_size); +Word dequeue_shared_queue(Word token, Word data_ptr_ptr, Word data_size_ptr); +Word enqueue_shared_queue(Word token, Word data_ptr, Word data_size); +Word get_buffer_bytes(Word type, Word start, Word length, Word ptr_ptr, Word size_ptr); +Word get_buffer_status(Word type, Word length_ptr, Word flags_ptr); +Word set_buffer_bytes(Word type, Word start, Word length, Word data_ptr, Word data_size); +Word add_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr, Word value_size); +Word get_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr_ptr, + Word value_size_ptr); +Word replace_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr, + Word value_size); +Word remove_header_map_value(Word type, Word key_ptr, Word key_size); +Word get_header_map_pairs(Word type, Word ptr_ptr, Word size_ptr); +Word set_header_map_pairs(Word type, Word ptr, Word size); +Word get_header_map_size(Word type, Word result_ptr); +Word getRequestBodyBufferBytes(Word start, Word length, Word ptr_ptr, Word size_ptr); +Word get_response_body_buffer_bytes(Word start, Word length, Word ptr_ptr, Word size_ptr); +Word http_call(Word uri_ptr, Word uri_size, Word header_pairs_ptr, Word header_pairs_size, + Word body_ptr, Word body_size, Word trailer_pairs_ptr, Word trailer_pairs_size, + Word timeout_milliseconds, Word token_ptr); +Word define_metric(Word metric_type, Word name_ptr, Word name_size, Word result_ptr); +Word increment_metric(Word metric_id, int64_t offset); +Word record_metric(Word metric_id, uint64_t value); +Word get_metric(Word metric_id, Word result_uint64_ptr); +Word grpc_call(Word service_ptr, Word service_size, Word service_name_ptr, Word service_name_size, + Word method_name_ptr, Word method_name_size, Word initial_metadata_ptr, + Word initial_metadata_size, Word request_ptr, Word request_size, + Word timeout_milliseconds, Word token_ptr); +Word grpc_stream(Word service_ptr, Word service_size, Word service_name_ptr, Word service_name_size, + Word method_name_ptr, Word method_name_size, Word initial_metadata_ptr, + Word initial_metadata_size, Word token_ptr); +Word grpc_cancel(Word token); +Word grpc_close(Word token); +Word grpc_send(Word token, Word message_ptr, Word message_size, Word end_stream); + +Word set_tick_period_milliseconds(Word tick_period_milliseconds); +Word get_current_time_nanoseconds(Word result_uint64_ptr); + +Word set_effective_context(Word context_id); +Word done(); +Word call_foreign_function(Word function_name, Word function_name_size, Word arguments, + Word warguments_size, Word results, Word results_size); // Runtime environment functions exported from envoy to wasm. -Word wasi_unstable_fd_write(void *raw_context, Word fd, Word iovs, Word iovs_len, - Word nwritten_ptr); -Word wasi_unstable_fd_read(void *, Word, Word, Word, Word); -Word wasi_unstable_fd_seek(void *, Word, int64_t, Word, Word); -Word wasi_unstable_fd_close(void *, Word); -Word wasi_unstable_fd_fdstat_get(void *, Word fd, Word statOut); -Word wasi_unstable_environ_get(void *, Word, Word); -Word wasi_unstable_environ_sizes_get(void *raw_context, Word count_ptr, Word buf_size_ptr); -Word wasi_unstable_args_get(void *raw_context, Word argc_ptr, Word argv_buf_size_ptr); -Word wasi_unstable_args_sizes_get(void *raw_context, Word argc_ptr, Word argv_buf_size_ptr); -void wasi_unstable_proc_exit(void *, Word); -Word wasi_unstable_clock_time_get(void *, Word, uint64_t, Word); -Word wasi_unstable_random_get(void *, Word, Word); -Word pthread_equal(void *, Word left, Word right); +Word wasi_unstable_fd_write(Word fd, Word iovs, Word iovs_len, Word nwritten_ptr); +Word wasi_unstable_fd_read(Word, Word, Word, Word); +Word wasi_unstable_fd_seek(Word, int64_t, Word, Word); +Word wasi_unstable_fd_close(Word); +Word wasi_unstable_fd_fdstat_get(Word fd, Word statOut); +Word wasi_unstable_environ_get(Word, Word); +Word wasi_unstable_environ_sizes_get(Word count_ptr, Word buf_size_ptr); +Word wasi_unstable_args_get(Word argc_ptr, Word argv_buf_size_ptr); +Word wasi_unstable_args_sizes_get(Word argc_ptr, Word argv_buf_size_ptr); +void wasi_unstable_proc_exit(Word); +Word wasi_unstable_clock_time_get(Word, uint64_t, Word); +Word wasi_unstable_random_get(Word, Word); +Word pthread_equal(Word left, Word right); // Support for embedders, not exported to Wasm. -// Any currently executing Wasm call context. -::proxy_wasm::ContextBase *ContextOrEffectiveContext(::proxy_wasm::ContextBase *context); - #define FOR_ALL_HOST_FUNCTIONS(_f) \ _f(log) _f(get_status) _f(set_property) _f(get_property) _f(send_local_response) \ _f(get_shared_data) _f(set_shared_data) _f(register_shared_queue) _f(resolve_shared_queue) \ @@ -181,10 +171,9 @@ ::proxy_wasm::ContextBase *ContextOrEffectiveContext(::proxy_wasm::ContextBase * // Helpers to generate a stub to pass to VM, in place of a restricted proxy-wasm capability. #define _CREATE_PROXY_WASM_STUB(_fn) \ template struct _fn##Stub; \ - template struct _fn##Stub { \ - static Word stub(void *raw_context, Args...) { \ - auto context = exports::ContextOrEffectiveContext( \ - static_cast((void)raw_context, current_context_)); \ + template struct _fn##Stub { \ + static Word stub(Args...) { \ + auto context = contextOrEffectiveContext(); \ context->wasmVm()->integration()->error( \ "Attempted call to restricted proxy-wasm capability: proxy_" #_fn); \ return WasmResult::InternalFailure; \ @@ -197,19 +186,17 @@ FOR_ALL_HOST_FUNCTIONS_ABI_SPECIFIC(_CREATE_PROXY_WASM_STUB) // Helpers to generate a stub to pass to VM, in place of a restricted WASI capability. #define _CREATE_WASI_STUB(_fn) \ template struct _fn##Stub; \ - template struct _fn##Stub { \ - static Word stub(void *raw_context, Args...) { \ - auto context = exports::ContextOrEffectiveContext( \ - static_cast((void)raw_context, current_context_)); \ + template struct _fn##Stub { \ + static Word stub(Args...) { \ + auto context = contextOrEffectiveContext(); \ context->wasmVm()->integration()->error( \ "Attempted call to restricted WASI capability: " #_fn); \ return 76; /* __WASI_ENOTCAPABLE */ \ } \ }; \ - template struct _fn##Stub { \ - static void stub(void *raw_context, Args...) { \ - auto context = exports::ContextOrEffectiveContext( \ - static_cast((void)raw_context, current_context_)); \ + template struct _fn##Stub { \ + static void stub(Args...) { \ + auto context = contextOrEffectiveContext(); \ context->wasmVm()->integration()->error( \ "Attempted call to restricted WASI capability: " #_fn); \ } \ diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index 2529bf2db..8bd9626ff 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -48,55 +48,51 @@ inline WasmResult wordToWasmResult(Word w) { return static_cast(w.u6 inline WasmResult proxy_get_configuration(const char **configuration_ptr, size_t *configuration_size) { return wordToWasmResult( - exports::get_configuration(current_context_, WR(configuration_ptr), WR(configuration_size))); + exports::get_configuration(WR(configuration_ptr), WR(configuration_size))); } inline WasmResult proxy_get_status(uint32_t *code_ptr, const char **ptr, size_t *size) { - return wordToWasmResult(exports::get_status(current_context_, WR(code_ptr), WR(ptr), WR(size))); + return wordToWasmResult(exports::get_status(WR(code_ptr), WR(ptr), WR(size))); } // Logging inline WasmResult proxy_log(LogLevel level, const char *logMessage, size_t messageSize) { - return wordToWasmResult( - exports::log(current_context_, WS(level), WR(logMessage), WS(messageSize))); + return wordToWasmResult(exports::log(WS(level), WR(logMessage), WS(messageSize))); } inline WasmResult proxy_get_log_level(LogLevel *level) { - return wordToWasmResult(exports::get_log_level(current_context_, WR(level))); + return wordToWasmResult(exports::get_log_level(WR(level))); } // Timer inline WasmResult proxy_set_tick_period_milliseconds(uint64_t millisecond) { - return wordToWasmResult( - exports::set_tick_period_milliseconds(current_context_, Word(millisecond))); + return wordToWasmResult(exports::set_tick_period_milliseconds(Word(millisecond))); } inline WasmResult proxy_get_current_time_nanoseconds(uint64_t *result) { - return wordToWasmResult(exports::get_current_time_nanoseconds(current_context_, WR(result))); + return wordToWasmResult(exports::get_current_time_nanoseconds(WR(result))); } // State accessors inline WasmResult proxy_get_property(const char *path_ptr, size_t path_size, const char **value_ptr_ptr, size_t *value_size_ptr) { - return wordToWasmResult(exports::get_property(current_context_, WR(path_ptr), WS(path_size), - WR(value_ptr_ptr), WR(value_size_ptr))); + return wordToWasmResult( + exports::get_property(WR(path_ptr), WS(path_size), WR(value_ptr_ptr), WR(value_size_ptr))); } inline WasmResult proxy_set_property(const char *key_ptr, size_t key_size, const char *value_ptr, size_t value_size) { - return wordToWasmResult(exports::set_property(current_context_, WR(key_ptr), WS(key_size), - WR(value_ptr), WS(value_size))); + return wordToWasmResult( + exports::set_property(WR(key_ptr), WS(key_size), WR(value_ptr), WS(value_size))); } // Continue -inline WasmResult proxy_continue_request() { - return wordToWasmResult(exports::continue_request(current_context_)); -} +inline WasmResult proxy_continue_request() { return wordToWasmResult(exports::continue_request()); } inline WasmResult proxy_continue_response() { - return wordToWasmResult(exports::continue_response(current_context_)); + return wordToWasmResult(exports::continue_response()); } inline WasmResult proxy_continue_stream(WasmStreamType stream_type) { - return wordToWasmResult(exports::continue_stream(current_context_, WS(stream_type))); + return wordToWasmResult(exports::continue_stream(WS(stream_type))); } inline WasmResult proxy_close_stream(WasmStreamType stream_type) { - return wordToWasmResult(exports::close_stream(current_context_, WS(stream_type))); + return wordToWasmResult(exports::close_stream(WS(stream_type))); } inline WasmResult proxy_send_local_response(uint32_t response_code, const char *response_code_details_ptr, @@ -104,28 +100,27 @@ proxy_send_local_response(uint32_t response_code, const char *response_code_deta const char *additional_response_header_pairs_ptr, size_t additional_response_header_pairs_size, uint32_t grpc_status) { return wordToWasmResult(exports::send_local_response( - current_context_, WS(response_code), WR(response_code_details_ptr), - WS(response_code_details_size), WR(body_ptr), WS(body_size), - WR(additional_response_header_pairs_ptr), WS(additional_response_header_pairs_size), - WS(grpc_status))); + WS(response_code), WR(response_code_details_ptr), WS(response_code_details_size), + WR(body_ptr), WS(body_size), WR(additional_response_header_pairs_ptr), + WS(additional_response_header_pairs_size), WS(grpc_status))); } inline WasmResult proxy_clear_route_cache() { - return wordToWasmResult(exports::clear_route_cache(current_context_)); + return wordToWasmResult(exports::clear_route_cache()); } // SharedData inline WasmResult proxy_get_shared_data(const char *key_ptr, size_t key_size, const char **value_ptr, size_t *value_size, uint32_t *cas) { - return wordToWasmResult(exports::get_shared_data(current_context_, WR(key_ptr), WS(key_size), - WR(value_ptr), WR(value_size), WR(cas))); + return wordToWasmResult( + exports::get_shared_data(WR(key_ptr), WS(key_size), WR(value_ptr), WR(value_size), WR(cas))); } // If cas != 0 and cas != the current cas for 'key' return false, otherwise set the value and // return true. inline WasmResult proxy_set_shared_data(const char *key_ptr, size_t key_size, const char *value_ptr, size_t value_size, uint64_t cas) { - return wordToWasmResult(exports::set_shared_data(current_context_, WR(key_ptr), WS(key_size), - WR(value_ptr), WS(value_size), WS(cas))); + return wordToWasmResult( + exports::set_shared_data(WR(key_ptr), WS(key_size), WR(value_ptr), WS(value_size), WS(cas))); } // SharedQueue @@ -134,84 +129,77 @@ inline WasmResult proxy_set_shared_data(const char *key_ptr, size_t key_size, co // proxy_dequeue_shared_queue. Returns unique token for the queue. inline WasmResult proxy_register_shared_queue(const char *queue_name_ptr, size_t queue_name_size, uint32_t *token) { - return wordToWasmResult(exports::register_shared_queue(current_context_, WR(queue_name_ptr), - WS(queue_name_size), WR(token))); + return wordToWasmResult( + exports::register_shared_queue(WR(queue_name_ptr), WS(queue_name_size), WR(token))); } // Returns unique token for the queue. inline WasmResult proxy_resolve_shared_queue(const char *vm_id_ptr, size_t vm_id_size, const char *queue_name_ptr, size_t queue_name_size, uint32_t *token) { - return wordToWasmResult(exports::resolve_shared_queue(current_context_, WR(vm_id_ptr), - WS(vm_id_size), WR(queue_name_ptr), - WS(queue_name_size), WR(token))); + return wordToWasmResult(exports::resolve_shared_queue( + WR(vm_id_ptr), WS(vm_id_size), WR(queue_name_ptr), WS(queue_name_size), WR(token))); } // Returns true on end-of-stream (no more data available). inline WasmResult proxy_dequeue_shared_queue(uint32_t token, const char **data_ptr, size_t *data_size) { - return wordToWasmResult( - exports::dequeue_shared_queue(current_context_, WS(token), WR(data_ptr), WR(data_size))); + return wordToWasmResult(exports::dequeue_shared_queue(WS(token), WR(data_ptr), WR(data_size))); } // Returns false if the queue was not found and the data was not enqueued. inline WasmResult proxy_enqueue_shared_queue(uint32_t token, const char *data_ptr, size_t data_size) { - return wordToWasmResult( - exports::enqueue_shared_queue(current_context_, WS(token), WR(data_ptr), WS(data_size))); + return wordToWasmResult(exports::enqueue_shared_queue(WS(token), WR(data_ptr), WS(data_size))); } // Buffer inline WasmResult proxy_get_buffer_bytes(WasmBufferType type, uint64_t start, uint64_t length, const char **ptr, size_t *size) { - return wordToWasmResult(exports::get_buffer_bytes(current_context_, WS(type), WS(start), - WS(length), WR(ptr), WR(size))); + return wordToWasmResult( + exports::get_buffer_bytes(WS(type), WS(start), WS(length), WR(ptr), WR(size))); } inline WasmResult proxy_get_buffer_status(WasmBufferType type, size_t *length_ptr, uint32_t *flags_ptr) { - return wordToWasmResult( - exports::get_buffer_status(current_context_, WS(type), WR(length_ptr), WR(flags_ptr))); + return wordToWasmResult(exports::get_buffer_status(WS(type), WR(length_ptr), WR(flags_ptr))); } inline WasmResult proxy_set_buffer_bytes(WasmBufferType type, uint64_t start, uint64_t length, const char *data, size_t size) { - return wordToWasmResult(exports::set_buffer_bytes(current_context_, WS(type), WS(start), - WS(length), WR(data), WS(size))); + return wordToWasmResult( + exports::set_buffer_bytes(WS(type), WS(start), WS(length), WR(data), WS(size))); } // Headers/Trailers/Metadata Maps inline WasmResult proxy_add_header_map_value(WasmHeaderMapType type, const char *key_ptr, size_t key_size, const char *value_ptr, size_t value_size) { - return wordToWasmResult(exports::add_header_map_value( - current_context_, WS(type), WR(key_ptr), WS(key_size), WR(value_ptr), WS(value_size))); + return wordToWasmResult(exports::add_header_map_value(WS(type), WR(key_ptr), WS(key_size), + WR(value_ptr), WS(value_size))); } inline WasmResult proxy_get_header_map_value(WasmHeaderMapType type, const char *key_ptr, size_t key_size, const char **value_ptr, size_t *value_size) { - return wordToWasmResult(exports::get_header_map_value( - current_context_, WS(type), WR(key_ptr), WS(key_size), WR(value_ptr), WR(value_size))); + return wordToWasmResult(exports::get_header_map_value(WS(type), WR(key_ptr), WS(key_size), + WR(value_ptr), WR(value_size))); } inline WasmResult proxy_get_header_map_pairs(WasmHeaderMapType type, const char **ptr, size_t *size) { - return wordToWasmResult( - exports::get_header_map_pairs(current_context_, WS(type), WR(ptr), WR(size))); + return wordToWasmResult(exports::get_header_map_pairs(WS(type), WR(ptr), WR(size))); } inline WasmResult proxy_set_header_map_pairs(WasmHeaderMapType type, const char *ptr, size_t size) { - return wordToWasmResult( - exports::set_header_map_pairs(current_context_, WS(type), WR(ptr), WS(size))); + return wordToWasmResult(exports::set_header_map_pairs(WS(type), WR(ptr), WS(size))); } inline WasmResult proxy_replace_header_map_value(WasmHeaderMapType type, const char *key_ptr, size_t key_size, const char *value_ptr, size_t value_size) { - return wordToWasmResult(exports::replace_header_map_value( - current_context_, WS(type), WR(key_ptr), WS(key_size), WR(value_ptr), WS(value_size))); + return wordToWasmResult(exports::replace_header_map_value(WS(type), WR(key_ptr), WS(key_size), + WR(value_ptr), WS(value_size))); } inline WasmResult proxy_remove_header_map_value(WasmHeaderMapType type, const char *key_ptr, size_t key_size) { - return wordToWasmResult( - exports::remove_header_map_value(current_context_, WS(type), WR(key_ptr), WS(key_size))); + return wordToWasmResult(exports::remove_header_map_value(WS(type), WR(key_ptr), WS(key_size))); } inline WasmResult proxy_get_header_map_size(WasmHeaderMapType type, size_t *size) { - return wordToWasmResult(exports::get_header_map_size(current_context_, WS(type), WR(size))); + return wordToWasmResult(exports::get_header_map_size(WS(type), WR(size))); } // HTTP @@ -220,10 +208,10 @@ inline WasmResult proxy_http_call(const char *uri_ptr, size_t uri_size, void *he size_t header_pairs_size, const char *body_ptr, size_t body_size, void *trailer_pairs_ptr, size_t trailer_pairs_size, uint64_t timeout_milliseconds, uint32_t *token_ptr) { - return wordToWasmResult( - exports::http_call(current_context_, WR(uri_ptr), WS(uri_size), WR(header_pairs_ptr), - WS(header_pairs_size), WR(body_ptr), WS(body_size), WR(trailer_pairs_ptr), - WS(trailer_pairs_size), WS(timeout_milliseconds), WR(token_ptr))); + return wordToWasmResult(exports::http_call(WR(uri_ptr), WS(uri_size), WR(header_pairs_ptr), + WS(header_pairs_size), WR(body_ptr), WS(body_size), + WR(trailer_pairs_ptr), WS(trailer_pairs_size), + WS(timeout_milliseconds), WR(token_ptr))); } // gRPC // Returns token, used in gRPC callbacks (onGrpc...) @@ -234,7 +222,7 @@ inline WasmResult proxy_grpc_call(const char *service_ptr, size_t service_size, const char *request_ptr, size_t request_size, uint64_t timeout_milliseconds, uint32_t *token_ptr) { return wordToWasmResult( - exports::grpc_call(current_context_, WR(service_ptr), WS(service_size), WR(service_name_ptr), + exports::grpc_call(WR(service_ptr), WS(service_size), WR(service_name_ptr), WS(service_name_size), WR(method_name_ptr), WS(method_name_size), WR(initial_metadata_ptr), WS(initial_metadata_size), WR(request_ptr), WS(request_size), WS(timeout_milliseconds), WR(token_ptr))); @@ -244,52 +232,52 @@ inline WasmResult proxy_grpc_stream(const char *service_ptr, size_t service_size const char *method_name_ptr, size_t method_name_size, void *initial_metadata_ptr, size_t initial_metadata_size, uint32_t *token_ptr) { - return wordToWasmResult(exports::grpc_stream( - current_context_, WR(service_ptr), WS(service_size), WR(service_name_ptr), - WS(service_name_size), WR(method_name_ptr), WS(method_name_size), WR(initial_metadata_ptr), - WS(initial_metadata_size), WR(token_ptr))); + return wordToWasmResult( + exports::grpc_stream(WR(service_ptr), WS(service_size), WR(service_name_ptr), + WS(service_name_size), WR(method_name_ptr), WS(method_name_size), + WR(initial_metadata_ptr), WS(initial_metadata_size), WR(token_ptr))); } inline WasmResult proxy_grpc_cancel(uint64_t token) { - return wordToWasmResult(exports::grpc_cancel(current_context_, WS(token))); + return wordToWasmResult(exports::grpc_cancel(WS(token))); } inline WasmResult proxy_grpc_close(uint64_t token) { - return wordToWasmResult(exports::grpc_close(current_context_, WS(token))); + return wordToWasmResult(exports::grpc_close(WS(token))); } inline WasmResult proxy_grpc_send(uint64_t token, const char *message_ptr, size_t message_size, uint64_t end_stream) { - return wordToWasmResult(exports::grpc_send(current_context_, WS(token), WR(message_ptr), - WS(message_size), WS(end_stream))); + return wordToWasmResult( + exports::grpc_send(WS(token), WR(message_ptr), WS(message_size), WS(end_stream))); } // Metrics // Returns a metric_id which can be used to report a metric. On error returns 0. inline WasmResult proxy_define_metric(MetricType type, const char *name_ptr, size_t name_size, uint32_t *metric_id) { - return wordToWasmResult(exports::define_metric(current_context_, WS(type), WR(name_ptr), - WS(name_size), WR(metric_id))); + return wordToWasmResult( + exports::define_metric(WS(type), WR(name_ptr), WS(name_size), WR(metric_id))); } inline WasmResult proxy_increment_metric(uint32_t metric_id, int64_t offset) { - return wordToWasmResult(exports::increment_metric(current_context_, WS(metric_id), offset)); + return wordToWasmResult(exports::increment_metric(WS(metric_id), offset)); } inline WasmResult proxy_record_metric(uint32_t metric_id, uint64_t value) { - return wordToWasmResult(exports::record_metric(current_context_, WS(metric_id), value)); + return wordToWasmResult(exports::record_metric(WS(metric_id), value)); } inline WasmResult proxy_get_metric(uint32_t metric_id, uint64_t *value) { - return wordToWasmResult(exports::get_metric(current_context_, WS(metric_id), WR(value))); + return wordToWasmResult(exports::get_metric(WS(metric_id), WR(value))); } // System inline WasmResult proxy_set_effective_context(uint64_t context_id) { - return wordToWasmResult(exports::set_effective_context(current_context_, WS(context_id))); + return wordToWasmResult(exports::set_effective_context(WS(context_id))); } -inline WasmResult proxy_done() { return wordToWasmResult(exports::done(current_context_)); } +inline WasmResult proxy_done() { return wordToWasmResult(exports::done()); } inline WasmResult proxy_call_foreign_function(const char *function_name, size_t function_name_size, const char *arguments, size_t arguments_size, char **results, size_t *results_size) { - return wordToWasmResult(exports::call_foreign_function( - current_context_, WR(function_name), WS(function_name_size), WR(arguments), - WS(arguments_size), WR(results), WR(results_size))); + return wordToWasmResult(exports::call_foreign_function(WR(function_name), WS(function_name_size), + WR(arguments), WS(arguments_size), + WR(results), WR(results_size))); } #undef WS diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 7c484fe61..5eab90592 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -29,37 +29,42 @@ namespace proxy_wasm { class ContextBase; -// These are templates and its helper for constructing signatures of functions calling into and out -// of WASM VMs. -// - WasmFuncTypeHelper is a helper for WasmFuncType and shouldn't be used anywhere else than +// These are templates and its helper for constructing signatures of functions calling into Wasm +// VMs. +// - WasmCallInFuncTypeHelper is a helper for WasmFuncType and shouldn't be used anywhere else than // WasmFuncType definition. -// - WasmFuncType takes 4 template parameter which are number of argument, return type, context type -// and param type respectively, resolve to a function type. +// - WasmCallInFuncType takes 4 template parameter which are number of argument, return type, +// context type and param type respectively, resolve to a function type. // For example `WasmFuncType<3, void, Context*, Word>` resolves to `void(Context*, Word, Word, // Word)` template -struct WasmFuncTypeHelper {}; +struct WasmCallInFuncTypeHelper {}; template -struct WasmFuncTypeHelper { +struct WasmCallInFuncTypeHelper { // NOLINTNEXTLINE(readability-identifier-naming) - using type = typename WasmFuncTypeHelper::type; + using type = typename WasmCallInFuncTypeHelper::type; }; template -struct WasmFuncTypeHelper<0, ReturnType, ContextType, ParamType, ReturnType(ContextType, Args...)> { +struct WasmCallInFuncTypeHelper<0, ReturnType, ContextType, ParamType, + ReturnType(ContextType, Args...)> { using type = ReturnType(ContextType, Args...); // NOLINT(readability-identifier-naming) }; template -using WasmFuncType = typename WasmFuncTypeHelper::type; +using WasmCallInFuncType = + typename WasmCallInFuncTypeHelper::type; // Calls into the WASM VM. // 1st arg is always a pointer to Context (Context*). -template using WasmCallVoid = std::function>; -template using WasmCallWord = std::function>; +template +using WasmCallVoid = std::function>; +template +using WasmCallWord = std::function>; #define FOR_ALL_WASM_VM_EXPORTS(_f) \ _f(proxy_wasm::WasmCallVoid<0>) _f(proxy_wasm::WasmCallVoid<1>) _f(proxy_wasm::WasmCallVoid<2>) \ @@ -67,20 +72,44 @@ template using WasmCallWord = std::function) _f(proxy_wasm::WasmCallWord<2>) \ _f(proxy_wasm::WasmCallWord<3>) +// These are templates and its helper for constructing signatures of functions callbacks from Wasm +// VMs. +// - WasmCallbackFuncTypeHelper is a helper for WasmFuncType and shouldn't be used anywhere else +// than WasmFuncType definition. +// - WasmCallbackFuncType takes 3 template parameter which are number of argument, return type, and +// param type respectively, resolve to a function type. +// For example `WasmFuncType<3, Word>` resolves to `void(Word, Word, Word)` +template +struct WasmCallbackFuncTypeHelper {}; + +template +struct WasmCallbackFuncTypeHelper { + // NOLINTNEXTLINE(readability-identifier-naming) + using type = typename WasmCallbackFuncTypeHelper::type; +}; + +template +struct WasmCallbackFuncTypeHelper<0, ReturnType, ParamType, ReturnType(Args...)> { + using type = ReturnType(Args...); // NOLINT(readability-identifier-naming) +}; + +template +using WasmCallbackFuncType = typename WasmCallbackFuncTypeHelper::type; + // Calls out of the WASM VM. -// 1st arg is always a pointer to raw_context (void*). -template using WasmCallbackVoid = WasmFuncType *; -template using WasmCallbackWord = WasmFuncType *; +template using WasmCallbackVoid = WasmCallbackFuncType *; +template using WasmCallbackWord = WasmCallbackFuncType *; // Using the standard g++/clang mangling algorithm: // https://itanium-cxx-abi.github.io/cxx-abi/abi.html#mangling-builtin // Extended with W = Word // Z = void, j = uint32_t, l = int64_t, m = uint64_t -using WasmCallback_WWl = Word (*)(void *, Word, int64_t); -using WasmCallback_WWlWW = Word (*)(void *, Word, int64_t, Word, Word); -using WasmCallback_WWm = Word (*)(void *, Word, uint64_t); -using WasmCallback_WWmW = Word (*)(void *, Word, uint64_t, Word); -using WasmCallback_dd = double (*)(void *, double); +using WasmCallback_WWl = Word (*)(Word, int64_t); +using WasmCallback_WWlWW = Word (*)(Word, int64_t, Word, Word); +using WasmCallback_WWm = Word (*)(Word, uint64_t); +using WasmCallback_WWmW = Word (*)(Word, uint64_t, Word); +using WasmCallback_dd = double (*)(double); #define FOR_ALL_WASM_VM_IMPORTS(_f) \ _f(proxy_wasm::WasmCallbackVoid<0>) _f(proxy_wasm::WasmCallbackVoid<1>) \ diff --git a/src/exports.cc b/src/exports.cc index 9a2d9a03a..0922b2df5 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -17,28 +17,26 @@ #include -#define WASM_CONTEXT(_c) \ - (ContextOrEffectiveContext(static_cast((void)_c, current_context_))) - namespace proxy_wasm { -// The id of the context which should be used for calls out of the VM in place -// of current_context_. -extern thread_local uint32_t effective_context_id_; - -namespace exports { - -ContextBase *ContextOrEffectiveContext(ContextBase *context) { +// Any currently executing Wasm call context. +ContextBase *contextOrEffectiveContext() { if (effective_context_id_ == 0) { - return context; + return current_context_; } - auto effective_context = context->wasm()->getContext(effective_context_id_); + auto effective_context = current_context_->wasm()->getContext(effective_context_id_); if (effective_context) { return effective_context; } // The effective_context_id_ no longer exists, revert to the true context. - return context; -} + return current_context_; +}; + +// The id of the context which should be used for calls out of the VM in place +// of current_context_. +extern thread_local uint32_t effective_context_id_; + +namespace exports { namespace { @@ -91,8 +89,8 @@ bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint6 // General ABI. -Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, Word value_size) { - auto context = WASM_CONTEXT(raw_context); +Word set_property(Word key_ptr, Word key_size, Word value_ptr, Word value_size) { + auto context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -102,9 +100,8 @@ Word set_property(void *raw_context, Word key_ptr, Word key_size, Word value_ptr } // Generic selector -Word get_property(void *raw_context, Word path_ptr, Word path_size, Word value_ptr_ptr, - Word value_size_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word get_property(Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_size_ptr) { + auto context = contextOrEffectiveContext(); auto path = context->wasmVm()->getMemory(path_ptr, path_size); if (!path.has_value()) { return WasmResult::InvalidMemoryAccess; @@ -120,8 +117,8 @@ Word get_property(void *raw_context, Word path_ptr, Word path_size, Word value_p return WasmResult::Ok; } -Word get_configuration(void *raw_context, Word value_ptr_ptr, Word value_size_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word get_configuration(Word value_ptr_ptr, Word value_size_ptr) { + auto context = contextOrEffectiveContext(); auto value = context->getConfiguration(); if (!context->wasm()->copyToPointerSize(value, value_ptr_ptr, value_size_ptr)) { return WasmResult::InvalidMemoryAccess; @@ -129,8 +126,8 @@ Word get_configuration(void *raw_context, Word value_ptr_ptr, Word value_size_pt return WasmResult::Ok; } -Word get_status(void *raw_context, Word code_ptr, Word value_ptr_ptr, Word value_size_ptr) { - auto context = WASM_CONTEXT(raw_context)->root_context(); +Word get_status(Word code_ptr, Word value_ptr_ptr, Word value_size_ptr) { + auto context = contextOrEffectiveContext()->root_context(); auto status = context->getStatus(); if (!context->wasm()->setDatatype(code_ptr, status.first)) { return WasmResult::InvalidMemoryAccess; @@ -144,37 +141,37 @@ Word get_status(void *raw_context, Word code_ptr, Word value_ptr_ptr, Word value // HTTP // Continue/Reply/Route -Word continue_request(void *raw_context) { - auto context = WASM_CONTEXT(raw_context); +Word continue_request() { + auto context = contextOrEffectiveContext(); return context->continueStream(WasmStreamType::Request); } -Word continue_response(void *raw_context) { - auto context = WASM_CONTEXT(raw_context); +Word continue_response() { + auto context = contextOrEffectiveContext(); return context->continueStream(WasmStreamType::Response); } -Word continue_stream(void *raw_context, Word type) { - auto context = WASM_CONTEXT(raw_context); +Word continue_stream(Word type) { + auto context = contextOrEffectiveContext(); if (type > static_cast(WasmStreamType::MAX)) { return WasmResult::BadArgument; } return context->continueStream(static_cast(type.u64_)); } -Word close_stream(void *raw_context, Word type) { - auto context = WASM_CONTEXT(raw_context); +Word close_stream(Word type) { + auto context = contextOrEffectiveContext(); if (type > static_cast(WasmStreamType::MAX)) { return WasmResult::BadArgument; } return context->closeStream(static_cast(type.u64_)); } -Word send_local_response(void *raw_context, Word response_code, Word response_code_details_ptr, +Word send_local_response(Word response_code, Word response_code_details_ptr, Word response_code_details_size, Word body_ptr, Word body_size, Word additional_response_header_pairs_ptr, Word additional_response_header_pairs_size, Word grpc_code) { - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto details = context->wasmVm()->getMemory(response_code_details_ptr, response_code_details_size); auto body = context->wasmVm()->getMemory(body_ptr, body_size); @@ -190,14 +187,14 @@ Word send_local_response(void *raw_context, Word response_code, Word response_co return WasmResult::Ok; } -Word clear_route_cache(void *raw_context) { - auto context = WASM_CONTEXT(raw_context); +Word clear_route_cache() { + auto context = contextOrEffectiveContext(); context->clearRouteCache(); return WasmResult::Ok; } -Word set_effective_context(void *raw_context, Word context_id) { - auto context = WASM_CONTEXT(raw_context); +Word set_effective_context(Word context_id) { + auto context = contextOrEffectiveContext(); uint32_t cid = static_cast(context_id); auto c = context->wasm()->getContext(cid); if (!c) { @@ -207,14 +204,14 @@ Word set_effective_context(void *raw_context, Word context_id) { return WasmResult::Ok; } -Word done(void *raw_context) { - auto context = WASM_CONTEXT(raw_context); +Word done() { + auto context = contextOrEffectiveContext(); return context->wasm()->done(context); } -Word call_foreign_function(void *raw_context, Word function_name, Word function_name_size, - Word arguments, Word arguments_size, Word results, Word results_size) { - auto context = WASM_CONTEXT(raw_context); +Word call_foreign_function(Word function_name, Word function_name_size, Word arguments, + Word arguments_size, Word results, Word results_size) { + auto context = contextOrEffectiveContext(); auto function = context->wasmVm()->getMemory(function_name, function_name_size); if (!function) { return WasmResult::InvalidMemoryAccess; @@ -255,9 +252,9 @@ Word call_foreign_function(void *raw_context, Word function_name, Word function_ } // SharedData -Word get_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ptr_ptr, - Word value_size_ptr, Word cas_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word get_shared_data(Word key_ptr, Word key_size, Word value_ptr_ptr, Word value_size_ptr, + Word cas_ptr) { + auto context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); if (!key) { return WasmResult::InvalidMemoryAccess; @@ -276,9 +273,8 @@ Word get_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ return WasmResult::Ok; } -Word set_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ptr, - Word value_size, Word cas) { - auto context = WASM_CONTEXT(raw_context); +Word set_shared_data(Word key_ptr, Word key_size, Word value_ptr, Word value_size, Word cas) { + auto context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -287,9 +283,8 @@ Word set_shared_data(void *raw_context, Word key_ptr, Word key_size, Word value_ return context->setSharedData(key.value(), value.value(), cas); } -Word register_shared_queue(void *raw_context, Word queue_name_ptr, Word queue_name_size, - Word token_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word register_shared_queue(Word queue_name_ptr, Word queue_name_size, Word token_ptr) { + auto context = contextOrEffectiveContext(); auto queue_name = context->wasmVm()->getMemory(queue_name_ptr, queue_name_size); if (!queue_name) { return WasmResult::InvalidMemoryAccess; @@ -305,8 +300,8 @@ Word register_shared_queue(void *raw_context, Word queue_name_ptr, Word queue_na return WasmResult::Ok; } -Word dequeue_shared_queue(void *raw_context, Word token, Word data_ptr_ptr, Word data_size_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word dequeue_shared_queue(Word token, Word data_ptr_ptr, Word data_size_ptr) { + auto context = contextOrEffectiveContext(); std::string data; WasmResult result = context->dequeueSharedQueue(token.u32(), &data); if (result != WasmResult::Ok) { @@ -318,9 +313,9 @@ Word dequeue_shared_queue(void *raw_context, Word token, Word data_ptr_ptr, Word return WasmResult::Ok; } -Word resolve_shared_queue(void *raw_context, Word vm_id_ptr, Word vm_id_size, Word queue_name_ptr, +Word resolve_shared_queue(Word vm_id_ptr, Word vm_id_size, Word queue_name_ptr, Word queue_name_size, Word token_ptr) { - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto vm_id = context->wasmVm()->getMemory(vm_id_ptr, vm_id_size); auto queue_name = context->wasmVm()->getMemory(queue_name_ptr, queue_name_size); if (!vm_id || !queue_name) { @@ -337,8 +332,8 @@ Word resolve_shared_queue(void *raw_context, Word vm_id_ptr, Word vm_id_size, Wo return WasmResult::Ok; } -Word enqueue_shared_queue(void *raw_context, Word token, Word data_ptr, Word data_size) { - auto context = WASM_CONTEXT(raw_context); +Word enqueue_shared_queue(Word token, Word data_ptr, Word data_size) { + auto context = contextOrEffectiveContext(); auto data = context->wasmVm()->getMemory(data_ptr, data_size); if (!data) { return WasmResult::InvalidMemoryAccess; @@ -347,12 +342,11 @@ Word enqueue_shared_queue(void *raw_context, Word token, Word data_ptr, Word dat } // Header/Trailer/Metadata Maps -Word add_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size, Word value_ptr, - Word value_size) { +Word add_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr, Word value_size) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -362,12 +356,12 @@ Word add_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_s value.value()); } -Word get_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size, - Word value_ptr_ptr, Word value_size_ptr) { +Word get_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr_ptr, + Word value_size_ptr) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); if (!key) { return WasmResult::InvalidMemoryAccess; @@ -384,12 +378,12 @@ Word get_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_s return WasmResult::Ok; } -Word replace_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size, - Word value_ptr, Word value_size) { +Word replace_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr, + Word value_size) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -399,11 +393,11 @@ Word replace_header_map_value(void *raw_context, Word type, Word key_ptr, Word k value.value()); } -Word remove_header_map_value(void *raw_context, Word type, Word key_ptr, Word key_size) { +Word remove_header_map_value(Word type, Word key_ptr, Word key_size) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); if (!key) { return WasmResult::InvalidMemoryAccess; @@ -411,11 +405,11 @@ Word remove_header_map_value(void *raw_context, Word type, Word key_ptr, Word ke return context->removeHeaderMapValue(static_cast(type.u64_), key.value()); } -Word get_header_map_pairs(void *raw_context, Word type, Word ptr_ptr, Word size_ptr) { +Word get_header_map_pairs(Word type, Word ptr_ptr, Word size_ptr) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); Pairs pairs; auto result = context->getHeaderMapPairs(static_cast(type.u64_), &pairs); if (result != WasmResult::Ok) { @@ -427,11 +421,11 @@ Word get_header_map_pairs(void *raw_context, Word type, Word ptr_ptr, Word size_ return WasmResult::Ok; } -Word set_header_map_pairs(void *raw_context, Word type, Word ptr, Word size) { +Word set_header_map_pairs(Word type, Word ptr, Word size) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto data = context->wasmVm()->getMemory(ptr, size); if (!data) { return WasmResult::InvalidMemoryAccess; @@ -440,11 +434,11 @@ Word set_header_map_pairs(void *raw_context, Word type, Word ptr, Word size) { toPairs(data.value())); } -Word get_header_map_size(void *raw_context, Word type, Word result_ptr) { +Word get_header_map_size(Word type, Word result_ptr) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); uint32_t size; auto result = context->getHeaderMapSize(static_cast(type.u64_), &size); if (result != WasmResult::Ok) { @@ -457,12 +451,11 @@ Word get_header_map_size(void *raw_context, Word type, Word result_ptr) { } // Buffer -Word get_buffer_bytes(void *raw_context, Word type, Word start, Word length, Word ptr_ptr, - Word size_ptr) { +Word get_buffer_bytes(Word type, Word start, Word length, Word ptr_ptr, Word size_ptr) { if (type > static_cast(WasmBufferType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto buffer = context->getBuffer(static_cast(type.u64_)); if (!buffer) { return WasmResult::NotFound; @@ -481,11 +474,11 @@ Word get_buffer_bytes(void *raw_context, Word type, Word start, Word length, Wor return WasmResult::Ok; } -Word get_buffer_status(void *raw_context, Word type, Word length_ptr, Word flags_ptr) { +Word get_buffer_status(Word type, Word length_ptr, Word flags_ptr) { if (type > static_cast(WasmBufferType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto buffer = context->getBuffer(static_cast(type.u64_)); if (!buffer) { return WasmResult::NotFound; @@ -501,12 +494,11 @@ Word get_buffer_status(void *raw_context, Word type, Word length_ptr, Word flags return WasmResult::Ok; } -Word set_buffer_bytes(void *raw_context, Word type, Word start, Word length, Word data_ptr, - Word data_size) { +Word set_buffer_bytes(Word type, Word start, Word length, Word data_ptr, Word data_size) { if (type > static_cast(WasmBufferType::MAX)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto buffer = context->getBuffer(static_cast(type.u64_)); if (!buffer) { return WasmResult::NotFound; @@ -518,10 +510,10 @@ Word set_buffer_bytes(void *raw_context, Word type, Word start, Word length, Wor return buffer->copyFrom(start, length, data.value()); } -Word http_call(void *raw_context, Word uri_ptr, Word uri_size, Word header_pairs_ptr, - Word header_pairs_size, Word body_ptr, Word body_size, Word trailer_pairs_ptr, - Word trailer_pairs_size, Word timeout_milliseconds, Word token_ptr) { - auto context = WASM_CONTEXT(raw_context)->root_context(); +Word http_call(Word uri_ptr, Word uri_size, Word header_pairs_ptr, Word header_pairs_size, + Word body_ptr, Word body_size, Word trailer_pairs_ptr, Word trailer_pairs_size, + Word timeout_milliseconds, Word token_ptr) { + auto context = contextOrEffectiveContext()->root_context(); auto uri = context->wasmVm()->getMemory(uri_ptr, uri_size); auto body = context->wasmVm()->getMemory(body_ptr, body_size); auto header_pairs = context->wasmVm()->getMemory(header_pairs_ptr, header_pairs_size); @@ -543,9 +535,8 @@ Word http_call(void *raw_context, Word uri_ptr, Word uri_size, Word header_pairs return result; } -Word define_metric(void *raw_context, Word metric_type, Word name_ptr, Word name_size, - Word metric_id_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word define_metric(Word metric_type, Word name_ptr, Word name_size, Word metric_id_ptr) { + auto context = contextOrEffectiveContext(); auto name = context->wasmVm()->getMemory(name_ptr, name_size); if (!name) { return WasmResult::InvalidMemoryAccess; @@ -562,18 +553,18 @@ Word define_metric(void *raw_context, Word metric_type, Word name_ptr, Word name return WasmResult::Ok; } -Word increment_metric(void *raw_context, Word metric_id, int64_t offset) { - auto context = WASM_CONTEXT(raw_context); +Word increment_metric(Word metric_id, int64_t offset) { + auto context = contextOrEffectiveContext(); return context->incrementMetric(metric_id, offset); } -Word record_metric(void *raw_context, Word metric_id, uint64_t value) { - auto context = WASM_CONTEXT(raw_context); +Word record_metric(Word metric_id, uint64_t value) { + auto context = contextOrEffectiveContext(); return context->recordMetric(metric_id, value); } -Word get_metric(void *raw_context, Word metric_id, Word result_uint64_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word get_metric(Word metric_id, Word result_uint64_ptr) { + auto context = contextOrEffectiveContext(); uint64_t value = 0; auto result = context->getMetric(metric_id, &value); if (result != WasmResult::Ok) { @@ -585,11 +576,11 @@ Word get_metric(void *raw_context, Word metric_id, Word result_uint64_ptr) { return WasmResult::Ok; } -Word grpc_call(void *raw_context, Word service_ptr, Word service_size, Word service_name_ptr, - Word service_name_size, Word method_name_ptr, Word method_name_size, - Word initial_metadata_ptr, Word initial_metadata_size, Word request_ptr, - Word request_size, Word timeout_milliseconds, Word token_ptr) { - auto context = WASM_CONTEXT(raw_context)->root_context(); +Word grpc_call(Word service_ptr, Word service_size, Word service_name_ptr, Word service_name_size, + Word method_name_ptr, Word method_name_size, Word initial_metadata_ptr, + Word initial_metadata_size, Word request_ptr, Word request_size, + Word timeout_milliseconds, Word token_ptr) { + auto context = contextOrEffectiveContext()->root_context(); auto service = context->wasmVm()->getMemory(service_ptr, service_size); auto service_name = context->wasmVm()->getMemory(service_name_ptr, service_name_size); auto method_name = context->wasmVm()->getMemory(method_name_ptr, method_name_size); @@ -613,10 +604,10 @@ Word grpc_call(void *raw_context, Word service_ptr, Word service_size, Word serv return WasmResult::Ok; } -Word grpc_stream(void *raw_context, Word service_ptr, Word service_size, Word service_name_ptr, - Word service_name_size, Word method_name_ptr, Word method_name_size, - Word initial_metadata_ptr, Word initial_metadata_size, Word token_ptr) { - auto context = WASM_CONTEXT(raw_context)->root_context(); +Word grpc_stream(Word service_ptr, Word service_size, Word service_name_ptr, Word service_name_size, + Word method_name_ptr, Word method_name_size, Word initial_metadata_ptr, + Word initial_metadata_size, Word token_ptr) { + auto context = contextOrEffectiveContext()->root_context(); auto service = context->wasmVm()->getMemory(service_ptr, service_size); auto service_name = context->wasmVm()->getMemory(service_name_ptr, service_name_size); auto method_name = context->wasmVm()->getMemory(method_name_ptr, method_name_size); @@ -638,19 +629,18 @@ Word grpc_stream(void *raw_context, Word service_ptr, Word service_size, Word se return WasmResult::Ok; } -Word grpc_cancel(void *raw_context, Word token) { - auto context = WASM_CONTEXT(raw_context)->root_context(); +Word grpc_cancel(Word token) { + auto context = contextOrEffectiveContext()->root_context(); return context->grpcCancel(token); } -Word grpc_close(void *raw_context, Word token) { - auto context = WASM_CONTEXT(raw_context)->root_context(); +Word grpc_close(Word token) { + auto context = contextOrEffectiveContext()->root_context(); return context->grpcClose(token); } -Word grpc_send(void *raw_context, Word token, Word message_ptr, Word message_size, - Word end_stream) { - auto context = WASM_CONTEXT(raw_context)->root_context(); +Word grpc_send(Word token, Word message_ptr, Word message_size, Word end_stream) { + auto context = contextOrEffectiveContext()->root_context(); auto message = context->wasmVm()->getMemory(message_ptr, message_size); if (!message) { return WasmResult::InvalidMemoryAccess; @@ -660,8 +650,8 @@ Word grpc_send(void *raw_context, Word token, Word message_ptr, Word message_siz // Implementation of writev-like() syscall that redirects stdout/stderr to Envoy // logs. -Word writevImpl(void *raw_context, Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { + auto context = contextOrEffectiveContext(); // Read syscall args. uint64_t log_level; @@ -709,12 +699,11 @@ Word writevImpl(void *raw_context, Word fd, Word iovs, Word iovs_len, Word *nwri // __wasi_errno_t __wasi_fd_write(_wasi_fd_t fd, const _wasi_ciovec_t *iov, // size_t iovs_len, size_t* nwritten); -Word wasi_unstable_fd_write(void *raw_context, Word fd, Word iovs, Word iovs_len, - Word nwritten_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word wasi_unstable_fd_write(Word fd, Word iovs, Word iovs_len, Word nwritten_ptr) { + auto context = contextOrEffectiveContext(); Word nwritten(0); - auto result = writevImpl(raw_context, fd, iovs, iovs_len, &nwritten); + auto result = writevImpl(fd, iovs, iovs_len, &nwritten); if (result != 0) { // __WASI_ESUCCESS return result; } @@ -726,28 +715,28 @@ Word wasi_unstable_fd_write(void *raw_context, Word fd, Word iovs, Word iovs_len // __wasi_errno_t __wasi_fd_read(_wasi_fd_t fd, const __wasi_iovec_t *iovs, // size_t iovs_len, __wasi_size_t *nread); -Word wasi_unstable_fd_read(void *, Word, Word, Word, Word) { +Word wasi_unstable_fd_read(Word, Word, Word, Word) { // Don't support reading of any files. return 52; // __WASI_ERRNO_ENOSYS } // __wasi_errno_t __wasi_fd_seek(__wasi_fd_t fd, __wasi_filedelta_t offset, // __wasi_whence_t whence,__wasi_filesize_t *newoffset); -Word wasi_unstable_fd_seek(void *raw_context, Word, int64_t, Word, Word) { - auto context = WASM_CONTEXT(raw_context); +Word wasi_unstable_fd_seek(Word, int64_t, Word, Word) { + auto context = contextOrEffectiveContext(); context->error("wasi_unstable fd_seek"); return 0; } // __wasi_errno_t __wasi_fd_close(__wasi_fd_t fd); -Word wasi_unstable_fd_close(void *raw_context, Word) { - auto context = WASM_CONTEXT(raw_context); +Word wasi_unstable_fd_close(Word) { + auto context = contextOrEffectiveContext(); context->error("wasi_unstable fd_close"); return 0; } // __wasi_errno_t __wasi_fd_fdstat_get(__wasi_fd_t fd, __wasi_fdstat_t *stat) -Word wasi_unstable_fd_fdstat_get(void *raw_context, Word fd, Word statOut) { +Word wasi_unstable_fd_fdstat_get(Word fd, Word statOut) { // We will only support this interface on stdout and stderr if (fd != 1 && fd != 2) { return 8; // __WASI_EBADF; @@ -760,15 +749,15 @@ Word wasi_unstable_fd_fdstat_get(void *raw_context, Word fd, Word statOut) { wasi_fdstat[1] = 64; // This sets "fs_rights_base" to __WASI_RIGHTS_FD_WRITE wasi_fdstat[2] = 0; - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); context->wasmVm()->setMemory(statOut, 3 * sizeof(uint64_t), &wasi_fdstat); return 0; // __WASI_ESUCCESS } // __wasi_errno_t __wasi_environ_get(char **environ, char *environ_buf); -Word wasi_unstable_environ_get(void *raw_context, Word environ_array_ptr, Word environ_buf) { - auto context = WASM_CONTEXT(raw_context); +Word wasi_unstable_environ_get(Word environ_array_ptr, Word environ_buf) { + auto context = contextOrEffectiveContext(); auto word_size = context->wasmVm()->getWordSize(); auto &envs = context->wasm()->envs(); for (auto e : envs) { @@ -794,8 +783,8 @@ Word wasi_unstable_environ_get(void *raw_context, Word environ_array_ptr, Word e // __wasi_errno_t __wasi_environ_sizes_get(size_t *environ_count, size_t // *environ_buf_size); -Word wasi_unstable_environ_sizes_get(void *raw_context, Word count_ptr, Word buf_size_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word wasi_unstable_environ_sizes_get(Word count_ptr, Word buf_size_ptr) { + auto context = contextOrEffectiveContext(); auto &envs = context->wasm()->envs(); if (!context->wasmVm()->setWord(count_ptr, Word(envs.size()))) { return 21; // __WASI_EFAULT @@ -813,13 +802,13 @@ Word wasi_unstable_environ_sizes_get(void *raw_context, Word count_ptr, Word buf } // __wasi_errno_t __wasi_args_get(size_t **argv, size_t *argv_buf); -Word wasi_unstable_args_get(void *, Word, Word) { +Word wasi_unstable_args_get(Word, Word) { return 0; // __WASI_ESUCCESS } // __wasi_errno_t __wasi_args_sizes_get(size_t *argc, size_t *argv_buf_size); -Word wasi_unstable_args_sizes_get(void *raw_context, Word argc_ptr, Word argv_buf_size_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word wasi_unstable_args_sizes_get(Word argc_ptr, Word argv_buf_size_ptr) { + auto context = contextOrEffectiveContext(); if (!context->wasmVm()->setWord(argc_ptr, Word(0))) { return 21; // __WASI_EFAULT } @@ -830,11 +819,10 @@ Word wasi_unstable_args_sizes_get(void *raw_context, Word argc_ptr, Word argv_bu } // __wasi_errno_t __wasi_clock_time_get(uint32_t id, uint64_t precision, uint64_t* time); -Word wasi_unstable_clock_time_get(void *raw_context, Word clock_id, uint64_t precision, - Word result_time_uint64_ptr) { +Word wasi_unstable_clock_time_get(Word clock_id, uint64_t precision, Word result_time_uint64_ptr) { uint64_t result = 0; - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); switch (clock_id) { case 0 /* realtime */: result = context->getCurrentTimeNanoseconds(); @@ -853,8 +841,8 @@ Word wasi_unstable_clock_time_get(void *raw_context, Word clock_id, uint64_t pre } // __wasi_errno_t __wasi_random_get(uint8_t *buf, size_t buf_len); -Word wasi_unstable_random_get(void *raw_context, Word result_buf_ptr, Word buf_len) { - auto context = WASM_CONTEXT(raw_context); +Word wasi_unstable_random_get(Word result_buf_ptr, Word buf_len) { + auto context = contextOrEffectiveContext(); std::vector random(buf_len); RAND_bytes(random.data(), random.size()); if (!context->wasmVm()->setMemory(result_buf_ptr, random.size(), random.data())) { @@ -864,21 +852,21 @@ Word wasi_unstable_random_get(void *raw_context, Word result_buf_ptr, Word buf_l } // void __wasi_proc_exit(__wasi_exitcode_t rval); -void wasi_unstable_proc_exit(void *raw_context, Word) { - auto context = WASM_CONTEXT(raw_context); +void wasi_unstable_proc_exit(Word) { + auto context = contextOrEffectiveContext(); context->error("wasi_unstable proc_exit"); } -Word pthread_equal(void *, Word left, Word right) { return left == right; } +Word pthread_equal(Word left, Word right) { return left == right; } -Word set_tick_period_milliseconds(void *raw_context, Word period_milliseconds) { +Word set_tick_period_milliseconds(Word period_milliseconds) { TimerToken token = 0; - return WASM_CONTEXT(raw_context) - ->setTimerPeriod(std::chrono::milliseconds(period_milliseconds), &token); + return contextOrEffectiveContext()->setTimerPeriod(std::chrono::milliseconds(period_milliseconds), + &token); } -Word get_current_time_nanoseconds(void *raw_context, Word result_uint64_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word get_current_time_nanoseconds(Word result_uint64_ptr) { + auto context = contextOrEffectiveContext(); uint64_t result = context->getCurrentTimeNanoseconds(); if (!context->wasm()->setDatatype(result_uint64_ptr, result)) { return WasmResult::InvalidMemoryAccess; @@ -886,11 +874,11 @@ Word get_current_time_nanoseconds(void *raw_context, Word result_uint64_ptr) { return WasmResult::Ok; } -Word log(void *raw_context, Word level, Word address, Word size) { +Word log(Word level, Word address, Word size) { if (level > static_cast(LogLevel::Max)) { return WasmResult::BadArgument; } - auto context = WASM_CONTEXT(raw_context); + auto context = contextOrEffectiveContext(); auto message = context->wasmVm()->getMemory(address, size); if (!message) { return WasmResult::InvalidMemoryAccess; @@ -898,8 +886,8 @@ Word log(void *raw_context, Word level, Word address, Word size) { return context->log(level, message.value()); } -Word get_log_level(void *raw_context, Word result_level_uint32_ptr) { - auto context = WASM_CONTEXT(raw_context); +Word get_log_level(Word result_level_uint32_ptr) { + auto context = contextOrEffectiveContext(); uint32_t level = context->getLogLevel(); if (!context->wasm()->setDatatype(result_level_uint32_ptr, level)) { return WasmResult::InvalidMemoryAccess; diff --git a/src/v8/v8.cc b/src/v8/v8.cc index dee841702..dd33f5b26 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -97,11 +97,11 @@ class V8 : public WasmVm { template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - void (*function)(void *, Args...)); + void (*function)(Args...)); template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - R (*function)(void *, Args...)); + R (*function)(Args...)); template void getModuleFunctionImpl(std::string_view function_name, @@ -448,7 +448,7 @@ bool V8::setWord(uint64_t pointer, Word word) { template void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - void (*function)(void *, Args...)) { + void (*function)(Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); auto type = wasm::FuncType::make(convertArgsTupleToValTypes>(), @@ -462,9 +462,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>(params); - auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); - auto function = reinterpret_cast(func_data->raw_func_); + auto args = convertValTypesToArgsTuple>(params); + auto function = reinterpret_cast(func_data->raw_func_); std::apply(function, args); if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); @@ -482,7 +481,7 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view template void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - R (*function)(void *, Args...)) { + R (*function)(Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); auto type = wasm::FuncType::make(convertArgsTupleToValTypes>(), @@ -496,9 +495,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>(params); - auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); - auto function = reinterpret_cast(func_data->raw_func_); + auto args = convertValTypesToArgsTuple>(params); + auto function = reinterpret_cast(func_data->raw_func_); R rvalue = std::apply(function, args); results[0] = makeVal(rvalue); if (log) { diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 06f9ce465..addc7030c 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -88,11 +88,11 @@ class Wamr : public WasmVm { private: template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - void (*function)(void *, Args...)); + void (*function)(Args...)); template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - R (*function)(void *, Args...)); + R (*function)(Args...)); template void getModuleFunctionImpl(std::string_view function_name, @@ -442,7 +442,7 @@ template WasmFunctypePtr newWasmNewFuncType() { template void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - void (*function)(void *, Args...)) { + void (*function)(Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); @@ -456,9 +456,8 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_vi func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>(params); - auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); - auto fn = reinterpret_cast(func_data->raw_func_); + auto args = convertValTypesToArgsTuple>(params); + auto fn = reinterpret_cast(func_data->raw_func_); std::apply(fn, args); if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); @@ -476,7 +475,7 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_vi template void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - R (*function)(void *, Args...)) { + R (*function)(Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); WasmFunctypePtr type = newWasmNewFuncType>(); @@ -489,9 +488,8 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_vi func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>(params); - auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); - auto fn = reinterpret_cast(func_data->raw_func_); + auto args = convertValTypesToArgsTuple>(params); + auto fn = reinterpret_cast(func_data->raw_func_); R res = std::apply(fn, args); assignVal(res, results[0]); if (log) { diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 98b339658..37146ece1 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -84,11 +84,11 @@ class Wasmtime : public WasmVm { private: template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - void (*function)(void *, Args...)); + void (*function)(Args...)); template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, - R (*function)(void *, Args...)); + R (*function)(Args...)); template void getModuleFunctionImpl(std::string_view function_name, @@ -456,8 +456,7 @@ template WasmFunctypePtr newWasmNewFuncType() { template void Wasmtime::registerHostFunctionImpl(std::string_view module_name, - std::string_view function_name, - void (*function)(void *, Args...)) { + std::string_view function_name, void (*function)(Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); @@ -471,10 +470,9 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>( + auto args = convertValTypesToArgsTuple>( params, std::make_index_sequence{}); - auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); - auto fn = reinterpret_cast(func_data->raw_func_); + auto fn = reinterpret_cast(func_data->raw_func_); std::apply(fn, args); if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: void"); @@ -492,8 +490,7 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, template void Wasmtime::registerHostFunctionImpl(std::string_view module_name, - std::string_view function_name, - R (*function)(void *, Args...)) { + std::string_view function_name, R (*function)(Args...)) { auto data = std::make_unique(std::string(module_name) + "." + std::string(function_name)); WasmFunctypePtr type = newWasmNewFuncType>(); @@ -506,10 +503,9 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params) + ")"); } - auto args_tuple = convertValTypesToArgsTuple>( + auto args = convertValTypesToArgsTuple>( params, std::make_index_sequence{}); - auto args = std::tuple_cat(std::make_tuple(current_context_), args_tuple); - auto fn = reinterpret_cast(func_data->raw_func_); + auto fn = reinterpret_cast(func_data->raw_func_); R res = std::apply(fn, args); assignVal(res, results->data[0]); if (log) { diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 92b314688..1b0d7383c 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -359,10 +359,9 @@ std::string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_ob std::unique_ptr createWavmVm() { return std::make_unique(); } -template -IR::FunctionType inferHostFunctionType(R (*)(void *, Args...)) { +template IR::FunctionType inferHostFunctionType(R (*)(Args...)) { return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...}), - IR::CallingConvention::intrinsic); + IR::CallingConvention::c); } using namespace Wavm; diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 11774f671..9b566a916 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -98,14 +98,14 @@ class TestContext : public ContextBase { int64_t counter = 0; }; -void nopCallback(void *raw_context) {} +void nopCallback() {} -void callback(void *) { - TestContext *context = static_cast(current_context_); +void callback() { + TestContext *context = static_cast(contextOrEffectiveContext()); context->increment(); } -Word callback2(void *, Word val) { return val + 100; } +Word callback2(Word val) { return val + 100; } TEST_P(TestVM, StraceLogLevel) { if (runtime_ == "wavm") { @@ -140,7 +140,6 @@ TEST_P(TestVM, Callback) { ASSERT_TRUE(vm_->load(source_, {}, {})); TestContext context; - current_context_ = &context; vm_->registerCallback( "env", "callback", &callback, @@ -156,13 +155,13 @@ TEST_P(TestVM, Callback) { vm_->getFunction("run", &run); EXPECT_TRUE(run != nullptr); for (auto i = 0; i < 100; i++) { - run(current_context_); + run(&context); } ASSERT_EQ(context.counter, 100); WasmCallWord<1> run2; vm_->getFunction("run2", &run2); - Word res = run2(current_context_, Word{0}); + Word res = run2(&context, Word{0}); ASSERT_EQ(res.u32(), 100100); // 10000 (global) + 100(in callback) } @@ -171,11 +170,10 @@ TEST_P(TestVM, Trap) { ASSERT_TRUE(vm_->load(source_, {}, {})); ASSERT_TRUE(vm_->link("")); TestContext context; - current_context_ = &context; WasmCallVoid<0> trigger; vm_->getFunction("trigger", &trigger); EXPECT_TRUE(trigger != nullptr); - trigger(current_context_); + trigger(&context); std::string exp_message = "Function: trigger failed"; ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); } @@ -191,11 +189,10 @@ TEST_P(TestVM, Trap2) { ASSERT_TRUE(vm_->load(source_, {}, {})); ASSERT_TRUE(vm_->link("")); TestContext context; - current_context_ = &context; WasmCallWord<1> trigger2; vm_->getFunction("trigger2", &trigger2); EXPECT_TRUE(trigger2 != nullptr); - trigger2(current_context_, 0); + trigger2(&context, 0); std::string exp_message = "Function: trigger2 failed"; ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); } From 668bc99e4ead7872f014638ff16c68736853da43 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 11 Aug 2021 09:47:12 +0900 Subject: [PATCH 116/287] Delete failed Plugin/VMs via fail callbacks. (#181) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/wasm_vm.h | 11 ++-- src/wasm.cc | 20 +++++- test/BUILD | 8 ++- test/bytecode_util_test.cc | 9 ++- test/context_test.cc | 35 ----------- test/exports_test.cc | 12 ++-- test/runtime_test.cc | 38 ++++++------ test/test_data/abi_export.rs | 18 ++++++ test/utility.h | 24 ++++---- test/wasm_test.cc | 114 +++++++++++++++++++++++++++++++++++ 10 files changed, 210 insertions(+), 79 deletions(-) delete mode 100644 test/context_test.cc create mode 100644 test/wasm_test.cc diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 5eab90592..c02bb6e8f 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -20,6 +20,7 @@ #include #include #include +#include #include "include/proxy-wasm/word.h" @@ -297,12 +298,12 @@ class WasmVm { void fail(FailState fail_state, std::string_view message) { integration()->error(message); failed_ = fail_state; - if (fail_callback_) { - fail_callback_(fail_state); + for (auto &callback : fail_callbacks_) { + callback(fail_state); } } - void setFailCallback(std::function fail_callback) { - fail_callback_ = fail_callback; + void addFailCallback(std::function fail_callback) { + fail_callbacks_.push_back(fail_callback); } // Integrator operations. @@ -312,7 +313,7 @@ class WasmVm { protected: std::unique_ptr integration_; FailState failed_ = FailState::Ok; - std::function fail_callback_; + std::vector> fail_callbacks_; }; // Thread local state set during a call into a WASM VM so that calls coming out of the diff --git a/src/wasm.cc b/src/wasm.cc index dd9c1d3e9..4707c2141 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -208,7 +208,7 @@ WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, Wasm if (!wasm_vm_) { failed_ = FailState::UnableToCreateVm; } else { - wasm_vm_->setFailCallback([this](FailState fail_state) { failed_ = fail_state; }); + wasm_vm_->addFailCallback([this](FailState fail_state) { failed_ = fail_state; }); } } @@ -222,7 +222,7 @@ WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, if (!wasm_vm_) { failed_ = FailState::UnableToCreateVm; } else { - wasm_vm_->setFailCallback([this](FailState fail_state) { failed_ = fail_state; }); + wasm_vm_->addFailCallback([this](FailState fail_state) { failed_ = fail_state; }); } } @@ -559,6 +559,14 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_handle, return nullptr; } local_wasms[vm_key] = wasm_handle; + wasm_handle->wasm()->wasm_vm()->addFailCallback([vm_key](proxy_wasm::FailState fail_state) { + if (fail_state == proxy_wasm::FailState::RuntimeError) { + // If VM failed, erase the entry so that: + // 1) we can recreate the new thread local VM from the same base_wasm. + // 2) we wouldn't reuse the failed VM for new plugins accidentally. + local_wasms.erase(vm_key); + }; + }); return wasm_handle; } @@ -594,6 +602,14 @@ std::shared_ptr getOrCreateThreadLocalPlugin( } auto plugin_handle = plugin_factory(wasm_handle, plugin); local_plugins[key] = plugin_handle; + wasm_handle->wasm()->wasm_vm()->addFailCallback([key](proxy_wasm::FailState fail_state) { + if (fail_state == proxy_wasm::FailState::RuntimeError) { + // If VM failed, erase the entry so that: + // 1) we can recreate the new thread local plugin from the same base_wasm. + // 2) we wouldn't reuse the failed VM for new plugin configs accidentally. + local_plugins.erase(key); + }; + }); return plugin_handle; } diff --git a/test/BUILD b/test/BUILD index 132404b3f..33df7b862 100644 --- a/test/BUILD +++ b/test/BUILD @@ -78,9 +78,13 @@ cc_test( ) cc_test( - name = "context_test", - srcs = ["context_test.cc"], + name = "wasm_test", + srcs = ["wasm_test.cc"], + data = [ + "//test/test_data:abi_export.wasm", + ], deps = [ + ":utility_lib", "//:lib", "@com_google_googletest//:gtest", "@com_google_googletest//:gtest_main", diff --git a/test/bytecode_util_test.cc b/test/bytecode_util_test.cc index 529434577..4783d676d 100644 --- a/test/bytecode_util_test.cc +++ b/test/bytecode_util_test.cc @@ -59,7 +59,14 @@ TEST(TestBytecodeUtil, getFunctionNameIndex) { // OK. EXPECT_TRUE(BytecodeUtil::getFunctionNameIndex(source, actual)); EXPECT_FALSE(actual.empty()); - EXPECT_EQ(actual.find(0)->second, "proxy_abi_version_0_2_0"); + bool abi_version_found = false; + for (auto it : actual) { + if (it.second == "proxy_abi_version_0_2_0") { + abi_version_found = true; + break; + } + } + EXPECT_TRUE(abi_version_found); // Fail due to the corrupted bytecode. // TODO(@mathetake): here we haven't covered all the parsing failure branches. Add more cases. diff --git a/test/context_test.cc b/test/context_test.cc deleted file mode 100644 index bd4b3283b..000000000 --- a/test/context_test.cc +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include "include/proxy-wasm/context.h" - -#include "gtest/gtest.h" - -namespace proxy_wasm { -namespace { - -class Context : public ContextBase { -public: - Context(std::function error_function) - : error_function_(error_function) {} - void error(std::string_view message) { error_function_(message); } - -private: - std::function error_function_; -}; - -TEST(Context, IncludeParses) {} - -} // namespace -} // namespace proxy_wasm diff --git a/test/exports_test.cc b/test/exports_test.cc index d18e0983a..cced56291 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -49,10 +49,10 @@ class TestContext : public ContextBase { TEST_P(TestVM, Environment) { std::unordered_map envs = {{"KEY1", "VALUE1"}, {"KEY2", "VALUE2"}}; - initialize("env.wasm"); + auto source = readTestWasmFile("env.wasm"); auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", envs, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, {}, {})); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source, {}, {})); TestContext context(&wasm_base); current_context_ = &context; @@ -72,9 +72,9 @@ TEST_P(TestVM, Environment) { } TEST_P(TestVM, WithoutEnvironment) { - initialize("env.wasm"); + auto source = readTestWasmFile("env.wasm"); auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, {}, {})); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source, {}, {})); TestContext context(&wasm_base); current_context_ = &context; @@ -92,9 +92,9 @@ TEST_P(TestVM, WithoutEnvironment) { } TEST_P(TestVM, Clock) { - initialize("clock.wasm"); + auto source = readTestWasmFile("clock.wasm"); auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source_, {}, {})); + ASSERT_TRUE(wasm_base.wasm_vm()->load(source, {}, {})); TestContext context(&wasm_base); current_context_ = &context; diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 9b566a916..7bfd39211 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -47,8 +47,8 @@ TEST_P(TestVM, Basic) { } TEST_P(TestVM, Memory) { - initialize("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source_, {}, {})); + auto source = readTestWasmFile("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); ASSERT_TRUE(vm_->link("")); Word word; @@ -68,8 +68,8 @@ TEST_P(TestVM, Clone) { if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { return; } - initialize("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source_, {}, {})); + auto source = readTestWasmFile("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); ASSERT_TRUE(vm_->link("")); const auto address = 0x2000; Word word; @@ -113,8 +113,10 @@ TEST_P(TestVM, StraceLogLevel) { // See https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/120. return; } - initialize("callback.wasm"); - ASSERT_TRUE(vm_->load(source_, {}, {})); + + auto integration = static_cast(vm_->integration().get()); + auto source = readTestWasmFile("callback.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); vm_->registerCallback("env", "callback", &nopCallback, &ConvertFunctionWordToUint32::convertFunctionWordToUint32); @@ -128,16 +130,16 @@ TEST_P(TestVM, StraceLogLevel) { run(nullptr); // no trace message found since DummyIntegration's log_level_ defaults to LogLevel::info - EXPECT_EQ(integration_->trace_message_, ""); + EXPECT_EQ(integration->trace_message_, ""); - integration_->log_level_ = LogLevel::trace; + integration->log_level_ = LogLevel::trace; run(nullptr); - EXPECT_NE(integration_->trace_message_, ""); + EXPECT_NE(integration->trace_message_, ""); } TEST_P(TestVM, Callback) { - initialize("callback.wasm"); - ASSERT_TRUE(vm_->load(source_, {}, {})); + auto source = readTestWasmFile("callback.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); TestContext context; @@ -166,8 +168,8 @@ TEST_P(TestVM, Callback) { } TEST_P(TestVM, Trap) { - initialize("trap.wasm"); - ASSERT_TRUE(vm_->load(source_, {}, {})); + auto source = readTestWasmFile("trap.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); ASSERT_TRUE(vm_->link("")); TestContext context; WasmCallVoid<0> trigger; @@ -175,7 +177,8 @@ TEST_P(TestVM, Trap) { EXPECT_TRUE(trigger != nullptr); trigger(&context); std::string exp_message = "Function: trigger failed"; - ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); + auto integration = static_cast(vm_->integration().get()); + ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); } TEST_P(TestVM, Trap2) { @@ -185,8 +188,8 @@ TEST_P(TestVM, Trap2) { // WAVM::Runtime::describeCallStack. Needs further investigation. return; } - initialize("trap.wasm"); - ASSERT_TRUE(vm_->load(source_, {}, {})); + auto source = readTestWasmFile("trap.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); ASSERT_TRUE(vm_->link("")); TestContext context; WasmCallWord<1> trigger2; @@ -194,7 +197,8 @@ TEST_P(TestVM, Trap2) { EXPECT_TRUE(trigger2 != nullptr); trigger2(&context, 0); std::string exp_message = "Function: trigger2 failed"; - ASSERT_TRUE(integration_->error_message_.find(exp_message) != std::string::npos); + auto integration = static_cast(vm_->integration().get()); + ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); } } // namespace diff --git a/test/test_data/abi_export.rs b/test/test_data/abi_export.rs index f4a42f25f..64e47de65 100644 --- a/test/test_data/abi_export.rs +++ b/test/test_data/abi_export.rs @@ -14,3 +14,21 @@ #[no_mangle] pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_vm_start(_: u32, _: usize) -> bool { + true +} + +#[no_mangle] +pub extern "C" fn proxy_on_context_create(_: u32, _: u32) {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(size: usize) -> *mut u8 { + let mut vec: Vec = Vec::with_capacity(size); + unsafe { + vec.set_len(size); + } + let slice = vec.into_boxed_slice(); + Box::into_raw(slice) as *mut u8 +} diff --git a/test/utility.h b/test/utility.h index 07094b893..9d1fb66d9 100644 --- a/test/utility.h +++ b/test/utility.h @@ -67,37 +67,39 @@ class TestVM : public testing::TestWithParam { public: std::unique_ptr vm_; - TestVM() : integration_(new DummyIntegration{}) { + TestVM() { runtime_ = GetParam(); + vm_ = newVm(); + } + + std::unique_ptr newVm() { + std::unique_ptr vm; if (runtime_ == "") { EXPECT_TRUE(false) << "runtime must not be empty"; #if defined(PROXY_WASM_HAS_RUNTIME_V8) } else if (runtime_ == "v8") { - vm_ = proxy_wasm::createV8Vm(); + vm = proxy_wasm::createV8Vm(); #endif #if defined(PROXY_WASM_HAS_RUNTIME_WAVM) } else if (runtime_ == "wavm") { - vm_ = proxy_wasm::createWavmVm(); + vm = proxy_wasm::createWavmVm(); #endif #if defined(PROXY_WASM_HAS_RUNTIME_WASMTIME) } else if (runtime_ == "wasmtime") { - vm_ = proxy_wasm::createWasmtimeVm(); + vm = proxy_wasm::createWasmtimeVm(); #endif #if defined(PROXY_WASM_HAS_RUNTIME_WAMR) } else if (runtime_ == "wamr") { - vm_ = proxy_wasm::createWamrVm(); + vm = proxy_wasm::createWamrVm(); #endif } else { EXPECT_TRUE(false) << "compiled without support for the requested \"" << runtime_ << "\" runtime"; } - vm_->integration().reset(integration_); - } - - void initialize(std::string filename) { source_ = readTestWasmFile(filename); } + vm->integration().reset(new DummyIntegration{}); + return vm; + }; - DummyIntegration *integration_; - std::string source_; std::string runtime_; }; } // namespace proxy_wasm diff --git a/test/wasm_test.cc b/test/wasm_test.cc new file mode 100644 index 000000000..5bd9011f6 --- /dev/null +++ b/test/wasm_test.cc @@ -0,0 +1,114 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/wasm.h" + +#include "gtest/gtest.h" + +#include "test/utility.h" + +namespace proxy_wasm { + +auto test_values = testing::ValuesIn(getRuntimes()); + +INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); + +// Failcallbacks only used for runtimes - not available for nullvm. +TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { + const auto plugin_name = "plugin_name"; + const auto root_id = "root_id"; + const auto vm_id = "vm_id"; + const auto vm_config = "vm_config"; + const auto plugin_config = "plugin_config"; + const auto fail_open = false; + + // Create a plugin. + const auto plugin = std::make_shared(plugin_name, root_id, vm_id, runtime_, + plugin_config, fail_open, "plugin_key"); + + // Define callbacks. + WasmHandleFactory wasm_handle_factory = + [this, vm_id, vm_config](std::string_view vm_key) -> std::shared_ptr { + auto base_wasm = std::make_shared(newVm(), vm_id, vm_config, vm_key, + std::unordered_map{}, + AllowedCapabilitiesMap{}); + return std::make_shared(base_wasm); + }; + + WasmHandleCloneFactory wasm_handle_clone_factory = + [this](std::shared_ptr base_wasm_handle) -> std::shared_ptr { + auto wasm = std::make_shared(base_wasm_handle, + [this]() -> std::unique_ptr { return newVm(); }); + return std::make_shared(wasm); + }; + + PluginHandleFactory plugin_handle_factory = + [](std::shared_ptr base_wasm, + std::shared_ptr plugin) -> std::shared_ptr { + return std::make_shared(base_wasm, plugin); + }; + + // Read the minimal loadable binary. + auto source = readTestWasmFile("abi_export.wasm"); + + // Create base Wasm via createWasm. + auto base_wasm_handle = + createWasm("vm_key", source, plugin, wasm_handle_factory, wasm_handle_clone_factory, false); + ASSERT_TRUE(base_wasm_handle && base_wasm_handle->wasm()); + + // Create a thread local plugin. + auto thread_local_plugin = getOrCreateThreadLocalPlugin( + base_wasm_handle, plugin, wasm_handle_clone_factory, plugin_handle_factory); + ASSERT_TRUE(thread_local_plugin && thread_local_plugin->plugin()); + // If the VM is not failed, same WasmBase should be used for the same configuration. + ASSERT_EQ(getOrCreateThreadLocalPlugin(base_wasm_handle, plugin, wasm_handle_clone_factory, + plugin_handle_factory) + ->wasm(), + thread_local_plugin->wasm()); + + // Cause runtime crash. + thread_local_plugin->wasm()->wasm_vm()->fail(FailState::RuntimeError, "runtime error msg"); + ASSERT_TRUE(thread_local_plugin->wasm()->isFailed()); + // the Base Wasm should not be affected by cloned ones. + ASSERT_FALSE(base_wasm_handle->wasm()->isFailed()); + + // Create another thread local plugin with the same configuration. + // This one should not end up using the failed VM. + auto thread_local_plugin2 = getOrCreateThreadLocalPlugin( + base_wasm_handle, plugin, wasm_handle_clone_factory, plugin_handle_factory); + ASSERT_TRUE(thread_local_plugin2 && thread_local_plugin2->plugin()); + ASSERT_FALSE(thread_local_plugin2->wasm()->isFailed()); + // Verify the pointer to WasmBase is different from the failed one. + ASSERT_NE(thread_local_plugin2->wasm(), thread_local_plugin->wasm()); + + // Cause runtime crash again. + thread_local_plugin2->wasm()->wasm_vm()->fail(FailState::RuntimeError, "runtime error msg"); + ASSERT_TRUE(thread_local_plugin2->wasm()->isFailed()); + // the Base Wasm should not be affected by cloned ones. + ASSERT_FALSE(base_wasm_handle->wasm()->isFailed()); + + // This time, create another thread local plugin with *different* plugin key for the same vm_key. + // This one also should not end up using the failed VM. + const auto plugin2 = std::make_shared(plugin_name, root_id, vm_id, runtime_, + plugin_config, fail_open, "another_plugin_key"); + auto thread_local_plugin3 = getOrCreateThreadLocalPlugin( + base_wasm_handle, plugin2, wasm_handle_clone_factory, plugin_handle_factory); + ASSERT_TRUE(thread_local_plugin3 && thread_local_plugin3->plugin()); + ASSERT_FALSE(thread_local_plugin3->wasm()->isFailed()); + // Verify the pointer to WasmBase is different from the failed one. + ASSERT_NE(thread_local_plugin3->wasm(), thread_local_plugin->wasm()); + ASSERT_NE(thread_local_plugin3->wasm(), thread_local_plugin2->wasm()); +} + +} // namespace proxy_wasm From 7811c5782bf0f17ce6b7d665baa6117b9f3bb11d Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 11 Aug 2021 21:20:19 -0700 Subject: [PATCH 117/287] Use actions/setup-go@v2 in GitHub Actions. (#187) Fixes issues with addlicense requiring Go v1.16+. Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 9e58e9974..9e50077ef 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -35,6 +35,9 @@ jobs: steps: - uses: actions/checkout@v2 + - uses: actions/setup-go@v2 + with: + go-version: '^1.16' - name: Format (clang-format) run: | @@ -44,13 +47,13 @@ jobs: - name: Format (buildifier) run: | - go get -u github.com/bazelbuild/buildtools/buildifier + go install github.com/bazelbuild/buildtools/buildifier@latest export PATH=$PATH:$(go env GOPATH)/bin find . -name "BUILD" | xargs -n1 buildifier -mode=check - name: Format (addlicense) run: | - go get -u github.com/google/addlicense + go install github.com/google/addlicense@latest export PATH=$PATH:$(go env GOPATH)/bin addlicense -check . From 03185974ef574233a5f6383311eb74a380146fe2 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 11 Aug 2021 21:25:22 -0700 Subject: [PATCH 118/287] Make HTTP/gRPC callout IDs unique per WasmVM instance. (#186) Fixes proxy-wasm/proxy-wasm-cpp-host#185. Signed-off-by: Piotr Sikora --- include/proxy-wasm/wasm.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 519a00afb..78ffbe370 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -176,6 +176,35 @@ class WasmBase : public std::enable_shared_from_this { uint32_t nextGaugeMetricId() { return next_gauge_metric_id_ += kMetricIdIncrement; } uint32_t nextHistogramMetricId() { return next_histogram_metric_id_ += kMetricIdIncrement; } + enum class CalloutType : uint32_t { + HttpCall = 0, + GrpcCall = 1, + GrpcStream = 2, + }; + static const uint32_t kCalloutTypeMask = 0x3; // Enough to cover the 3 types. + static const uint32_t kCalloutIncrement = 0x4; // Enough to cover the 3 types. + bool isHttpCallId(uint32_t callout_id) { + return (callout_id & kCalloutTypeMask) == static_cast(CalloutType::HttpCall); + } + bool isGrpcCallId(uint32_t callout_id) { + return (callout_id & kCalloutTypeMask) == static_cast(CalloutType::GrpcCall); + } + bool isGrpcStreamId(uint32_t callout_id) { + return (callout_id & kCalloutTypeMask) == static_cast(CalloutType::GrpcStream); + } + uint32_t nextHttpCallId() { + // TODO(PiotrSikora): re-add rollover protection (requires at least 1 billion callouts). + return next_http_call_id_ += kCalloutIncrement; + } + uint32_t nextGrpcCallId() { + // TODO(PiotrSikora): re-add rollover protection (requires at least 1 billion callouts). + return next_grpc_call_id_ += kCalloutIncrement; + } + uint32_t nextGrpcStreamId() { + // TODO(PiotrSikora): re-add rollover protection (requires at least 1 billion callouts). + return next_grpc_stream_id_ += kCalloutIncrement; + } + protected: friend class ContextBase; class ShutdownHandle; @@ -279,6 +308,11 @@ class WasmBase : public std::enable_shared_from_this { uint32_t next_gauge_metric_id_ = static_cast(MetricType::Gauge); uint32_t next_histogram_metric_id_ = static_cast(MetricType::Histogram); + // HTTP/gRPC callouts. + uint32_t next_http_call_id_ = static_cast(CalloutType::HttpCall); + uint32_t next_grpc_call_id_ = static_cast(CalloutType::GrpcCall); + uint32_t next_grpc_stream_id_ = static_cast(CalloutType::GrpcStream); + // Actions to be done after the call into the VM returns. std::deque> after_vm_call_actions_; From 132c304be23480be16644a98bcd4e7f78833fdaa Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 25 Aug 2021 10:13:55 +0900 Subject: [PATCH 119/287] Fix the doc comment for WasmVm::runtime. (#191) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/wasm_vm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index c02bb6e8f..0d1616505 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -177,8 +177,8 @@ class WasmVm { public: virtual ~WasmVm() = default; /** - * Return the runtime identifier. - * @return one of WasmRuntimeValues from well_known_names.h (e.g. "v8"). + * Identify the Wasm runtime. + * @return the name of the underlying Wasm runtime. */ virtual std::string_view runtime() = 0; From 860f36a1f05bf0df470a896ec0a8cf0ba1bbe39d Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Wed, 25 Aug 2021 12:52:33 +0900 Subject: [PATCH 120/287] refactor: decouple foreign functions from WasmBase. (#190) Signed-off-by: Takeshi Yoneda --- include/proxy-wasm/exports.h | 30 ++++++++++++++++++++++++++++++ include/proxy-wasm/wasm.h | 9 --------- src/exports.cc | 20 +++++++++++++++++++- src/wasm.cc | 16 ---------------- 4 files changed, 49 insertions(+), 26 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index ded6419a4..02a4438ef 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -30,6 +30,36 @@ ::proxy_wasm::ContextBase *contextOrEffectiveContext(); extern thread_local ContextBase *current_context_; +/** + * WasmForeignFunction is used for registering host-specific host functions. + * A foreign function can be registered via RegisterForeignFunction and available + * to Wasm modules via proxy_call_foreign_function. + * @param wasm is the WasmBase which the Wasm module is running on. + * @param argument is the view to the argument to the function passed by the module. + * @param alloc_result is used to allocate the result data of this foreign function. + */ +using WasmForeignFunction = std::function alloc_result)>; + +/** + * Used to get the foreign function registered via RegisterForeignFunction for a given name. + * @param function_name is the name used to lookup the foreign function table. + * @return a WasmForeignFunction if registered. + */ +WasmForeignFunction getForeignFunction(std::string_view function_name); + +/** + * RegisterForeignFunction is used to register a foreign function in the lookup table + * used internally in getForeignFunction. + */ +struct RegisterForeignFunction { + /** + * @param function_name is the key for this foreign function. + * @param f is the function instance. + */ + RegisterForeignFunction(std::string function_name, WasmForeignFunction f); +}; + namespace exports { template size_t pairsSize(const Pairs &result) { diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 78ffbe370..f35e6694c 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -34,11 +34,8 @@ namespace proxy_wasm { #include "proxy_wasm_common.h" class ContextBase; -class WasmBase; class WasmHandleBase; -using WasmForeignFunction = - std::function)>; using WasmVmFactory = std::function()>; using CallOnThreadFunction = std::function)>; @@ -129,8 +126,6 @@ class WasmBase : public std::enable_shared_from_this { bool copyToPointerSize(std::string_view s, uint64_t ptr_ptr, uint64_t size_ptr); template bool setDatatype(uint64_t ptr, const T &t); - WasmForeignFunction getForeignFunction(std::string_view function_name); - void fail(FailState fail_state, std::string_view message) { error(message); failed_ = fail_state; @@ -439,8 +434,4 @@ template inline bool WasmBase::setDatatype(uint64_t ptr, const T &t return wasm_vm_->setMemory(ptr, sizeof(T), &t); } -struct RegisterForeignFunction { - RegisterForeignFunction(std::string name, WasmForeignFunction f); -}; - } // namespace proxy_wasm diff --git a/src/exports.cc b/src/exports.cc index 0922b2df5..f56343699 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -36,6 +36,24 @@ ContextBase *contextOrEffectiveContext() { // of current_context_. extern thread_local uint32_t effective_context_id_; +std::unordered_map &foreignFunctions() { + static auto ptr = new std::unordered_map; + return *ptr; +} + +WasmForeignFunction getForeignFunction(std::string_view function_name) { + auto foreign_functions = foreignFunctions(); + auto it = foreign_functions.find(std::string(function_name)); + if (it != foreign_functions.end()) { + return it->second; + } + return nullptr; +} + +RegisterForeignFunction::RegisterForeignFunction(std::string name, WasmForeignFunction f) { + foreignFunctions()[name] = f; +} + namespace exports { namespace { @@ -220,7 +238,7 @@ Word call_foreign_function(Word function_name, Word function_name_size, Word arg if (!args_opt) { return WasmResult::InvalidMemoryAccess; } - auto f = context->wasm()->getForeignFunction(function.value()); + auto f = getForeignFunction(function.value()); if (!f) { return WasmResult::NotFound; } diff --git a/src/wasm.cc b/src/wasm.cc index 4707c2141..87a53ef54 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -45,7 +45,6 @@ thread_local std::unordered_map> lo // Map from Wasm Key to the base Wasm instance, using a pointer to avoid the initialization fiasco. std::mutex base_wasms_mutex; std::unordered_map> *base_wasms = nullptr; -std::unordered_map *foreign_functions = nullptr; std::vector Sha256(const std::vector parts) { uint8_t sha256[SHA256_DIGEST_LENGTH]; @@ -85,13 +84,6 @@ class WasmBase::ShutdownHandle { std::shared_ptr wasm_; }; -RegisterForeignFunction::RegisterForeignFunction(std::string name, WasmForeignFunction f) { - if (!foreign_functions) { - foreign_functions = new std::remove_reference::type; - } - (*foreign_functions)[name] = f; -} - void WasmBase::registerCallbacks() { #define _REGISTER(_fn) \ wasm_vm_->registerCallback( \ @@ -454,14 +446,6 @@ void WasmBase::finishShutdown() { } } -WasmForeignFunction WasmBase::getForeignFunction(std::string_view function_name) { - auto it = foreign_functions->find(std::string(function_name)); - if (it != foreign_functions->end()) { - return it->second; - } - return nullptr; -} - std::shared_ptr createWasm(std::string vm_key, std::string code, std::shared_ptr plugin, WasmHandleFactory factory, From 2bd0ac14d3de778e3b090159a1a644be69685385 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Sun, 17 Oct 2021 17:50:46 -0700 Subject: [PATCH 121/287] Update rules_rust to latest. (#195) Signed-off-by: Piotr Sikora --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 29c0c82cb..15929f3c5 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -79,9 +79,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "rules_rust", - sha256 = "db182e96b5ed62b044142cdae096742fcfd1aa4febfe3af8afa3c0ee438a52a4", - strip_prefix = "rules_rust-96d5118f03411f80182fd45426e259eedf809d7a", - url = "https://github.com/bazelbuild/rules_rust/archive/96d5118f03411f80182fd45426e259eedf809d7a.tar.gz", + sha256 = "d195a85d38ee2dd7aecfedba6c9814a2ff22f968abac0818fd91e35c5b7aca6f", + strip_prefix = "rules_rust-6f79458dee68d691d6a5aee67b06a620bdf9293f", + url = "https://github.com/bazelbuild/rules_rust/archive/6f79458dee68d691d6a5aee67b06a620bdf9293f.tar.gz", ) http_archive( From 9ec1f94005071a9a57ec04fe64031e8b5456253b Mon Sep 17 00:00:00 2001 From: phlax Date: Mon, 18 Oct 2021 23:15:57 +0100 Subject: [PATCH 122/287] wasmtime: update to v0.30.0. (#194) Signed-off-by: Ryan Northey --- bazel/cargo/BUILD.bazel | 8 +- bazel/cargo/Cargo.raze.lock | 339 +++++------ bazel/cargo/Cargo.toml | 6 +- bazel/cargo/crates.bzl | 572 ++++++++---------- .../cargo/remote/BUILD.addr2line-0.15.1.bazel | 62 -- ...4.1.bazel => BUILD.addr2line-0.16.0.bazel} | 4 +- .../remote/BUILD.aho-corasick-0.7.18.bazel | 2 +- ...1.0.40.bazel => BUILD.anyhow-1.0.44.bazel} | 4 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 2 +- ....59.bazel => BUILD.backtrace-0.3.61.bazel} | 14 +- bazel/cargo/remote/BUILD.bincode-1.3.3.bazel | 2 +- bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel | 85 --- bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel | 58 ++ ....cc-1.0.67.bazel => BUILD.cc-1.0.71.bazel} | 4 +- bazel/cargo/remote/BUILD.clap-2.33.3.bazel | 4 +- ...2.bazel => BUILD.cpp_demangle-0.3.3.bazel} | 7 +- ...l => BUILD.cranelift-bforest-0.77.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.77.0.bazel} | 27 +- ...BUILD.cranelift-codegen-meta-0.77.0.bazel} | 6 +- ...ILD.cranelift-codegen-shared-0.77.0.bazel} | 5 +- ...el => BUILD.cranelift-entity-0.77.0.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.77.0.bazel} | 8 +- ...el => BUILD.cranelift-native-0.77.0.bazel} | 18 +- ...azel => BUILD.cranelift-wasm-0.77.0.bazel} | 19 +- ...zel => BUILD.ed25519-compact-0.1.11.bazel} | 4 +- ...8.3.bazel => BUILD.env_logger-0.8.4.bazel} | 2 +- ....2.2.bazel => BUILD.getrandom-0.2.3.bazel} | 71 +-- bazel/cargo/remote/BUILD.gimli-0.24.0.bazel | 68 --- ...-0.23.0.bazel => BUILD.gimli-0.25.0.bazel} | 6 +- bazel/cargo/remote/BUILD.glob-0.3.0.bazel | 55 -- ...9.1.bazel => BUILD.hashbrown-0.11.2.bazel} | 2 +- ...18.bazel => BUILD.hermit-abi-0.1.19.bazel} | 4 +- ...1.6.2.bazel => BUILD.indexmap-1.7.0.bazel} | 8 +- ...0.0.bazel => BUILD.itertools-0.10.1.bazel} | 4 +- ...-0.2.94.bazel => BUILD.libc-0.2.103.bazel} | 4 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 2 +- ...r-2.4.0.bazel => BUILD.memchr-2.4.1.bazel} | 4 +- ....6.3.bazel => BUILD.memoffset-0.6.4.bazel} | 4 +- bazel/cargo/remote/BUILD.object-0.24.0.bazel | 76 --- ...0.23.0.bazel => BUILD.object-0.26.2.bazel} | 10 +- ....7.2.bazel => BUILD.once_cell-1.8.0.bazel} | 2 +- ...10.bazel => BUILD.ppv-lite86-0.2.14.bazel} | 2 +- ...6.bazel => BUILD.proc-macro2-1.0.30.bazel} | 4 +- ...sm-0.1.12.bazel => BUILD.psm-0.1.16.bazel} | 6 +- ...e-1.0.9.bazel => BUILD.quote-1.0.10.bazel} | 6 +- ...and-0.8.3.bazel => BUILD.rand-0.8.4.bazel} | 8 +- ....0.bazel => BUILD.rand_chacha-0.3.1.bazel} | 6 +- ....6.2.bazel => BUILD.rand_core-0.6.3.bazel} | 4 +- ...-0.3.0.bazel => BUILD.rand_hc-0.3.1.bazel} | 4 +- .../cargo/remote/BUILD.regalloc-0.0.31.bazel | 5 +- bazel/cargo/remote/BUILD.regex-1.5.4.bazel | 2 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 4 +- ...azel => BUILD.rustc-demangle-0.1.21.bazel} | 2 +- ....0.126.bazel => BUILD.serde-1.0.130.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.130.bazel} | 10 +- ...1.6.1.bazel => BUILD.smallvec-1.7.0.bazel} | 2 +- ...yn-1.0.72.bazel => BUILD.syn-1.0.80.bazel} | 8 +- ...azel => BUILD.target-lexicon-0.12.2.bazel} | 4 +- .../cargo/remote/BUILD.textwrap-0.11.0.bazel | 2 +- ....24.bazel => BUILD.thiserror-1.0.30.bazel} | 8 +- ...azel => BUILD.thiserror-impl-1.0.30.bazel} | 8 +- ....bazel => BUILD.unicode-width-0.1.9.bazel} | 2 +- ....0.bazel => BUILD.wasmparser-0.80.2.bazel} | 2 +- bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel | 12 +- .../cargo/remote/BUILD.wasmtime-0.30.0.bazel | 129 ++++ .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 4 +- ... => BUILD.wasmtime-cranelift-0.30.0.bazel} | 21 +- .../remote/BUILD.wasmtime-debug-0.26.0.bazel | 61 -- ...el => BUILD.wasmtime-environ-0.30.0.bazel} | 22 +- .../remote/BUILD.wasmtime-jit-0.26.0.bazel | 87 --- ....bazel => BUILD.wasmtime-jit-0.30.0.bazel} | 34 +- .../remote/BUILD.wasmtime-obj-0.26.0.bazel | 59 -- .../BUILD.wasmtime-profiling-0.26.0.bazel | 61 -- ...el => BUILD.wasmtime-runtime-0.30.0.bazel} | 22 +- .../remote/BUILD.wasmtime-types-0.30.0.bazel | 57 ++ bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 2 + bazel/repositories.bzl | 6 +- 77 files changed, 855 insertions(+), 1417 deletions(-) delete mode 100644 bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel rename bazel/cargo/remote/{BUILD.addr2line-0.14.1.bazel => BUILD.addr2line-0.16.0.bazel} (94%) rename bazel/cargo/remote/{BUILD.anyhow-1.0.40.bazel => BUILD.anyhow-1.0.44.bazel} (98%) rename bazel/cargo/remote/{BUILD.backtrace-0.3.59.bazel => BUILD.backtrace-0.3.61.bazel} (89%) delete mode 100644 bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel create mode 100644 bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel rename bazel/cargo/remote/{BUILD.cc-1.0.67.bazel => BUILD.cc-1.0.71.bazel} (97%) rename bazel/cargo/remote/{BUILD.cpp_demangle-0.3.2.bazel => BUILD.cpp_demangle-0.3.3.bazel} (95%) rename bazel/cargo/remote/{BUILD.cranelift-bforest-0.73.0.bazel => BUILD.cranelift-bforest-0.77.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-0.73.0.bazel => BUILD.cranelift-codegen-0.77.0.bazel} (72%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-meta-0.73.0.bazel => BUILD.cranelift-codegen-meta-0.77.0.bazel} (87%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-shared-0.73.0.bazel => BUILD.cranelift-codegen-shared-0.77.0.bazel} (89%) rename bazel/cargo/remote/{BUILD.cranelift-entity-0.73.0.bazel => BUILD.cranelift-entity-0.77.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-frontend-0.73.0.bazel => BUILD.cranelift-frontend-0.77.0.bazel} (84%) rename bazel/cargo/remote/{BUILD.cranelift-native-0.73.0.bazel => BUILD.cranelift-native-0.77.0.bazel} (70%) rename bazel/cargo/remote/{BUILD.cranelift-wasm-0.73.0.bazel => BUILD.cranelift-wasm-0.77.0.bazel} (68%) rename bazel/cargo/remote/{BUILD.ed25519-compact-0.1.9.bazel => BUILD.ed25519-compact-0.1.11.bazel} (92%) rename bazel/cargo/remote/{BUILD.env_logger-0.8.3.bazel => BUILD.env_logger-0.8.4.bazel} (98%) rename bazel/cargo/remote/{BUILD.getrandom-0.2.2.bazel => BUILD.getrandom-0.2.3.bazel} (56%) delete mode 100644 bazel/cargo/remote/BUILD.gimli-0.24.0.bazel rename bazel/cargo/remote/{BUILD.gimli-0.23.0.bazel => BUILD.gimli-0.25.0.bazel} (93%) delete mode 100644 bazel/cargo/remote/BUILD.glob-0.3.0.bazel rename bazel/cargo/remote/{BUILD.hashbrown-0.9.1.bazel => BUILD.hashbrown-0.11.2.bazel} (98%) rename bazel/cargo/remote/{BUILD.hermit-abi-0.1.18.bazel => BUILD.hermit-abi-0.1.19.bazel} (92%) rename bazel/cargo/remote/{BUILD.indexmap-1.6.2.bazel => BUILD.indexmap-1.7.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.itertools-0.10.0.bazel => BUILD.itertools-0.10.1.bazel} (96%) rename bazel/cargo/remote/{BUILD.libc-0.2.94.bazel => BUILD.libc-0.2.103.bazel} (97%) rename bazel/cargo/remote/{BUILD.memchr-2.4.0.bazel => BUILD.memchr-2.4.1.bazel} (97%) rename bazel/cargo/remote/{BUILD.memoffset-0.6.3.bazel => BUILD.memoffset-0.6.4.bazel} (97%) delete mode 100644 bazel/cargo/remote/BUILD.object-0.24.0.bazel rename bazel/cargo/remote/{BUILD.object-0.23.0.bazel => BUILD.object-0.26.2.bazel} (86%) rename bazel/cargo/remote/{BUILD.once_cell-1.7.2.bazel => BUILD.once_cell-1.8.0.bazel} (98%) rename bazel/cargo/remote/{BUILD.ppv-lite86-0.2.10.bazel => BUILD.ppv-lite86-0.2.14.bazel} (97%) rename bazel/cargo/remote/{BUILD.proc-macro2-1.0.26.bazel => BUILD.proc-macro2-1.0.30.bazel} (97%) rename bazel/cargo/remote/{BUILD.psm-0.1.12.bazel => BUILD.psm-0.1.16.bazel} (95%) rename bazel/cargo/remote/{BUILD.quote-1.0.9.bazel => BUILD.quote-1.0.10.bazel} (88%) rename bazel/cargo/remote/{BUILD.rand-0.8.3.bazel => BUILD.rand-0.8.4.bazel} (91%) rename bazel/cargo/remote/{BUILD.rand_chacha-0.3.0.bazel => BUILD.rand_chacha-0.3.1.bazel} (87%) rename bazel/cargo/remote/{BUILD.rand_core-0.6.2.bazel => BUILD.rand_core-0.6.3.bazel} (92%) rename bazel/cargo/remote/{BUILD.rand_hc-0.3.0.bazel => BUILD.rand_hc-0.3.1.bazel} (92%) rename bazel/cargo/remote/{BUILD.rustc-demangle-0.1.19.bazel => BUILD.rustc-demangle-0.1.21.bazel} (97%) rename bazel/cargo/remote/{BUILD.serde-1.0.126.bazel => BUILD.serde-1.0.130.bazel} (93%) rename bazel/cargo/remote/{BUILD.serde_derive-1.0.126.bazel => BUILD.serde_derive-1.0.130.bazel} (88%) rename bazel/cargo/remote/{BUILD.smallvec-1.6.1.bazel => BUILD.smallvec-1.7.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.syn-1.0.72.bazel => BUILD.syn-1.0.80.bazel} (95%) rename bazel/cargo/remote/{BUILD.target-lexicon-0.12.0.bazel => BUILD.target-lexicon-0.12.2.bazel} (97%) rename bazel/cargo/remote/{BUILD.thiserror-1.0.24.bazel => BUILD.thiserror-1.0.30.bazel} (91%) rename bazel/cargo/remote/{BUILD.thiserror-impl-1.0.24.bazel => BUILD.thiserror-impl-1.0.30.bazel} (84%) rename bazel/cargo/remote/{BUILD.unicode-width-0.1.8.bazel => BUILD.unicode-width-0.1.9.bazel} (97%) rename bazel/cargo/remote/{BUILD.wasmparser-0.77.0.bazel => BUILD.wasmparser-0.80.2.bazel} (97%) create mode 100644 bazel/cargo/remote/BUILD.wasmtime-0.30.0.bazel rename bazel/cargo/remote/{BUILD.wasmtime-cranelift-0.26.0.bazel => BUILD.wasmtime-cranelift-0.30.0.bazel} (55%) delete mode 100644 bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel rename bazel/cargo/remote/{BUILD.wasmtime-environ-0.26.0.bazel => BUILD.wasmtime-environ-0.30.0.bazel} (64%) delete mode 100644 bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel rename bazel/cargo/remote/{BUILD.wasmtime-0.26.0.bazel => BUILD.wasmtime-jit-0.30.0.bazel} (58%) delete mode 100644 bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel delete mode 100644 bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel rename bazel/cargo/remote/{BUILD.wasmtime-runtime-0.26.0.bazel => BUILD.wasmtime-runtime-0.30.0.bazel} (88%) create mode 100644 bazel/cargo/remote/BUILD.wasmtime-types-0.30.0.bazel diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index 1e5fb6888..e1d97e09d 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", + actual = "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", tags = [ "cargo-raze", "manual", @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@proxy_wasm_cpp_host__env_logger__0_8_3//:env_logger", + actual = "@proxy_wasm_cpp_host__env_logger__0_8_4//:env_logger", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@proxy_wasm_cpp_host__once_cell__1_7_2//:once_cell", + actual = "@proxy_wasm_cpp_host__once_cell__1_8_0//:once_cell", tags = [ "cargo-raze", "manual", @@ -61,7 +61,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_26_0//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_30_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index a4c2ece9f..4f23f299a 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -2,20 +2,11 @@ # It is not intended for manual editing. [[package]] name = "addr2line" -version = "0.14.1" +version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7" +checksum = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd" dependencies = [ - "gimli 0.23.0", -] - -[[package]] -name = "addr2line" -version = "0.15.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03345e98af8f3d786b6d9f656ccfa6ac316d954e92bc4841f0bba20789d5fb5a" -dependencies = [ - "gimli 0.24.0", + "gimli", ] [[package]] @@ -44,9 +35,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.40" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b" +checksum = "61604a8f862e1d5c3229fdd78f8b02c68dcf73a4c4b05fd636d12240aaa242c1" [[package]] name = "atty" @@ -67,16 +58,16 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "backtrace" -version = "0.3.59" +version = "0.3.61" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4717cfcbfaa661a0fd48f8453951837ae7e8f81e481fbb136e3202d72805a744" +checksum = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01" dependencies = [ - "addr2line 0.15.1", + "addr2line", "cc", "cfg-if", "libc", "miniz_oxide", - "object 0.24.0", + "object", "rustc-demangle", ] @@ -91,9 +82,9 @@ dependencies = [ [[package]] name = "bitflags" -version = "1.2.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "byteorder" @@ -103,9 +94,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "cc" -version = "1.0.67" +version = "1.0.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd" +checksum = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd" [[package]] name = "cfg-if" @@ -130,48 +121,44 @@ dependencies = [ [[package]] name = "cpp_demangle" -version = "0.3.2" +version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44919ecaf6f99e8e737bc239408931c9a01e9a6c74814fee8242dd2506b65390" +checksum = "8ea47428dc9d2237f3c6bc134472edfd63ebba0af932e783506dcfd66f10d18a" dependencies = [ "cfg-if", - "glob", ] [[package]] name = "cranelift-bforest" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07f641ec9146b7d7498d78cd832007d66ca44a9b61f23474d1fb78e5a3701e99" +checksum = "15013642ddda44eebcf61365b2052a23fd8b7314f90ba44aa059ec02643c5139" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd1f2c0cd4ac12c954116ab2e26e40df0d51db322a855b5664fa208bc32d6686" +checksum = "298f2a7ed5fdcb062d8e78b7496b0f4b95265d20245f2d0ca88f846dd192a3a3" dependencies = [ - "byteorder", "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", - "gimli 0.23.0", + "gimli", "log", "regalloc", - "serde", "smallvec", "target-lexicon", - "thiserror", ] [[package]] name = "cranelift-codegen-meta" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "105e11b2f0ff7ac81f80dd05ec938ce529a75e36f3d598360d806bb5bfa75e5a" +checksum = "5cf504261ac62dfaf4ffb3f41d88fd885e81aba947c1241275043885bc5f0bac" dependencies = [ "cranelift-codegen-shared", "cranelift-entity", @@ -179,27 +166,24 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51e5eba2c1858d50abf023be4d88bd0450cb12d4ec2ba3ffac56353e6d09caf2" -dependencies = [ - "serde", -] +checksum = "1cd2a72db4301dbe7e5a4499035eedc1e82720009fb60603e20504d8691fa9cd" [[package]] name = "cranelift-entity" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79fa6fdd77a8d317763cd21668d3e72b96e09ac8a974326c6149f7de5aafa8ed" +checksum = "48868faa07cacf948dc4a1773648813c0e453ff9467e800ff10f6a78c021b546" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae11da9ca99f987c29e3eb39ebe10e9b879ecca30f3aeaee13db5e8e02b80fb6" +checksum = "351c9d13b4ecd1a536215ec2fd1c3ee9ee8bc31af172abf1e45ed0adb7a931df" dependencies = [ "cranelift-codegen", "log", @@ -209,29 +193,29 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "100ca4810058e23a5c4dcaedfa25289d1853f4a899d0960265aa7c54a4789351" +checksum = "6df8b556663d7611b137b24db7f6c8d9a8a27d7f29c7ea7835795152c94c1b75" dependencies = [ "cranelift-codegen", + "libc", "target-lexicon", ] [[package]] name = "cranelift-wasm" -version = "0.73.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "607826643d74cf2cc36973ebffd1790a11d1781e14e3f95cf5529942b2168a67" +checksum = "7a69816d90db694fa79aa39b89dda7208a4ac74b6f2b8f3c4da26ee1c8bdfc5e" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", "itertools", "log", - "serde", "smallvec", - "thiserror", "wasmparser", + "wasmtime-types", ] [[package]] @@ -245,9 +229,9 @@ dependencies = [ [[package]] name = "ed25519-compact" -version = "0.1.9" +version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaf396058cc7285b342f9a10ed7a377f088942396c46c4c9a7eb4f0782cb1171" +checksum = "f1f45ef578ef75efffba301628066d951042f6e988f21f8b548928468ba5877b" dependencies = [ "getrandom", ] @@ -260,9 +244,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "env_logger" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17392a012ea30ef05a610aa97dfb49496e71c9f676b27879922ea5bdf60d9d3f" +checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" dependencies = [ "atty", "humantime", @@ -279,9 +263,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "getrandom" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8" +checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" dependencies = [ "cfg-if", "libc", @@ -290,38 +274,26 @@ dependencies = [ [[package]] name = "gimli" -version = "0.23.0" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce" +checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7" dependencies = [ "fallible-iterator", "indexmap", "stable_deref_trait", ] -[[package]] -name = "gimli" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189" - -[[package]] -name = "glob" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574" - [[package]] name = "hashbrown" -version = "0.9.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04" +checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" [[package]] name = "hermit-abi" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" dependencies = [ "libc", ] @@ -340,9 +312,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indexmap" -version = "1.6.2" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3" +checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" dependencies = [ "autocfg", "hashbrown", @@ -351,9 +323,9 @@ dependencies = [ [[package]] name = "itertools" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319" +checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" dependencies = [ "either", ] @@ -366,9 +338,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.94" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e" +checksum = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6" [[package]] name = "log" @@ -390,15 +362,15 @@ dependencies = [ [[package]] name = "memchr" -version = "2.4.0" +version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc" +checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "memoffset" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f83fb6581e8ed1f85fd45c116db8405483899489e38406156c25eb743554361d" +checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9" dependencies = [ "autocfg", ] @@ -421,25 +393,20 @@ checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" [[package]] name = "object" -version = "0.23.0" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4" +checksum = "39f37e50073ccad23b6d09bcb5b263f4e76d3bb6038e4a3c08e52162ffa8abc2" dependencies = [ "crc32fast", "indexmap", + "memchr", ] -[[package]] -name = "object" -version = "0.24.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170" - [[package]] name = "once_cell" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3" +checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" [[package]] name = "parity-wasm" @@ -455,42 +422,42 @@ checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58" [[package]] name = "ppv-lite86" -version = "0.2.10" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857" +checksum = "c3ca011bd0129ff4ae15cd04c4eef202cadf6c51c21e47aba319b4e0501db741" [[package]] name = "proc-macro2" -version = "1.0.26" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec" +checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70" dependencies = [ "unicode-xid", ] [[package]] name = "psm" -version = "0.1.12" +version = "0.1.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a" +checksum = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69" dependencies = [ "cc", ] [[package]] name = "quote" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" dependencies = [ "proc-macro2", ] [[package]] name = "rand" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e" +checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" dependencies = [ "libc", "rand_chacha", @@ -500,9 +467,9 @@ dependencies = [ [[package]] name = "rand_chacha" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" dependencies = [ "ppv-lite86", "rand_core", @@ -510,18 +477,18 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7" +checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" dependencies = [ "getrandom", ] [[package]] name = "rand_hc" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73" +checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" dependencies = [ "rand_core", ] @@ -534,7 +501,6 @@ checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" dependencies = [ "log", "rustc-hash", - "serde", "smallvec", ] @@ -569,9 +535,9 @@ dependencies = [ [[package]] name = "rustc-demangle" -version = "0.1.19" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "410f7acf3cb3a44527c5d9546bad4bf4e6c460915d5f9f2fc524498bfe8f70ce" +checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" [[package]] name = "rustc-hash" @@ -581,18 +547,18 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "serde" -version = "1.0.126" +version = "1.0.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03" +checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.126" +version = "1.0.130" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43" +checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b" dependencies = [ "proc-macro2", "quote", @@ -601,9 +567,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e" +checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309" [[package]] name = "stable_deref_trait" @@ -619,9 +585,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "syn" -version = "1.0.72" +version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82" +checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194" dependencies = [ "proc-macro2", "quote", @@ -630,9 +596,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.0" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64ae3b39281e4b14b8123bdbaddd472b7dfe215e444181f2f9d2443c2444f834" +checksum = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff" [[package]] name = "termcolor" @@ -654,18 +620,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.24" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e" +checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.24" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0" +checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", @@ -674,9 +640,9 @@ dependencies = [ [[package]] name = "unicode-width" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3" +checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" [[package]] name = "unicode-xid" @@ -698,9 +664,9 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasmparser" -version = "0.77.0" +version = "0.80.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b35c86d22e720a07d954ebbed772d01180501afe7d03d464f413bb5f8914a8d6" +checksum = "449167e2832691a1bff24cde28d2804e90e09586a448c8e76984792c44334a6b" [[package]] name = "wasmsign" @@ -718,9 +684,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "0.26.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4da03115f8ad36e50edeb6640f4ba27ed7e9a6f05c2f98f728c762966f7054c6" +checksum = "899b1e5261e3d3420860dacfb952871ace9d7ba9f953b314f67aaf9f8e2a4d89" dependencies = [ "anyhow", "backtrace", @@ -731,24 +697,24 @@ dependencies = [ "lazy_static", "libc", "log", + "object", "paste", "psm", "region", "rustc-demangle", "serde", - "smallvec", "target-lexicon", "wasmparser", + "wasmtime-cranelift", "wasmtime-environ", "wasmtime-jit", - "wasmtime-profiling", "wasmtime-runtime", "winapi", ] [[package]] name = "wasmtime-c-api-bazel" -version = "0.25.0" +version = "0.30.0" dependencies = [ "anyhow", "env_logger", @@ -761,7 +727,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.26.0#6b77786a6e758e91da9484a1c80b6fa5f88e1b3d" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.30.0#572fbc8c54b5a9519154c57e28b86cfaaba57bbb" dependencies = [ "proc-macro2", "quote", @@ -769,28 +735,19 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.26.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b73c47553954eab22f432a7a60bcd695eb46508c2088cb0aa1cfd060538db3b6" +checksum = "99706bacdf5143f7f967d417f0437cce83a724cf4518cb1a3ff40e519d793021" dependencies = [ + "anyhow", "cranelift-codegen", "cranelift-entity", "cranelift-frontend", + "cranelift-native", "cranelift-wasm", - "wasmparser", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-debug" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5241e603c262b2ee0dfb5b2245ad539d0a99f0589909fbffc91d2a8035f2d20a" -dependencies = [ - "anyhow", - "gimli 0.23.0", + "gimli", "more-asserts", - "object 0.23.0", + "object", "target-lexicon", "thiserror", "wasmparser", @@ -799,92 +756,54 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.26.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb8d356abc04754f5936b9377441a4a202f6bba7ad997d2cd66acb3908bc85a3" +checksum = "ac42cb562a2f98163857605f02581d719a410c5abe93606128c59a10e84de85b" dependencies = [ "anyhow", "cfg-if", - "cranelift-codegen", "cranelift-entity", - "cranelift-wasm", - "gimli 0.23.0", + "gimli", "indexmap", "log", "more-asserts", - "region", + "object", "serde", + "target-lexicon", "thiserror", "wasmparser", + "wasmtime-types", ] [[package]] name = "wasmtime-jit" -version = "0.26.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81b066a3290a903c5beb7d765b3e82e00cd4f8ac0475297f91330fbe8e16bb17" +checksum = "24f46dd757225f29a419be415ea6fb8558df9b0194f07e3a6a9c99d0e14dd534" dependencies = [ - "addr2line 0.14.1", + "addr2line", "anyhow", + "bincode", "cfg-if", - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "cranelift-native", - "cranelift-wasm", - "gimli 0.23.0", + "gimli", "log", "more-asserts", - "object 0.23.0", + "object", "region", "serde", "target-lexicon", "thiserror", "wasmparser", - "wasmtime-cranelift", - "wasmtime-debug", "wasmtime-environ", - "wasmtime-obj", - "wasmtime-profiling", "wasmtime-runtime", "winapi", ] -[[package]] -name = "wasmtime-obj" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd9d5c6c8924ea1fb2372d26c0546a8c5aab94001d5ddedaa36fd7b090c04de2" -dependencies = [ - "anyhow", - "more-asserts", - "object 0.23.0", - "target-lexicon", - "wasmtime-debug", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-profiling" -version = "0.26.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44760e80dd5f53e9af6c976120f9f1d35908ee0c646a3144083f0a57b7123ba7" -dependencies = [ - "anyhow", - "cfg-if", - "lazy_static", - "libc", - "serde", - "target-lexicon", - "wasmtime-environ", - "wasmtime-runtime", -] - [[package]] name = "wasmtime-runtime" -version = "0.26.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9701c6412897ba3a10fb4e17c4ec29723ed33d6feaaaeaf59f53799107ce7351" +checksum = "0122215a44923f395487048cb0a1d60b5b32c73aab15cf9364b798dbaff0996f" dependencies = [ "anyhow", "backtrace", @@ -904,6 +823,18 @@ dependencies = [ "winapi", ] +[[package]] +name = "wasmtime-types" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9b01caf8a204ef634ebac99700e77ba716d3ebbb68a1abbc2ceb6b16dbec9e4" +dependencies = [ + "cranelift-entity", + "serde", + "thiserror", + "wasmparser", +] + [[package]] name = "winapi" version = "0.3.9" diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 1b7bdb132..37d245db5 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.25.0" +version = "0.30.0" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.26.0", default-features = false} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.26.0", path = "crates/c-api/macros"} +wasmtime = {version = "0.30.0", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.30.0"} wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} [package.metadata.raze] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index c6b0c1920..20a0d2042 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -13,22 +13,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" maybe( http_archive, - name = "proxy_wasm_cpp_host__addr2line__0_14_1", - url = "https://crates.io/api/v1/crates/addr2line/0.14.1/download", + name = "proxy_wasm_cpp_host__addr2line__0_16_0", + url = "https://crates.io/api/v1/crates/addr2line/0.16.0/download", type = "tar.gz", - sha256 = "a55f82cfe485775d02112886f4169bde0c5894d75e79ead7eafe7e40a25e45f7", - strip_prefix = "addr2line-0.14.1", - build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.14.1.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__addr2line__0_15_1", - url = "https://crates.io/api/v1/crates/addr2line/0.15.1/download", - type = "tar.gz", - sha256 = "03345e98af8f3d786b6d9f656ccfa6ac316d954e92bc4841f0bba20789d5fb5a", - strip_prefix = "addr2line-0.15.1", - build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.15.1.bazel"), + sha256 = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd", + strip_prefix = "addr2line-0.16.0", + build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.16.0.bazel"), ) maybe( @@ -63,12 +53,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__anyhow__1_0_40", - url = "https://crates.io/api/v1/crates/anyhow/1.0.40/download", + name = "proxy_wasm_cpp_host__anyhow__1_0_44", + url = "https://crates.io/api/v1/crates/anyhow/1.0.44/download", type = "tar.gz", - sha256 = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b", - strip_prefix = "anyhow-1.0.40", - build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.40.bazel"), + sha256 = "61604a8f862e1d5c3229fdd78f8b02c68dcf73a4c4b05fd636d12240aaa242c1", + strip_prefix = "anyhow-1.0.44", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.44.bazel"), ) maybe( @@ -93,12 +83,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__backtrace__0_3_59", - url = "https://crates.io/api/v1/crates/backtrace/0.3.59/download", + name = "proxy_wasm_cpp_host__backtrace__0_3_61", + url = "https://crates.io/api/v1/crates/backtrace/0.3.61/download", type = "tar.gz", - sha256 = "4717cfcbfaa661a0fd48f8453951837ae7e8f81e481fbb136e3202d72805a744", - strip_prefix = "backtrace-0.3.59", - build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.59.bazel"), + sha256 = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01", + strip_prefix = "backtrace-0.3.61", + build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.61.bazel"), ) maybe( @@ -113,12 +103,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__bitflags__1_2_1", - url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download", + name = "proxy_wasm_cpp_host__bitflags__1_3_2", + url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", type = "tar.gz", - sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693", - strip_prefix = "bitflags-1.2.1", - build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.2.1.bazel"), + sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", + strip_prefix = "bitflags-1.3.2", + build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.3.2.bazel"), ) maybe( @@ -133,12 +123,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cc__1_0_67", - url = "https://crates.io/api/v1/crates/cc/1.0.67/download", + name = "proxy_wasm_cpp_host__cc__1_0_71", + url = "https://crates.io/api/v1/crates/cc/1.0.71/download", type = "tar.gz", - sha256 = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd", - strip_prefix = "cc-1.0.67", - build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.67.bazel"), + sha256 = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd", + strip_prefix = "cc-1.0.71", + build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.71.bazel"), ) maybe( @@ -163,92 +153,92 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cpp_demangle__0_3_2", - url = "https://crates.io/api/v1/crates/cpp_demangle/0.3.2/download", + name = "proxy_wasm_cpp_host__cpp_demangle__0_3_3", + url = "https://crates.io/api/v1/crates/cpp_demangle/0.3.3/download", type = "tar.gz", - sha256 = "44919ecaf6f99e8e737bc239408931c9a01e9a6c74814fee8242dd2506b65390", - strip_prefix = "cpp_demangle-0.3.2", - build_file = Label("//bazel/cargo/remote:BUILD.cpp_demangle-0.3.2.bazel"), + sha256 = "8ea47428dc9d2237f3c6bc134472edfd63ebba0af932e783506dcfd66f10d18a", + strip_prefix = "cpp_demangle-0.3.3", + build_file = Label("//bazel/cargo/remote:BUILD.cpp_demangle-0.3.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.77.0/download", type = "tar.gz", - sha256 = "07f641ec9146b7d7498d78cd832007d66ca44a9b61f23474d1fb78e5a3701e99", - strip_prefix = "cranelift-bforest-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.73.0.bazel"), + sha256 = "15013642ddda44eebcf61365b2052a23fd8b7314f90ba44aa059ec02643c5139", + strip_prefix = "cranelift-bforest-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.77.0/download", type = "tar.gz", - sha256 = "fd1f2c0cd4ac12c954116ab2e26e40df0d51db322a855b5664fa208bc32d6686", - strip_prefix = "cranelift-codegen-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.73.0.bazel"), + sha256 = "298f2a7ed5fdcb062d8e78b7496b0f4b95265d20245f2d0ca88f846dd192a3a3", + strip_prefix = "cranelift-codegen-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.77.0/download", type = "tar.gz", - sha256 = "105e11b2f0ff7ac81f80dd05ec938ce529a75e36f3d598360d806bb5bfa75e5a", - strip_prefix = "cranelift-codegen-meta-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.73.0.bazel"), + sha256 = "5cf504261ac62dfaf4ffb3f41d88fd885e81aba947c1241275043885bc5f0bac", + strip_prefix = "cranelift-codegen-meta-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.77.0/download", type = "tar.gz", - sha256 = "51e5eba2c1858d50abf023be4d88bd0450cb12d4ec2ba3ffac56353e6d09caf2", - strip_prefix = "cranelift-codegen-shared-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.73.0.bazel"), + sha256 = "1cd2a72db4301dbe7e5a4499035eedc1e82720009fb60603e20504d8691fa9cd", + strip_prefix = "cranelift-codegen-shared-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_entity__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.77.0/download", type = "tar.gz", - sha256 = "79fa6fdd77a8d317763cd21668d3e72b96e09ac8a974326c6149f7de5aafa8ed", - strip_prefix = "cranelift-entity-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.73.0.bazel"), + sha256 = "48868faa07cacf948dc4a1773648813c0e453ff9467e800ff10f6a78c021b546", + strip_prefix = "cranelift-entity-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.77.0/download", type = "tar.gz", - sha256 = "ae11da9ca99f987c29e3eb39ebe10e9b879ecca30f3aeaee13db5e8e02b80fb6", - strip_prefix = "cranelift-frontend-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.73.0.bazel"), + sha256 = "351c9d13b4ecd1a536215ec2fd1c3ee9ee8bc31af172abf1e45ed0adb7a931df", + strip_prefix = "cranelift-frontend-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_native__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.77.0/download", type = "tar.gz", - sha256 = "100ca4810058e23a5c4dcaedfa25289d1853f4a899d0960265aa7c54a4789351", - strip_prefix = "cranelift-native-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.73.0.bazel"), + sha256 = "6df8b556663d7611b137b24db7f6c8d9a8a27d7f29c7ea7835795152c94c1b75", + strip_prefix = "cranelift-native-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.77.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_73_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.73.0/download", + name = "proxy_wasm_cpp_host__cranelift_wasm__0_77_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.77.0/download", type = "tar.gz", - sha256 = "607826643d74cf2cc36973ebffd1790a11d1781e14e3f95cf5529942b2168a67", - strip_prefix = "cranelift-wasm-0.73.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.73.0.bazel"), + sha256 = "7a69816d90db694fa79aa39b89dda7208a4ac74b6f2b8f3c4da26ee1c8bdfc5e", + strip_prefix = "cranelift-wasm-0.77.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.77.0.bazel"), ) maybe( @@ -263,12 +253,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__ed25519_compact__0_1_9", - url = "https://crates.io/api/v1/crates/ed25519-compact/0.1.9/download", + name = "proxy_wasm_cpp_host__ed25519_compact__0_1_11", + url = "https://crates.io/api/v1/crates/ed25519-compact/0.1.11/download", type = "tar.gz", - sha256 = "aaf396058cc7285b342f9a10ed7a377f088942396c46c4c9a7eb4f0782cb1171", - strip_prefix = "ed25519-compact-0.1.9", - build_file = Label("//bazel/cargo/remote:BUILD.ed25519-compact-0.1.9.bazel"), + sha256 = "f1f45ef578ef75efffba301628066d951042f6e988f21f8b548928468ba5877b", + strip_prefix = "ed25519-compact-0.1.11", + build_file = Label("//bazel/cargo/remote:BUILD.ed25519-compact-0.1.11.bazel"), ) maybe( @@ -283,12 +273,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__env_logger__0_8_3", - url = "https://crates.io/api/v1/crates/env_logger/0.8.3/download", + name = "proxy_wasm_cpp_host__env_logger__0_8_4", + url = "https://crates.io/api/v1/crates/env_logger/0.8.4/download", type = "tar.gz", - sha256 = "17392a012ea30ef05a610aa97dfb49496e71c9f676b27879922ea5bdf60d9d3f", - strip_prefix = "env_logger-0.8.3", - build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.3.bazel"), + sha256 = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3", + strip_prefix = "env_logger-0.8.4", + build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.4.bazel"), ) maybe( @@ -303,62 +293,42 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__getrandom__0_2_2", - url = "https://crates.io/api/v1/crates/getrandom/0.2.2/download", - type = "tar.gz", - sha256 = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8", - strip_prefix = "getrandom-0.2.2", - build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__gimli__0_23_0", - url = "https://crates.io/api/v1/crates/gimli/0.23.0/download", - type = "tar.gz", - sha256 = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce", - strip_prefix = "gimli-0.23.0", - build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.23.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__gimli__0_24_0", - url = "https://crates.io/api/v1/crates/gimli/0.24.0/download", + name = "proxy_wasm_cpp_host__getrandom__0_2_3", + url = "https://crates.io/api/v1/crates/getrandom/0.2.3/download", type = "tar.gz", - sha256 = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189", - strip_prefix = "gimli-0.24.0", - build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.24.0.bazel"), + sha256 = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753", + strip_prefix = "getrandom-0.2.3", + build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__glob__0_3_0", - url = "https://crates.io/api/v1/crates/glob/0.3.0/download", + name = "proxy_wasm_cpp_host__gimli__0_25_0", + url = "https://crates.io/api/v1/crates/gimli/0.25.0/download", type = "tar.gz", - sha256 = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574", - strip_prefix = "glob-0.3.0", - build_file = Label("//bazel/cargo/remote:BUILD.glob-0.3.0.bazel"), + sha256 = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7", + strip_prefix = "gimli-0.25.0", + build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.25.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__hashbrown__0_9_1", - url = "https://crates.io/api/v1/crates/hashbrown/0.9.1/download", + name = "proxy_wasm_cpp_host__hashbrown__0_11_2", + url = "https://crates.io/api/v1/crates/hashbrown/0.11.2/download", type = "tar.gz", - sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04", - strip_prefix = "hashbrown-0.9.1", - build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.9.1.bazel"), + sha256 = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e", + strip_prefix = "hashbrown-0.11.2", + build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.11.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__hermit_abi__0_1_18", - url = "https://crates.io/api/v1/crates/hermit-abi/0.1.18/download", + name = "proxy_wasm_cpp_host__hermit_abi__0_1_19", + url = "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download", type = "tar.gz", - sha256 = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c", - strip_prefix = "hermit-abi-0.1.18", - build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.18.bazel"), + sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", + strip_prefix = "hermit-abi-0.1.19", + build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.19.bazel"), ) maybe( @@ -383,22 +353,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__indexmap__1_6_2", - url = "https://crates.io/api/v1/crates/indexmap/1.6.2/download", + name = "proxy_wasm_cpp_host__indexmap__1_7_0", + url = "https://crates.io/api/v1/crates/indexmap/1.7.0/download", type = "tar.gz", - sha256 = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3", - strip_prefix = "indexmap-1.6.2", - build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.6.2.bazel"), + sha256 = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5", + strip_prefix = "indexmap-1.7.0", + build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.7.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__itertools__0_10_0", - url = "https://crates.io/api/v1/crates/itertools/0.10.0/download", + name = "proxy_wasm_cpp_host__itertools__0_10_1", + url = "https://crates.io/api/v1/crates/itertools/0.10.1/download", type = "tar.gz", - sha256 = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319", - strip_prefix = "itertools-0.10.0", - build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.10.0.bazel"), + sha256 = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf", + strip_prefix = "itertools-0.10.1", + build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.10.1.bazel"), ) maybe( @@ -413,12 +383,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_94", - url = "https://crates.io/api/v1/crates/libc/0.2.94/download", + name = "proxy_wasm_cpp_host__libc__0_2_103", + url = "https://crates.io/api/v1/crates/libc/0.2.103/download", type = "tar.gz", - sha256 = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e", - strip_prefix = "libc-0.2.94", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.94.bazel"), + sha256 = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6", + strip_prefix = "libc-0.2.103", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.103.bazel"), ) maybe( @@ -443,22 +413,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__memchr__2_4_0", - url = "https://crates.io/api/v1/crates/memchr/2.4.0/download", + name = "proxy_wasm_cpp_host__memchr__2_4_1", + url = "https://crates.io/api/v1/crates/memchr/2.4.1/download", type = "tar.gz", - sha256 = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc", - strip_prefix = "memchr-2.4.0", - build_file = Label("//bazel/cargo/remote:BUILD.memchr-2.4.0.bazel"), + sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a", + strip_prefix = "memchr-2.4.1", + build_file = Label("//bazel/cargo/remote:BUILD.memchr-2.4.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__memoffset__0_6_3", - url = "https://crates.io/api/v1/crates/memoffset/0.6.3/download", + name = "proxy_wasm_cpp_host__memoffset__0_6_4", + url = "https://crates.io/api/v1/crates/memoffset/0.6.4/download", type = "tar.gz", - sha256 = "f83fb6581e8ed1f85fd45c116db8405483899489e38406156c25eb743554361d", - strip_prefix = "memoffset-0.6.3", - build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.6.3.bazel"), + sha256 = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9", + strip_prefix = "memoffset-0.6.4", + build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.6.4.bazel"), ) maybe( @@ -483,32 +453,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__object__0_23_0", - url = "https://crates.io/api/v1/crates/object/0.23.0/download", + name = "proxy_wasm_cpp_host__object__0_26_2", + url = "https://crates.io/api/v1/crates/object/0.26.2/download", type = "tar.gz", - sha256 = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4", - strip_prefix = "object-0.23.0", - build_file = Label("//bazel/cargo/remote:BUILD.object-0.23.0.bazel"), + sha256 = "39f37e50073ccad23b6d09bcb5b263f4e76d3bb6038e4a3c08e52162ffa8abc2", + strip_prefix = "object-0.26.2", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.26.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__object__0_24_0", - url = "https://crates.io/api/v1/crates/object/0.24.0/download", + name = "proxy_wasm_cpp_host__once_cell__1_8_0", + url = "https://crates.io/api/v1/crates/once_cell/1.8.0/download", type = "tar.gz", - sha256 = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170", - strip_prefix = "object-0.24.0", - build_file = Label("//bazel/cargo/remote:BUILD.object-0.24.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__once_cell__1_7_2", - url = "https://crates.io/api/v1/crates/once_cell/1.7.2/download", - type = "tar.gz", - sha256 = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3", - strip_prefix = "once_cell-1.7.2", - build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.7.2.bazel"), + sha256 = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56", + strip_prefix = "once_cell-1.8.0", + build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.8.0.bazel"), ) maybe( @@ -533,82 +493,82 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__ppv_lite86__0_2_10", - url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.10/download", + name = "proxy_wasm_cpp_host__ppv_lite86__0_2_14", + url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.14/download", type = "tar.gz", - sha256 = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857", - strip_prefix = "ppv-lite86-0.2.10", - build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.10.bazel"), + sha256 = "c3ca011bd0129ff4ae15cd04c4eef202cadf6c51c21e47aba319b4e0501db741", + strip_prefix = "ppv-lite86-0.2.14", + build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.14.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__proc_macro2__1_0_26", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.26/download", + name = "proxy_wasm_cpp_host__proc_macro2__1_0_30", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.30/download", type = "tar.gz", - sha256 = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec", - strip_prefix = "proc-macro2-1.0.26", - build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.26.bazel"), + sha256 = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70", + strip_prefix = "proc-macro2-1.0.30", + build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.30.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__psm__0_1_12", - url = "https://crates.io/api/v1/crates/psm/0.1.12/download", + name = "proxy_wasm_cpp_host__psm__0_1_16", + url = "https://crates.io/api/v1/crates/psm/0.1.16/download", type = "tar.gz", - sha256 = "3abf49e5417290756acfd26501536358560c4a5cc4a0934d390939acb3e7083a", - strip_prefix = "psm-0.1.12", - build_file = Label("//bazel/cargo/remote:BUILD.psm-0.1.12.bazel"), + sha256 = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69", + strip_prefix = "psm-0.1.16", + build_file = Label("//bazel/cargo/remote:BUILD.psm-0.1.16.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__quote__1_0_9", - url = "https://crates.io/api/v1/crates/quote/1.0.9/download", + name = "proxy_wasm_cpp_host__quote__1_0_10", + url = "https://crates.io/api/v1/crates/quote/1.0.10/download", type = "tar.gz", - sha256 = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7", - strip_prefix = "quote-1.0.9", - build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.9.bazel"), + sha256 = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05", + strip_prefix = "quote-1.0.10", + build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.10.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand__0_8_3", - url = "https://crates.io/api/v1/crates/rand/0.8.3/download", + name = "proxy_wasm_cpp_host__rand__0_8_4", + url = "https://crates.io/api/v1/crates/rand/0.8.4/download", type = "tar.gz", - sha256 = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e", - strip_prefix = "rand-0.8.3", - build_file = Label("//bazel/cargo/remote:BUILD.rand-0.8.3.bazel"), + sha256 = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8", + strip_prefix = "rand-0.8.4", + build_file = Label("//bazel/cargo/remote:BUILD.rand-0.8.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_chacha__0_3_0", - url = "https://crates.io/api/v1/crates/rand_chacha/0.3.0/download", + name = "proxy_wasm_cpp_host__rand_chacha__0_3_1", + url = "https://crates.io/api/v1/crates/rand_chacha/0.3.1/download", type = "tar.gz", - sha256 = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d", - strip_prefix = "rand_chacha-0.3.0", - build_file = Label("//bazel/cargo/remote:BUILD.rand_chacha-0.3.0.bazel"), + sha256 = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88", + strip_prefix = "rand_chacha-0.3.1", + build_file = Label("//bazel/cargo/remote:BUILD.rand_chacha-0.3.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_core__0_6_2", - url = "https://crates.io/api/v1/crates/rand_core/0.6.2/download", + name = "proxy_wasm_cpp_host__rand_core__0_6_3", + url = "https://crates.io/api/v1/crates/rand_core/0.6.3/download", type = "tar.gz", - sha256 = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7", - strip_prefix = "rand_core-0.6.2", - build_file = Label("//bazel/cargo/remote:BUILD.rand_core-0.6.2.bazel"), + sha256 = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7", + strip_prefix = "rand_core-0.6.3", + build_file = Label("//bazel/cargo/remote:BUILD.rand_core-0.6.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_hc__0_3_0", - url = "https://crates.io/api/v1/crates/rand_hc/0.3.0/download", + name = "proxy_wasm_cpp_host__rand_hc__0_3_1", + url = "https://crates.io/api/v1/crates/rand_hc/0.3.1/download", type = "tar.gz", - sha256 = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73", - strip_prefix = "rand_hc-0.3.0", - build_file = Label("//bazel/cargo/remote:BUILD.rand_hc-0.3.0.bazel"), + sha256 = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7", + strip_prefix = "rand_hc-0.3.1", + build_file = Label("//bazel/cargo/remote:BUILD.rand_hc-0.3.1.bazel"), ) maybe( @@ -653,12 +613,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__rustc_demangle__0_1_19", - url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.19/download", + name = "proxy_wasm_cpp_host__rustc_demangle__0_1_21", + url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.21/download", type = "tar.gz", - sha256 = "410f7acf3cb3a44527c5d9546bad4bf4e6c460915d5f9f2fc524498bfe8f70ce", - strip_prefix = "rustc-demangle-0.1.19", - build_file = Label("//bazel/cargo/remote:BUILD.rustc-demangle-0.1.19.bazel"), + sha256 = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342", + strip_prefix = "rustc-demangle-0.1.21", + build_file = Label("//bazel/cargo/remote:BUILD.rustc-demangle-0.1.21.bazel"), ) maybe( @@ -673,32 +633,32 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__serde__1_0_126", - url = "https://crates.io/api/v1/crates/serde/1.0.126/download", + name = "proxy_wasm_cpp_host__serde__1_0_130", + url = "https://crates.io/api/v1/crates/serde/1.0.130/download", type = "tar.gz", - sha256 = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03", - strip_prefix = "serde-1.0.126", - build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.126.bazel"), + sha256 = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913", + strip_prefix = "serde-1.0.130", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.130.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__serde_derive__1_0_126", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.126/download", + name = "proxy_wasm_cpp_host__serde_derive__1_0_130", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.130/download", type = "tar.gz", - sha256 = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43", - strip_prefix = "serde_derive-1.0.126", - build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.126.bazel"), + sha256 = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b", + strip_prefix = "serde_derive-1.0.130", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.130.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__smallvec__1_6_1", - url = "https://crates.io/api/v1/crates/smallvec/1.6.1/download", + name = "proxy_wasm_cpp_host__smallvec__1_7_0", + url = "https://crates.io/api/v1/crates/smallvec/1.7.0/download", type = "tar.gz", - sha256 = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e", - strip_prefix = "smallvec-1.6.1", - build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.6.1.bazel"), + sha256 = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309", + strip_prefix = "smallvec-1.7.0", + build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.7.0.bazel"), ) maybe( @@ -723,22 +683,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_72", - url = "https://crates.io/api/v1/crates/syn/1.0.72/download", + name = "proxy_wasm_cpp_host__syn__1_0_80", + url = "https://crates.io/api/v1/crates/syn/1.0.80/download", type = "tar.gz", - sha256 = "a1e8cdbefb79a9a5a65e0db8b47b723ee907b7c7f8496c76a1770b5c310bab82", - strip_prefix = "syn-1.0.72", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.72.bazel"), + sha256 = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194", + strip_prefix = "syn-1.0.80", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.80.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__target_lexicon__0_12_0", - url = "https://crates.io/api/v1/crates/target-lexicon/0.12.0/download", + name = "proxy_wasm_cpp_host__target_lexicon__0_12_2", + url = "https://crates.io/api/v1/crates/target-lexicon/0.12.2/download", type = "tar.gz", - sha256 = "64ae3b39281e4b14b8123bdbaddd472b7dfe215e444181f2f9d2443c2444f834", - strip_prefix = "target-lexicon-0.12.0", - build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.12.0.bazel"), + sha256 = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff", + strip_prefix = "target-lexicon-0.12.2", + build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.12.2.bazel"), ) maybe( @@ -763,32 +723,32 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__thiserror__1_0_24", - url = "https://crates.io/api/v1/crates/thiserror/1.0.24/download", + name = "proxy_wasm_cpp_host__thiserror__1_0_30", + url = "https://crates.io/api/v1/crates/thiserror/1.0.30/download", type = "tar.gz", - sha256 = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e", - strip_prefix = "thiserror-1.0.24", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.24.bazel"), + sha256 = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417", + strip_prefix = "thiserror-1.0.30", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.30.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__thiserror_impl__1_0_24", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.24/download", + name = "proxy_wasm_cpp_host__thiserror_impl__1_0_30", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.30/download", type = "tar.gz", - sha256 = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0", - strip_prefix = "thiserror-impl-1.0.24", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.24.bazel"), + sha256 = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b", + strip_prefix = "thiserror-impl-1.0.30", + build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.30.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__unicode_width__0_1_8", - url = "https://crates.io/api/v1/crates/unicode-width/0.1.8/download", + name = "proxy_wasm_cpp_host__unicode_width__0_1_9", + url = "https://crates.io/api/v1/crates/unicode-width/0.1.9/download", type = "tar.gz", - sha256 = "9337591893a19b88d8d87f2cec1e73fad5cdfd10e5a6f349f498ad6ea2ffb1e3", - strip_prefix = "unicode-width-0.1.8", - build_file = Label("//bazel/cargo/remote:BUILD.unicode-width-0.1.8.bazel"), + sha256 = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973", + strip_prefix = "unicode-width-0.1.9", + build_file = Label("//bazel/cargo/remote:BUILD.unicode-width-0.1.9.bazel"), ) maybe( @@ -823,12 +783,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmparser__0_77_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.77.0/download", + name = "proxy_wasm_cpp_host__wasmparser__0_80_2", + url = "https://crates.io/api/v1/crates/wasmparser/0.80.2/download", type = "tar.gz", - sha256 = "b35c86d22e720a07d954ebbed772d01180501afe7d03d464f413bb5f8914a8d6", - strip_prefix = "wasmparser-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.77.0.bazel"), + sha256 = "449167e2832691a1bff24cde28d2804e90e09586a448c8e76984792c44334a6b", + strip_prefix = "wasmparser-0.80.2", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.80.2.bazel"), ) maybe( @@ -842,91 +802,71 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.26.0/download", + name = "proxy_wasm_cpp_host__wasmtime__0_30_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.30.0/download", type = "tar.gz", - sha256 = "4da03115f8ad36e50edeb6640f4ba27ed7e9a6f05c2f98f728c762966f7054c6", - strip_prefix = "wasmtime-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.26.0.bazel"), + sha256 = "899b1e5261e3d3420860dacfb952871ace9d7ba9f953b314f67aaf9f8e2a4d89", + strip_prefix = "wasmtime-0.30.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.30.0.bazel"), ) maybe( new_git_repository, name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "6b77786a6e758e91da9484a1c80b6fa5f88e1b3d", + commit = "572fbc8c54b5a9519154c57e28b86cfaaba57bbb", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.26.0/download", - type = "tar.gz", - sha256 = "b73c47553954eab22f432a7a60bcd695eb46508c2088cb0aa1cfd060538db3b6", - strip_prefix = "wasmtime-cranelift-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.26.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__wasmtime_debug__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime-debug/0.26.0/download", - type = "tar.gz", - sha256 = "5241e603c262b2ee0dfb5b2245ad539d0a99f0589909fbffc91d2a8035f2d20a", - strip_prefix = "wasmtime-debug-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-debug-0.26.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.26.0/download", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_30_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.30.0/download", type = "tar.gz", - sha256 = "fb8d356abc04754f5936b9377441a4a202f6bba7ad997d2cd66acb3908bc85a3", - strip_prefix = "wasmtime-environ-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.26.0.bazel"), + sha256 = "99706bacdf5143f7f967d417f0437cce83a724cf4518cb1a3ff40e519d793021", + strip_prefix = "wasmtime-cranelift-0.30.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.30.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.26.0/download", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_30_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.30.0/download", type = "tar.gz", - sha256 = "81b066a3290a903c5beb7d765b3e82e00cd4f8ac0475297f91330fbe8e16bb17", - strip_prefix = "wasmtime-jit-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.26.0.bazel"), + sha256 = "ac42cb562a2f98163857605f02581d719a410c5abe93606128c59a10e84de85b", + strip_prefix = "wasmtime-environ-0.30.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.30.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_obj__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime-obj/0.26.0/download", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_30_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.30.0/download", type = "tar.gz", - sha256 = "bd9d5c6c8924ea1fb2372d26c0546a8c5aab94001d5ddedaa36fd7b090c04de2", - strip_prefix = "wasmtime-obj-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-obj-0.26.0.bazel"), + sha256 = "24f46dd757225f29a419be415ea6fb8558df9b0194f07e3a6a9c99d0e14dd534", + strip_prefix = "wasmtime-jit-0.30.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.30.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_profiling__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime-profiling/0.26.0/download", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_30_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.30.0/download", type = "tar.gz", - sha256 = "44760e80dd5f53e9af6c976120f9f1d35908ee0c646a3144083f0a57b7123ba7", - strip_prefix = "wasmtime-profiling-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-profiling-0.26.0.bazel"), + sha256 = "0122215a44923f395487048cb0a1d60b5b32c73aab15cf9364b798dbaff0996f", + strip_prefix = "wasmtime-runtime-0.30.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.30.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_26_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.26.0/download", + name = "proxy_wasm_cpp_host__wasmtime_types__0_30_0", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.30.0/download", type = "tar.gz", - sha256 = "9701c6412897ba3a10fb4e17c4ec29723ed33d6feaaaeaf59f53799107ce7351", - strip_prefix = "wasmtime-runtime-0.26.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.26.0.bazel"), + sha256 = "f9b01caf8a204ef634ebac99700e77ba716d3ebbb68a1abbc2ceb6b16dbec9e4", + strip_prefix = "wasmtime-types-0.30.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.30.0.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel b/bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel deleted file mode 100644 index be83fd09f..000000000 --- a/bazel/cargo/remote/BUILD.addr2line-0.15.1.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "addr2line" with type "example" omitted - -rust_library( - name = "addr2line", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.15.1", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__gimli__0_24_0//:gimli", - ], -) - -# Unsupported target "correctness" with type "test" omitted - -# Unsupported target "output_equivalence" with type "test" omitted - -# Unsupported target "parse" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel b/bazel/cargo/remote/BUILD.addr2line-0.16.0.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel rename to bazel/cargo/remote/BUILD.addr2line-0.16.0.bazel index 258f44940..874319de7 100644 --- a/bazel/cargo/remote/BUILD.addr2line-0.14.1.bazel +++ b/bazel/cargo/remote/BUILD.addr2line-0.16.0.bazel @@ -48,10 +48,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.14.1", + version = "0.16.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", + "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", ], ) diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel index 6b70370af..10c3278c5 100644 --- a/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.7.18", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__memchr__2_4_0//:memchr", + "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", ], ) diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.44.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel rename to bazel/cargo/remote/BUILD.anyhow-1.0.44.bazel index ba8033e8b..43af3cbe0 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.40.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.44.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.40", + version = "1.0.44", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.40", + version = "1.0.44", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index e5f020a0d..a1214a9c0 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.59.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.61.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.backtrace-0.3.59.bazel rename to bazel/cargo/remote/BUILD.backtrace-0.3.61.bazel index bc4593f4c..4db2abcaf 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.59.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.61.bazel @@ -55,10 +55,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.59", + version = "0.3.61", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_67//:cc", + "@proxy_wasm_cpp_host__cc__1_0_71//:cc", ] + selects.with_or({ # cfg(windows) ( @@ -96,16 +96,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.59", + version = "0.3.61", # buildifier: leave-alone deps = [ ":backtrace_build_script", - "@proxy_wasm_cpp_host__addr2line__0_15_1//:addr2line", + "@proxy_wasm_cpp_host__addr2line__0_16_0//:addr2line", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", - "@proxy_wasm_cpp_host__object__0_24_0//:object", - "@proxy_wasm_cpp_host__rustc_demangle__0_1_19//:rustc_demangle", + "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", ] + selects.with_or({ # cfg(windows) ( diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel index e544d8b53..c36d3c8e1 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel @@ -49,7 +49,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", + "@proxy_wasm_cpp_host__serde__1_0_130//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel b/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel deleted file mode 100644 index 2ff7b8554..000000000 --- a/bazel/cargo/remote/BUILD.bitflags-1.2.1.bazel +++ /dev/null @@ -1,85 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "bitflags_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.2.1", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "bitflags", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.2.1", - # buildifier: leave-alone - deps = [ - ":bitflags_build_script", - ], -) diff --git a/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel new file mode 100644 index 000000000..6f45176aa --- /dev/null +++ b/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "bitflags", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.3.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "basic" with type "test" omitted + +# Unsupported target "compile" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cc-1.0.67.bazel b/bazel/cargo/remote/BUILD.cc-1.0.71.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cc-1.0.67.bazel rename to bazel/cargo/remote/BUILD.cc-1.0.71.bazel index 8e2d391b2..f310feea4 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.67.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.71.bazel @@ -47,7 +47,7 @@ rust_binary( "cargo-raze", "manual", ], - version = "1.0.67", + version = "1.0.71", # buildifier: leave-alone deps = [ ":cc", @@ -70,7 +70,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.67", + version = "1.0.71", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.clap-2.33.3.bazel b/bazel/cargo/remote/BUILD.clap-2.33.3.bazel index 2211f357c..6010ad032 100644 --- a/bazel/cargo/remote/BUILD.clap-2.33.3.bazel +++ b/bazel/cargo/remote/BUILD.clap-2.33.3.bazel @@ -59,10 +59,10 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__atty__0_2_14//:atty", - "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", + "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", "@proxy_wasm_cpp_host__strsim__0_8_0//:strsim", "@proxy_wasm_cpp_host__textwrap__0_11_0//:textwrap", - "@proxy_wasm_cpp_host__unicode_width__0_1_8//:unicode_width", + "@proxy_wasm_cpp_host__unicode_width__0_1_9//:unicode_width", "@proxy_wasm_cpp_host__vec_map__0_8_2//:vec_map", ] + selects.with_or({ # cfg(not(windows)) diff --git a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.3.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel rename to bazel/cargo/remote/BUILD.cpp_demangle-0.3.3.bazel index ea8503d58..b9a39968e 100644 --- a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.3.bazel @@ -55,10 +55,9 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.2", + version = "0.3.3", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__glob__0_3_0//:glob", ], ) @@ -81,7 +80,7 @@ rust_binary( "cargo-raze", "manual", ], - version = "0.3.2", + version = "0.3.3", # buildifier: leave-alone deps = [ ":cpp_demangle", @@ -110,7 +109,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.2", + version = "0.3.3", # buildifier: leave-alone deps = [ ":cpp_demangle_build_script", diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.77.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-bforest-0.77.0.bazel index d97edd650..22eaa705a 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.77.0.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.77.0.bazel similarity index 72% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-0.77.0.bazel index 8753f4f8a..b4ebf02fc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.77.0.bazel @@ -43,9 +43,7 @@ cargo_build_script( }, crate_features = [ "default", - "enable-serde", "gimli", - "serde", "std", "unwind", ], @@ -59,21 +57,21 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_73_0//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_77_0//:cranelift_codegen_meta", ], ) +# Unsupported target "x64-evex-encoding" with type "bench" omitted + rust_library( name = "cranelift_codegen", srcs = glob(["**/*.rs"]), crate_features = [ "default", - "enable-serde", "gimli", - "serde", "std", "unwind", ], @@ -88,20 +86,17 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", - "@proxy_wasm_cpp_host__cranelift_bforest__0_73_0//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_73_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", - "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", + "@proxy_wasm_cpp_host__cranelift_bforest__0_77_0//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_77_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__regalloc__0_0_31//:regalloc", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", - "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.77.0.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.77.0.bazel index db0b9ef6d..ca7e8ba13 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.77.0.bazel @@ -46,10 +46,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_73_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_77_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.77.0.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.77.0.bazel index 246ce325c..8fefb0a19 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.77.0.bazel @@ -34,8 +34,6 @@ rust_library( name = "cranelift_codegen_shared", srcs = glob(["**/*.rs"]), crate_features = [ - "enable-serde", - "serde", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -48,9 +46,8 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.77.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-entity-0.77.0.bazel index 029d2c15b..14b93169d 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.77.0.bazel @@ -48,9 +48,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", + "@proxy_wasm_cpp_host__serde__1_0_130//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.77.0.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-frontend-0.77.0.bazel index d3ae1b2c1..4a1707f51 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.77.0.bazel @@ -48,12 +48,12 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", + "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", + "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.77.0.bazel similarity index 70% rename from bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-native-0.77.0.bazel index 85ec5cf92..6191d2ab2 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.77.0.bazel @@ -33,6 +33,8 @@ licenses([ rust_library( name = "cranelift_native", srcs = glob(["**/*.rs"]), + aliases = { + }, crate_features = [ "default", "std", @@ -48,10 +50,18 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", - ], + "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + ] + selects.with_or({ + # cfg(target_arch = "s390x") + ( + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + ], + "//conditions:default": [], + }), ) diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.77.0.bazel similarity index 68% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-wasm-0.77.0.bazel index e6d689ee7..d69661bfc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.73.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.77.0.bazel @@ -35,8 +35,6 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "default", - "enable-serde", - "serde", "std", ], crate_root = "src/lib.rs", @@ -50,18 +48,17 @@ rust_library( "cargo-raze", "manual", ], - version = "0.73.0", + version = "0.77.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_73_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__itertools__0_10_0//:itertools", + "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_77_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__itertools__0_10_1//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", - "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", + "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", + "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_types__0_30_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.ed25519-compact-0.1.9.bazel b/bazel/cargo/remote/BUILD.ed25519-compact-0.1.11.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.ed25519-compact-0.1.9.bazel rename to bazel/cargo/remote/BUILD.ed25519-compact-0.1.11.bazel index 166ee5922..9e3945671 100644 --- a/bazel/cargo/remote/BUILD.ed25519-compact-0.1.9.bazel +++ b/bazel/cargo/remote/BUILD.ed25519-compact-0.1.11.bazel @@ -50,9 +50,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.9", + version = "0.1.11", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__getrandom__0_2_2//:getrandom", + "@proxy_wasm_cpp_host__getrandom__0_2_3//:getrandom", ], ) diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel rename to bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel index ca68a4bf8..f3b304ffa 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.3.bazel +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel @@ -51,7 +51,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.8.3", + version = "0.8.4", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__atty__0_2_14//:atty", diff --git a/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel similarity index 56% rename from bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel rename to bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel index b0c3b88f9..aaa30e798 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.2.2.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel @@ -29,72 +29,6 @@ licenses([ ]) # Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "getrandom_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.2", - visibility = ["//visibility:private"], - deps = [ - ] + selects.with_or({ - # cfg(all(target_arch = "wasm32", target_os = "unknown")) - ( - "@rules_rust//rust/platform:wasm32-unknown-unknown", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(target_os = "wasi") - ( - "@rules_rust//rust/platform:wasm32-wasi", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], - }), -) # Unsupported target "mod" with type "bench" omitted @@ -117,10 +51,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.2", + version = "0.2.3", # buildifier: leave-alone deps = [ - ":getrandom_build_script", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", ] + selects.with_or({ # cfg(all(target_arch = "wasm32", target_os = "unknown")) @@ -157,7 +90,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.gimli-0.24.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.24.0.bazel deleted file mode 100644 index ce3ad9778..000000000 --- a/bazel/cargo/remote/BUILD.gimli-0.24.0.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "dwarf-validate" with type "example" omitted - -# Unsupported target "dwarfdump" with type "example" omitted - -# Unsupported target "simple" with type "example" omitted - -# Unsupported target "simple_line" with type "example" omitted - -rust_library( - name = "gimli", - srcs = glob(["**/*.rs"]), - crate_features = [ - "read", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.24.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "convert_self" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.25.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.gimli-0.23.0.bazel rename to bazel/cargo/remote/BUILD.gimli-0.25.0.bazel index 4ea9764f3..7eedd499c 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.25.0.bazel @@ -44,8 +44,6 @@ rust_library( name = "gimli", srcs = glob(["**/*.rs"]), crate_features = [ - "default", - "endian-reader", "fallible-iterator", "indexmap", "read", @@ -64,11 +62,11 @@ rust_library( "cargo-raze", "manual", ], - version = "0.23.0", + version = "0.25.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", - "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/remote/BUILD.glob-0.3.0.bazel b/bazel/cargo/remote/BUILD.glob-0.3.0.bazel deleted file mode 100644 index c0f33f2fd..000000000 --- a/bazel/cargo/remote/BUILD.glob-0.3.0.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "glob", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "glob-std" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel b/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel rename to bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel index 587832a72..48449f9fd 100644 --- a/bazel/cargo/remote/BUILD.hashbrown-0.9.1.bazel +++ b/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel @@ -49,7 +49,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.9.1", + version = "0.11.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel rename to bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel index abbb8011b..21fe9d920 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.18.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel @@ -47,9 +47,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.18", + version = "0.1.19", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel rename to bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel index 5ea95aa02..01a132304 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.6.2.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.6.2", + version = "1.7.0", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", @@ -84,12 +84,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.6.2", + version = "1.7.0", # buildifier: leave-alone deps = [ ":indexmap_build_script", - "@proxy_wasm_cpp_host__hashbrown__0_9_1//:hashbrown", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", + "@proxy_wasm_cpp_host__hashbrown__0_11_2//:hashbrown", + "@proxy_wasm_cpp_host__serde__1_0_130//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel b/bazel/cargo/remote/BUILD.itertools-0.10.1.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.itertools-0.10.0.bazel rename to bazel/cargo/remote/BUILD.itertools-0.10.1.bazel index c2cf7a364..5055efe10 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.10.0.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.10.1.bazel @@ -67,7 +67,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.10.0", + version = "0.10.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__either__1_6_1//:either", @@ -76,6 +76,8 @@ rust_library( # Unsupported target "adaptors_no_collect" with type "test" omitted +# Unsupported target "flatten_ok" with type "test" omitted + # Unsupported target "fold_specialization" with type "test" omitted # Unsupported target "macros_hygiene" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.libc-0.2.94.bazel b/bazel/cargo/remote/BUILD.libc-0.2.103.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.libc-0.2.94.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.103.bazel index 635a21205..3b32012d6 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.94.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.103.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.94", + version = "0.2.103", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.94", + version = "0.2.103", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index edfabfb74..1cdd88969 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -63,7 +63,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.memchr-2.4.0.bazel b/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.memchr-2.4.0.bazel rename to bazel/cargo/remote/BUILD.memchr-2.4.1.bazel index 38cd7713c..693ef67e1 100644 --- a/bazel/cargo/remote/BUILD.memchr-2.4.0.bazel +++ b/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "2.4.0", + version = "2.4.1", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "2.4.0", + version = "2.4.1", # buildifier: leave-alone deps = [ ":memchr_build_script", diff --git a/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel b/bazel/cargo/remote/BUILD.memoffset-0.6.4.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel rename to bazel/cargo/remote/BUILD.memoffset-0.6.4.bazel index af0d61a43..c370f7ce0 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.6.3.bazel +++ b/bazel/cargo/remote/BUILD.memoffset-0.6.4.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.6.3", + version = "0.6.4", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", @@ -78,7 +78,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.6.3", + version = "0.6.4", # buildifier: leave-alone deps = [ ":memoffset_build_script", diff --git a/bazel/cargo/remote/BUILD.object-0.24.0.bazel b/bazel/cargo/remote/BUILD.object-0.24.0.bazel deleted file mode 100644 index e78332fe1..000000000 --- a/bazel/cargo/remote/BUILD.object-0.24.0.bazel +++ /dev/null @@ -1,76 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "ar" with type "example" omitted - -# Unsupported target "nm" with type "example" omitted - -# Unsupported target "objcopy" with type "example" omitted - -# Unsupported target "objdump" with type "example" omitted - -# Unsupported target "objectmap" with type "example" omitted - -# Unsupported target "readobj" with type "example" omitted - -rust_library( - name = "object", - srcs = glob(["**/*.rs"]), - crate_features = [ - "archive", - "coff", - "elf", - "macho", - "pe", - "read_core", - "unaligned", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.24.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "integration" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.object-0.23.0.bazel b/bazel/cargo/remote/BUILD.object-0.26.2.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.object-0.23.0.bazel rename to bazel/cargo/remote/BUILD.object-0.26.2.bazel index 6b3f8ad99..de129d607 100644 --- a/bazel/cargo/remote/BUILD.object-0.23.0.bazel +++ b/bazel/cargo/remote/BUILD.object-0.26.2.bazel @@ -32,6 +32,8 @@ licenses([ # Unsupported target "ar" with type "example" omitted +# Unsupported target "dyldcachedump" with type "example" omitted + # Unsupported target "nm" with type "example" omitted # Unsupported target "objcopy" with type "example" omitted @@ -46,13 +48,16 @@ rust_library( name = "object", srcs = glob(["**/*.rs"]), crate_features = [ + "archive", "coff", "crc32fast", "elf", "indexmap", "macho", + "pe", "read_core", "std", + "unaligned", "write", "write_core", ], @@ -67,11 +72,12 @@ rust_library( "cargo-raze", "manual", ], - version = "0.23.0", + version = "0.26.2", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__crc32fast__1_2_1//:crc32fast", - "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", ], ) diff --git a/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel b/bazel/cargo/remote/BUILD.once_cell-1.8.0.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel rename to bazel/cargo/remote/BUILD.once_cell-1.8.0.bazel index f62082a78..186944f5f 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.7.2.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.8.0.bazel @@ -64,7 +64,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.7.2", + version = "1.8.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.14.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel rename to bazel/cargo/remote/BUILD.ppv-lite86-0.2.14.bazel index fb8fa0944..9651935cf 100644 --- a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.10.bazel +++ b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.14.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.10", + version = "0.2.14", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.30.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel rename to bazel/cargo/remote/BUILD.proc-macro2-1.0.30.bazel index 052ad77e4..e11620e9d 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.26.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.30.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.26", + version = "1.0.30", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.26", + version = "1.0.30", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", diff --git a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel b/bazel/cargo/remote/BUILD.psm-0.1.16.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.psm-0.1.12.bazel rename to bazel/cargo/remote/BUILD.psm-0.1.16.bazel index f335e7f55..e642d2ec5 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.12.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.16.bazel @@ -53,10 +53,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.12", + version = "0.1.16", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_67//:cc", + "@proxy_wasm_cpp_host__cc__1_0_71//:cc", ], ) @@ -88,7 +88,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.12", + version = "0.1.16", # buildifier: leave-alone deps = [ ":psm_build_script", diff --git a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel b/bazel/cargo/remote/BUILD.quote-1.0.10.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.quote-1.0.9.bazel rename to bazel/cargo/remote/BUILD.quote-1.0.10.bazel index 38403bbb9..e6553d747 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.9.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.10.bazel @@ -30,6 +30,8 @@ licenses([ # Generated Targets +# Unsupported target "bench" with type "bench" omitted + rust_library( name = "quote", srcs = glob(["**/*.rs"]), @@ -48,10 +50,10 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.9", + version = "1.0.10", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", ], ) diff --git a/bazel/cargo/remote/BUILD.rand-0.8.3.bazel b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.rand-0.8.3.bazel rename to bazel/cargo/remote/BUILD.rand-0.8.4.bazel index c3a7c4037..9a9e6edb0 100644 --- a/bazel/cargo/remote/BUILD.rand-0.8.3.bazel +++ b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel @@ -56,11 +56,11 @@ rust_library( "cargo-raze", "manual", ], - version = "0.8.3", + version = "0.8.4", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__rand_chacha__0_3_0//:rand_chacha", - "@proxy_wasm_cpp_host__rand_core__0_6_2//:rand_core", + "@proxy_wasm_cpp_host__rand_chacha__0_3_1//:rand_chacha", + "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", ] + selects.with_or({ # cfg(unix) ( @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel rename to bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel index 7a0691c0d..f2bbbf8ab 100644 --- a/bazel/cargo/remote/BUILD.rand_chacha-0.3.0.bazel +++ b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel @@ -47,10 +47,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.0", + version = "0.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__ppv_lite86__0_2_10//:ppv_lite86", - "@proxy_wasm_cpp_host__rand_core__0_6_2//:rand_core", + "@proxy_wasm_cpp_host__ppv_lite86__0_2_14//:ppv_lite86", + "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel b/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel rename to bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel index 7a5581efc..9d71822a4 100644 --- a/bazel/cargo/remote/BUILD.rand_core-0.6.2.bazel +++ b/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel @@ -49,9 +49,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.6.2", + version = "0.6.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__getrandom__0_2_2//:getrandom", + "@proxy_wasm_cpp_host__getrandom__0_2_3//:getrandom", ], ) diff --git a/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel b/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel rename to bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel index 7d243a2e4..f3188afbd 100644 --- a/bazel/cargo/remote/BUILD.rand_hc-0.3.0.bazel +++ b/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.0", + version = "0.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__rand_core__0_6_2//:rand_core", + "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel index 83eacacec..a5a411eb3 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel @@ -35,8 +35,6 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "default", - "enable-serde", - "serde", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -54,7 +52,6 @@ rust_library( deps = [ "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__rustc_hash__1_1_0//:rustc_hash", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", - "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", + "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-1.5.4.bazel b/bazel/cargo/remote/BUILD.regex-1.5.4.bazel index ee3a06b22..7d5894bd8 100644 --- a/bazel/cargo/remote/BUILD.regex-1.5.4.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.5.4.bazel @@ -70,7 +70,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__aho_corasick__0_7_18//:aho_corasick", - "@proxy_wasm_cpp_host__memchr__2_4_0//:memchr", + "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", "@proxy_wasm_cpp_host__regex_syntax__0_6_25//:regex_syntax", ], ) diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index 3f58da6a1..bd73a300f 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -51,8 +51,8 @@ rust_library( version = "2.2.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__bitflags__1_2_1//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.19.bazel b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.rustc-demangle-0.1.19.bazel rename to bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel index 0ecc0b005..eae75a7ef 100644 --- a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.19.bazel +++ b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel @@ -46,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.19", + version = "0.1.21", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.serde-1.0.126.bazel b/bazel/cargo/remote/BUILD.serde-1.0.130.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.serde-1.0.126.bazel rename to bazel/cargo/remote/BUILD.serde-1.0.130.bazel index 35eb68663..be52cae3f 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.126.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.130.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.126", + version = "1.0.130", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@proxy_wasm_cpp_host__serde_derive__1_0_126//:serde_derive", + "@proxy_wasm_cpp_host__serde_derive__1_0_130//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -86,7 +86,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.126", + version = "1.0.130", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.126.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.serde_derive-1.0.126.bazel rename to bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel index 922bccf22..5866314ad 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.126.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.126", + version = "1.0.130", visibility = ["//visibility:private"], deps = [ ], @@ -77,12 +77,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.126", + version = "1.0.130", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_9//:quote", - "@proxy_wasm_cpp_host__syn__1_0_72//:syn", + "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_10//:quote", + "@proxy_wasm_cpp_host__syn__1_0_80//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel b/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel rename to bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel index f2c0284e3..6a9a26970 100644 --- a/bazel/cargo/remote/BUILD.smallvec-1.6.1.bazel +++ b/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.6.1", + version = "1.7.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.syn-1.0.72.bazel b/bazel/cargo/remote/BUILD.syn-1.0.80.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.syn-1.0.72.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.80.bazel index 69ce0a205..cab83dd57 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.72.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.80.bazel @@ -60,7 +60,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.72", + version = "1.0.80", visibility = ["//visibility:private"], deps = [ ], @@ -93,12 +93,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.72", + version = "1.0.80", # buildifier: leave-alone deps = [ ":syn_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_9//:quote", + "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_10//:quote", "@proxy_wasm_cpp_host__unicode_xid__0_2_2//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel rename to bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel index 62e715ca9..5ed0363a8 100644 --- a/bazel/cargo/remote/BUILD.target-lexicon-0.12.0.bazel +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.12.0", + version = "0.12.2", visibility = ["//visibility:private"], deps = [ ], @@ -81,7 +81,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.12.0", + version = "0.12.2", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel index 4fd9aab3c..cc496b135 100644 --- a/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel +++ b/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel @@ -55,7 +55,7 @@ rust_library( version = "0.11.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__unicode_width__0_1_8//:unicode_width", + "@proxy_wasm_cpp_host__unicode_width__0_1_9//:unicode_width", ], ) diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel rename to bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel index 9bc28bc5e..b73d9c0ff 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel @@ -40,7 +40,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host__thiserror_impl__1_0_24//:thiserror_impl", + "@proxy_wasm_cpp_host__thiserror_impl__1_0_30//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", @@ -49,7 +49,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.24", + version = "1.0.30", # buildifier: leave-alone deps = [ ], @@ -59,8 +59,6 @@ rust_library( # Unsupported target "test_backtrace" with type "test" omitted -# Unsupported target "test_deprecated" with type "test" omitted - # Unsupported target "test_display" with type "test" omitted # Unsupported target "test_error" with type "test" omitted @@ -69,6 +67,8 @@ rust_library( # Unsupported target "test_from" with type "test" omitted +# Unsupported target "test_generics" with type "test" omitted + # Unsupported target "test_lints" with type "test" omitted # Unsupported target "test_option" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel rename to bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel index ead7dbeb9..412807d55 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.24.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -46,11 +46,11 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.24", + version = "1.0.30", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_9//:quote", - "@proxy_wasm_cpp_host__syn__1_0_72//:syn", + "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_10//:quote", + "@proxy_wasm_cpp_host__syn__1_0_80//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.unicode-width-0.1.8.bazel b/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.unicode-width-0.1.8.bazel rename to bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel index 7cc937987..03141f414 100644 --- a/bazel/cargo/remote/BUILD.unicode-width-0.1.8.bazel +++ b/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel @@ -47,7 +47,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.8", + version = "0.1.9", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.80.2.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel rename to bazel/cargo/remote/BUILD.wasmparser-0.80.2.bazel index e7d229e1f..524dd373f 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.80.2.bazel @@ -50,7 +50,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.80.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel index 7d2a94dcb..ed17fb042 100644 --- a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel @@ -51,13 +51,13 @@ rust_binary( # buildifier: leave-alone deps = [ ":wasmsign", - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", "@proxy_wasm_cpp_host__clap__2_33_3//:clap", - "@proxy_wasm_cpp_host__ed25519_compact__0_1_9//:ed25519_compact", + "@proxy_wasm_cpp_host__ed25519_compact__0_1_11//:ed25519_compact", "@proxy_wasm_cpp_host__hmac_sha512__0_1_9//:hmac_sha512", "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", ], ) @@ -80,12 +80,12 @@ rust_library( version = "0.1.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", "@proxy_wasm_cpp_host__clap__2_33_3//:clap", - "@proxy_wasm_cpp_host__ed25519_compact__0_1_9//:ed25519_compact", + "@proxy_wasm_cpp_host__ed25519_compact__0_1_11//:ed25519_compact", "@proxy_wasm_cpp_host__hmac_sha512__0_1_9//:hmac_sha512", "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", + "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.30.0.bazel new file mode 100644 index 000000000..c9c129fc3 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-0.30.0.bazel @@ -0,0 +1,129 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "wasmtime_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "cranelift", + "wasmtime-cranelift", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.30.0", + visibility = ["//visibility:private"], + deps = [ + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) + +rust_library( + name = "wasmtime", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "cranelift", + "wasmtime-cranelift", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + proc_macro_deps = [ + "@proxy_wasm_cpp_host__paste__1_0_5//:paste", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.30.0", + # buildifier: leave-alone + deps = [ + ":wasmtime_build_script", + "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + "@proxy_wasm_cpp_host__backtrace__0_3_61//:backtrace", + "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__cpp_demangle__0_3_3//:cpp_demangle", + "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__log__0_4_14//:log", + "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__psm__0_1_16//:psm", + "@proxy_wasm_cpp_host__region__2_2_0//:region", + "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", + "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_30_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_30_0//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_30_0//:wasmtime_runtime", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index 108838ec8..fbf93d460 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -49,7 +49,7 @@ rust_library( version = "0.19.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_26//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_9//:quote", + "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_10//:quote", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.30.0.bazel similarity index 55% rename from bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-cranelift-0.30.0.bazel index 81e4995a2..4b4f21c21 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.30.0.bazel @@ -46,14 +46,21 @@ rust_library( "cargo-raze", "manual", ], - version = "0.26.0", + version = "0.30.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_73_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_wasm__0_73_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_77_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_77_0//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_77_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", + "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel deleted file mode 100644 index 8d1516e33..000000000 --- a/bazel/cargo/remote/BUILD.wasmtime-debug-0.26.0.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_debug", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.26.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", - "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_23_0//:object", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", - ], -) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.30.0.bazel similarity index 64% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-environ-0.30.0.bazel index 1967c275d..6546f7ef0 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.30.0.bazel @@ -46,21 +46,21 @@ rust_library( "cargo-raze", "manual", ], - version = "0.26.0", + version = "0.30.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_wasm__0_73_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", - "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", + "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", + "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", + "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_types__0_30_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel deleted file mode 100644 index 2a61689b8..000000000 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.26.0.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_jit", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.26.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__addr2line__0_14_1//:addr2line", - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_codegen__0_73_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_73_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_73_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_73_0//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_73_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__gimli__0_23_0//:gimli", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_23_0//:object", - "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_26_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_debug__0_26_0//:wasmtime_debug", - "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_obj__0_26_0//:wasmtime_obj", - "@proxy_wasm_cpp_host__wasmtime_profiling__0_26_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_26_0//:wasmtime_runtime", - ] + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.30.0.bazel similarity index 58% rename from bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-jit-0.30.0.bazel index 0ec4ce0e9..6cc35b013 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.30.0.bazel @@ -31,7 +31,7 @@ licenses([ # Generated Targets rust_library( - name = "wasmtime", + name = "wasmtime_jit", srcs = glob(["**/*.rs"]), aliases = { }, @@ -41,9 +41,6 @@ rust_library( crate_type = "lib", data = [], edition = "2018", - proc_macro_deps = [ - "@proxy_wasm_cpp_host__paste__1_0_5//:paste", - ], rustc_flags = [ "--cap-lints=allow", ], @@ -51,29 +48,24 @@ rust_library( "cargo-raze", "manual", ], - version = "0.26.0", + version = "0.30.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_59//:backtrace", + "@proxy_wasm_cpp_host__addr2line__0_16_0//:addr2line", + "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cpp_demangle__0_3_2//:cpp_demangle", - "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", - "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__psm__0_1_12//:psm", + "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__object__0_26_2//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__rustc_demangle__0_1_19//:rustc_demangle", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", - "@proxy_wasm_cpp_host__smallvec__1_6_1//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", - "@proxy_wasm_cpp_host__wasmparser__0_77_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_26_0//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_profiling__0_26_0//:wasmtime_profiling", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_26_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_30_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel deleted file mode 100644 index 6d1e192b6..000000000 --- a/bazel/cargo/remote/BUILD.wasmtime-obj-0.26.0.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_obj", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.26.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_23_0//:object", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", - "@proxy_wasm_cpp_host__wasmtime_debug__0_26_0//:wasmtime_debug", - "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", - ], -) diff --git a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel deleted file mode 100644 index d2a8183e6..000000000 --- a/bazel/cargo/remote/BUILD.wasmtime-profiling-0.26.0.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_profiling", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.26.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", - "@proxy_wasm_cpp_host__serde__1_0_126//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_12_0//:target_lexicon", - "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_26_0//:wasmtime_runtime", - ], -) diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.30.0.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-runtime-0.30.0.bazel index 8df633e5a..4db3bdb2f 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.26.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.30.0.bazel @@ -54,10 +54,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.26.0", + version = "0.30.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_67//:cc", + "@proxy_wasm_cpp_host__cc__1_0_71//:cc", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -109,23 +109,23 @@ rust_library( "cargo-raze", "manual", ], - version = "0.26.0", + version = "0.30.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@proxy_wasm_cpp_host__anyhow__1_0_40//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_59//:backtrace", + "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + "@proxy_wasm_cpp_host__backtrace__0_3_61//:backtrace", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__indexmap__1_6_2//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_94//:libc", + "@proxy_wasm_cpp_host__libc__0_2_103//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__memoffset__0_6_3//:memoffset", + "@proxy_wasm_cpp_host__memoffset__0_6_4//:memoffset", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__rand__0_8_3//:rand", + "@proxy_wasm_cpp_host__rand__0_8_4//:rand", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__thiserror__1_0_24//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_26_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", + "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "linux") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-types-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-types-0.30.0.bazel new file mode 100644 index 000000000..1af970048 --- /dev/null +++ b/bazel/cargo/remote/BUILD.wasmtime-types-0.30.0.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_types", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.30.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", + "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", + ], +) diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index 4772a1e25..b0691069b 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -46,6 +46,7 @@ cargo_build_script( "consoleapi", "errhandlingapi", "fileapi", + "handleapi", "impl-default", "memoryapi", "minwinbase", @@ -82,6 +83,7 @@ rust_library( "consoleapi", "errhandlingapi", "fileapi", + "handleapi", "impl-default", "memoryapi", "minwinbase", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 15929f3c5..5d46f8129 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -59,9 +59,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "e95d274822ac72bf06355bdfbeddcacae60d7e98fec8ee4b2e21740636fb5c2c", - strip_prefix = "wasmtime-0.26.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.26.0.tar.gz", + sha256 = "78eccfd8c8d63c30e85762bf36cf032409b7c34ac34f329b7e228ea6cc7aebca", + strip_prefix = "wasmtime-0.30.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.30.0.tar.gz", ) http_archive( From e0636f7119f5fb15841799289a7e3558d7234374 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 12 Nov 2021 01:33:43 -0800 Subject: [PATCH 123/287] wasmtime: update to v0.31.0. (#196) Signed-off-by: Piotr Sikora --- .github/workflows/cargo.yml | 4 +- bazel/cargo/BUILD.bazel | 4 +- bazel/cargo/Cargo.raze.lock | 210 ++++++++--- bazel/cargo/Cargo.toml | 6 +- bazel/cargo/crates.bzl | 352 +++++++++++------- .../cargo/remote/BUILD.addr2line-0.17.0.bazel | 62 +++ ...1.0.44.bazel => BUILD.anyhow-1.0.45.bazel} | 4 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 2 +- ....61.bazel => BUILD.backtrace-0.3.63.bazel} | 12 +- ....cc-1.0.71.bazel => BUILD.cc-1.0.72.bazel} | 4 +- ...l => BUILD.cranelift-bforest-0.78.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.78.0.bazel} | 14 +- ...BUILD.cranelift-codegen-meta-0.78.0.bazel} | 6 +- ...ILD.cranelift-codegen-shared-0.78.0.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.78.0.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.78.0.bazel} | 4 +- ...el => BUILD.cranelift-native-0.78.0.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.78.0.bazel} | 12 +- bazel/cargo/remote/BUILD.errno-0.2.8.bazel | 90 +++++ .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 85 +++++ .../cargo/remote/BUILD.getrandom-0.2.3.bazel | 2 +- bazel/cargo/remote/BUILD.gimli-0.26.1.bazel | 69 ++++ .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel | 2 + .../remote/BUILD.io-lifetimes-0.3.3.bazel | 169 +++++++++ bazel/cargo/remote/BUILD.itoa-0.4.8.bazel | 57 +++ ...0.2.103.bazel => BUILD.libc-0.2.107.bazel} | 6 +- .../remote/BUILD.linux-raw-sys-0.0.28.bazel | 59 +++ bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 2 +- ...0.26.2.bazel => BUILD.object-0.27.1.bazel} | 16 +- ...te-1.0.5.bazel => BUILD.paste-1.0.6.bazel} | 2 +- ...14.bazel => BUILD.ppv-lite86-0.2.15.bazel} | 2 +- ...0.bazel => BUILD.proc-macro2-1.0.32.bazel} | 4 +- bazel/cargo/remote/BUILD.psm-0.1.16.bazel | 2 +- bazel/cargo/remote/BUILD.quote-1.0.10.bazel | 2 +- bazel/cargo/remote/BUILD.rand-0.8.4.bazel | 2 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 2 +- ...0.31.bazel => BUILD.regalloc-0.0.32.bazel} | 2 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 2 +- bazel/cargo/remote/BUILD.rsix-0.23.9.bazel | 215 +++++++++++ .../remote/BUILD.rustc_version-0.4.0.bazel | 56 +++ bazel/cargo/remote/BUILD.semver-1.0.4.bazel | 95 +++++ .../remote/BUILD.serde_derive-1.0.130.bazel | 4 +- ...yn-1.0.80.bazel => BUILD.syn-1.0.81.bazel} | 6 +- .../remote/BUILD.thiserror-impl-1.0.30.bazel | 4 +- ....2.bazel => BUILD.wasmparser-0.81.0.bazel} | 2 +- bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel | 4 +- ...30.0.bazel => BUILD.wasmtime-0.31.0.bazel} | 24 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 2 +- ... => BUILD.wasmtime-cranelift-0.31.0.bazel} | 21 +- ...el => BUILD.wasmtime-environ-0.31.0.bazel} | 12 +- ....bazel => BUILD.wasmtime-jit-0.31.0.bazel} | 24 +- ...el => BUILD.wasmtime-runtime-0.31.0.bazel} | 59 ++- ...azel => BUILD.wasmtime-types-0.31.0.bazel} | 6 +- bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 4 + bazel/repositories.bzl | 6 +- 56 files changed, 1518 insertions(+), 315 deletions(-) create mode 100644 bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel rename bazel/cargo/remote/{BUILD.anyhow-1.0.44.bazel => BUILD.anyhow-1.0.45.bazel} (98%) rename bazel/cargo/remote/{BUILD.backtrace-0.3.61.bazel => BUILD.backtrace-0.3.63.bazel} (91%) rename bazel/cargo/remote/{BUILD.cc-1.0.71.bazel => BUILD.cc-1.0.72.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-bforest-0.77.0.bazel => BUILD.cranelift-bforest-0.78.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-0.77.0.bazel => BUILD.cranelift-codegen-0.78.0.bazel} (85%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-meta-0.77.0.bazel => BUILD.cranelift-codegen-meta-0.78.0.bazel} (87%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-shared-0.77.0.bazel => BUILD.cranelift-codegen-shared-0.78.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-entity-0.77.0.bazel => BUILD.cranelift-entity-0.78.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-frontend-0.77.0.bazel => BUILD.cranelift-frontend-0.78.0.bazel} (93%) rename bazel/cargo/remote/{BUILD.cranelift-native-0.77.0.bazel => BUILD.cranelift-native-0.78.0.bazel} (90%) rename bazel/cargo/remote/{BUILD.cranelift-wasm-0.77.0.bazel => BUILD.cranelift-wasm-0.78.0.bazel} (79%) create mode 100644 bazel/cargo/remote/BUILD.errno-0.2.8.bazel create mode 100644 bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel create mode 100644 bazel/cargo/remote/BUILD.gimli-0.26.1.bazel create mode 100644 bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel create mode 100644 bazel/cargo/remote/BUILD.itoa-0.4.8.bazel rename bazel/cargo/remote/{BUILD.libc-0.2.103.bazel => BUILD.libc-0.2.107.bazel} (94%) create mode 100644 bazel/cargo/remote/BUILD.linux-raw-sys-0.0.28.bazel rename bazel/cargo/remote/{BUILD.object-0.26.2.bazel => BUILD.object-0.27.1.bazel} (77%) rename bazel/cargo/remote/{BUILD.paste-1.0.5.bazel => BUILD.paste-1.0.6.bazel} (98%) rename bazel/cargo/remote/{BUILD.ppv-lite86-0.2.14.bazel => BUILD.ppv-lite86-0.2.15.bazel} (97%) rename bazel/cargo/remote/{BUILD.proc-macro2-1.0.30.bazel => BUILD.proc-macro2-1.0.32.bazel} (97%) rename bazel/cargo/remote/{BUILD.regalloc-0.0.31.bazel => BUILD.regalloc-0.0.32.bazel} (98%) create mode 100644 bazel/cargo/remote/BUILD.rsix-0.23.9.bazel create mode 100644 bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel create mode 100644 bazel/cargo/remote/BUILD.semver-1.0.4.bazel rename bazel/cargo/remote/{BUILD.syn-1.0.80.bazel => BUILD.syn-1.0.81.bazel} (97%) rename bazel/cargo/remote/{BUILD.wasmparser-0.80.2.bazel => BUILD.wasmparser-0.81.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.wasmtime-0.30.0.bazel => BUILD.wasmtime-0.31.0.bazel} (82%) rename bazel/cargo/remote/{BUILD.wasmtime-cranelift-0.30.0.bazel => BUILD.wasmtime-cranelift-0.31.0.bazel} (67%) rename bazel/cargo/remote/{BUILD.wasmtime-environ-0.30.0.bazel => BUILD.wasmtime-environ-0.31.0.bazel} (82%) rename bazel/cargo/remote/{BUILD.wasmtime-jit-0.30.0.bazel => BUILD.wasmtime-jit-0.31.0.bazel} (69%) rename bazel/cargo/remote/{BUILD.wasmtime-runtime-0.30.0.bazel => BUILD.wasmtime-runtime-0.31.0.bazel} (63%) rename bazel/cargo/remote/{BUILD.wasmtime-types-0.30.0.bazel => BUILD.wasmtime-types-0.31.0.bazel} (88%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index f56b3e97d..9c71fab85 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -40,4 +40,6 @@ jobs: run: | cargo install cargo-raze --version 0.12.0 cargo raze - git diff --exit-code + # Ignore manual changes in "errno" crate until fixed in cargo-raze. + # See: https://github.com/google/cargo-raze/issues/451 + git diff --exit-code -- ':!remote/BUILD.errno-0.2.8.bazel' diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index e1d97e09d..caa0b2a77 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + actual = "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", tags = [ "cargo-raze", "manual", @@ -61,7 +61,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_30_0//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_31_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index 4f23f299a..64f2d11c5 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -6,7 +6,16 @@ version = "0.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd" dependencies = [ - "gimli", + "gimli 0.25.0", +] + +[[package]] +name = "addr2line" +version = "0.17.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" +dependencies = [ + "gimli 0.26.1", ] [[package]] @@ -35,9 +44,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.44" +version = "1.0.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61604a8f862e1d5c3229fdd78f8b02c68dcf73a4c4b05fd636d12240aaa242c1" +checksum = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7" [[package]] name = "atty" @@ -58,11 +67,11 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "backtrace" -version = "0.3.61" +version = "0.3.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01" +checksum = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6" dependencies = [ - "addr2line", + "addr2line 0.17.0", "cc", "cfg-if", "libc", @@ -94,9 +103,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "cc" -version = "1.0.71" +version = "1.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd" +checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" [[package]] name = "cfg-if" @@ -130,24 +139,24 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15013642ddda44eebcf61365b2052a23fd8b7314f90ba44aa059ec02643c5139" +checksum = "cc0cb7df82c8cf8f2e6a8dd394a0932a71369c160cc9b027dca414fced242513" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "298f2a7ed5fdcb062d8e78b7496b0f4b95265d20245f2d0ca88f846dd192a3a3" +checksum = "fe4463c15fa42eee909e61e5eac4866b7c6d22d0d8c621e57a0c5380753bfa8c" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", - "gimli", + "gimli 0.25.0", "log", "regalloc", "smallvec", @@ -156,9 +165,9 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cf504261ac62dfaf4ffb3f41d88fd885e81aba947c1241275043885bc5f0bac" +checksum = "793f6a94a053a55404ea16e1700202a88101672b8cd6b4df63e13cde950852bf" dependencies = [ "cranelift-codegen-shared", "cranelift-entity", @@ -166,24 +175,24 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1cd2a72db4301dbe7e5a4499035eedc1e82720009fb60603e20504d8691fa9cd" +checksum = "44aa1846df275bce5eb30379d65964c7afc63c05a117076e62a119c25fe174be" [[package]] name = "cranelift-entity" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48868faa07cacf948dc4a1773648813c0e453ff9467e800ff10f6a78c021b546" +checksum = "a3a45d8d6318bf8fc518154d9298eab2a8154ec068a8885ff113f6db8d69bb3a" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "351c9d13b4ecd1a536215ec2fd1c3ee9ee8bc31af172abf1e45ed0adb7a931df" +checksum = "e07339bd461766deb7605169de039e01954768ff730fa1254e149001884a8525" dependencies = [ "cranelift-codegen", "log", @@ -193,9 +202,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6df8b556663d7611b137b24db7f6c8d9a8a27d7f29c7ea7835795152c94c1b75" +checksum = "03e2fca76ff57e0532936a71e3fc267eae6a19a86656716479c66e7f912e3d7b" dependencies = [ "cranelift-codegen", "libc", @@ -204,9 +213,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.77.0" +version = "0.78.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a69816d90db694fa79aa39b89dda7208a4ac74b6f2b8f3c4da26ee1c8bdfc5e" +checksum = "1f46fec547a1f8a32c54ea61c28be4f4ad234ad95342b718a9a9adcaadb0c778" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -255,6 +264,27 @@ dependencies = [ "termcolor", ] +[[package]] +name = "errno" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" +dependencies = [ + "errno-dragonfly", + "libc", + "winapi", +] + +[[package]] +name = "errno-dragonfly" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +dependencies = [ + "cc", + "libc", +] + [[package]] name = "fallible-iterator" version = "0.2.0" @@ -283,6 +313,12 @@ dependencies = [ "stable_deref_trait", ] +[[package]] +name = "gimli" +version = "0.26.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4" + [[package]] name = "hashbrown" version = "0.11.2" @@ -321,6 +357,16 @@ dependencies = [ "serde", ] +[[package]] +name = "io-lifetimes" +version = "0.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "278e90d6f8a6c76a8334b336e306efa3c5f2b604048cbfd486d6f49878e3af14" +dependencies = [ + "rustc_version", + "winapi", +] + [[package]] name = "itertools" version = "0.10.1" @@ -330,6 +376,12 @@ dependencies = [ "either", ] +[[package]] +name = "itoa" +version = "0.4.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" + [[package]] name = "lazy_static" version = "1.4.0" @@ -338,9 +390,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.103" +version = "0.2.107" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219" + +[[package]] +name = "linux-raw-sys" +version = "0.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6" +checksum = "687387ff42ec7ea4f2149035a5675fedb675d26f98db90a1846ac63d3addb5f5" [[package]] name = "log" @@ -393,9 +451,9 @@ checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" [[package]] name = "object" -version = "0.26.2" +version = "0.27.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39f37e50073ccad23b6d09bcb5b263f4e76d3bb6038e4a3c08e52162ffa8abc2" +checksum = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9" dependencies = [ "crc32fast", "indexmap", @@ -416,21 +474,21 @@ checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" [[package]] name = "paste" -version = "1.0.5" +version = "1.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58" +checksum = "0744126afe1a6dd7f394cb50a716dbe086cb06e255e53d8d0185d82828358fb5" [[package]] name = "ppv-lite86" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3ca011bd0129ff4ae15cd04c4eef202cadf6c51c21e47aba319b4e0501db741" +checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba" [[package]] name = "proc-macro2" -version = "1.0.30" +version = "1.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70" +checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43" dependencies = [ "unicode-xid", ] @@ -495,9 +553,9 @@ dependencies = [ [[package]] name = "regalloc" -version = "0.0.31" +version = "0.0.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" +checksum = "a6304468554ed921da3d32c355ea107b8d13d7b8996c3adfb7aab48d3bc321f4" dependencies = [ "log", "rustc-hash", @@ -533,6 +591,23 @@ dependencies = [ "winapi", ] +[[package]] +name = "rsix" +version = "0.23.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f64c5788d5aab8b75441499d99576a24eb09f76fb267b36fec7e3d970c66431" +dependencies = [ + "bitflags", + "cc", + "errno", + "io-lifetimes", + "itoa", + "libc", + "linux-raw-sys", + "once_cell", + "rustc_version", +] + [[package]] name = "rustc-demangle" version = "0.1.21" @@ -545,6 +620,21 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver", +] + +[[package]] +name = "semver" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" + [[package]] name = "serde" version = "1.0.130" @@ -585,9 +675,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "syn" -version = "1.0.80" +version = "1.0.81" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194" +checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966" dependencies = [ "proc-macro2", "quote", @@ -664,9 +754,9 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasmparser" -version = "0.80.2" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "449167e2832691a1bff24cde28d2804e90e09586a448c8e76984792c44334a6b" +checksum = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc" [[package]] name = "wasmsign" @@ -684,9 +774,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "899b1e5261e3d3420860dacfb952871ace9d7ba9f953b314f67aaf9f8e2a4d89" +checksum = "311d06b0c49346d1fbf48a17052e844036b95a7753c1afb34e8c0af3f6b5bb13" dependencies = [ "anyhow", "backtrace", @@ -714,7 +804,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.30.0" +version = "0.31.0" dependencies = [ "anyhow", "env_logger", @@ -727,7 +817,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.30.0#572fbc8c54b5a9519154c57e28b86cfaaba57bbb" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.31.0#c1a6a0523dbc59d176f708ea3d04e6edb48480ec" dependencies = [ "proc-macro2", "quote", @@ -735,9 +825,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99706bacdf5143f7f967d417f0437cce83a724cf4518cb1a3ff40e519d793021" +checksum = "ab3083a47e1ede38aac06a1d9831640d673f9aeda0b82a64e4ce002f3432e2e7" dependencies = [ "anyhow", "cranelift-codegen", @@ -745,7 +835,8 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli", + "gimli 0.25.0", + "log", "more-asserts", "object", "target-lexicon", @@ -756,14 +847,14 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac42cb562a2f98163857605f02581d719a410c5abe93606128c59a10e84de85b" +checksum = "1c2d194b655321053bc4111a1aa4ead552655c8a17d17264bc97766e70073510" dependencies = [ "anyhow", "cfg-if", "cranelift-entity", - "gimli", + "gimli 0.25.0", "indexmap", "log", "more-asserts", @@ -777,15 +868,15 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24f46dd757225f29a419be415ea6fb8558df9b0194f07e3a6a9c99d0e14dd534" +checksum = "864ac8dfe4ce310ac59f16fdbd560c257389cb009ee5d030ac6e30523b023d11" dependencies = [ - "addr2line", + "addr2line 0.16.0", "anyhow", "bincode", "cfg-if", - "gimli", + "gimli 0.25.0", "log", "more-asserts", "object", @@ -801,9 +892,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0122215a44923f395487048cb0a1d60b5b32c73aab15cf9364b798dbaff0996f" +checksum = "ab97da813a26b98c9abfd3b0c2d99e42f6b78b749c0646344e2e262d212d8c8b" dependencies = [ "anyhow", "backtrace", @@ -818,6 +909,7 @@ dependencies = [ "more-asserts", "rand", "region", + "rsix", "thiserror", "wasmtime-environ", "winapi", @@ -825,9 +917,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.30.0" +version = "0.31.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9b01caf8a204ef634ebac99700e77ba716d3ebbb68a1abbc2ceb6b16dbec9e4" +checksum = "ff94409cc3557bfbbcce6b14520ccd6bd3727e965c0fe68d63ef2c185bf379c6" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 37d245db5..da71e3b7f 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.30.0" +version = "0.31.0" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.30.0", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.30.0"} +wasmtime = {version = "0.31.0", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.31.0"} wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} [package.metadata.raze] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 20a0d2042..3c1c13236 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -21,6 +21,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.16.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__addr2line__0_17_0", + url = "https://crates.io/api/v1/crates/addr2line/0.17.0/download", + type = "tar.gz", + sha256 = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b", + strip_prefix = "addr2line-0.17.0", + build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.17.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__adler__1_0_2", @@ -53,12 +63,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__anyhow__1_0_44", - url = "https://crates.io/api/v1/crates/anyhow/1.0.44/download", + name = "proxy_wasm_cpp_host__anyhow__1_0_45", + url = "https://crates.io/api/v1/crates/anyhow/1.0.45/download", type = "tar.gz", - sha256 = "61604a8f862e1d5c3229fdd78f8b02c68dcf73a4c4b05fd636d12240aaa242c1", - strip_prefix = "anyhow-1.0.44", - build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.44.bazel"), + sha256 = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7", + strip_prefix = "anyhow-1.0.45", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.45.bazel"), ) maybe( @@ -83,12 +93,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__backtrace__0_3_61", - url = "https://crates.io/api/v1/crates/backtrace/0.3.61/download", + name = "proxy_wasm_cpp_host__backtrace__0_3_63", + url = "https://crates.io/api/v1/crates/backtrace/0.3.63/download", type = "tar.gz", - sha256 = "e7a905d892734eea339e896738c14b9afce22b5318f64b951e70bf3844419b01", - strip_prefix = "backtrace-0.3.61", - build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.61.bazel"), + sha256 = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6", + strip_prefix = "backtrace-0.3.63", + build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.63.bazel"), ) maybe( @@ -123,12 +133,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cc__1_0_71", - url = "https://crates.io/api/v1/crates/cc/1.0.71/download", + name = "proxy_wasm_cpp_host__cc__1_0_72", + url = "https://crates.io/api/v1/crates/cc/1.0.72/download", type = "tar.gz", - sha256 = "79c2681d6594606957bbb8631c4b90a7fcaaa72cdb714743a437b156d6a7eedd", - strip_prefix = "cc-1.0.71", - build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.71.bazel"), + sha256 = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee", + strip_prefix = "cc-1.0.72", + build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.72.bazel"), ) maybe( @@ -163,82 +173,82 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.78.0/download", type = "tar.gz", - sha256 = "15013642ddda44eebcf61365b2052a23fd8b7314f90ba44aa059ec02643c5139", - strip_prefix = "cranelift-bforest-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.77.0.bazel"), + sha256 = "cc0cb7df82c8cf8f2e6a8dd394a0932a71369c160cc9b027dca414fced242513", + strip_prefix = "cranelift-bforest-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.78.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.78.0/download", type = "tar.gz", - sha256 = "298f2a7ed5fdcb062d8e78b7496b0f4b95265d20245f2d0ca88f846dd192a3a3", - strip_prefix = "cranelift-codegen-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.77.0.bazel"), + sha256 = "fe4463c15fa42eee909e61e5eac4866b7c6d22d0d8c621e57a0c5380753bfa8c", + strip_prefix = "cranelift-codegen-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.78.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.78.0/download", type = "tar.gz", - sha256 = "5cf504261ac62dfaf4ffb3f41d88fd885e81aba947c1241275043885bc5f0bac", - strip_prefix = "cranelift-codegen-meta-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.77.0.bazel"), + sha256 = "793f6a94a053a55404ea16e1700202a88101672b8cd6b4df63e13cde950852bf", + strip_prefix = "cranelift-codegen-meta-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.78.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.78.0/download", type = "tar.gz", - sha256 = "1cd2a72db4301dbe7e5a4499035eedc1e82720009fb60603e20504d8691fa9cd", - strip_prefix = "cranelift-codegen-shared-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.77.0.bazel"), + sha256 = "44aa1846df275bce5eb30379d65964c7afc63c05a117076e62a119c25fe174be", + strip_prefix = "cranelift-codegen-shared-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.78.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_entity__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.78.0/download", type = "tar.gz", - sha256 = "48868faa07cacf948dc4a1773648813c0e453ff9467e800ff10f6a78c021b546", - strip_prefix = "cranelift-entity-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.77.0.bazel"), + sha256 = "a3a45d8d6318bf8fc518154d9298eab2a8154ec068a8885ff113f6db8d69bb3a", + strip_prefix = "cranelift-entity-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.78.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.78.0/download", type = "tar.gz", - sha256 = "351c9d13b4ecd1a536215ec2fd1c3ee9ee8bc31af172abf1e45ed0adb7a931df", - strip_prefix = "cranelift-frontend-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.77.0.bazel"), + sha256 = "e07339bd461766deb7605169de039e01954768ff730fa1254e149001884a8525", + strip_prefix = "cranelift-frontend-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.78.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_native__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.78.0/download", type = "tar.gz", - sha256 = "6df8b556663d7611b137b24db7f6c8d9a8a27d7f29c7ea7835795152c94c1b75", - strip_prefix = "cranelift-native-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.77.0.bazel"), + sha256 = "03e2fca76ff57e0532936a71e3fc267eae6a19a86656716479c66e7f912e3d7b", + strip_prefix = "cranelift-native-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.78.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_77_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.77.0/download", + name = "proxy_wasm_cpp_host__cranelift_wasm__0_78_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.78.0/download", type = "tar.gz", - sha256 = "7a69816d90db694fa79aa39b89dda7208a4ac74b6f2b8f3c4da26ee1c8bdfc5e", - strip_prefix = "cranelift-wasm-0.77.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.77.0.bazel"), + sha256 = "1f46fec547a1f8a32c54ea61c28be4f4ad234ad95342b718a9a9adcaadb0c778", + strip_prefix = "cranelift-wasm-0.78.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.78.0.bazel"), ) maybe( @@ -281,6 +291,26 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.4.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__errno__0_2_8", + url = "https://crates.io/api/v1/crates/errno/0.2.8/download", + type = "tar.gz", + sha256 = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1", + strip_prefix = "errno-0.2.8", + build_file = Label("//bazel/cargo/remote:BUILD.errno-0.2.8.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__errno_dragonfly__0_1_2", + url = "https://crates.io/api/v1/crates/errno-dragonfly/0.1.2/download", + type = "tar.gz", + sha256 = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf", + strip_prefix = "errno-dragonfly-0.1.2", + build_file = Label("//bazel/cargo/remote:BUILD.errno-dragonfly-0.1.2.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__fallible_iterator__0_2_0", @@ -311,6 +341,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.25.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__gimli__0_26_1", + url = "https://crates.io/api/v1/crates/gimli/0.26.1/download", + type = "tar.gz", + sha256 = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4", + strip_prefix = "gimli-0.26.1", + build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.26.1.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__hashbrown__0_11_2", @@ -361,6 +401,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.7.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__io_lifetimes__0_3_3", + url = "https://crates.io/api/v1/crates/io-lifetimes/0.3.3/download", + type = "tar.gz", + sha256 = "278e90d6f8a6c76a8334b336e306efa3c5f2b604048cbfd486d6f49878e3af14", + strip_prefix = "io-lifetimes-0.3.3", + build_file = Label("//bazel/cargo/remote:BUILD.io-lifetimes-0.3.3.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__itertools__0_10_1", @@ -371,6 +421,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.10.1.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__itoa__0_4_8", + url = "https://crates.io/api/v1/crates/itoa/0.4.8/download", + type = "tar.gz", + sha256 = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4", + strip_prefix = "itoa-0.4.8", + build_file = Label("//bazel/cargo/remote:BUILD.itoa-0.4.8.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__lazy_static__1_4_0", @@ -383,12 +443,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_103", - url = "https://crates.io/api/v1/crates/libc/0.2.103/download", + name = "proxy_wasm_cpp_host__libc__0_2_107", + url = "https://crates.io/api/v1/crates/libc/0.2.107/download", type = "tar.gz", - sha256 = "dd8f7255a17a627354f321ef0055d63b898c6fb27eff628af4d1b66b7331edf6", - strip_prefix = "libc-0.2.103", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.103.bazel"), + sha256 = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219", + strip_prefix = "libc-0.2.107", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.107.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__linux_raw_sys__0_0_28", + url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.28/download", + type = "tar.gz", + sha256 = "687387ff42ec7ea4f2149035a5675fedb675d26f98db90a1846ac63d3addb5f5", + strip_prefix = "linux-raw-sys-0.0.28", + build_file = Label("//bazel/cargo/remote:BUILD.linux-raw-sys-0.0.28.bazel"), ) maybe( @@ -453,12 +523,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__object__0_26_2", - url = "https://crates.io/api/v1/crates/object/0.26.2/download", + name = "proxy_wasm_cpp_host__object__0_27_1", + url = "https://crates.io/api/v1/crates/object/0.27.1/download", type = "tar.gz", - sha256 = "39f37e50073ccad23b6d09bcb5b263f4e76d3bb6038e4a3c08e52162ffa8abc2", - strip_prefix = "object-0.26.2", - build_file = Label("//bazel/cargo/remote:BUILD.object-0.26.2.bazel"), + sha256 = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9", + strip_prefix = "object-0.27.1", + build_file = Label("//bazel/cargo/remote:BUILD.object-0.27.1.bazel"), ) maybe( @@ -483,32 +553,32 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__paste__1_0_5", - url = "https://crates.io/api/v1/crates/paste/1.0.5/download", + name = "proxy_wasm_cpp_host__paste__1_0_6", + url = "https://crates.io/api/v1/crates/paste/1.0.6/download", type = "tar.gz", - sha256 = "acbf547ad0c65e31259204bd90935776d1c693cec2f4ff7abb7a1bbbd40dfe58", - strip_prefix = "paste-1.0.5", - build_file = Label("//bazel/cargo/remote:BUILD.paste-1.0.5.bazel"), + sha256 = "0744126afe1a6dd7f394cb50a716dbe086cb06e255e53d8d0185d82828358fb5", + strip_prefix = "paste-1.0.6", + build_file = Label("//bazel/cargo/remote:BUILD.paste-1.0.6.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__ppv_lite86__0_2_14", - url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.14/download", + name = "proxy_wasm_cpp_host__ppv_lite86__0_2_15", + url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.15/download", type = "tar.gz", - sha256 = "c3ca011bd0129ff4ae15cd04c4eef202cadf6c51c21e47aba319b4e0501db741", - strip_prefix = "ppv-lite86-0.2.14", - build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.14.bazel"), + sha256 = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba", + strip_prefix = "ppv-lite86-0.2.15", + build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.15.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__proc_macro2__1_0_30", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.30/download", + name = "proxy_wasm_cpp_host__proc_macro2__1_0_32", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.32/download", type = "tar.gz", - sha256 = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70", - strip_prefix = "proc-macro2-1.0.30", - build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.30.bazel"), + sha256 = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43", + strip_prefix = "proc-macro2-1.0.32", + build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.32.bazel"), ) maybe( @@ -573,12 +643,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__regalloc__0_0_31", - url = "https://crates.io/api/v1/crates/regalloc/0.0.31/download", + name = "proxy_wasm_cpp_host__regalloc__0_0_32", + url = "https://crates.io/api/v1/crates/regalloc/0.0.32/download", type = "tar.gz", - sha256 = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5", - strip_prefix = "regalloc-0.0.31", - build_file = Label("//bazel/cargo/remote:BUILD.regalloc-0.0.31.bazel"), + sha256 = "a6304468554ed921da3d32c355ea107b8d13d7b8996c3adfb7aab48d3bc321f4", + strip_prefix = "regalloc-0.0.32", + build_file = Label("//bazel/cargo/remote:BUILD.regalloc-0.0.32.bazel"), ) maybe( @@ -611,6 +681,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.region-2.2.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__rsix__0_23_9", + url = "https://crates.io/api/v1/crates/rsix/0.23.9/download", + type = "tar.gz", + sha256 = "1f64c5788d5aab8b75441499d99576a24eb09f76fb267b36fec7e3d970c66431", + strip_prefix = "rsix-0.23.9", + build_file = Label("//bazel/cargo/remote:BUILD.rsix-0.23.9.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__rustc_demangle__0_1_21", @@ -631,6 +711,26 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.rustc-hash-1.1.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__rustc_version__0_4_0", + url = "https://crates.io/api/v1/crates/rustc_version/0.4.0/download", + type = "tar.gz", + sha256 = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366", + strip_prefix = "rustc_version-0.4.0", + build_file = Label("//bazel/cargo/remote:BUILD.rustc_version-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__semver__1_0_4", + url = "https://crates.io/api/v1/crates/semver/1.0.4/download", + type = "tar.gz", + sha256 = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012", + strip_prefix = "semver-1.0.4", + build_file = Label("//bazel/cargo/remote:BUILD.semver-1.0.4.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__serde__1_0_130", @@ -683,12 +783,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_80", - url = "https://crates.io/api/v1/crates/syn/1.0.80/download", + name = "proxy_wasm_cpp_host__syn__1_0_81", + url = "https://crates.io/api/v1/crates/syn/1.0.81/download", type = "tar.gz", - sha256 = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194", - strip_prefix = "syn-1.0.80", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.80.bazel"), + sha256 = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966", + strip_prefix = "syn-1.0.81", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.81.bazel"), ) maybe( @@ -783,12 +883,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmparser__0_80_2", - url = "https://crates.io/api/v1/crates/wasmparser/0.80.2/download", + name = "proxy_wasm_cpp_host__wasmparser__0_81_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.81.0/download", type = "tar.gz", - sha256 = "449167e2832691a1bff24cde28d2804e90e09586a448c8e76984792c44334a6b", - strip_prefix = "wasmparser-0.80.2", - build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.80.2.bazel"), + sha256 = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc", + strip_prefix = "wasmparser-0.81.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.81.0.bazel"), ) maybe( @@ -802,71 +902,71 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_30_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.30.0/download", + name = "proxy_wasm_cpp_host__wasmtime__0_31_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.31.0/download", type = "tar.gz", - sha256 = "899b1e5261e3d3420860dacfb952871ace9d7ba9f953b314f67aaf9f8e2a4d89", - strip_prefix = "wasmtime-0.30.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.30.0.bazel"), + sha256 = "311d06b0c49346d1fbf48a17052e844036b95a7753c1afb34e8c0af3f6b5bb13", + strip_prefix = "wasmtime-0.31.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.31.0.bazel"), ) maybe( new_git_repository, name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "572fbc8c54b5a9519154c57e28b86cfaaba57bbb", + commit = "c1a6a0523dbc59d176f708ea3d04e6edb48480ec", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_30_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.30.0/download", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_31_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.31.0/download", type = "tar.gz", - sha256 = "99706bacdf5143f7f967d417f0437cce83a724cf4518cb1a3ff40e519d793021", - strip_prefix = "wasmtime-cranelift-0.30.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.30.0.bazel"), + sha256 = "ab3083a47e1ede38aac06a1d9831640d673f9aeda0b82a64e4ce002f3432e2e7", + strip_prefix = "wasmtime-cranelift-0.31.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.31.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_30_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.30.0/download", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_31_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.31.0/download", type = "tar.gz", - sha256 = "ac42cb562a2f98163857605f02581d719a410c5abe93606128c59a10e84de85b", - strip_prefix = "wasmtime-environ-0.30.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.30.0.bazel"), + sha256 = "1c2d194b655321053bc4111a1aa4ead552655c8a17d17264bc97766e70073510", + strip_prefix = "wasmtime-environ-0.31.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.31.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_30_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.30.0/download", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_31_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.31.0/download", type = "tar.gz", - sha256 = "24f46dd757225f29a419be415ea6fb8558df9b0194f07e3a6a9c99d0e14dd534", - strip_prefix = "wasmtime-jit-0.30.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.30.0.bazel"), + sha256 = "864ac8dfe4ce310ac59f16fdbd560c257389cb009ee5d030ac6e30523b023d11", + strip_prefix = "wasmtime-jit-0.31.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.31.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_30_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.30.0/download", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_31_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.31.0/download", type = "tar.gz", - sha256 = "0122215a44923f395487048cb0a1d60b5b32c73aab15cf9364b798dbaff0996f", - strip_prefix = "wasmtime-runtime-0.30.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.30.0.bazel"), + sha256 = "ab97da813a26b98c9abfd3b0c2d99e42f6b78b749c0646344e2e262d212d8c8b", + strip_prefix = "wasmtime-runtime-0.31.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.31.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_types__0_30_0", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.30.0/download", + name = "proxy_wasm_cpp_host__wasmtime_types__0_31_0", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.31.0/download", type = "tar.gz", - sha256 = "f9b01caf8a204ef634ebac99700e77ba716d3ebbb68a1abbc2ceb6b16dbec9e4", - strip_prefix = "wasmtime-types-0.30.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.30.0.bazel"), + sha256 = "ff94409cc3557bfbbcce6b14520ccd6bd3727e965c0fe68d63ef2c185bf379c6", + strip_prefix = "wasmtime-types-0.31.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.31.0.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel b/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel new file mode 100644 index 000000000..d87d340a8 --- /dev/null +++ b/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "addr2line" with type "example" omitted + +rust_library( + name = "addr2line", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.17.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", + ], +) + +# Unsupported target "correctness" with type "test" omitted + +# Unsupported target "output_equivalence" with type "test" omitted + +# Unsupported target "parse" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.44.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.45.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.anyhow-1.0.44.bazel rename to bazel/cargo/remote/BUILD.anyhow-1.0.45.bazel index 43af3cbe0..2e6226f28 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.44.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.45.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.44", + version = "1.0.45", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.44", + version = "1.0.45", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index a1214a9c0..57a84326a 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.61.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.backtrace-0.3.61.bazel rename to bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel index 4db2abcaf..01b088fea 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.61.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel @@ -55,10 +55,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.61", + version = "0.3.63", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_71//:cc", + "@proxy_wasm_cpp_host__cc__1_0_72//:cc", ] + selects.with_or({ # cfg(windows) ( @@ -96,15 +96,15 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.61", + version = "0.3.63", # buildifier: leave-alone deps = [ ":backtrace_build_script", - "@proxy_wasm_cpp_host__addr2line__0_16_0//:addr2line", + "@proxy_wasm_cpp_host__addr2line__0_17_0//:addr2line", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", - "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", ] + selects.with_or({ # cfg(windows) diff --git a/bazel/cargo/remote/BUILD.cc-1.0.71.bazel b/bazel/cargo/remote/BUILD.cc-1.0.72.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cc-1.0.71.bazel rename to bazel/cargo/remote/BUILD.cc-1.0.72.bazel index f310feea4..0a37f0614 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.71.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.72.bazel @@ -47,7 +47,7 @@ rust_binary( "cargo-raze", "manual", ], - version = "1.0.71", + version = "1.0.72", # buildifier: leave-alone deps = [ ":cc", @@ -70,7 +70,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.71", + version = "1.0.72", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.78.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-bforest-0.78.0.bazel index 22eaa705a..7b892de25 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.78.0.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.78.0.bazel similarity index 85% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-0.78.0.bazel index b4ebf02fc..3dcf416cb 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.78.0.bazel @@ -57,10 +57,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_77_0//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_78_0//:cranelift_codegen_meta", ], ) @@ -86,16 +86,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__cranelift_bforest__0_77_0//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_77_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_bforest__0_78_0//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_78_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__regalloc__0_0_31//:regalloc", + "@proxy_wasm_cpp_host__regalloc__0_0_32//:regalloc", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ], diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.78.0.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.78.0.bazel index ca7e8ba13..fbfc859c2 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.78.0.bazel @@ -46,10 +46,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_77_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_78_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.78.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.78.0.bazel index 8fefb0a19..e2deaa740 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.78.0.bazel @@ -46,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.78.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-entity-0.78.0.bazel index 14b93169d..538b10e25 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.78.0.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__serde__1_0_130//:serde", diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.78.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-frontend-0.78.0.bazel index 4a1707f51..64e6f1cbc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.78.0.bazel @@ -48,10 +48,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.78.0.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.cranelift-native-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-native-0.78.0.bazel index 6191d2ab2..283c03950 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.78.0.bazel @@ -50,17 +50,17 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.77.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.78.0.bazel similarity index 79% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.77.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-wasm-0.78.0.bazel index d69661bfc..3145a8569 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.77.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.78.0.bazel @@ -48,17 +48,17 @@ rust_library( "cargo-raze", "manual", ], - version = "0.77.0", + version = "0.78.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_77_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_78_0//:cranelift_frontend", "@proxy_wasm_cpp_host__itertools__0_10_1//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", - "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_30_0//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_types__0_31_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel new file mode 100644 index 000000000..490746698 --- /dev/null +++ b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "errno", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.8", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(unix), cfg(target_os = "wasi") + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel new file mode 100644 index 000000000..22972d23c --- /dev/null +++ b/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -0,0 +1,85 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "errno_dragonfly_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.2", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + ], +) + +rust_library( + name = "errno_dragonfly", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.1.2", + # buildifier: leave-alone + deps = [ + ":errno_dragonfly_build_script", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + ], +) diff --git a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel index aaa30e798..65ac8b60d 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel @@ -90,7 +90,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel new file mode 100644 index 000000000..d8c7477c5 --- /dev/null +++ b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel @@ -0,0 +1,69 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "dwarf-validate" with type "example" omitted + +# Unsupported target "dwarfdump" with type "example" omitted + +# Unsupported target "simple" with type "example" omitted + +# Unsupported target "simple_line" with type "example" omitted + +rust_library( + name = "gimli", + srcs = glob(["**/*.rs"]), + crate_features = [ + "read", + "read-core", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.26.1", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "convert_self" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel index 21fe9d920..d5cd28ae7 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel @@ -50,6 +50,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel index 01a132304..e450739c8 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel @@ -44,6 +44,7 @@ cargo_build_script( crate_features = [ "serde", "serde-1", + "std", ], crate_root = "build.rs", data = glob(["**"]), @@ -72,6 +73,7 @@ rust_library( crate_features = [ "serde", "serde-1", + "std", ], crate_root = "src/lib.rs", crate_type = "lib", diff --git a/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel b/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel new file mode 100644 index 000000000..b989175ea --- /dev/null +++ b/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel @@ -0,0 +1,169 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "io_lifetimes_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.3", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__rustc_version__0_4_0//:rustc_version", + ] + selects.with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "easy-conversions" with type "example" omitted + +# Unsupported target "flexible-apis" with type "example" omitted + +# Unsupported target "hello" with type "example" omitted + +# Unsupported target "owning-wrapper" with type "example" omitted + +# Unsupported target "portable-views" with type "example" omitted + +rust_library( + name = "io_lifetimes", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.3", + # buildifier: leave-alone + deps = [ + ":io_lifetimes_build_script", + ] + selects.with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "api" with type "test" omitted + +# Unsupported target "assumptions" with type "test" omitted + +# Unsupported target "ffi" with type "test" omitted + +# Unsupported target "niche-optimizations" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.itoa-0.4.8.bazel b/bazel/cargo/remote/BUILD.itoa-0.4.8.bazel new file mode 100644 index 000000000..7beafd5a4 --- /dev/null +++ b/bazel/cargo/remote/BUILD.itoa-0.4.8.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "itoa", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.8", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.libc-0.2.103.bazel b/bazel/cargo/remote/BUILD.libc-0.2.107.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.libc-0.2.103.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.107.bazel index 3b32012d6..731522167 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.103.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.107.bazel @@ -43,6 +43,7 @@ cargo_build_script( }, crate_features = [ "default", + "extra_traits", "std", ], crate_root = "build.rs", @@ -55,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.103", + version = "0.2.107", visibility = ["//visibility:private"], deps = [ ], @@ -66,6 +67,7 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "default", + "extra_traits", "std", ], crate_root = "src/lib.rs", @@ -79,7 +81,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.103", + version = "0.2.107", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.28.bazel b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.28.bazel new file mode 100644 index 000000000..d7bba7ca7 --- /dev/null +++ b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.28.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets + +rust_library( + name = "linux_raw_sys", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "errno", + "general", + "std", + "v5_11", + "v5_4", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.0.28", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 1cdd88969..0731ea296 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -63,7 +63,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.object-0.26.2.bazel b/bazel/cargo/remote/BUILD.object-0.27.1.bazel similarity index 77% rename from bazel/cargo/remote/BUILD.object-0.26.2.bazel rename to bazel/cargo/remote/BUILD.object-0.27.1.bazel index de129d607..cd0073b35 100644 --- a/bazel/cargo/remote/BUILD.object-0.26.2.bazel +++ b/bazel/cargo/remote/BUILD.object-0.27.1.bazel @@ -30,20 +30,6 @@ licenses([ # Generated Targets -# Unsupported target "ar" with type "example" omitted - -# Unsupported target "dyldcachedump" with type "example" omitted - -# Unsupported target "nm" with type "example" omitted - -# Unsupported target "objcopy" with type "example" omitted - -# Unsupported target "objdump" with type "example" omitted - -# Unsupported target "objectmap" with type "example" omitted - -# Unsupported target "readobj" with type "example" omitted - rust_library( name = "object", srcs = glob(["**/*.rs"]), @@ -72,7 +58,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.26.2", + version = "0.27.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__crc32fast__1_2_1//:crc32fast", diff --git a/bazel/cargo/remote/BUILD.paste-1.0.5.bazel b/bazel/cargo/remote/BUILD.paste-1.0.6.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.paste-1.0.5.bazel rename to bazel/cargo/remote/BUILD.paste-1.0.6.bazel index cd68ac546..5c307b9b5 100644 --- a/bazel/cargo/remote/BUILD.paste-1.0.5.bazel +++ b/bazel/cargo/remote/BUILD.paste-1.0.6.bazel @@ -46,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.5", + version = "1.0.6", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.14.bazel b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.15.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.ppv-lite86-0.2.14.bazel rename to bazel/cargo/remote/BUILD.ppv-lite86-0.2.15.bazel index 9651935cf..7cc662957 100644 --- a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.15.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.14", + version = "0.2.15", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.30.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.32.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.proc-macro2-1.0.30.bazel rename to bazel/cargo/remote/BUILD.proc-macro2-1.0.32.bazel index e11620e9d..5f1660062 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.30.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.32.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.30", + version = "1.0.32", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.30", + version = "1.0.32", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", diff --git a/bazel/cargo/remote/BUILD.psm-0.1.16.bazel b/bazel/cargo/remote/BUILD.psm-0.1.16.bazel index e642d2ec5..6caa78ec0 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.16.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.16.bazel @@ -56,7 +56,7 @@ cargo_build_script( version = "0.1.16", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_71//:cc", + "@proxy_wasm_cpp_host__cc__1_0_72//:cc", ], ) diff --git a/bazel/cargo/remote/BUILD.quote-1.0.10.bazel b/bazel/cargo/remote/BUILD.quote-1.0.10.bazel index e6553d747..053400698 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.10.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.10.bazel @@ -53,7 +53,7 @@ rust_library( version = "1.0.10", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", ], ) diff --git a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel index 9a9e6edb0..daf6702da 100644 --- a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel +++ b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel index f2bbbf8ab..631968028 100644 --- a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel @@ -50,7 +50,7 @@ rust_library( version = "0.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__ppv_lite86__0_2_14//:ppv_lite86", + "@proxy_wasm_cpp_host__ppv_lite86__0_2_15//:ppv_lite86", "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.32.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel rename to bazel/cargo/remote/BUILD.regalloc-0.0.32.bazel index a5a411eb3..cccddfa12 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.31.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.32.bazel @@ -47,7 +47,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.0.31", + version = "0.0.32", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__log__0_4_14//:log", diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index bd73a300f..7e87c2465 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -52,7 +52,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/remote/BUILD.rsix-0.23.9.bazel b/bazel/cargo/remote/BUILD.rsix-0.23.9.bazel new file mode 100644 index 000000000..94a42ae0f --- /dev/null +++ b/bazel/cargo/remote/BUILD.rsix-0.23.9.bazel @@ -0,0 +1,215 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "rsix_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.23.9", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + "@proxy_wasm_cpp_host__rustc_version__0_4_0//:rustc_version", + ] + selects.with_or({ + # cfg(all(not(rsix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) + ( + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__linux_raw_sys__0_0_28//:linux_raw_sys", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(any(rsix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(any(target_os = "android", target_os = "linux")) + ( + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "mod" with type "bench" omitted + +# Unsupported target "process" with type "example" omitted + +# Unsupported target "stdio" with type "example" omitted + +# Unsupported target "time" with type "example" omitted + +rust_library( + name = "rsix", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.23.9", + # buildifier: leave-alone + deps = [ + ":rsix_build_script", + "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", + "@proxy_wasm_cpp_host__io_lifetimes__0_3_3//:io_lifetimes", + "@proxy_wasm_cpp_host__itoa__0_4_8//:itoa", + ] + selects.with_or({ + # cfg(all(not(rsix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) + ( + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__linux_raw_sys__0_0_28//:linux_raw_sys", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(any(rsix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@proxy_wasm_cpp_host__errno__0_2_8//:errno", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(any(target_os = "android", target_os = "linux")) + ( + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__once_cell__1_8_0//:once_cell", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "fs" with type "test" omitted + +# Unsupported target "io" with type "test" omitted + +# Unsupported target "net" with type "test" omitted + +# Unsupported target "path" with type "test" omitted + +# Unsupported target "process" with type "test" omitted + +# Unsupported target "rand" with type "test" omitted + +# Unsupported target "thread" with type "test" omitted + +# Unsupported target "time" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel new file mode 100644 index 000000000..63b3740dc --- /dev/null +++ b/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "rustc_version", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__semver__1_0_4//:semver", + ], +) + +# Unsupported target "all" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.semver-1.0.4.bazel b/bazel/cargo/remote/BUILD.semver-1.0.4.bazel new file mode 100644 index 000000000..332aa8d16 --- /dev/null +++ b/bazel/cargo/remote/BUILD.semver-1.0.4.bazel @@ -0,0 +1,95 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "semver_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.4", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "parse" with type "bench" omitted + +rust_library( + name = "semver", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.4", + # buildifier: leave-alone + deps = [ + ":semver_build_script", + ], +) + +# Unsupported target "test_identifier" with type "test" omitted + +# Unsupported target "test_version" with type "test" omitted + +# Unsupported target "test_version_req" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel index 5866314ad..2a8b6939b 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel @@ -81,8 +81,8 @@ rust_library( # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_10//:quote", - "@proxy_wasm_cpp_host__syn__1_0_80//:syn", + "@proxy_wasm_cpp_host__syn__1_0_81//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.syn-1.0.80.bazel b/bazel/cargo/remote/BUILD.syn-1.0.81.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.syn-1.0.80.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.81.bazel index cab83dd57..b3f5ab733 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.80.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.81.bazel @@ -60,7 +60,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.80", + version = "1.0.81", visibility = ["//visibility:private"], deps = [ ], @@ -93,11 +93,11 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.80", + version = "1.0.81", # buildifier: leave-alone deps = [ ":syn_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_10//:quote", "@proxy_wasm_cpp_host__unicode_xid__0_2_2//:unicode_xid", ], diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel index 412807d55..9eaf515ed 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -49,8 +49,8 @@ rust_library( version = "1.0.30", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_10//:quote", - "@proxy_wasm_cpp_host__syn__1_0_80//:syn", + "@proxy_wasm_cpp_host__syn__1_0_81//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.80.2.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.wasmparser-0.80.2.bazel rename to bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel index 524dd373f..85696e4ea 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.80.2.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel @@ -50,7 +50,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.80.2", + version = "0.81.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel index ed17fb042..ca834fdc2 100644 --- a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel @@ -51,7 +51,7 @@ rust_binary( # buildifier: leave-alone deps = [ ":wasmsign", - "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", "@proxy_wasm_cpp_host__clap__2_33_3//:clap", "@proxy_wasm_cpp_host__ed25519_compact__0_1_11//:ed25519_compact", @@ -80,7 +80,7 @@ rust_library( version = "0.1.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", "@proxy_wasm_cpp_host__clap__2_33_3//:clap", "@proxy_wasm_cpp_host__ed25519_compact__0_1_11//:ed25519_compact", diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.31.0.bazel similarity index 82% rename from bazel/cargo/remote/BUILD.wasmtime-0.30.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-0.31.0.bazel index c9c129fc3..2a6ec94f1 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.30.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.31.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -83,7 +83,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host__paste__1_0_5//:paste", + "@proxy_wasm_cpp_host__paste__1_0_6//:paste", ], rustc_flags = [ "--cap-lints=allow", @@ -92,30 +92,30 @@ rust_library( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_61//:backtrace", + "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__backtrace__0_3_63//:backtrace", "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__cpp_demangle__0_3_3//:cpp_demangle", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__psm__0_1_16//:psm", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", "@proxy_wasm_cpp_host__serde__1_0_130//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_30_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_30_0//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_30_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_31_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_31_0//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_31_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index fbf93d460..b81e0e05f 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -49,7 +49,7 @@ rust_library( version = "0.19.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_30//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_10//:quote", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.31.0.bazel similarity index 67% rename from bazel/cargo/remote/BUILD.wasmtime-cranelift-0.30.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-cranelift-0.31.0.bazel index 4b4f21c21..470b4047c 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.30.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.31.0.bazel @@ -46,21 +46,22 @@ rust_library( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", - "@proxy_wasm_cpp_host__cranelift_codegen__0_77_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_77_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_77_0//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_77_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_78_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_78_0//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_78_0//:cranelift_wasm", "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", + "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.31.0.bazel similarity index 82% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.30.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-environ-0.31.0.bazel index 6546f7ef0..02fa090ee 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.30.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.31.0.bazel @@ -46,21 +46,21 @@ rust_library( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__serde__1_0_130//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_30_0//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_types__0_31_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.31.0.bazel similarity index 69% rename from bazel/cargo/remote/BUILD.wasmtime-jit-0.30.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-jit-0.31.0.bazel index 6cc35b013..aace8e084 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.30.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.31.0.bazel @@ -48,25 +48,37 @@ rust_library( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__addr2line__0_16_0//:addr2line", - "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", - "@proxy_wasm_cpp_host__object__0_26_2//:object", + "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__serde__1_0_130//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_30_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", + "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_31_0//:wasmtime_runtime", ] + selects.with_or({ + # cfg(target_os = "linux") + ( + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.31.0.bazel similarity index 63% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.30.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-runtime-0.31.0.bazel index 4db3bdb2f..a84d63444 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.30.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.31.0.bazel @@ -54,10 +54,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_71//:cc", + "@proxy_wasm_cpp_host__cc__1_0_72//:cc", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -87,6 +87,28 @@ cargo_build_script( ): [ ], "//conditions:default": [], + }) + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + ], + "//conditions:default": [], }), ) @@ -109,23 +131,23 @@ rust_library( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@proxy_wasm_cpp_host__anyhow__1_0_44//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_61//:backtrace", + "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__backtrace__0_3_63//:backtrace", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_103//:libc", + "@proxy_wasm_cpp_host__libc__0_2_107//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__memoffset__0_6_4//:memoffset", "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", "@proxy_wasm_cpp_host__rand__0_8_4//:rand", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_30_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -157,5 +179,28 @@ rust_library( "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], + }) + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__rsix__0_23_9//:rsix", + ], + "//conditions:default": [], }), ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-types-0.30.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-types-0.31.0.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.wasmtime-types-0.30.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-types-0.31.0.bazel index 1af970048..4ed33703a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-types-0.30.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-types-0.31.0.bazel @@ -46,12 +46,12 @@ rust_library( "cargo-raze", "manual", ], - version = "0.30.0", + version = "0.31.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_77_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", "@proxy_wasm_cpp_host__serde__1_0_130//:serde", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_80_2//:wasmparser", + "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index b0691069b..3086eed6c 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -51,6 +51,7 @@ cargo_build_script( "memoryapi", "minwinbase", "minwindef", + "ntdef", "processenv", "std", "sysinfoapi", @@ -58,6 +59,7 @@ cargo_build_script( "wincon", "winerror", "winnt", + "winsock2", ], crate_root = "build.rs", data = glob(["**"]), @@ -88,6 +90,7 @@ rust_library( "memoryapi", "minwinbase", "minwindef", + "ntdef", "processenv", "std", "sysinfoapi", @@ -95,6 +98,7 @@ rust_library( "wincon", "winerror", "winnt", + "winsock2", ], crate_root = "src/lib.rs", crate_type = "lib", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 5d46f8129..0caa91444 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -59,9 +59,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "78eccfd8c8d63c30e85762bf36cf032409b7c34ac34f329b7e228ea6cc7aebca", - strip_prefix = "wasmtime-0.30.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.30.0.tar.gz", + sha256 = "4f9fc62453f2d8faf2374699a40e95d9265829e675b5a28e45e2af4b642e7219", + strip_prefix = "wasmtime-0.31.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.31.0.tar.gz", ) http_archive( From f38347360feaaf5b2a733f219c4d8c9660d626f0 Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Thu, 18 Nov 2021 21:08:15 +0900 Subject: [PATCH 124/287] wasi: export stubs for preopened files and directories. (#201) Resolves #199. Signed-off-by: mathetake --- include/proxy-wasm/exports.h | 7 ++++++- include/proxy-wasm/wasm_vm.h | 5 ++++- src/exports.cc | 19 +++++++++++++++++++ 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 02a4438ef..15305a2ad 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -159,6 +159,11 @@ Word call_foreign_function(Word function_name, Word function_name_size, Word arg // Runtime environment functions exported from envoy to wasm. +Word wasi_unstable_path_open(Word fd, Word dir_flags, Word path, Word path_len, Word oflags, + int64_t fs_rights_base, int64_t fg_rights_inheriting, Word fd_flags, + Word nwritten_ptr); +Word wasi_unstable_fd_prestat_get(Word fd, Word buf_ptr); +Word wasi_unstable_fd_prestat_dir_name(Word fd, Word path_ptr, Word path_len); Word wasi_unstable_fd_write(Word fd, Word iovs, Word iovs_len, Word nwritten_ptr); Word wasi_unstable_fd_read(Word, Word, Word, Word); Word wasi_unstable_fd_seek(Word, int64_t, Word, Word); @@ -196,7 +201,7 @@ Word pthread_equal(Word left, Word right); #define FOR_ALL_WASI_FUNCTIONS(_f) \ _f(fd_write) _f(fd_read) _f(fd_seek) _f(fd_close) _f(fd_fdstat_get) _f(environ_get) \ _f(environ_sizes_get) _f(args_get) _f(args_sizes_get) _f(clock_time_get) _f(random_get) \ - _f(proc_exit) + _f(proc_exit) _f(path_open) _f(fd_prestat_get) _f(fd_prestat_dir_name) // Helpers to generate a stub to pass to VM, in place of a restricted proxy-wasm capability. #define _CREATE_PROXY_WASM_STUB(_fn) \ diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 0d1616505..ff99129cd 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -110,6 +110,8 @@ using WasmCallback_WWl = Word (*)(Word, int64_t); using WasmCallback_WWlWW = Word (*)(Word, int64_t, Word, Word); using WasmCallback_WWm = Word (*)(Word, uint64_t); using WasmCallback_WWmW = Word (*)(Word, uint64_t, Word); +using WasmCallback_WWWWWWllWW = Word (*)(Word, Word, Word, Word, Word, int64_t, int64_t, Word, + Word); using WasmCallback_dd = double (*)(double); #define FOR_ALL_WASM_VM_IMPORTS(_f) \ @@ -127,7 +129,8 @@ using WasmCallback_dd = double (*)(double); _f(proxy_wasm::WasmCallback_WWlWW) \ _f(proxy_wasm::WasmCallback_WWm) \ _f(proxy_wasm::WasmCallback_WWmW) \ - _f(proxy_wasm::WasmCallback_dd) + _f(proxy_wasm::WasmCallback_WWWWWWllWW) \ + _f(proxy_wasm::WasmCallback_dd) enum class Cloneable { NotCloneable, // VMs can not be cloned and should be created from scratch. diff --git a/src/exports.cc b/src/exports.cc index f56343699..673fd1fe9 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -666,6 +666,25 @@ Word grpc_send(Word token, Word message_ptr, Word message_size, Word end_stream) return context->grpcSend(token, message.value(), end_stream); } +// __wasi_errno_t path_open(__wasi_fd_t fd, __wasi_lookupflags_t dirflags, const char *path, +// size_t path_len, __wasi_oflags_t oflags, __wasi_rights_t fs_rights_base, __wasi_rights_t +// fs_rights_inheriting, __wasi_fdflags_t fdflags, __wasi_fd_t *retptr0) +Word wasi_unstable_path_open(Word fd, Word dir_flags, Word path, Word path_len, Word oflags, + int64_t fs_rights_base, int64_t fg_rights_inheriting, Word fd_flags, + Word nwritten_ptr) { + return 44; // __WASI_ERRNO_NOENT +} + +// __wasi_errno_t __wasi_fd_prestat_get(__wasi_fd_t fd, __wasi_prestat_t *retptr0) +Word wasi_unstable_fd_prestat_get(Word fd, Word buf_ptr) { + return 8; // __WASI_ERRNO_BADF +} + +// __wasi_errno_t __wasi_fd_prestat_dir_name(__wasi_fd_t fd, uint8_t * path, __wasi_size_t path_len) +Word wasi_unstable_fd_prestat_dir_name(Word fd, Word path_ptr, Word path_len) { + return 52; // __WASI_ERRNO_ENOSYS +} + // Implementation of writev-like() syscall that redirects stdout/stderr to Envoy // logs. Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { From f2f90beac34bd1ea67aa4401f4a853eb989c8ba0 Mon Sep 17 00:00:00 2001 From: Faseela K Date: Sun, 2 Jan 2022 23:13:26 +0100 Subject: [PATCH 125/287] wasmtime: update to v0.32.0 (#205) Signed-off-by: Faseela K --- .github/workflows/cargo.yml | 4 +- bazel/cargo/BUILD.bazel | 6 +- bazel/cargo/Cargo.raze.lock | 289 ++++++----- bazel/cargo/Cargo.toml | 17 +- bazel/cargo/crates.bzl | 477 ++++++++++-------- .../cargo/remote/BUILD.addr2line-0.16.0.bazel | 62 --- ...1.0.bazel => BUILD.ansi_term-0.12.1.bazel} | 8 +- ...1.0.45.bazel => BUILD.anyhow-1.0.52.bazel} | 6 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 2 +- .../cargo/remote/BUILD.backtrace-0.3.63.bazel | 2 +- bazel/cargo/remote/BUILD.bincode-1.3.3.bazel | 2 +- .../remote/BUILD.block-buffer-0.9.0.bazel | 54 ++ ...p-2.33.3.bazel => BUILD.clap-2.34.0.bazel} | 6 +- ...3.bazel => BUILD.cpp_demangle-0.3.5.bazel} | 6 +- .../remote/BUILD.cpufeatures-0.2.1.bazel | 68 +++ ...l => BUILD.cranelift-bforest-0.79.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.79.0.bazel} | 17 +- ...BUILD.cranelift-codegen-meta-0.79.0.bazel} | 5 +- ...ILD.cranelift-codegen-shared-0.79.0.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.79.0.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.79.0.bazel} | 4 +- ...el => BUILD.cranelift-native-0.79.0.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.79.0.bazel} | 12 +- ....2.1.bazel => BUILD.crc32fast-1.3.0.bazel} | 4 +- bazel/cargo/remote/BUILD.digest-0.9.0.bazel | 56 ++ ...azel => BUILD.ed25519-compact-1.0.1.bazel} | 2 +- bazel/cargo/remote/BUILD.errno-0.2.8.bazel | 4 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- .../remote/BUILD.generic-array-0.14.4.bazel | 97 ++++ .../cargo/remote/BUILD.getrandom-0.2.3.bazel | 2 +- bazel/cargo/remote/BUILD.gimli-0.25.0.bazel | 76 --- bazel/cargo/remote/BUILD.gimli-0.26.1.bazel | 8 + .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- ....9.bazel => BUILD.hmac-sha512-1.1.1.bazel} | 2 +- bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel | 2 +- ...0.1.bazel => BUILD.itertools-0.10.3.bazel} | 4 +- ...0.2.107.bazel => BUILD.libc-0.2.112.bazel} | 4 +- ...bazel => BUILD.linux-raw-sys-0.0.36.bazel} | 3 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 2 +- ....6.4.bazel => BUILD.memoffset-0.6.5.bazel} | 4 +- ...1.bazel => BUILD.more-asserts-0.2.2.bazel} | 2 +- bazel/cargo/remote/BUILD.object-0.27.1.bazel | 2 +- ....8.0.bazel => BUILD.once_cell-1.9.0.bazel} | 2 +- .../remote/BUILD.opaque-debug-0.3.0.bazel | 55 ++ ...15.bazel => BUILD.ppv-lite86-0.2.16.bazel} | 2 +- ...2.bazel => BUILD.proc-macro2-1.0.36.bazel} | 4 +- ...-1.0.10.bazel => BUILD.quote-1.0.14.bazel} | 6 +- bazel/cargo/remote/BUILD.rand-0.8.4.bazel | 2 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 2 +- ...0.32.bazel => BUILD.regalloc-0.0.33.bazel} | 2 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 2 +- ...0.23.9.bazel => BUILD.rustix-0.26.2.bazel} | 49 +- ....0.130.bazel => BUILD.serde-1.0.133.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.133.bazel} | 10 +- bazel/cargo/remote/BUILD.sha2-0.9.8.bazel | 93 ++++ ...yn-1.0.81.bazel => BUILD.syn-1.0.84.bazel} | 10 +- .../remote/BUILD.thiserror-impl-1.0.30.bazel | 6 +- bazel/cargo/remote/BUILD.typenum-1.15.0.bazel | 85 ++++ ....bazel => BUILD.version_check-0.9.4.bazel} | 8 +- bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel | 16 +- ...31.0.bazel => BUILD.wasmtime-0.32.0.bazel} | 20 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 4 +- ... => BUILD.wasmtime-cranelift-0.32.0.bazel} | 20 +- ...el => BUILD.wasmtime-environ-0.32.0.bazel} | 15 +- ....bazel => BUILD.wasmtime-jit-0.32.0.bazel} | 17 +- ...el => BUILD.wasmtime-runtime-0.32.0.bazel} | 16 +- ...azel => BUILD.wasmtime-types-0.32.0.bazel} | 6 +- bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 4 + bazel/cargo/rustix-no_git_check.patch | 10 + src/wasmtime/wasmtime.cc | 3 - 70 files changed, 1162 insertions(+), 654 deletions(-) delete mode 100644 bazel/cargo/remote/BUILD.addr2line-0.16.0.bazel rename bazel/cargo/remote/{BUILD.ansi_term-0.11.0.bazel => BUILD.ansi_term-0.12.1.bazel} (86%) rename bazel/cargo/remote/{BUILD.anyhow-1.0.45.bazel => BUILD.anyhow-1.0.52.bazel} (95%) create mode 100644 bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel rename bazel/cargo/remote/{BUILD.clap-2.33.3.bazel => BUILD.clap-2.34.0.bazel} (96%) rename bazel/cargo/remote/{BUILD.cpp_demangle-0.3.3.bazel => BUILD.cpp_demangle-0.3.5.bazel} (97%) create mode 100644 bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel rename bazel/cargo/remote/{BUILD.cranelift-bforest-0.78.0.bazel => BUILD.cranelift-bforest-0.79.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-0.78.0.bazel => BUILD.cranelift-codegen-0.79.0.bazel} (81%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-meta-0.78.0.bazel => BUILD.cranelift-codegen-meta-0.79.0.bazel} (86%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-shared-0.78.0.bazel => BUILD.cranelift-codegen-shared-0.79.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-entity-0.78.0.bazel => BUILD.cranelift-entity-0.79.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-frontend-0.78.0.bazel => BUILD.cranelift-frontend-0.79.0.bazel} (93%) rename bazel/cargo/remote/{BUILD.cranelift-native-0.78.0.bazel => BUILD.cranelift-native-0.79.0.bazel} (90%) rename bazel/cargo/remote/{BUILD.cranelift-wasm-0.78.0.bazel => BUILD.cranelift-wasm-0.79.0.bazel} (79%) rename bazel/cargo/remote/{BUILD.crc32fast-1.2.1.bazel => BUILD.crc32fast-1.3.0.bazel} (97%) create mode 100644 bazel/cargo/remote/BUILD.digest-0.9.0.bazel rename bazel/cargo/remote/{BUILD.ed25519-compact-0.1.11.bazel => BUILD.ed25519-compact-1.0.1.bazel} (97%) create mode 100644 bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel delete mode 100644 bazel/cargo/remote/BUILD.gimli-0.25.0.bazel rename bazel/cargo/remote/{BUILD.hmac-sha512-0.1.9.bazel => BUILD.hmac-sha512-1.1.1.bazel} (97%) rename bazel/cargo/remote/{BUILD.itertools-0.10.1.bazel => BUILD.itertools-0.10.3.bazel} (96%) rename bazel/cargo/remote/{BUILD.libc-0.2.107.bazel => BUILD.libc-0.2.112.bazel} (97%) rename bazel/cargo/remote/{BUILD.linux-raw-sys-0.0.28.bazel => BUILD.linux-raw-sys-0.0.36.bazel} (96%) rename bazel/cargo/remote/{BUILD.memoffset-0.6.4.bazel => BUILD.memoffset-0.6.5.bazel} (97%) rename bazel/cargo/remote/{BUILD.more-asserts-0.2.1.bazel => BUILD.more-asserts-0.2.2.bazel} (97%) rename bazel/cargo/remote/{BUILD.once_cell-1.8.0.bazel => BUILD.once_cell-1.9.0.bazel} (98%) create mode 100644 bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel rename bazel/cargo/remote/{BUILD.ppv-lite86-0.2.15.bazel => BUILD.ppv-lite86-0.2.16.bazel} (97%) rename bazel/cargo/remote/{BUILD.proc-macro2-1.0.32.bazel => BUILD.proc-macro2-1.0.36.bazel} (97%) rename bazel/cargo/remote/{BUILD.quote-1.0.10.bazel => BUILD.quote-1.0.14.bazel} (88%) rename bazel/cargo/remote/{BUILD.regalloc-0.0.32.bazel => BUILD.regalloc-0.0.33.bazel} (98%) rename bazel/cargo/remote/{BUILD.rsix-0.23.9.bazel => BUILD.rustix-0.26.2.bazel} (78%) rename bazel/cargo/remote/{BUILD.serde-1.0.130.bazel => BUILD.serde-1.0.133.bazel} (93%) rename bazel/cargo/remote/{BUILD.serde_derive-1.0.130.bazel => BUILD.serde_derive-1.0.133.bazel} (88%) create mode 100644 bazel/cargo/remote/BUILD.sha2-0.9.8.bazel rename bazel/cargo/remote/{BUILD.syn-1.0.81.bazel => BUILD.syn-1.0.84.bazel} (94%) create mode 100644 bazel/cargo/remote/BUILD.typenum-1.15.0.bazel rename bazel/cargo/remote/{BUILD.itoa-0.4.8.bazel => BUILD.version_check-0.9.4.bazel} (86%) rename bazel/cargo/remote/{BUILD.wasmtime-0.31.0.bazel => BUILD.wasmtime-0.32.0.bazel} (85%) rename bazel/cargo/remote/{BUILD.wasmtime-cranelift-0.31.0.bazel => BUILD.wasmtime-cranelift-0.32.0.bazel} (70%) rename bazel/cargo/remote/{BUILD.wasmtime-environ-0.31.0.bazel => BUILD.wasmtime-environ-0.32.0.bazel} (76%) rename bazel/cargo/remote/{BUILD.wasmtime-jit-0.31.0.bazel => BUILD.wasmtime-jit-0.32.0.bazel} (80%) rename bazel/cargo/remote/{BUILD.wasmtime-runtime-0.31.0.bazel => BUILD.wasmtime-runtime-0.32.0.bazel} (94%) rename bazel/cargo/remote/{BUILD.wasmtime-types-0.31.0.bazel => BUILD.wasmtime-types-0.32.0.bazel} (88%) create mode 100644 bazel/cargo/rustix-no_git_check.patch diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 9c71fab85..3f3f3c8c6 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -40,6 +40,6 @@ jobs: run: | cargo install cargo-raze --version 0.12.0 cargo raze - # Ignore manual changes in "errno" crate until fixed in cargo-raze. + # Ignore manual changes in "cpufeatures, errno and rustix" crate until fixed in cargo-raze. # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!remote/BUILD.errno-0.2.8.bazel' + git diff --exit-code -- ':!remote/BUILD.cpufeatures-0.2.1.bazel' ':!remote/BUILD.errno-0.2.8.bazel' ':!remote/BUILD.rustix-0.26.2.bazel' diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index caa0b2a77..a3a8cd90c 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + actual = "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@proxy_wasm_cpp_host__once_cell__1_8_0//:once_cell", + actual = "@proxy_wasm_cpp_host__once_cell__1_9_0//:once_cell", tags = [ "cargo-raze", "manual", @@ -61,7 +61,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_31_0//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_32_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index 64f2d11c5..9ad0593d4 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -1,21 +1,12 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -[[package]] -name = "addr2line" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd" -dependencies = [ - "gimli 0.25.0", -] - [[package]] name = "addr2line" version = "0.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" dependencies = [ - "gimli 0.26.1", + "gimli", ] [[package]] @@ -35,18 +26,18 @@ dependencies = [ [[package]] name = "ansi_term" -version = "0.11.0" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" dependencies = [ "winapi", ] [[package]] name = "anyhow" -version = "1.0.45" +version = "1.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7" +checksum = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3" [[package]] name = "atty" @@ -71,7 +62,7 @@ version = "0.3.63" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6" dependencies = [ - "addr2line 0.17.0", + "addr2line", "cc", "cfg-if", "libc", @@ -95,6 +86,15 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "block-buffer" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" +dependencies = [ + "generic-array", +] + [[package]] name = "byteorder" version = "1.4.3" @@ -115,9 +115,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "clap" -version = "2.33.3" +version = "2.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002" +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" dependencies = [ "ansi_term", "atty", @@ -130,69 +130,78 @@ dependencies = [ [[package]] name = "cpp_demangle" -version = "0.3.3" +version = "0.3.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea47428dc9d2237f3c6bc134472edfd63ebba0af932e783506dcfd66f10d18a" +checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" dependencies = [ "cfg-if", ] +[[package]] +name = "cpufeatures" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469" +dependencies = [ + "libc", +] + [[package]] name = "cranelift-bforest" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc0cb7df82c8cf8f2e6a8dd394a0932a71369c160cc9b027dca414fced242513" +checksum = "f0fb5e025141af5b9cbfff4351dc393596d017725f126c954bf472ce78dbba6b" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fe4463c15fa42eee909e61e5eac4866b7c6d22d0d8c621e57a0c5380753bfa8c" +checksum = "a278c67cc48d0e8ff2275fb6fc31527def4be8f3d81640ecc8cd005a3aa45ded" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", - "gimli 0.25.0", + "gimli", "log", "regalloc", + "sha2", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "793f6a94a053a55404ea16e1700202a88101672b8cd6b4df63e13cde950852bf" +checksum = "28274c1916c931c5603d94c5479d2ddacaaa574d298814ac1c99964ce92cbe85" dependencies = [ "cranelift-codegen-shared", - "cranelift-entity", ] [[package]] name = "cranelift-codegen-shared" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44aa1846df275bce5eb30379d65964c7afc63c05a117076e62a119c25fe174be" +checksum = "5411cf49ab440b749d4da5129dfc45caf6e5fb7b2742b1fe1a421964fda2ee88" [[package]] name = "cranelift-entity" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3a45d8d6318bf8fc518154d9298eab2a8154ec068a8885ff113f6db8d69bb3a" +checksum = "64dde596f98462a37b029d81c8567c23cc68b8356b017f12945c545ac0a83203" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e07339bd461766deb7605169de039e01954768ff730fa1254e149001884a8525" +checksum = "544605d400710bd9c89924050b30c2e0222a387a5a8b5f04da9a9fdcbd8656a5" dependencies = [ "cranelift-codegen", "log", @@ -202,9 +211,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03e2fca76ff57e0532936a71e3fc267eae6a19a86656716479c66e7f912e3d7b" +checksum = "b7f8839befb64f7a39cb855241ae2c8eb74cea27c97fff2a007075fdb8a7f7d4" dependencies = [ "cranelift-codegen", "libc", @@ -213,9 +222,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.78.0" +version = "0.79.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f46fec547a1f8a32c54ea61c28be4f4ad234ad95342b718a9a9adcaadb0c778" +checksum = "80c9e14062c6a1cd2367dd30ea8945976639d5fe2062da8bdd40ada9ce3cb82e" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -229,18 +238,27 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.2.1" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a" +checksum = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836" dependencies = [ "cfg-if", ] +[[package]] +name = "digest" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" +dependencies = [ + "generic-array", +] + [[package]] name = "ed25519-compact" -version = "0.1.11" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1f45ef578ef75efffba301628066d951042f6e988f21f8b548928468ba5877b" +checksum = "85424599b04c7251cd887b95b13c2bb853f3050a2619f40fbf9c23d0baf47223" dependencies = [ "getrandom", ] @@ -291,6 +309,16 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +[[package]] +name = "generic-array" +version = "0.14.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" +dependencies = [ + "typenum", + "version_check", +] + [[package]] name = "getrandom" version = "0.2.3" @@ -304,21 +332,15 @@ dependencies = [ [[package]] name = "gimli" -version = "0.25.0" +version = "0.26.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7" +checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4" dependencies = [ "fallible-iterator", "indexmap", "stable_deref_trait", ] -[[package]] -name = "gimli" -version = "0.26.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4" - [[package]] name = "hashbrown" version = "0.11.2" @@ -336,9 +358,9 @@ dependencies = [ [[package]] name = "hmac-sha512" -version = "0.1.9" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77e806677ce663d0a199541030c816847b36e8dc095f70dae4a4f4ad63da5383" +checksum = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10" [[package]] name = "humantime" @@ -369,19 +391,13 @@ dependencies = [ [[package]] name = "itertools" -version = "0.10.1" +version = "0.10.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf" +checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" dependencies = [ "either", ] -[[package]] -name = "itoa" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4" - [[package]] name = "lazy_static" version = "1.4.0" @@ -390,15 +406,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.107" +version = "0.2.112" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219" +checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125" [[package]] name = "linux-raw-sys" -version = "0.0.28" +version = "0.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "687387ff42ec7ea4f2149035a5675fedb675d26f98db90a1846ac63d3addb5f5" +checksum = "a261afc61b7a5e323933b402ca6a1765183687c614789b1e4db7762ed4230bca" [[package]] name = "log" @@ -426,9 +442,9 @@ checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" [[package]] name = "memoffset" -version = "0.6.4" +version = "0.6.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9" +checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" dependencies = [ "autocfg", ] @@ -445,9 +461,9 @@ dependencies = [ [[package]] name = "more-asserts" -version = "0.2.1" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" +checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" [[package]] name = "object" @@ -462,9 +478,15 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.8.0" +version = "1.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" + +[[package]] +name = "opaque-debug" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" +checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "parity-wasm" @@ -480,15 +502,15 @@ checksum = "0744126afe1a6dd7f394cb50a716dbe086cb06e255e53d8d0185d82828358fb5" [[package]] name = "ppv-lite86" -version = "0.2.15" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba" +checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "proc-macro2" -version = "1.0.32" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43" +checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" dependencies = [ "unicode-xid", ] @@ -504,9 +526,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.10" +version = "1.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" +checksum = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d" dependencies = [ "proc-macro2", ] @@ -553,9 +575,9 @@ dependencies = [ [[package]] name = "regalloc" -version = "0.0.32" +version = "0.0.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6304468554ed921da3d32c355ea107b8d13d7b8996c3adfb7aab48d3bc321f4" +checksum = "7d808cff91dfca7b239d40b972ba628add94892b1d9e19a842aedc5cfae8ab1a" dependencies = [ "log", "rustc-hash", @@ -591,23 +613,6 @@ dependencies = [ "winapi", ] -[[package]] -name = "rsix" -version = "0.23.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f64c5788d5aab8b75441499d99576a24eb09f76fb267b36fec7e3d970c66431" -dependencies = [ - "bitflags", - "cc", - "errno", - "io-lifetimes", - "itoa", - "libc", - "linux-raw-sys", - "once_cell", - "rustc_version", -] - [[package]] name = "rustc-demangle" version = "0.1.21" @@ -629,6 +634,21 @@ dependencies = [ "semver", ] +[[package]] +name = "rustix" +version = "0.26.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "18c44018277ec7195538f5631b90def7ad975bb46370cb0f4eff4012de9333f8" +dependencies = [ + "bitflags", + "errno", + "io-lifetimes", + "libc", + "linux-raw-sys", + "rustc_version", + "winapi", +] + [[package]] name = "semver" version = "1.0.4" @@ -637,24 +657,37 @@ checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" [[package]] name = "serde" -version = "1.0.130" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913" +checksum = "97565067517b60e2d1ea8b268e59ce036de907ac523ad83a0475da04e818989a" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.130" +version = "1.0.133" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b" +checksum = "ed201699328568d8d08208fdd080e3ff594e6c422e438b6705905da01005d537" dependencies = [ "proc-macro2", "quote", "syn", ] +[[package]] +name = "sha2" +version = "0.9.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" +dependencies = [ + "block-buffer", + "cfg-if", + "cpufeatures", + "digest", + "opaque-debug", +] + [[package]] name = "smallvec" version = "1.7.0" @@ -675,9 +708,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "syn" -version = "1.0.81" +version = "1.0.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966" +checksum = "ecb2e6da8ee5eb9a61068762a32fa9619cc591ceb055b3687f4cd4051ec2e06b" dependencies = [ "proc-macro2", "quote", @@ -728,6 +761,12 @@ dependencies = [ "syn", ] +[[package]] +name = "typenum" +version = "1.15.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" + [[package]] name = "unicode-width" version = "0.1.9" @@ -746,6 +785,12 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" +[[package]] +name = "version_check" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" + [[package]] name = "wasi" version = "0.10.2+wasi-snapshot-preview1" @@ -761,7 +806,7 @@ checksum = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc" [[package]] name = "wasmsign" version = "0.1.2" -source = "git+https://github.com/jedisct1/wasmsign#fa4d5598f778390df09be94232972b5b865a56b8" +source = "git+https://github.com/jedisct1/wasmsign#dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc" dependencies = [ "anyhow", "byteorder", @@ -774,9 +819,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "311d06b0c49346d1fbf48a17052e844036b95a7753c1afb34e8c0af3f6b5bb13" +checksum = "5d59b4bcc681f894d018e7032ba3149ab8e5f86828fab0b6ff31999c5691f20b" dependencies = [ "anyhow", "backtrace", @@ -804,7 +849,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.31.0" +version = "0.32.0" dependencies = [ "anyhow", "env_logger", @@ -817,7 +862,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.31.0#c1a6a0523dbc59d176f708ea3d04e6edb48480ec" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.32.0#c1c4c59670f45a35ac73910662ab26201e9b6b07" dependencies = [ "proc-macro2", "quote", @@ -825,9 +870,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab3083a47e1ede38aac06a1d9831640d673f9aeda0b82a64e4ce002f3432e2e7" +checksum = "30d079ceda53d15a5d29e8f4f8d3fcf9a9bb589c05e29b49ea10d129b5ff8e09" dependencies = [ "anyhow", "cranelift-codegen", @@ -835,7 +880,7 @@ dependencies = [ "cranelift-frontend", "cranelift-native", "cranelift-wasm", - "gimli 0.25.0", + "gimli", "log", "more-asserts", "object", @@ -847,14 +892,13 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c2d194b655321053bc4111a1aa4ead552655c8a17d17264bc97766e70073510" +checksum = "c39e4ba1fb154cca6a0f2350acc83248e22defb0cc647ae78879fe246a49dd61" dependencies = [ "anyhow", - "cfg-if", "cranelift-entity", - "gimli 0.25.0", + "gimli", "indexmap", "log", "more-asserts", @@ -868,23 +912,20 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864ac8dfe4ce310ac59f16fdbd560c257389cb009ee5d030ac6e30523b023d11" +checksum = "3dd538de9501eb0f2c4c7b3d8acc7f918276ca28591a67d4ebe0672ebd558b65" dependencies = [ - "addr2line 0.16.0", + "addr2line", "anyhow", "bincode", "cfg-if", - "gimli 0.25.0", - "log", - "more-asserts", + "gimli", "object", "region", "serde", "target-lexicon", "thiserror", - "wasmparser", "wasmtime-environ", "wasmtime-runtime", "winapi", @@ -892,9 +933,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab97da813a26b98c9abfd3b0c2d99e42f6b78b749c0646344e2e262d212d8c8b" +checksum = "910ccbd8cc18a02f626a1b2c7a7ddb57808db3c1780fd0af0aa5a5dae86c610b" dependencies = [ "anyhow", "backtrace", @@ -909,7 +950,7 @@ dependencies = [ "more-asserts", "rand", "region", - "rsix", + "rustix", "thiserror", "wasmtime-environ", "winapi", @@ -917,9 +958,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.31.0" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ff94409cc3557bfbbcce6b14520ccd6bd3727e965c0fe68d63ef2c185bf379c6" +checksum = "115bfe5c6eb6aba7e4eaa931ce225871c40280fb2cfb4ce4d3ab98d082e52fc4" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index da71e3b7f..453494c59 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.31.0" +version = "0.32.0" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.31.0", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.31.0"} +wasmtime = {version = "0.32.0", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.32.0"} wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} [package.metadata.raze] @@ -23,3 +23,14 @@ workspace_path = "//bazel/cargo" [package.metadata.raze.crates.wasmsign.'*'] extra_aliased_targets = ["cargo_bin_wasmsign"] + +[package.metadata.raze.crates.rustix.'*'] +additional_flags = [ + "--cfg=feature=\\\"cc\\\"", +] +buildrs_additional_deps = [ + "@proxy_wasm_cpp_host__cc__1_0_72//:cc", +] +patches = [ + "@proxy_wasm_cpp_host//bazel/cargo:rustix-no_git_check.patch", +] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 3c1c13236..52843127e 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -11,16 +11,6 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: di def proxy_wasm_cpp_host_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" - maybe( - http_archive, - name = "proxy_wasm_cpp_host__addr2line__0_16_0", - url = "https://crates.io/api/v1/crates/addr2line/0.16.0/download", - type = "tar.gz", - sha256 = "3e61f2b7f93d2c7d2b08263acaa4a363b3e276806c68af6134c44f523bf1aacd", - strip_prefix = "addr2line-0.16.0", - build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.16.0.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__addr2line__0_17_0", @@ -53,22 +43,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__ansi_term__0_11_0", - url = "https://crates.io/api/v1/crates/ansi_term/0.11.0/download", + name = "proxy_wasm_cpp_host__ansi_term__0_12_1", + url = "https://crates.io/api/v1/crates/ansi_term/0.12.1/download", type = "tar.gz", - sha256 = "ee49baf6cb617b853aa8d93bf420db2383fab46d314482ca2803b40d5fde979b", - strip_prefix = "ansi_term-0.11.0", - build_file = Label("//bazel/cargo/remote:BUILD.ansi_term-0.11.0.bazel"), + sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2", + strip_prefix = "ansi_term-0.12.1", + build_file = Label("//bazel/cargo/remote:BUILD.ansi_term-0.12.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__anyhow__1_0_45", - url = "https://crates.io/api/v1/crates/anyhow/1.0.45/download", + name = "proxy_wasm_cpp_host__anyhow__1_0_52", + url = "https://crates.io/api/v1/crates/anyhow/1.0.52/download", type = "tar.gz", - sha256 = "ee10e43ae4a853c0a3591d4e2ada1719e553be18199d9da9d4a83f5927c2f5c7", - strip_prefix = "anyhow-1.0.45", - build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.45.bazel"), + sha256 = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3", + strip_prefix = "anyhow-1.0.52", + build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.52.bazel"), ) maybe( @@ -121,6 +111,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.3.2.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__block_buffer__0_9_0", + url = "https://crates.io/api/v1/crates/block-buffer/0.9.0/download", + type = "tar.gz", + sha256 = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4", + strip_prefix = "block-buffer-0.9.0", + build_file = Label("//bazel/cargo/remote:BUILD.block-buffer-0.9.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__byteorder__1_4_3", @@ -153,122 +153,142 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__clap__2_33_3", - url = "https://crates.io/api/v1/crates/clap/2.33.3/download", + name = "proxy_wasm_cpp_host__clap__2_34_0", + url = "https://crates.io/api/v1/crates/clap/2.34.0/download", + type = "tar.gz", + sha256 = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c", + strip_prefix = "clap-2.34.0", + build_file = Label("//bazel/cargo/remote:BUILD.clap-2.34.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__cpp_demangle__0_3_5", + url = "https://crates.io/api/v1/crates/cpp_demangle/0.3.5/download", type = "tar.gz", - sha256 = "37e58ac78573c40708d45522f0d80fa2f01cc4f9b4e2bf749807255454312002", - strip_prefix = "clap-2.33.3", - build_file = Label("//bazel/cargo/remote:BUILD.clap-2.33.3.bazel"), + sha256 = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f", + strip_prefix = "cpp_demangle-0.3.5", + build_file = Label("//bazel/cargo/remote:BUILD.cpp_demangle-0.3.5.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cpp_demangle__0_3_3", - url = "https://crates.io/api/v1/crates/cpp_demangle/0.3.3/download", + name = "proxy_wasm_cpp_host__cpufeatures__0_2_1", + url = "https://crates.io/api/v1/crates/cpufeatures/0.2.1/download", type = "tar.gz", - sha256 = "8ea47428dc9d2237f3c6bc134472edfd63ebba0af932e783506dcfd66f10d18a", - strip_prefix = "cpp_demangle-0.3.3", - build_file = Label("//bazel/cargo/remote:BUILD.cpp_demangle-0.3.3.bazel"), + sha256 = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469", + strip_prefix = "cpufeatures-0.2.1", + build_file = Label("//bazel/cargo/remote:BUILD.cpufeatures-0.2.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.79.0/download", type = "tar.gz", - sha256 = "cc0cb7df82c8cf8f2e6a8dd394a0932a71369c160cc9b027dca414fced242513", - strip_prefix = "cranelift-bforest-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.78.0.bazel"), + sha256 = "f0fb5e025141af5b9cbfff4351dc393596d017725f126c954bf472ce78dbba6b", + strip_prefix = "cranelift-bforest-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.79.0/download", type = "tar.gz", - sha256 = "fe4463c15fa42eee909e61e5eac4866b7c6d22d0d8c621e57a0c5380753bfa8c", - strip_prefix = "cranelift-codegen-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.78.0.bazel"), + sha256 = "a278c67cc48d0e8ff2275fb6fc31527def4be8f3d81640ecc8cd005a3aa45ded", + strip_prefix = "cranelift-codegen-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.79.0/download", type = "tar.gz", - sha256 = "793f6a94a053a55404ea16e1700202a88101672b8cd6b4df63e13cde950852bf", - strip_prefix = "cranelift-codegen-meta-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.78.0.bazel"), + sha256 = "28274c1916c931c5603d94c5479d2ddacaaa574d298814ac1c99964ce92cbe85", + strip_prefix = "cranelift-codegen-meta-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.79.0/download", type = "tar.gz", - sha256 = "44aa1846df275bce5eb30379d65964c7afc63c05a117076e62a119c25fe174be", - strip_prefix = "cranelift-codegen-shared-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.78.0.bazel"), + sha256 = "5411cf49ab440b749d4da5129dfc45caf6e5fb7b2742b1fe1a421964fda2ee88", + strip_prefix = "cranelift-codegen-shared-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_entity__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.79.0/download", type = "tar.gz", - sha256 = "a3a45d8d6318bf8fc518154d9298eab2a8154ec068a8885ff113f6db8d69bb3a", - strip_prefix = "cranelift-entity-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.78.0.bazel"), + sha256 = "64dde596f98462a37b029d81c8567c23cc68b8356b017f12945c545ac0a83203", + strip_prefix = "cranelift-entity-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.79.0/download", type = "tar.gz", - sha256 = "e07339bd461766deb7605169de039e01954768ff730fa1254e149001884a8525", - strip_prefix = "cranelift-frontend-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.78.0.bazel"), + sha256 = "544605d400710bd9c89924050b30c2e0222a387a5a8b5f04da9a9fdcbd8656a5", + strip_prefix = "cranelift-frontend-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_native__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.79.0/download", type = "tar.gz", - sha256 = "03e2fca76ff57e0532936a71e3fc267eae6a19a86656716479c66e7f912e3d7b", - strip_prefix = "cranelift-native-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.78.0.bazel"), + sha256 = "b7f8839befb64f7a39cb855241ae2c8eb74cea27c97fff2a007075fdb8a7f7d4", + strip_prefix = "cranelift-native-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_78_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.78.0/download", + name = "proxy_wasm_cpp_host__cranelift_wasm__0_79_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.79.0/download", type = "tar.gz", - sha256 = "1f46fec547a1f8a32c54ea61c28be4f4ad234ad95342b718a9a9adcaadb0c778", - strip_prefix = "cranelift-wasm-0.78.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.78.0.bazel"), + sha256 = "80c9e14062c6a1cd2367dd30ea8945976639d5fe2062da8bdd40ada9ce3cb82e", + strip_prefix = "cranelift-wasm-0.79.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.79.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__crc32fast__1_2_1", - url = "https://crates.io/api/v1/crates/crc32fast/1.2.1/download", + name = "proxy_wasm_cpp_host__crc32fast__1_3_0", + url = "https://crates.io/api/v1/crates/crc32fast/1.3.0/download", type = "tar.gz", - sha256 = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a", - strip_prefix = "crc32fast-1.2.1", - build_file = Label("//bazel/cargo/remote:BUILD.crc32fast-1.2.1.bazel"), + sha256 = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836", + strip_prefix = "crc32fast-1.3.0", + build_file = Label("//bazel/cargo/remote:BUILD.crc32fast-1.3.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__ed25519_compact__0_1_11", - url = "https://crates.io/api/v1/crates/ed25519-compact/0.1.11/download", + name = "proxy_wasm_cpp_host__digest__0_9_0", + url = "https://crates.io/api/v1/crates/digest/0.9.0/download", type = "tar.gz", - sha256 = "f1f45ef578ef75efffba301628066d951042f6e988f21f8b548928468ba5877b", - strip_prefix = "ed25519-compact-0.1.11", - build_file = Label("//bazel/cargo/remote:BUILD.ed25519-compact-0.1.11.bazel"), + sha256 = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066", + strip_prefix = "digest-0.9.0", + build_file = Label("//bazel/cargo/remote:BUILD.digest-0.9.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__ed25519_compact__1_0_1", + url = "https://crates.io/api/v1/crates/ed25519-compact/1.0.1/download", + type = "tar.gz", + sha256 = "85424599b04c7251cd887b95b13c2bb853f3050a2619f40fbf9c23d0baf47223", + strip_prefix = "ed25519-compact-1.0.1", + build_file = Label("//bazel/cargo/remote:BUILD.ed25519-compact-1.0.1.bazel"), ) maybe( @@ -323,22 +343,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__getrandom__0_2_3", - url = "https://crates.io/api/v1/crates/getrandom/0.2.3/download", + name = "proxy_wasm_cpp_host__generic_array__0_14_4", + url = "https://crates.io/api/v1/crates/generic-array/0.14.4/download", type = "tar.gz", - sha256 = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753", - strip_prefix = "getrandom-0.2.3", - build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.3.bazel"), + sha256 = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817", + strip_prefix = "generic-array-0.14.4", + build_file = Label("//bazel/cargo/remote:BUILD.generic-array-0.14.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__gimli__0_25_0", - url = "https://crates.io/api/v1/crates/gimli/0.25.0/download", + name = "proxy_wasm_cpp_host__getrandom__0_2_3", + url = "https://crates.io/api/v1/crates/getrandom/0.2.3/download", type = "tar.gz", - sha256 = "f0a01e0497841a3b2db4f8afa483cce65f7e96a3498bd6c541734792aeac8fe7", - strip_prefix = "gimli-0.25.0", - build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.25.0.bazel"), + sha256 = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753", + strip_prefix = "getrandom-0.2.3", + build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.3.bazel"), ) maybe( @@ -373,12 +393,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__hmac_sha512__0_1_9", - url = "https://crates.io/api/v1/crates/hmac-sha512/0.1.9/download", + name = "proxy_wasm_cpp_host__hmac_sha512__1_1_1", + url = "https://crates.io/api/v1/crates/hmac-sha512/1.1.1/download", type = "tar.gz", - sha256 = "77e806677ce663d0a199541030c816847b36e8dc095f70dae4a4f4ad63da5383", - strip_prefix = "hmac-sha512-0.1.9", - build_file = Label("//bazel/cargo/remote:BUILD.hmac-sha512-0.1.9.bazel"), + sha256 = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10", + strip_prefix = "hmac-sha512-1.1.1", + build_file = Label("//bazel/cargo/remote:BUILD.hmac-sha512-1.1.1.bazel"), ) maybe( @@ -413,22 +433,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__itertools__0_10_1", - url = "https://crates.io/api/v1/crates/itertools/0.10.1/download", + name = "proxy_wasm_cpp_host__itertools__0_10_3", + url = "https://crates.io/api/v1/crates/itertools/0.10.3/download", type = "tar.gz", - sha256 = "69ddb889f9d0d08a67338271fa9b62996bc788c7796a5c18cf057420aaed5eaf", - strip_prefix = "itertools-0.10.1", - build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.10.1.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__itoa__0_4_8", - url = "https://crates.io/api/v1/crates/itoa/0.4.8/download", - type = "tar.gz", - sha256 = "b71991ff56294aa922b450139ee08b3bfc70982c6b2c7562771375cf73542dd4", - strip_prefix = "itoa-0.4.8", - build_file = Label("//bazel/cargo/remote:BUILD.itoa-0.4.8.bazel"), + sha256 = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3", + strip_prefix = "itertools-0.10.3", + build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.10.3.bazel"), ) maybe( @@ -443,22 +453,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_107", - url = "https://crates.io/api/v1/crates/libc/0.2.107/download", + name = "proxy_wasm_cpp_host__libc__0_2_112", + url = "https://crates.io/api/v1/crates/libc/0.2.112/download", type = "tar.gz", - sha256 = "fbe5e23404da5b4f555ef85ebed98fb4083e55a00c317800bc2a50ede9f3d219", - strip_prefix = "libc-0.2.107", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.107.bazel"), + sha256 = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125", + strip_prefix = "libc-0.2.112", + build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.112.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__linux_raw_sys__0_0_28", - url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.28/download", + name = "proxy_wasm_cpp_host__linux_raw_sys__0_0_36", + url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.36/download", type = "tar.gz", - sha256 = "687387ff42ec7ea4f2149035a5675fedb675d26f98db90a1846ac63d3addb5f5", - strip_prefix = "linux-raw-sys-0.0.28", - build_file = Label("//bazel/cargo/remote:BUILD.linux-raw-sys-0.0.28.bazel"), + sha256 = "a261afc61b7a5e323933b402ca6a1765183687c614789b1e4db7762ed4230bca", + strip_prefix = "linux-raw-sys-0.0.36", + build_file = Label("//bazel/cargo/remote:BUILD.linux-raw-sys-0.0.36.bazel"), ) maybe( @@ -493,12 +503,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__memoffset__0_6_4", - url = "https://crates.io/api/v1/crates/memoffset/0.6.4/download", + name = "proxy_wasm_cpp_host__memoffset__0_6_5", + url = "https://crates.io/api/v1/crates/memoffset/0.6.5/download", type = "tar.gz", - sha256 = "59accc507f1338036a0477ef61afdae33cde60840f4dfe481319ce3ad116ddf9", - strip_prefix = "memoffset-0.6.4", - build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.6.4.bazel"), + sha256 = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce", + strip_prefix = "memoffset-0.6.5", + build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.6.5.bazel"), ) maybe( @@ -513,12 +523,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__more_asserts__0_2_1", - url = "https://crates.io/api/v1/crates/more-asserts/0.2.1/download", + name = "proxy_wasm_cpp_host__more_asserts__0_2_2", + url = "https://crates.io/api/v1/crates/more-asserts/0.2.2/download", type = "tar.gz", - sha256 = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238", - strip_prefix = "more-asserts-0.2.1", - build_file = Label("//bazel/cargo/remote:BUILD.more-asserts-0.2.1.bazel"), + sha256 = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389", + strip_prefix = "more-asserts-0.2.2", + build_file = Label("//bazel/cargo/remote:BUILD.more-asserts-0.2.2.bazel"), ) maybe( @@ -533,12 +543,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__once_cell__1_8_0", - url = "https://crates.io/api/v1/crates/once_cell/1.8.0/download", + name = "proxy_wasm_cpp_host__once_cell__1_9_0", + url = "https://crates.io/api/v1/crates/once_cell/1.9.0/download", + type = "tar.gz", + sha256 = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5", + strip_prefix = "once_cell-1.9.0", + build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.9.0.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__opaque_debug__0_3_0", + url = "https://crates.io/api/v1/crates/opaque-debug/0.3.0/download", type = "tar.gz", - sha256 = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56", - strip_prefix = "once_cell-1.8.0", - build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.8.0.bazel"), + sha256 = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5", + strip_prefix = "opaque-debug-0.3.0", + build_file = Label("//bazel/cargo/remote:BUILD.opaque-debug-0.3.0.bazel"), ) maybe( @@ -563,22 +583,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__ppv_lite86__0_2_15", - url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.15/download", + name = "proxy_wasm_cpp_host__ppv_lite86__0_2_16", + url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.16/download", type = "tar.gz", - sha256 = "ed0cfbc8191465bed66e1718596ee0b0b35d5ee1f41c5df2189d0fe8bde535ba", - strip_prefix = "ppv-lite86-0.2.15", - build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.15.bazel"), + sha256 = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872", + strip_prefix = "ppv-lite86-0.2.16", + build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.16.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__proc_macro2__1_0_32", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.32/download", + name = "proxy_wasm_cpp_host__proc_macro2__1_0_36", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download", type = "tar.gz", - sha256 = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43", - strip_prefix = "proc-macro2-1.0.32", - build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.32.bazel"), + sha256 = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029", + strip_prefix = "proc-macro2-1.0.36", + build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.36.bazel"), ) maybe( @@ -593,12 +613,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__quote__1_0_10", - url = "https://crates.io/api/v1/crates/quote/1.0.10/download", + name = "proxy_wasm_cpp_host__quote__1_0_14", + url = "https://crates.io/api/v1/crates/quote/1.0.14/download", type = "tar.gz", - sha256 = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05", - strip_prefix = "quote-1.0.10", - build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.10.bazel"), + sha256 = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d", + strip_prefix = "quote-1.0.14", + build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.14.bazel"), ) maybe( @@ -643,12 +663,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__regalloc__0_0_32", - url = "https://crates.io/api/v1/crates/regalloc/0.0.32/download", + name = "proxy_wasm_cpp_host__regalloc__0_0_33", + url = "https://crates.io/api/v1/crates/regalloc/0.0.33/download", type = "tar.gz", - sha256 = "a6304468554ed921da3d32c355ea107b8d13d7b8996c3adfb7aab48d3bc321f4", - strip_prefix = "regalloc-0.0.32", - build_file = Label("//bazel/cargo/remote:BUILD.regalloc-0.0.32.bazel"), + sha256 = "7d808cff91dfca7b239d40b972ba628add94892b1d9e19a842aedc5cfae8ab1a", + strip_prefix = "regalloc-0.0.33", + build_file = Label("//bazel/cargo/remote:BUILD.regalloc-0.0.33.bazel"), ) maybe( @@ -681,16 +701,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.region-2.2.0.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__rsix__0_23_9", - url = "https://crates.io/api/v1/crates/rsix/0.23.9/download", - type = "tar.gz", - sha256 = "1f64c5788d5aab8b75441499d99576a24eb09f76fb267b36fec7e3d970c66431", - strip_prefix = "rsix-0.23.9", - build_file = Label("//bazel/cargo/remote:BUILD.rsix-0.23.9.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__rustc_demangle__0_1_21", @@ -721,6 +731,19 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.rustc_version-0.4.0.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__rustix__0_26_2", + url = "https://crates.io/api/v1/crates/rustix/0.26.2/download", + type = "tar.gz", + sha256 = "18c44018277ec7195538f5631b90def7ad975bb46370cb0f4eff4012de9333f8", + strip_prefix = "rustix-0.26.2", + patches = [ + "@proxy_wasm_cpp_host//bazel/cargo:rustix-no_git_check.patch", + ], + build_file = Label("//bazel/cargo/remote:BUILD.rustix-0.26.2.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__semver__1_0_4", @@ -733,22 +756,32 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__serde__1_0_130", - url = "https://crates.io/api/v1/crates/serde/1.0.130/download", + name = "proxy_wasm_cpp_host__serde__1_0_133", + url = "https://crates.io/api/v1/crates/serde/1.0.133/download", + type = "tar.gz", + sha256 = "97565067517b60e2d1ea8b268e59ce036de907ac523ad83a0475da04e818989a", + strip_prefix = "serde-1.0.133", + build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.133.bazel"), + ) + + maybe( + http_archive, + name = "proxy_wasm_cpp_host__serde_derive__1_0_133", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.133/download", type = "tar.gz", - sha256 = "f12d06de37cf59146fbdecab66aa99f9fe4f78722e3607577a5375d66bd0c913", - strip_prefix = "serde-1.0.130", - build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.130.bazel"), + sha256 = "ed201699328568d8d08208fdd080e3ff594e6c422e438b6705905da01005d537", + strip_prefix = "serde_derive-1.0.133", + build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.133.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__serde_derive__1_0_130", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.130/download", + name = "proxy_wasm_cpp_host__sha2__0_9_8", + url = "https://crates.io/api/v1/crates/sha2/0.9.8/download", type = "tar.gz", - sha256 = "d7bc1a1ab1961464eae040d96713baa5a724a8152c1222492465b54322ec508b", - strip_prefix = "serde_derive-1.0.130", - build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.130.bazel"), + sha256 = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa", + strip_prefix = "sha2-0.9.8", + build_file = Label("//bazel/cargo/remote:BUILD.sha2-0.9.8.bazel"), ) maybe( @@ -783,12 +816,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_81", - url = "https://crates.io/api/v1/crates/syn/1.0.81/download", + name = "proxy_wasm_cpp_host__syn__1_0_84", + url = "https://crates.io/api/v1/crates/syn/1.0.84/download", type = "tar.gz", - sha256 = "f2afee18b8beb5a596ecb4a2dce128c719b4ba399d34126b9e4396e3f9860966", - strip_prefix = "syn-1.0.81", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.81.bazel"), + sha256 = "ecb2e6da8ee5eb9a61068762a32fa9619cc591ceb055b3687f4cd4051ec2e06b", + strip_prefix = "syn-1.0.84", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.84.bazel"), ) maybe( @@ -841,6 +874,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.30.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__typenum__1_15_0", + url = "https://crates.io/api/v1/crates/typenum/1.15.0/download", + type = "tar.gz", + sha256 = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987", + strip_prefix = "typenum-1.15.0", + build_file = Label("//bazel/cargo/remote:BUILD.typenum-1.15.0.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__unicode_width__0_1_9", @@ -871,6 +914,16 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.vec_map-0.8.2.bazel"), ) + maybe( + http_archive, + name = "proxy_wasm_cpp_host__version_check__0_9_4", + url = "https://crates.io/api/v1/crates/version_check/0.9.4/download", + type = "tar.gz", + sha256 = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f", + strip_prefix = "version_check-0.9.4", + build_file = Label("//bazel/cargo/remote:BUILD.version_check-0.9.4.bazel"), + ) + maybe( http_archive, name = "proxy_wasm_cpp_host__wasi__0_10_2_wasi_snapshot_preview1", @@ -895,78 +948,78 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): new_git_repository, name = "proxy_wasm_cpp_host__wasmsign__0_1_2", remote = "https://github.com/jedisct1/wasmsign", - commit = "fa4d5598f778390df09be94232972b5b865a56b8", + commit = "dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc", build_file = Label("//bazel/cargo/remote:BUILD.wasmsign-0.1.2.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_31_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.31.0/download", + name = "proxy_wasm_cpp_host__wasmtime__0_32_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.32.0/download", type = "tar.gz", - sha256 = "311d06b0c49346d1fbf48a17052e844036b95a7753c1afb34e8c0af3f6b5bb13", - strip_prefix = "wasmtime-0.31.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.31.0.bazel"), + sha256 = "5d59b4bcc681f894d018e7032ba3149ab8e5f86828fab0b6ff31999c5691f20b", + strip_prefix = "wasmtime-0.32.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.32.0.bazel"), ) maybe( new_git_repository, name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "c1a6a0523dbc59d176f708ea3d04e6edb48480ec", + commit = "c1c4c59670f45a35ac73910662ab26201e9b6b07", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_31_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.31.0/download", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_32_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.32.0/download", type = "tar.gz", - sha256 = "ab3083a47e1ede38aac06a1d9831640d673f9aeda0b82a64e4ce002f3432e2e7", - strip_prefix = "wasmtime-cranelift-0.31.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.31.0.bazel"), + sha256 = "30d079ceda53d15a5d29e8f4f8d3fcf9a9bb589c05e29b49ea10d129b5ff8e09", + strip_prefix = "wasmtime-cranelift-0.32.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.32.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_31_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.31.0/download", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_32_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.32.0/download", type = "tar.gz", - sha256 = "1c2d194b655321053bc4111a1aa4ead552655c8a17d17264bc97766e70073510", - strip_prefix = "wasmtime-environ-0.31.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.31.0.bazel"), + sha256 = "c39e4ba1fb154cca6a0f2350acc83248e22defb0cc647ae78879fe246a49dd61", + strip_prefix = "wasmtime-environ-0.32.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.32.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_31_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.31.0/download", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_32_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.32.0/download", type = "tar.gz", - sha256 = "864ac8dfe4ce310ac59f16fdbd560c257389cb009ee5d030ac6e30523b023d11", - strip_prefix = "wasmtime-jit-0.31.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.31.0.bazel"), + sha256 = "3dd538de9501eb0f2c4c7b3d8acc7f918276ca28591a67d4ebe0672ebd558b65", + strip_prefix = "wasmtime-jit-0.32.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.32.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_31_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.31.0/download", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_32_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.32.0/download", type = "tar.gz", - sha256 = "ab97da813a26b98c9abfd3b0c2d99e42f6b78b749c0646344e2e262d212d8c8b", - strip_prefix = "wasmtime-runtime-0.31.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.31.0.bazel"), + sha256 = "910ccbd8cc18a02f626a1b2c7a7ddb57808db3c1780fd0af0aa5a5dae86c610b", + strip_prefix = "wasmtime-runtime-0.32.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.32.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_types__0_31_0", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.31.0/download", + name = "proxy_wasm_cpp_host__wasmtime_types__0_32_0", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.32.0/download", type = "tar.gz", - sha256 = "ff94409cc3557bfbbcce6b14520ccd6bd3727e965c0fe68d63ef2c185bf379c6", - strip_prefix = "wasmtime-types-0.31.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.31.0.bazel"), + sha256 = "115bfe5c6eb6aba7e4eaa931ce225871c40280fb2cfb4ce4d3ab98d082e52fc4", + strip_prefix = "wasmtime-types-0.32.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.32.0.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.addr2line-0.16.0.bazel b/bazel/cargo/remote/BUILD.addr2line-0.16.0.bazel deleted file mode 100644 index 874319de7..000000000 --- a/bazel/cargo/remote/BUILD.addr2line-0.16.0.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "addr2line" with type "example" omitted - -rust_library( - name = "addr2line", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.16.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", - ], -) - -# Unsupported target "correctness" with type "test" omitted - -# Unsupported target "output_equivalence" with type "test" omitted - -# Unsupported target "parse" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.ansi_term-0.11.0.bazel b/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.ansi_term-0.11.0.bazel rename to bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel index a05ec6e27..08d694018 100644 --- a/bazel/cargo/remote/BUILD.ansi_term-0.11.0.bazel +++ b/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel @@ -30,7 +30,11 @@ licenses([ # Generated Targets -# Unsupported target "colours" with type "example" omitted +# Unsupported target "256_colours" with type "example" omitted + +# Unsupported target "basic_colours" with type "example" omitted + +# Unsupported target "rgb_colours" with type "example" omitted rust_library( name = "ansi_term", @@ -50,7 +54,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.11.0", + version = "0.12.1", # buildifier: leave-alone deps = [ ] + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.45.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.anyhow-1.0.45.bazel rename to bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel index 2e6226f28..04fb0855a 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.45.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.45", + version = "1.0.52", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.45", + version = "1.0.52", # buildifier: leave-alone deps = [ ":anyhow_build_script", @@ -102,6 +102,8 @@ rust_library( # Unsupported target "test_downcast" with type "test" omitted +# Unsupported target "test_ensure" with type "test" omitted + # Unsupported target "test_ffi" with type "test" omitted # Unsupported target "test_fmt" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index 57a84326a..f17e93133 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel index 01b088fea..c0d3c6043 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel @@ -102,7 +102,7 @@ rust_library( ":backtrace_build_script", "@proxy_wasm_cpp_host__addr2line__0_17_0//:addr2line", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel index c36d3c8e1..b3e0197ab 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel @@ -49,7 +49,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__serde__1_0_133//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel b/bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel new file mode 100644 index 000000000..6c666387d --- /dev/null +++ b/bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "block_buffer", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__generic_array__0_14_4//:generic_array", + ], +) diff --git a/bazel/cargo/remote/BUILD.clap-2.33.3.bazel b/bazel/cargo/remote/BUILD.clap-2.34.0.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.clap-2.33.3.bazel rename to bazel/cargo/remote/BUILD.clap-2.34.0.bazel index 6010ad032..e5dd171b4 100644 --- a/bazel/cargo/remote/BUILD.clap-2.33.3.bazel +++ b/bazel/cargo/remote/BUILD.clap-2.34.0.bazel @@ -47,7 +47,7 @@ rust_library( crate_root = "src/lib.rs", crate_type = "lib", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -55,7 +55,7 @@ rust_library( "cargo-raze", "manual", ], - version = "2.33.3", + version = "2.34.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__atty__0_2_14//:atty", @@ -86,7 +86,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__ansi_term__0_11_0//:ansi_term", + "@proxy_wasm_cpp_host__ansi_term__0_12_1//:ansi_term", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.3.bazel b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cpp_demangle-0.3.3.bazel rename to bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel index b9a39968e..4f5801e72 100644 --- a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.3.bazel +++ b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.3", + version = "0.3.5", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_binary( "cargo-raze", "manual", ], - version = "0.3.3", + version = "0.3.5", # buildifier: leave-alone deps = [ ":cpp_demangle", @@ -109,7 +109,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.3.3", + version = "0.3.5", # buildifier: leave-alone deps = [ ":cpp_demangle_build_script", diff --git a/bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel b/bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel new file mode 100644 index 000000000..15a97cd02 --- /dev/null +++ b/bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cpufeatures", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(all(target_arch = "aarch64", target_os = "linux")), aarch64-apple-darwin + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "aarch64" with type "test" omitted + +# Unsupported target "x86" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-bforest-0.79.0.bazel index 7b892de25..ba2d19df8 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.0.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.0.bazel similarity index 81% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-0.79.0.bazel index 3dcf416cb..0525a4e02 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.0.bazel @@ -57,10 +57,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_78_0//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_0//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__sha2__0_9_8//:sha2", ], ) @@ -86,16 +87,16 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__cranelift_bforest__0_78_0//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_78_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", - "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", + "@proxy_wasm_cpp_host__cranelift_bforest__0_79_0//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__regalloc__0_0_32//:regalloc", + "@proxy_wasm_cpp_host__regalloc__0_0_33//:regalloc", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ], diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.0.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.0.bazel index fbfc859c2..c840d2913 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.0.bazel @@ -46,10 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_78_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_0//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.0.bazel index e2deaa740..4c81ea602 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.0.bazel @@ -46,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.79.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-entity-0.79.0.bazel index 538b10e25..50ea5a673 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.79.0.bazel @@ -48,9 +48,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__serde__1_0_133//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-frontend-0.79.0.bazel index 64e6f1cbc..2dc823bf6 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.0.bazel @@ -48,10 +48,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.79.0.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.cranelift-native-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-native-0.79.0.bazel index 283c03950..8702e42f6 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.79.0.bazel @@ -50,17 +50,17 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.78.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.0.bazel similarity index 79% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.78.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-wasm-0.79.0.bazel index 3145a8569..53bcb39bc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.78.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.0.bazel @@ -48,17 +48,17 @@ rust_library( "cargo-raze", "manual", ], - version = "0.78.0", + version = "0.79.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_78_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__itertools__0_10_1//:itertools", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_79_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__itertools__0_10_3//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_31_0//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmtime_types__0_32_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel rename to bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel index a48eb6586..060463abb 100644 --- a/bazel/cargo/remote/BUILD.crc32fast-1.2.1.bazel +++ b/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.2.1", + version = "1.3.0", visibility = ["//visibility:private"], deps = [ ], @@ -81,7 +81,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.2.1", + version = "1.3.0", # buildifier: leave-alone deps = [ ":crc32fast_build_script", diff --git a/bazel/cargo/remote/BUILD.digest-0.9.0.bazel b/bazel/cargo/remote/BUILD.digest-0.9.0.bazel new file mode 100644 index 000000000..c825c43eb --- /dev/null +++ b/bazel/cargo/remote/BUILD.digest-0.9.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "digest", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.0", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__generic_array__0_14_4//:generic_array", + ], +) diff --git a/bazel/cargo/remote/BUILD.ed25519-compact-0.1.11.bazel b/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.ed25519-compact-0.1.11.bazel rename to bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel index 9e3945671..61e69f595 100644 --- a/bazel/cargo/remote/BUILD.ed25519-compact-0.1.11.bazel +++ b/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel @@ -50,7 +50,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.11", + version = "1.0.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__getrandom__0_2_3//:getrandom", diff --git a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel index 490746698..a04969af3 100644 --- a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel @@ -36,8 +36,6 @@ rust_library( aliases = { }, crate_features = [ - "default", - "std", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -74,7 +72,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel index 22972d23c..28708fd38 100644 --- a/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -80,6 +80,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel b/bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel new file mode 100644 index 000000000..720524bbc --- /dev/null +++ b/bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel @@ -0,0 +1,97 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "generic_array_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.14.4", + visibility = ["//visibility:private"], + deps = [ + "@proxy_wasm_cpp_host__version_check__0_9_4//:version_check", + ], +) + +rust_library( + name = "generic_array", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.14.4", + # buildifier: leave-alone + deps = [ + ":generic_array_build_script", + "@proxy_wasm_cpp_host__typenum__1_15_0//:typenum", + ], +) + +# Unsupported target "arr" with type "test" omitted + +# Unsupported target "generics" with type "test" omitted + +# Unsupported target "hex" with type "test" omitted + +# Unsupported target "import_name" with type "test" omitted + +# Unsupported target "iter" with type "test" omitted + +# Unsupported target "mod" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel index 65ac8b60d..d0bde06a4 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel @@ -90,7 +90,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.gimli-0.25.0.bazel b/bazel/cargo/remote/BUILD.gimli-0.25.0.bazel deleted file mode 100644 index 7eedd499c..000000000 --- a/bazel/cargo/remote/BUILD.gimli-0.25.0.bazel +++ /dev/null @@ -1,76 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "dwarf-validate" with type "example" omitted - -# Unsupported target "dwarfdump" with type "example" omitted - -# Unsupported target "simple" with type "example" omitted - -# Unsupported target "simple_line" with type "example" omitted - -rust_library( - name = "gimli", - srcs = glob(["**/*.rs"]), - crate_features = [ - "fallible-iterator", - "indexmap", - "read", - "stable_deref_trait", - "std", - "write", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.25.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", - "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", - "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", - ], -) - -# Unsupported target "convert_self" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel index d8c7477c5..1353bbc43 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel @@ -44,8 +44,13 @@ rust_library( name = "gimli", srcs = glob(["**/*.rs"]), crate_features = [ + "fallible-iterator", + "indexmap", "read", "read-core", + "stable_deref_trait", + "std", + "write", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -61,6 +66,9 @@ rust_library( version = "0.26.1", # buildifier: leave-alone deps = [ + "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", + "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel index d5cd28ae7..047c88bda 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel @@ -50,6 +50,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.hmac-sha512-0.1.9.bazel b/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.hmac-sha512-0.1.9.bazel rename to bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel index cc0ccb2ec..2d7f8e1c1 100644 --- a/bazel/cargo/remote/BUILD.hmac-sha512-0.1.9.bazel +++ b/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.1.9", + version = "1.1.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel index e450739c8..1b98e8cbd 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel @@ -91,7 +91,7 @@ rust_library( deps = [ ":indexmap_build_script", "@proxy_wasm_cpp_host__hashbrown__0_11_2//:hashbrown", - "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__serde__1_0_133//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.itertools-0.10.1.bazel b/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.itertools-0.10.1.bazel rename to bazel/cargo/remote/BUILD.itertools-0.10.3.bazel index 5055efe10..717a1acff 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.10.1.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel @@ -67,7 +67,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.10.1", + version = "0.10.3", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__either__1_6_1//:either", @@ -78,8 +78,6 @@ rust_library( # Unsupported target "flatten_ok" with type "test" omitted -# Unsupported target "fold_specialization" with type "test" omitted - # Unsupported target "macros_hygiene" with type "test" omitted # Unsupported target "merge_join" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.libc-0.2.107.bazel b/bazel/cargo/remote/BUILD.libc-0.2.112.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.libc-0.2.107.bazel rename to bazel/cargo/remote/BUILD.libc-0.2.112.bazel index 731522167..3923e14b4 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.107.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.112.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.107", + version = "0.2.112", visibility = ["//visibility:private"], deps = [ ], @@ -81,7 +81,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.107", + version = "0.2.112", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.28.bazel b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.linux-raw-sys-0.0.28.bazel rename to bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel index d7bba7ca7..d33c0aa5e 100644 --- a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.28.bazel +++ b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel @@ -34,7 +34,6 @@ rust_library( name = "linux_raw_sys", srcs = glob(["**/*.rs"]), crate_features = [ - "default", "errno", "general", "std", @@ -52,7 +51,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.0.28", + version = "0.0.36", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 0731ea296..57db3d2fc 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -63,7 +63,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.memoffset-0.6.4.bazel b/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.memoffset-0.6.4.bazel rename to bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel index c370f7ce0..d12e8f0a1 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.6.4.bazel +++ b/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.6.4", + version = "0.6.5", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", @@ -78,7 +78,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.6.4", + version = "0.6.5", # buildifier: leave-alone deps = [ ":memoffset_build_script", diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel b/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel rename to bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel index e1ae00f40..594c67e58 100644 --- a/bazel/cargo/remote/BUILD.more-asserts-0.2.1.bazel +++ b/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel @@ -46,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.1", + version = "0.2.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/remote/BUILD.object-0.27.1.bazel index cd0073b35..00b2e032b 100644 --- a/bazel/cargo/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/remote/BUILD.object-0.27.1.bazel @@ -61,7 +61,7 @@ rust_library( version = "0.27.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__crc32fast__1_2_1//:crc32fast", + "@proxy_wasm_cpp_host__crc32fast__1_3_0//:crc32fast", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", ], diff --git a/bazel/cargo/remote/BUILD.once_cell-1.8.0.bazel b/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.once_cell-1.8.0.bazel rename to bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel index 186944f5f..09e114533 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.8.0.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel @@ -64,7 +64,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.8.0", + version = "1.9.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel b/bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel new file mode 100644 index 000000000..b10134cc0 --- /dev/null +++ b/bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "opaque_debug", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "mod" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.15.bazel b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.ppv-lite86-0.2.15.bazel rename to bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel index 7cc662957..f95da4268 100644 --- a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.15.bazel +++ b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.2.15", + version = "0.2.16", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.32.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.proc-macro2-1.0.32.bazel rename to bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel index 5f1660062..42ed6301b 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.32.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.32", + version = "1.0.36", visibility = ["//visibility:private"], deps = [ ], @@ -79,7 +79,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.32", + version = "1.0.36", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", diff --git a/bazel/cargo/remote/BUILD.quote-1.0.10.bazel b/bazel/cargo/remote/BUILD.quote-1.0.14.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.quote-1.0.10.bazel rename to bazel/cargo/remote/BUILD.quote-1.0.14.bazel index 053400698..8679b4018 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.10.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.14.bazel @@ -30,8 +30,6 @@ licenses([ # Generated Targets -# Unsupported target "bench" with type "bench" omitted - rust_library( name = "quote", srcs = glob(["**/*.rs"]), @@ -50,10 +48,10 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.10", + version = "1.0.14", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", + "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", ], ) diff --git a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel index daf6702da..5114efbe1 100644 --- a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel +++ b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel index 631968028..1f028399c 100644 --- a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel @@ -50,7 +50,7 @@ rust_library( version = "0.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__ppv_lite86__0_2_15//:ppv_lite86", + "@proxy_wasm_cpp_host__ppv_lite86__0_2_16//:ppv_lite86", "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.32.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.regalloc-0.0.32.bazel rename to bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel index cccddfa12..7a5ea3884 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.32.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel @@ -47,7 +47,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.0.32", + version = "0.0.33", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__log__0_4_14//:log", diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index 7e87c2465..7d9dcd1a9 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -52,7 +52,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/remote/BUILD.rsix-0.23.9.bazel b/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel similarity index 78% rename from bazel/cargo/remote/BUILD.rsix-0.23.9.bazel rename to bazel/cargo/remote/BUILD.rustix-0.26.2.bazel index 94a42ae0f..094104810 100644 --- a/bazel/cargo/remote/BUILD.rsix-0.23.9.bazel +++ b/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel @@ -37,41 +37,44 @@ load( ) cargo_build_script( - name = "rsix_build_script", + name = "rustix_build_script", srcs = glob(["**/*.rs"]), build_script_env = { }, crate_features = [ "default", + "io-lifetimes", + "std", ], crate_root = "build.rs", data = glob(["**"]), edition = "2018", rustc_flags = [ "--cap-lints=allow", + "--cfg=feature=\"cc\"", ], tags = [ "cargo-raze", "manual", ], - version = "0.23.9", + version = "0.26.2", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", "@proxy_wasm_cpp_host__rustc_version__0_4_0//:rustc_version", ] + selects.with_or({ - # cfg(all(not(rsix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) + # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__linux_raw_sys__0_0_28//:linux_raw_sys", + "@proxy_wasm_cpp_host__linux_raw_sys__0_0_36//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rsix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) + # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) ( "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", @@ -107,6 +110,14 @@ cargo_build_script( ): [ ], "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], }), ) @@ -119,12 +130,14 @@ cargo_build_script( # Unsupported target "time" with type "example" omitted rust_library( - name = "rsix", + name = "rustix", srcs = glob(["**/*.rs"]), aliases = { }, crate_features = [ "default", + "io-lifetimes", + "std", ], crate_root = "src/lib.rs", crate_type = "lib", @@ -132,31 +145,31 @@ rust_library( edition = "2018", rustc_flags = [ "--cap-lints=allow", + "--cfg=feature=\"cc\"", ], tags = [ "cargo-raze", "manual", ], - version = "0.23.9", + version = "0.26.2", # buildifier: leave-alone deps = [ - ":rsix_build_script", + ":rustix_build_script", "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", "@proxy_wasm_cpp_host__io_lifetimes__0_3_3//:io_lifetimes", - "@proxy_wasm_cpp_host__itoa__0_4_8//:itoa", ] + selects.with_or({ - # cfg(all(not(rsix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) + # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__linux_raw_sys__0_0_28//:linux_raw_sys", + "@proxy_wasm_cpp_host__linux_raw_sys__0_0_36//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rsix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) + # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) ( "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", @@ -176,7 +189,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@proxy_wasm_cpp_host__errno__0_2_8//:errno", - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -192,7 +205,15 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__once_cell__1_8_0//:once_cell", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.serde-1.0.130.bazel b/bazel/cargo/remote/BUILD.serde-1.0.133.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.serde-1.0.130.bazel rename to bazel/cargo/remote/BUILD.serde-1.0.133.bazel index be52cae3f..d614ecfb2 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.130.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.133.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.130", + version = "1.0.133", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@proxy_wasm_cpp_host__serde_derive__1_0_130//:serde_derive", + "@proxy_wasm_cpp_host__serde_derive__1_0_133//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -86,7 +86,7 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.130", + version = "1.0.133", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel rename to bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel index 2a8b6939b..11f7adc9c 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.130.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.130", + version = "1.0.133", visibility = ["//visibility:private"], deps = [ ], @@ -77,12 +77,12 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.130", + version = "1.0.133", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_10//:quote", - "@proxy_wasm_cpp_host__syn__1_0_81//:syn", + "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_14//:quote", + "@proxy_wasm_cpp_host__syn__1_0_84//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.sha2-0.9.8.bazel b/bazel/cargo/remote/BUILD.sha2-0.9.8.bazel new file mode 100644 index 000000000..4ddcf9ada --- /dev/null +++ b/bazel/cargo/remote/BUILD.sha2-0.9.8.bazel @@ -0,0 +1,93 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "sha256" with type "bench" omitted + +# Unsupported target "sha512" with type "bench" omitted + +# Unsupported target "sha256sum" with type "example" omitted + +# Unsupported target "sha512sum" with type "example" omitted + +rust_library( + name = "sha2", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.8", + # buildifier: leave-alone + deps = [ + "@proxy_wasm_cpp_host__block_buffer__0_9_0//:block_buffer", + "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@proxy_wasm_cpp_host__digest__0_9_0//:digest", + "@proxy_wasm_cpp_host__opaque_debug__0_3_0//:opaque_debug", + ] + selects.with_or({ + # cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86")) + ( + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + ): [ + "@proxy_wasm_cpp_host__cpufeatures__0_2_1//:cpufeatures", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "lib" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.syn-1.0.81.bazel b/bazel/cargo/remote/BUILD.syn-1.0.84.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.syn-1.0.81.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.84.bazel index b3f5ab733..a2ea95182 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.81.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.84.bazel @@ -60,7 +60,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.81", + version = "1.0.84", visibility = ["//visibility:private"], deps = [ ], @@ -93,16 +93,18 @@ rust_library( "cargo-raze", "manual", ], - version = "1.0.81", + version = "1.0.84", # buildifier: leave-alone deps = [ ":syn_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_10//:quote", + "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_14//:quote", "@proxy_wasm_cpp_host__unicode_xid__0_2_2//:unicode_xid", ], ) +# Unsupported target "regression" with type "test" omitted + # Unsupported target "test_asyncness" with type "test" omitted # Unsupported target "test_attribute" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel index 9eaf515ed..fdaf8d682 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -49,8 +49,8 @@ rust_library( version = "1.0.30", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_10//:quote", - "@proxy_wasm_cpp_host__syn__1_0_81//:syn", + "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_14//:quote", + "@proxy_wasm_cpp_host__syn__1_0_84//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.typenum-1.15.0.bazel b/bazel/cargo/remote/BUILD.typenum-1.15.0.bazel new file mode 100644 index 000000000..a0f11488b --- /dev/null +++ b/bazel/cargo/remote/BUILD.typenum-1.15.0.bazel @@ -0,0 +1,85 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:rust.bzl", + "rust_binary", + "rust_library", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "typenum_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build/main.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.15.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "typenum", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + crate_type = "lib", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.15.0", + # buildifier: leave-alone + deps = [ + ":typenum_build_script", + ], +) + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.itoa-0.4.8.bazel b/bazel/cargo/remote/BUILD.version_check-0.9.4.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.itoa-0.4.8.bazel rename to bazel/cargo/remote/BUILD.version_check-0.9.4.bazel index 7beafd5a4..696b95722 100644 --- a/bazel/cargo/remote/BUILD.itoa-0.4.8.bazel +++ b/bazel/cargo/remote/BUILD.version_check-0.9.4.bazel @@ -30,10 +30,8 @@ licenses([ # Generated Targets -# Unsupported target "bench" with type "bench" omitted - rust_library( - name = "itoa", + name = "version_check", srcs = glob(["**/*.rs"]), crate_features = [ ], @@ -48,10 +46,8 @@ rust_library( "cargo-raze", "manual", ], - version = "0.4.8", + version = "0.9.4", # buildifier: leave-alone deps = [ ], ) - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel index ca834fdc2..f8cde998d 100644 --- a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel @@ -51,11 +51,11 @@ rust_binary( # buildifier: leave-alone deps = [ ":wasmsign", - "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", - "@proxy_wasm_cpp_host__clap__2_33_3//:clap", - "@proxy_wasm_cpp_host__ed25519_compact__0_1_11//:ed25519_compact", - "@proxy_wasm_cpp_host__hmac_sha512__0_1_9//:hmac_sha512", + "@proxy_wasm_cpp_host__clap__2_34_0//:clap", + "@proxy_wasm_cpp_host__ed25519_compact__1_0_1//:ed25519_compact", + "@proxy_wasm_cpp_host__hmac_sha512__1_1_1//:hmac_sha512", "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", ], @@ -80,11 +80,11 @@ rust_library( version = "0.1.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", - "@proxy_wasm_cpp_host__clap__2_33_3//:clap", - "@proxy_wasm_cpp_host__ed25519_compact__0_1_11//:ed25519_compact", - "@proxy_wasm_cpp_host__hmac_sha512__0_1_9//:hmac_sha512", + "@proxy_wasm_cpp_host__clap__2_34_0//:clap", + "@proxy_wasm_cpp_host__ed25519_compact__1_0_1//:ed25519_compact", + "@proxy_wasm_cpp_host__hmac_sha512__1_1_1//:hmac_sha512", "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.31.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.32.0.bazel similarity index 85% rename from bazel/cargo/remote/BUILD.wasmtime-0.31.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-0.32.0.bazel index 2a6ec94f1..f76481a90 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.31.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.32.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -92,30 +92,30 @@ rust_library( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", "@proxy_wasm_cpp_host__backtrace__0_3_63//:backtrace", "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cpp_demangle__0_3_3//:cpp_demangle", + "@proxy_wasm_cpp_host__cpp_demangle__0_3_5//:cpp_demangle", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__psm__0_1_16//:psm", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", - "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_31_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_31_0//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_31_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_32_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_32_0//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index b81e0e05f..a6b984155 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -49,7 +49,7 @@ rust_library( version = "0.19.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_32//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_10//:quote", + "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", + "@proxy_wasm_cpp_host__quote__1_0_14//:quote", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.31.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.0.bazel similarity index 70% rename from bazel/cargo/remote/BUILD.wasmtime-cranelift-0.31.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.0.bazel index 470b4047c..37d62f610 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.31.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.0.bazel @@ -46,22 +46,22 @@ rust_library( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", - "@proxy_wasm_cpp_host__cranelift_codegen__0_78_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_78_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_78_0//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_78_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", + "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_79_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_79_0//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_79_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.31.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.0.bazel similarity index 76% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.31.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-environ-0.32.0.bazel index 02fa090ee..f2ae2a18a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.31.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.0.bazel @@ -46,21 +46,20 @@ rust_library( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", - "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", + "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", "@proxy_wasm_cpp_host__object__0_27_1//:object", - "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_31_0//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmtime_types__0_32_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.31.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.0.bazel similarity index 80% rename from bazel/cargo/remote/BUILD.wasmtime-jit-0.31.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-jit-0.32.0.bazel index aace8e084..e4ed552d0 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.31.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.0.bazel @@ -48,24 +48,21 @@ rust_library( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__addr2line__0_16_0//:addr2line", - "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__addr2line__0_17_0//:addr2line", + "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__gimli__0_25_0//:gimli", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_31_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.31.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.0.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.31.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.0.bazel index a84d63444..623567b52 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.31.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", @@ -131,23 +131,23 @@ rust_library( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@proxy_wasm_cpp_host__anyhow__1_0_45//:anyhow", + "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", "@proxy_wasm_cpp_host__backtrace__0_3_63//:backtrace", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_107//:libc", + "@proxy_wasm_cpp_host__libc__0_2_112//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__memoffset__0_6_4//:memoffset", - "@proxy_wasm_cpp_host__more_asserts__0_2_1//:more_asserts", + "@proxy_wasm_cpp_host__memoffset__0_6_5//:memoffset", + "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", "@proxy_wasm_cpp_host__rand__0_8_4//:rand", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_31_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -199,7 +199,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__rsix__0_23_9//:rsix", + "@proxy_wasm_cpp_host__rustix__0_26_2//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.wasmtime-types-0.31.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-types-0.32.0.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.wasmtime-types-0.31.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-types-0.32.0.bazel index 4ed33703a..90a309d45 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-types-0.31.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-types-0.32.0.bazel @@ -46,11 +46,11 @@ rust_library( "cargo-raze", "manual", ], - version = "0.31.0", + version = "0.32.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_78_0//:cranelift_entity", - "@proxy_wasm_cpp_host__serde__1_0_130//:serde", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", ], diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index 3086eed6c..c8d638cdb 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -60,6 +60,8 @@ cargo_build_script( "winerror", "winnt", "winsock2", + "ws2ipdef", + "ws2tcpip", ], crate_root = "build.rs", data = glob(["**"]), @@ -99,6 +101,8 @@ rust_library( "winerror", "winnt", "winsock2", + "ws2ipdef", + "ws2tcpip", ], crate_root = "src/lib.rs", crate_type = "lib", diff --git a/bazel/cargo/rustix-no_git_check.patch b/bazel/cargo/rustix-no_git_check.patch new file mode 100644 index 000000000..79aafac36 --- /dev/null +++ b/bazel/cargo/rustix-no_git_check.patch @@ -0,0 +1,10 @@ +--- build.rs ++++ build.rs +@@ -62,6 +62,7 @@ fn link_in_librustix_outline(arch: &str, asm_name: &str) { + let out_dir = var("OUT_DIR").unwrap(); + Build::new().file(&asm_name).compile(&name); + println!("cargo:rerun-if-changed={}", asm_name); ++ return; + let from = format!("{}/lib{}.a", out_dir, name); + let prev_metadata = std::fs::metadata(&to); + std::fs::copy(&from, &to).unwrap(); diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 37146ece1..8bef920a6 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -430,9 +430,6 @@ void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, std::index_sequen auto ps = std::array::value>{ convertArgToValTypePtr::type>()...}; wasm_valtype_vec_new(types, size, ps.data()); - for (auto i = ps.begin(); i < ps.end(); i++) { // TODO(mathetake): better way to handle? - wasm_valtype_delete(*i); - } } template ::value>> From aa7216a6a5709ab29f790ba4c730f8c54f18beb6 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 3 Jan 2022 03:49:32 -0600 Subject: [PATCH 126/287] wasmtime: update C API to v0.32.0. (#209) Missed in #205. Signed-off-by: Piotr Sikora --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 0caa91444..001a95e6b 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -59,9 +59,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "4f9fc62453f2d8faf2374699a40e95d9265829e675b5a28e45e2af4b642e7219", - strip_prefix = "wasmtime-0.31.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.31.0.tar.gz", + sha256 = "47d823a71c2512f201b772fae73912c22882385197d67ece6855f29393516147", + strip_prefix = "wasmtime-0.32.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.32.0.tar.gz", ) http_archive( From 2be7a2800770cceb40c7a22cba342fde59d21e5e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 3 Jan 2022 16:13:42 -0600 Subject: [PATCH 127/287] wavm: update to nightly/2021-12-15 with LLVM 12.0.1. (#206) Signed-off-by: Piotr Sikora --- bazel/external/llvm.BUILD | 72 ++++++++++++++++++++++----------------- bazel/external/wavm.BUILD | 4 +-- bazel/repositories.bzl | 12 +++---- 3 files changed, 47 insertions(+), 41 deletions(-) diff --git a/bazel/external/llvm.BUILD b/bazel/external/llvm.BUILD index 2842cee45..8245a375a 100644 --- a/bazel/external/llvm.BUILD +++ b/bazel/external/llvm.BUILD @@ -29,14 +29,13 @@ cmake( "LLVM_INCLUDE_TOOLS": "off", "LLVM_BUILD_UTILS": "off", "LLVM_INCLUDE_UTILS": "off", + "LLVM_ENABLE_IDE": "off", "LLVM_ENABLE_LIBEDIT": "off", "LLVM_ENABLE_LIBXML2": "off", "LLVM_ENABLE_TERMINFO": "off", "LLVM_ENABLE_ZLIB": "off", "LLVM_TARGETS_TO_BUILD": "X86", - # Workaround for the issue with statically linked libstdc++ - # using -l:libstdc++.a. - "CMAKE_CXX_FLAGS": "-lstdc++", + "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", }, env_vars = { # Workaround for the -DDEBUG flag added in fastbuild on macOS, @@ -48,63 +47,72 @@ cmake( generate_args = ["-GNinja"], lib_source = ":srcs", out_static_libs = [ - "libLLVMInterpreter.a", "libLLVMWindowsManifest.a", + "libLLVMXRay.a", "libLLVMLibDriver.a", - "libLLVMObjectYAML.a", + "libLLVMDlltoolDriver.a", "libLLVMCoverage.a", "libLLVMLineEditor.a", - "libLLVMDlltoolDriver.a", - "libLLVMOption.a", - "libLLVMTableGen.a", - "libLLVMFuzzMutate.a", + "libLLVMX86Disassembler.a", + "libLLVMX86AsmParser.a", + "libLLVMX86CodeGen.a", + "libLLVMX86Desc.a", + "libLLVMX86Info.a", + "libLLVMOrcJIT.a", + "libLLVMMCJIT.a", + "libLLVMJITLink.a", + "libLLVMOrcTargetProcess.a", + "libLLVMOrcShared.a", + "libLLVMInterpreter.a", + "libLLVMExecutionEngine.a", + "libLLVMRuntimeDyld.a", "libLLVMSymbolize.a", - "libLLVMCoroutines.a", "libLLVMDebugInfoPDB.a", + "libLLVMDebugInfoGSYM.a", + "libLLVMOption.a", + "libLLVMObjectYAML.a", + "libLLVMMCA.a", + "libLLVMMCDisassembler.a", "libLLVMLTO.a", - "libLLVMObjCARCOpts.a", - "libLLVMMIRParser.a", - "libLLVMOrcJIT.a", - "libLLVMOrcError.a", - "libLLVMJITLink.a", "libLLVMPasses.a", + "libLLVMCFGuard.a", + "libLLVMCoroutines.a", + "libLLVMObjCARCOpts.a", + "libLLVMHelloNew.a", "libLLVMipo.a", - "libLLVMInstrumentation.a", "libLLVMVectorize.a", "libLLVMLinker.a", - "libLLVMIRReader.a", - "libLLVMAsmParser.a", - "libLLVMX86Disassembler.a", - "libLLVMX86AsmParser.a", - "libLLVMX86CodeGen.a", - "libLLVMCFGuard.a", + "libLLVMInstrumentation.a", + "libLLVMFrontendOpenMP.a", + "libLLVMFrontendOpenACC.a", + "libLLVMExtensions.a", + "libLLVMDWARFLinker.a", "libLLVMGlobalISel.a", - "libLLVMSelectionDAG.a", + "libLLVMMIRParser.a", "libLLVMAsmPrinter.a", "libLLVMDebugInfoDWARF.a", + "libLLVMSelectionDAG.a", "libLLVMCodeGen.a", + "libLLVMIRReader.a", + "libLLVMAsmParser.a", + "libLLVMInterfaceStub.a", + "libLLVMFileCheck.a", + "libLLVMFuzzMutate.a", + "libLLVMTarget.a", "libLLVMScalarOpts.a", "libLLVMInstCombine.a", "libLLVMAggressiveInstCombine.a", "libLLVMTransformUtils.a", "libLLVMBitWriter.a", - "libLLVMX86Desc.a", - "libLLVMMCDisassembler.a", - "libLLVMX86Utils.a", - "libLLVMX86Info.a", - "libLLVMMCJIT.a", - "libLLVMExecutionEngine.a", - "libLLVMTarget.a", "libLLVMAnalysis.a", "libLLVMProfileData.a", - "libLLVMRuntimeDyld.a", "libLLVMObject.a", "libLLVMTextAPI.a", "libLLVMMCParser.a", - "libLLVMBitReader.a", "libLLVMMC.a", "libLLVMDebugInfoCodeView.a", "libLLVMDebugInfoMSF.a", + "libLLVMBitReader.a", "libLLVMCore.a", "libLLVMRemarks.a", "libLLVMBitstreamReader.a", diff --git a/bazel/external/wavm.BUILD b/bazel/external/wavm.BUILD index a87ece7c1..94c6cb403 100644 --- a/bazel/external/wavm.BUILD +++ b/bazel/external/wavm.BUILD @@ -16,9 +16,7 @@ cmake( "WAVM_ENABLE_STATIC_LINKING": "on", "WAVM_ENABLE_RELEASE_ASSERTS": "on", "WAVM_ENABLE_UNWIND": "on", - # Workaround for the issue with statically linked libstdc++ - # using -l:libstdc++.a. - "CMAKE_CXX_FLAGS": "-lstdc++ -Wno-unused-command-line-argument", + "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", }, env_vars = { # Workaround for the -DDEBUG flag added in fastbuild on macOS, diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 001a95e6b..f6e1c2a73 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -94,17 +94,17 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "llvm", build_file = "@proxy_wasm_cpp_host//bazel/external:llvm.BUILD", - sha256 = "df83a44b3a9a71029049ec101fb0077ecbbdf5fe41e395215025779099a98fdf", - strip_prefix = "llvm-10.0.0.src", - url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-10.0.0/llvm-10.0.0.src.tar.xz", + sha256 = "7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf", + strip_prefix = "llvm-12.0.1.src", + url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/llvm-12.0.1.src.tar.xz", ) http_archive( name = "com_github_wavm_wavm", build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD", - sha256 = "fa9a8dece0f1a51f8789c07f7f0c1f817ceee54c57d85f22ab958e43cde648d3", - strip_prefix = "WAVM-93c3ad73e2938f19c8bb26d4f456b39d6bc4ca01", - url = "https://github.com/WAVM/WAVM/archive/93c3ad73e2938f19c8bb26d4f456b39d6bc4ca01.tar.gz", + sha256 = "bf2b2aec8a4c6a5413081c0527cb40dd16cb67e9c74a91f8a82fe1cf27a3c5d5", + strip_prefix = "WAVM-c8997ebf154f3b42e688e670a7d0fa045b7a32a0", + url = "https://github.com/WAVM/WAVM/archive/c8997ebf154f3b42e688e670a7d0fa045b7a32a0.tar.gz", ) native.bind( From 1eb66a0d7b54ddf458b794b4150438b452211283 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 3 Jan 2022 17:23:44 -0600 Subject: [PATCH 128/287] wamr: update to WAMR-12-30-2021 with LLVM 13.0.0. (#207) Signed-off-by: Piotr Sikora --- bazel/external/llvm13.BUILD | 124 ++++++++++++++++++++++++++++++++++++ bazel/external/wamr.BUILD | 6 +- bazel/external/wamr.patch | 15 +++++ bazel/repositories.bzl | 16 ++++- src/wamr/wamr.cc | 63 +++++++++--------- 5 files changed, 189 insertions(+), 35 deletions(-) create mode 100644 bazel/external/llvm13.BUILD create mode 100644 bazel/external/wamr.patch diff --git a/bazel/external/llvm13.BUILD b/bazel/external/llvm13.BUILD new file mode 100644 index 000000000..f372ddfb5 --- /dev/null +++ b/bazel/external/llvm13.BUILD @@ -0,0 +1,124 @@ +load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "srcs", + srcs = glob(["**"]), +) + +cmake( + name = "llvm_lib", + cache_entries = { + # Disable both: BUILD and INCLUDE, since some of the INCLUDE + # targets build code instead of only generating build files. + "LLVM_BUILD_BENCHMARKS": "off", + "LLVM_INCLUDE_BENCHMARKS": "off", + "LLVM_BUILD_DOCS": "off", + "LLVM_INCLUDE_DOCS": "off", + "LLVM_BUILD_EXAMPLES": "off", + "LLVM_INCLUDE_EXAMPLES": "off", + "LLVM_BUILD_RUNTIME": "off", + "LLVM_BUILD_RUNTIMES": "off", + "LLVM_INCLUDE_RUNTIMES": "off", + "LLVM_BUILD_TESTS": "off", + "LLVM_INCLUDE_TESTS": "off", + "LLVM_BUILD_TOOLS": "off", + "LLVM_INCLUDE_TOOLS": "off", + "LLVM_BUILD_UTILS": "off", + "LLVM_INCLUDE_UTILS": "off", + "LLVM_ENABLE_IDE": "off", + "LLVM_ENABLE_LIBEDIT": "off", + "LLVM_ENABLE_LIBXML2": "off", + "LLVM_ENABLE_TERMINFO": "off", + "LLVM_ENABLE_ZLIB": "off", + "LLVM_TARGETS_TO_BUILD": "X86", + "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", + }, + env_vars = { + # Workaround for the -DDEBUG flag added in fastbuild on macOS, + # which conflicts with DEBUG macro used in LLVM. + "CFLAGS": "-UDEBUG", + "CXXFLAGS": "-UDEBUG", + "ASMFLAGS": "-UDEBUG", + }, + generate_args = ["-GNinja"], + lib_source = ":srcs", + out_static_libs = [ + "libLLVMWindowsManifest.a", + "libLLVMXRay.a", + "libLLVMLibDriver.a", + "libLLVMDlltoolDriver.a", + "libLLVMCoverage.a", + "libLLVMLineEditor.a", + "libLLVMX86Disassembler.a", + "libLLVMX86AsmParser.a", + "libLLVMX86CodeGen.a", + "libLLVMX86Desc.a", + "libLLVMX86Info.a", + "libLLVMOrcJIT.a", + "libLLVMMCJIT.a", + "libLLVMJITLink.a", + "libLLVMInterpreter.a", + "libLLVMExecutionEngine.a", + "libLLVMRuntimeDyld.a", + "libLLVMOrcTargetProcess.a", + "libLLVMOrcShared.a", + "libLLVMDWP.a", + "libLLVMSymbolize.a", + "libLLVMDebugInfoPDB.a", + "libLLVMDebugInfoGSYM.a", + "libLLVMOption.a", + "libLLVMObjectYAML.a", + "libLLVMMCA.a", + "libLLVMMCDisassembler.a", + "libLLVMLTO.a", + "libLLVMPasses.a", + "libLLVMCFGuard.a", + "libLLVMCoroutines.a", + "libLLVMObjCARCOpts.a", + "libLLVMipo.a", + "libLLVMVectorize.a", + "libLLVMLinker.a", + "libLLVMInstrumentation.a", + "libLLVMFrontendOpenMP.a", + "libLLVMFrontendOpenACC.a", + "libLLVMExtensions.a", + "libLLVMDWARFLinker.a", + "libLLVMGlobalISel.a", + "libLLVMMIRParser.a", + "libLLVMAsmPrinter.a", + "libLLVMDebugInfoMSF.a", + "libLLVMDebugInfoDWARF.a", + "libLLVMSelectionDAG.a", + "libLLVMCodeGen.a", + "libLLVMIRReader.a", + "libLLVMAsmParser.a", + "libLLVMInterfaceStub.a", + "libLLVMFileCheck.a", + "libLLVMFuzzMutate.a", + "libLLVMTarget.a", + "libLLVMScalarOpts.a", + "libLLVMInstCombine.a", + "libLLVMAggressiveInstCombine.a", + "libLLVMTransformUtils.a", + "libLLVMBitWriter.a", + "libLLVMAnalysis.a", + "libLLVMProfileData.a", + "libLLVMObject.a", + "libLLVMTextAPI.a", + "libLLVMMCParser.a", + "libLLVMMC.a", + "libLLVMDebugInfoCodeView.a", + "libLLVMBitReader.a", + "libLLVMCore.a", + "libLLVMRemarks.a", + "libLLVMBitstreamReader.a", + "libLLVMBinaryFormat.a", + "libLLVMTableGen.a", + "libLLVMSupport.a", + "libLLVMDemangle.a", + ], +) diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index 0b0df722f..2945ef963 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -12,9 +12,11 @@ filegroup( cmake( name = "wamr_lib", cache_entries = { - "LLVM_DIR": "$EXT_BUILD_DEPS/copy_llvm/llvm/lib/cmake/llvm", + "LLVM_DIR": "$EXT_BUILD_DEPS/copy_llvm13/llvm/lib/cmake/llvm", "WAMR_BUILD_INTERP": "1", + "WAMR_BUILD_FAST_INTERP": "1", "WAMR_BUILD_JIT": "0", + "WAMR_BUILD_LAZY_JIT": "0", "WAMR_BUILD_AOT": "0", "WAMR_BUILD_SIMD": "0", "WAMR_BUILD_MULTI_MODULE": "1", @@ -25,6 +27,6 @@ cmake( lib_source = ":srcs", out_static_libs = ["libvmlib.a"], deps = [ - "@llvm//:llvm_lib", + "@llvm13//:llvm_lib", ], ) diff --git a/bazel/external/wamr.patch b/bazel/external/wamr.patch new file mode 100644 index 000000000..f129e44dd --- /dev/null +++ b/bazel/external/wamr.patch @@ -0,0 +1,15 @@ +1. Automatically detect the host platform. (https://github.com/bytecodealliance/wasm-micro-runtime/pull/929) + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index d77473e..bc74e72 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -6,7 +6,7 @@ cmake_minimum_required (VERSION 2.8...3.16) + project (iwasm) + # set (CMAKE_VERBOSE_MAKEFILE 1) + +-set (WAMR_BUILD_PLATFORM "linux") ++string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM) + + # Reset default linker flags + set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index f6e1c2a73..7c4f65fb3 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -43,12 +43,22 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz", ) + http_archive( + name = "llvm13", + build_file = "@proxy_wasm_cpp_host//bazel/external:llvm13.BUILD", + sha256 = "408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020", + strip_prefix = "llvm-13.0.0.src", + url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-13.0.0.src.tar.xz", + ) + http_archive( name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - sha256 = "46ad365a1c0668797e69cb868574fd526cd8e26a503213caf782c39061e6d2e1", - strip_prefix = "wasm-micro-runtime-17a216748574499bd3a5130e7e6a20b84fe76798", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/17a216748574499bd3a5130e7e6a20b84fe76798.tar.gz", + sha256 = "0ccf19f30f744fca635be5428f6460c14dfee19bfa0820c70e0fc9554f79c9b1", + strip_prefix = "wasm-micro-runtime-cdf306364eff8f50fd6473b32a316cb90cc15a2f", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/cdf306364eff8f50fd6473b32a316cb90cc15a2f.tar.gz", + patches = ["@proxy_wasm_cpp_host//bazel/external:wamr.patch"], + patch_args = ["-p1"], ) native.bind( diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index addc7030c..590de6823 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -153,17 +153,17 @@ static std::string printValue(const wasm_val_t &value) { } } -static std::string printValues(const wasm_val_t values[], size_t size) { - if (size == 0) { +static std::string printValues(const wasm_val_vec_t *values) { + if (values->size == 0) { return ""; } std::string s; - for (size_t i = 0; i < size; i++) { + for (size_t i = 0; i < values->size; i++) { if (i) { s.append(", "); } - s.append(printValue(values[i])); + s.append(printValue(values->data[i])); } return s; } @@ -209,7 +209,7 @@ bool Wamr::link(std::string_view debug_name) { WasmImporttypeVec import_types; wasm_module_imports(module_.get(), import_types.get()); - std::vector imports; + std::vector imports; for (size_t i = 0; i < import_types.get()->size; i++) { const wasm_name_t *module_name_ptr = wasm_importtype_module(import_types.get()->data[i]); const wasm_name_t *name_ptr = wasm_importtype_name(import_types.get()->data[i]); @@ -273,7 +273,8 @@ bool Wamr::link(std::string_view debug_name) { return false; } - instance_ = wasm_instance_new(store_.get(), module_.get(), imports.data(), nullptr); + wasm_extern_vec_t imports_vec = {imports.size(), imports.data()}; + instance_ = wasm_instance_new(store_.get(), module_.get(), &imports_vec, nullptr); assert(instance_ != nullptr); WasmExportTypeVec export_types; @@ -403,14 +404,10 @@ template <> uint64_t convertValueTypeToArg(wasm_val_t val) { template <> double convertValueTypeToArg(wasm_val_t val) { return val.of.f64; } template -constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence) { +constexpr T convertValTypesToArgsTuple(const U &vec, std::index_sequence) { return std::make_tuple( - convertValueTypeToArg>::type>(arr[I])...); -} - -template ::value>> -constexpr T convertValTypesToArgsTuple(const U &arr) { - return convertValTypesToArgsTupleImpl(arr, Is()); + convertValueTypeToArg>::type>( + vec->data[I])...); } template @@ -449,14 +446,15 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_vi WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), - [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { auto func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + - printValues(params, sizeof...(Args)) + ")"); + printValues(params) + ")"); } - auto args = convertValTypesToArgsTuple>(params); + auto args = convertValTypesToArgsTuple>( + params, std::make_index_sequence{}); auto fn = reinterpret_cast(func_data->raw_func_); std::apply(fn, args); if (log) { @@ -481,17 +479,18 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_vi WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), - [](void *data, const wasm_val_t params[], wasm_val_t results[]) -> wasm_trap_t * { + [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { auto func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + - printValues(params, sizeof...(Args)) + ")"); + printValues(params) + ")"); } - auto args = convertValTypesToArgsTuple>(params); + auto args = convertValTypesToArgsTuple>( + params, std::make_index_sequence{}); auto fn = reinterpret_cast(func_data->raw_func_); R res = std::apply(fn, args); - assignVal(res, results[0]); + assignVal(res, results->data[0]); if (log) { func_data->vm_->integration()->trace("[vm<-host] " + func_data->name_ + " return: " + std::to_string(res)); @@ -534,14 +533,16 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> void { - wasm_val_t params[] = {makeVal(args)...}; + wasm_val_t params_arr[] = {makeVal(args)...}; + const wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + wasm_val_vec_t results = WASM_EMPTY_VEC; const bool log = cmpLogLevel(LogLevel::trace); if (log) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + - printValues(params, sizeof...(Args)) + ")"); + integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(¶ms) + + ")"); } SaveRestoreContext saved_context(context); - WasmTrapPtr trap{wasm_func_call(func, params, nullptr)}; + WasmTrapPtr trap{wasm_func_call(func, ¶ms, &results)}; if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); @@ -580,15 +581,17 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> R { - wasm_val_t params[] = {makeVal(args)...}; - wasm_val_t results[1]; + wasm_val_t params_arr[] = {makeVal(args)...}; + const wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + wasm_val_t results_arr[1]; + wasm_val_vec_t results = WASM_ARRAY_VEC(results_arr); const bool log = cmpLogLevel(LogLevel::trace); if (log) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + - printValues(params, sizeof...(Args)) + ")"); + integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(¶ms) + + ")"); } SaveRestoreContext saved_context(context); - WasmTrapPtr trap{wasm_func_call(func, params, results)}; + WasmTrapPtr trap{wasm_func_call(func, ¶ms, &results)}; if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); @@ -597,7 +600,7 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, std::string(error_message.get()->data, error_message.get()->size)); return R{}; } - R ret = convertValueTypeToArg(results[0]); + R ret = convertValueTypeToArg(results.data[0]); if (log) { integration()->trace("[host<-vm] " + std::string(function_name) + " return: " + std::to_string(ret)); From 827e603f19e38e439cdbc8b2857b875bac4607d7 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 3 Jan 2022 22:31:11 -0600 Subject: [PATCH 129/287] Fix linking on macOS. (#208) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 36 ++++++++++++++++++++++++++++-------- test/BUILD | 9 +++++++++ 2 files changed, 37 insertions(+), 8 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 9e50077ef..67d85b3e2 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -31,7 +31,7 @@ on: jobs: format: - runs-on: ubuntu-latest + runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v2 @@ -58,33 +58,53 @@ jobs: addlicense -check . build: - name: build (${{ matrix.runtime }}) + name: build (${{ matrix.name }}) - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: - runtime: ["wamr", "wasmtime", "wavm"] + include: + - name: 'WAMR on Linux' + runtime: 'wamr' + os: ubuntu-20.04 + - name: 'WAMR on macOS' + runtime: 'wamr' + os: macos-11 + - name: 'Wasmtime on Linux' + runtime: 'wasmtime' + os: ubuntu-20.04 + - name: 'Wasmtime on macOS' + runtime: 'wasmtime' + os: macos-11 + - name: 'WAVM on Linux' + runtime: 'wavm' + os: ubuntu-20.04 steps: - uses: actions/checkout@v2 - - name: Install dependency + - name: Install dependency (Linux) + if: startsWith(matrix.os, 'ubuntu') run: sudo apt-get install ninja-build + - name: Install dependency (macOS) + if: startsWith(matrix.os, 'macos') + run: brew install ninja + - name: Mount Bazel cache uses: actions/cache@v2 with: path: | ~/.cache/bazel ~/.cache/bazelisk - key: bazel-${{ matrix.runtime }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} + key: bazel-${{ matrix.os }}-${{ matrix.runtime }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} - name: Test run: | - bazel test --define runtime=${{ matrix.runtime }} //test/... + bazel test --test_output=errors --define runtime=${{ matrix.runtime }} //test/... - name: Test (signed Wasm module) run: | - bazel test --define runtime=${{ matrix.runtime }} --per_file_copt=//...@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test + bazel test --test_output=errors --define runtime=${{ matrix.runtime }} --per_file_copt=//...@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test diff --git a/test/BUILD b/test/BUILD index 33df7b862..6f54f6b10 100644 --- a/test/BUILD +++ b/test/BUILD @@ -7,6 +7,7 @@ package(default_visibility = ["//visibility:public"]) cc_test( name = "null_vm_test", srcs = ["null_vm_test.cc"], + linkstatic = 1, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -20,6 +21,7 @@ cc_test( data = [ "//test/test_data:abi_export.wasm", ], + linkstatic = 1, deps = [ ":utility_lib", "//:lib", @@ -36,6 +38,7 @@ cc_test( "//test/test_data:abi_export.signed.with.key2.wasm", "//test/test_data:abi_export.wasm", ], + linkstatic = 1, # Test only when compiled to verify plugins. tags = ["manual"], deps = [ @@ -54,6 +57,7 @@ cc_test( "//test/test_data:callback.wasm", "//test/test_data:trap.wasm", ], + linkstatic = 1, deps = [ ":utility_lib", "//:lib", @@ -69,6 +73,7 @@ cc_test( "//test/test_data:clock.wasm", "//test/test_data:env.wasm", ], + linkstatic = 1, deps = [ ":utility_lib", "//:lib", @@ -83,6 +88,7 @@ cc_test( data = [ "//test/test_data:abi_export.wasm", ], + linkstatic = 1, deps = [ ":utility_lib", "//:lib", @@ -94,6 +100,7 @@ cc_test( cc_test( name = "shared_data", srcs = ["shared_data_test.cc"], + linkstatic = 1, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -104,6 +111,7 @@ cc_test( cc_test( name = "shared_queue", srcs = ["shared_queue_test.cc"], + linkstatic = 1, deps = [ "//:lib", "@com_google_googletest//:gtest", @@ -114,6 +122,7 @@ cc_test( cc_test( name = "vm_id_handle", srcs = ["vm_id_handle_test.cc"], + linkstatic = 1, deps = [ "//:lib", "@com_google_googletest//:gtest", From b50eb7691a1b3ee234d6af3c4d64f1f902444851 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 4 Jan 2022 04:12:49 -0600 Subject: [PATCH 130/287] build: add V8 runtime. (#204) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 8 +- bazel/dependencies.bzl | 7 + bazel/external/v8.patch | 1078 +++++++++++++++++++++++++++++++++++++ bazel/repositories.bzl | 37 ++ src/v8/v8.cc | 4 +- 5 files changed, 1131 insertions(+), 3 deletions(-) create mode 100644 bazel/external/v8.patch diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 67d85b3e2..547fdfc64 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -66,6 +66,12 @@ jobs: fail-fast: false matrix: include: + - name: 'V8 on Linux' + runtime: 'v8' + os: ubuntu-20.04 + - name: 'V8 on macOS' + runtime: 'v8' + os: macos-11 - name: 'WAMR on Linux' runtime: 'wamr' os: ubuntu-20.04 @@ -107,4 +113,4 @@ jobs: - name: Test (signed Wasm module) run: | - bazel test --test_output=errors --define runtime=${{ matrix.runtime }} --per_file_copt=//...@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test + bazel test --test_output=errors --define runtime=${{ matrix.runtime }} --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index c325facfe..b211b4579 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -14,9 +14,16 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates") +load("@rules_python//python:pip.bzl", "pip_install") load("@rules_rust//rust:repositories.bzl", "rust_repositories") def proxy_wasm_cpp_host_dependencies(): protobuf_deps() rust_repositories() proxy_wasm_cpp_host_fetch_remote_crates() + + pip_install( + name = "v8_python_deps", + extra_pip_args = ["--require-hashes"], + requirements = "@v8//:bazel/requirements.txt", + ) diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch new file mode 100644 index 000000000..0f227f32a --- /dev/null +++ b/bazel/external/v8.patch @@ -0,0 +1,1078 @@ +1. Use bazel/config from within the main repository. (https://crrev.com/c/3331591) +2. Manage dependencies in Bazel. (https://crrev.com/c/3344621) +3. Generate inspector files using @rules_python. (https://crrev.com/c/3343881) +7. Fix v8_torque when imported in another workspace. (https://crrev.com/c/3346680) +4. Fix build with GCC and older versions of Clang. (https://crrev.com/c/3333635) +5. Fix build on arm64. (https://crrev.com/c/3337367) +6. Fix build on macOS. (https://crrev.com/c/3364916) +7. Add support for building on s390x. (https://crrev.com/c/3346395) +8. Expose :v8 and :wee8 libraries with headers. (https://crrev.com/c/3346681) + +diff --git a/.bazelrc b/.bazelrc +index e0127628ca..ef69dda4a5 100644 +--- a/.bazelrc ++++ b/.bazelrc +@@ -2,12 +2,16 @@ + # Use of this source code is governed by a BSD-style license that can be + # found in the LICENSE file. + +-# V8 bazel port only supports clang +-build --action_env=BAZEL_COMPILER=clang +-build --action_env=CC=clang +-build --action_env=CXX=clang++ ++# Pass CC, CXX and PATH from the environment ++build --action_env=CC ++build --action_env=CXX + build --action_env=PATH + ++# Use Clang compiler ++build:clang --action_env=BAZEL_COMPILER=clang ++build:clang --action_env=CC=clang ++build:clang --action_env=CXX=clang++ ++ + # V8 debug config + build:debug --compilation_mode=dbg + build:debug --config=v8_enable_debugging_features +diff --git a/BUILD.bazel b/BUILD.bazel +index c9864429a5..b1717e8fda 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -3,6 +3,8 @@ + # found in the LICENSE file. + + load("@bazel_skylib//lib:selects.bzl", "selects") ++load("@rules_python//python:defs.bzl", "py_binary") ++load("@v8_python_deps//:requirements.bzl", "requirement") + load( + "@v8//:bazel/defs.bzl", + "v8_binary", +@@ -18,13 +20,6 @@ load( + ) + load(":bazel/v8-non-pointer-compression.bzl", "v8_binary_non_pointer_compression") + +-config_setting( +- name = "is_debug", +- values = { +- "compilation_mode": "dbg", +- }, +-) +- + # ================================================= + # Flags + # ================================================= +@@ -198,7 +193,7 @@ selects.config_setting_group( + name = "v8_target_x64_default_pointer_compression", + match_all = [ + ":v8_enable_pointer_compression_is_none", +- "@config//:v8_target_x64", ++ "@v8//bazel/config:v8_target_x64", + ], + ) + +@@ -207,7 +202,7 @@ selects.config_setting_group( + name = "v8_target_arm64_default_pointer_compression", + match_all = [ + ":v8_enable_pointer_compression_is_none", +- "@config//:v8_target_arm64", ++ "@v8//bazel/config:v8_target_arm64", + ], + ) + +@@ -252,7 +247,7 @@ selects.config_setting_group( + selects.config_setting_group( + name = "should_add_rdynamic", + match_all = [ +- "@config//:is_linux", ++ "@v8//bazel/config:is_linux", + ":is_v8_enable_backtrace", + ], + ) +@@ -290,37 +285,41 @@ v8_config( + "V8_ADVANCED_BIGINT_ALGORITHMS", + "V8_CONCURRENT_MARKING", + ] + select({ +- ":is_debug": [ ++ "@v8//bazel/config:is_debug": [ + "DEBUG", + "V8_ENABLE_CHECKS", + ], + "//conditions:default": [], + }) + select( + { +- "@config//:v8_target_ia32": ["V8_TARGET_ARCH_IA32"], +- "@config//:v8_target_x64": ["V8_TARGET_ARCH_X64"], +- "@config//:v8_target_arm": [ ++ "@v8//bazel/config:v8_target_ia32": ["V8_TARGET_ARCH_IA32"], ++ "@v8//bazel/config:v8_target_x64": ["V8_TARGET_ARCH_X64"], ++ "@v8//bazel/config:v8_target_arm": [ + "V8_TARGET_ARCH_ARM", + "CAN_USE_ARMV7_INSTRUCTIONS", + "CAN_USE_VFP3_INSTRUCTIONS", + ], +- "@config//:v8_target_arm64": ["V8_TARGET_ARCH_ARM64"], ++ "@v8//bazel/config:v8_target_arm64": ["V8_TARGET_ARCH_ARM64"], ++ "@v8//bazel/config:v8_target_s390x": [ ++ "V8_TARGET_ARCH_S390", ++ "V8_TARGET_ARCH_S390X", ++ ], + }, + no_match_error = "Please specify a target cpu supported by v8", + ) + select({ +- "@config//:is_android": [ ++ "@v8//bazel/config:is_android": [ + "V8_HAVE_TARGET_OS", + "V8_TARGET_OS_ANDROID", + ], +- "@config//:is_linux": [ ++ "@v8//bazel/config:is_linux": [ + "V8_HAVE_TARGET_OS", + "V8_TARGET_OS_LINUX", + ], +- "@config//:is_macos": [ ++ "@v8//bazel/config:is_macos": [ + "V8_HAVE_TARGET_OS", + "V8_TARGET_OS_MACOSX", + ], +- "@config//:is_windows": [ ++ "@v8//bazel/config:is_windows": [ + "V8_HAVE_TARGET_OS", + "V8_TARGET_OS_WIN", + "UNICODE", +@@ -622,7 +621,7 @@ filegroup( + "src/base/vlq-base64.h", + "src/base/platform/yield-processor.h", + ] + select({ +- "@config//:is_posix": [ ++ "@v8//bazel/config:is_posix": [ + "src/base/platform/platform-posix.cc", + "src/base/platform/platform-posix.h", + "src/base/platform/platform-posix-time.cc", +@@ -630,19 +629,19 @@ filegroup( + ], + "//conditions:default": [], + }) + select({ +- "@config//:is_linux": [ ++ "@v8//bazel/config:is_linux": [ + "src/base/debug/stack_trace_posix.cc", + "src/base/platform/platform-linux.cc", + ], +- "@config//:is_android": [ ++ "@v8//bazel/config:is_android": [ + "src/base/debug/stack_trace_android.cc", + "src/base/platform/platform-linux.cc", + ], +- "@config//:is_macos": [ ++ "@v8//bazel/config:is_macos": [ + "src/base/debug/stack_trace_posix.cc", + "src/base/platform/platform-macos.cc", + ], +- "@config//:is_windows": [ ++ "@v8//bazel/config:is_windows": [ + "src/base/win32-headers.h", + "src/base/debug/stack_trace_win.cc", + "src/base/platform/platform-win32.cc", +@@ -654,7 +653,6 @@ filegroup( + filegroup( + name = "v8_libplatform_files", + srcs = [ +- "base/trace_event/common/trace_event_common.h", + "include/libplatform/libplatform.h", + "include/libplatform/libplatform-export.h", + "include/libplatform/v8-tracing.h", +@@ -982,7 +980,6 @@ filegroup( + ":v8_cppgc_shared_files", + ":v8_bigint", + ":generated_bytecode_builtins_list", +- "base/trace_event/common/trace_event_common.h", + "include/cppgc/common.h", + "include/v8-inspector-protocol.h", + "include/v8-inspector.h", +@@ -1966,8 +1963,6 @@ filegroup( + "src/snapshot/shared-heap-serializer.cc", + "src/snapshot/snapshot-compression.cc", + "src/snapshot/snapshot-compression.h", +- "third_party/zlib/google/compression_utils_portable.h", +- "third_party/zlib/google/compression_utils_portable.cc", + "src/snapshot/snapshot-data.cc", + "src/snapshot/snapshot-data.h", + "src/snapshot/snapshot-source-sink.cc", +@@ -2072,7 +2067,7 @@ filegroup( + "src/heap/third-party/heap-api.h", + "src/heap/third-party/heap-api-stub.cc", + ] + select({ +- "@config//:v8_target_ia32": [ ++ "@v8//bazel/config:v8_target_ia32": [ + "src/baseline/ia32/baseline-assembler-ia32-inl.h", + "src/baseline/ia32/baseline-compiler-ia32-inl.h", + "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.h", +@@ -2100,7 +2095,7 @@ filegroup( + "src/regexp/ia32/regexp-macro-assembler-ia32.h", + "src/wasm/baseline/ia32/liftoff-assembler-ia32.h", + ], +- "@config//:v8_target_x64": [ ++ "@v8//bazel/config:v8_target_x64": [ + "src/baseline/x64/baseline-assembler-x64-inl.h", + "src/baseline/x64/baseline-compiler-x64-inl.h", + "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.h", +@@ -2132,7 +2127,7 @@ filegroup( + "src/regexp/x64/regexp-macro-assembler-x64.h", + "src/wasm/baseline/x64/liftoff-assembler-x64.h", + ], +- "@config//:v8_target_arm": [ ++ "@v8//bazel/config:v8_target_arm": [ + "src/baseline/arm/baseline-assembler-arm-inl.h", + "src/baseline/arm/baseline-compiler-arm-inl.h", + "src/codegen/arm/assembler-arm-inl.h", +@@ -2163,7 +2158,7 @@ filegroup( + "src/regexp/arm/regexp-macro-assembler-arm.h", + "src/wasm/baseline/arm/liftoff-assembler-arm.h", + ], +- "@config//:v8_target_arm64": [ ++ "@v8//bazel/config:v8_target_arm64": [ + "src/baseline/arm64/baseline-assembler-arm64-inl.h", + "src/baseline/arm64/baseline-compiler-arm64-inl.h", + "src/codegen/arm64/assembler-arm64-inl.h", +@@ -2206,31 +2201,59 @@ filegroup( + "src/regexp/arm64/regexp-macro-assembler-arm64.h", + "src/wasm/baseline/arm64/liftoff-assembler-arm64.h", + ], ++ "@v8//bazel/config:v8_target_s390x": [ ++ "src/baseline/s390/baseline-assembler-s390-inl.h", ++ "src/baseline/s390/baseline-compiler-s390-inl.h", ++ "src/codegen/s390/assembler-s390-inl.h", ++ "src/codegen/s390/assembler-s390.h", ++ "src/codegen/s390/constants-s390.h", ++ "src/codegen/s390/interface-descriptors-s390-inl.h", ++ "src/codegen/s390/macro-assembler-s390.h", ++ "src/codegen/s390/register-s390.h", ++ "src/compiler/backend/s390/instruction-codes-s390.h", ++ "src/compiler/backend/s390/unwinding-info-writer-s390.h", ++ "src/execution/s390/frame-constants-s390.h", ++ "src/execution/s390/simulator-s390.h", ++ "src/regexp/s390/regexp-macro-assembler-s390.h", ++ "src/wasm/baseline/s390/liftoff-assembler-s390.h", ++ "src/codegen/s390/assembler-s390.cc", ++ "src/codegen/s390/constants-s390.cc", ++ "src/codegen/s390/cpu-s390.cc", ++ "src/codegen/s390/macro-assembler-s390.cc", ++ "src/compiler/backend/s390/code-generator-s390.cc", ++ "src/compiler/backend/s390/instruction-scheduler-s390.cc", ++ "src/compiler/backend/s390/instruction-selector-s390.cc", ++ "src/compiler/backend/s390/unwinding-info-writer-s390.cc", ++ "src/deoptimizer/s390/deoptimizer-s390.cc", ++ "src/diagnostics/s390/disasm-s390.cc", ++ "src/diagnostics/s390/eh-frame-s390.cc", ++ "src/diagnostics/s390/unwinder-s390.cc", ++ "src/execution/s390/frame-constants-s390.cc", ++ "src/execution/s390/simulator-s390.cc", ++ "src/regexp/s390/regexp-macro-assembler-s390.cc", ++ ], + }) + select({ + # Only for x64 builds and for arm64 with x64 host simulator. +- "@config//:is_posix_x64": [ ++ "@v8//bazel/config:is_posix_x64": [ + "src/trap-handler/handler-inside-posix.cc", + "src/trap-handler/handler-outside-posix.cc", + ], + "//conditions:default": [], + }) + select({ +- "@config//:v8_arm64_simulator": [ ++ "@v8//bazel/config:v8_arm64_simulator": [ + "src/trap-handler/trap-handler-simulator.h", + "src/trap-handler/handler-outside-simulator.cc", + ], + "//conditions:default": [], + }) + select({ +- "@config//:is_windows": [ ++ "@v8//bazel/config:is_windows": [ + "src/trap-handler/handler-inside-win.cc", + "src/trap-handler/handler-outside-win.cc", + "src/trap-handler/handler-inside-win.h", +- # Needed on windows to work around https://github.com/bazelbuild/bazel/issues/6337 +- "third_party/zlib/zlib.h", +- "third_party/zlib/zconf.h", + ], + "//conditions:default": [], + }) + select({ +- "@config//:is_windows_64bit": [ ++ "@v8//bazel/config:is_windows_64bit": [ + "src/diagnostics/unwinding-info-win64.cc", + "src/diagnostics/unwinding-info-win64.h", + ], +@@ -2712,10 +2735,11 @@ filegroup( + "src/interpreter/interpreter-intrinsics-generator.cc", + "src/interpreter/interpreter-intrinsics-generator.h", + ] + select({ +- "@config//:v8_target_ia32": ["src/builtins/ia32/builtins-ia32.cc"], +- "@config//:v8_target_x64": ["src/builtins/x64/builtins-x64.cc"], +- "@config//:v8_target_arm": ["src/builtins/arm/builtins-arm.cc"], +- "@config//:v8_target_arm64": ["src/builtins/arm64/builtins-arm64.cc"], ++ "@v8//bazel/config:v8_target_ia32": ["src/builtins/ia32/builtins-ia32.cc"], ++ "@v8//bazel/config:v8_target_x64": ["src/builtins/x64/builtins-x64.cc"], ++ "@v8//bazel/config:v8_target_arm": ["src/builtins/arm/builtins-arm.cc"], ++ "@v8//bazel/config:v8_target_arm64": ["src/builtins/arm64/builtins-arm64.cc"], ++ "@v8//bazel/config:v8_target_s390x": ["src/builtins/s390/builtins-s390.cc"], + }) + select({ + ":is_v8_enable_webassembly": [ + "src/builtins/builtins-wasm-gen.cc", +@@ -2832,13 +2856,14 @@ filegroup( + # Note these cannot be v8_target_is_* selects because these contain + # inline assembly that runs inside the executable. Since these are + # linked directly into mksnapshot, they must use the actual target cpu. +- "@config//:is_inline_asm_ia32": ["src/heap/base/asm/ia32/push_registers_asm.cc"], +- "@config//:is_inline_asm_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"], +- "@config//:is_inline_asm_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"], +- "@config//:is_inline_asm_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"], +- "@config//:is_msvc_asm_ia32": ["src/heap/base/asm/ia32/push_registers_masm.S"], +- "@config//:is_msvc_asm_x64": ["src/heap/base/asm/x64/push_registers_masm.S"], +- "@config//:is_msvc_asm_arm64": ["src/heap/base/asm/arm64/push_registers_masm.S"], ++ "@v8//bazel/config:is_inline_asm_ia32": ["src/heap/base/asm/ia32/push_registers_asm.cc"], ++ "@v8//bazel/config:is_inline_asm_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"], ++ "@v8//bazel/config:is_inline_asm_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"], ++ "@v8//bazel/config:is_inline_asm_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"], ++ "@v8//bazel/config:is_inline_asm_s390x": ["src/heap/base/asm/s390/push_registers_asm.cc"], ++ "@v8//bazel/config:is_msvc_asm_ia32": ["src/heap/base/asm/ia32/push_registers_masm.S"], ++ "@v8//bazel/config:is_msvc_asm_x64": ["src/heap/base/asm/x64/push_registers_masm.S"], ++ "@v8//bazel/config:is_msvc_asm_arm64": ["src/heap/base/asm/arm64/push_registers_masm.S"], + }), + ) + +@@ -2992,16 +3017,17 @@ filegroup( + srcs = [ + "src/init/setup-isolate-deserialize.cc", + ] + select({ +- "@config//:v8_target_arm": [ ++ "@v8//bazel/config:v8_target_arm": [ + "google3/snapshots/arm/noicu/embedded.S", + "google3/snapshots/arm/noicu/snapshot.cc", + ], +- "@config//:v8_target_ia32": [ ++ "@v8//bazel/config:v8_target_ia32": [ + "google3/snapshots/ia32/noicu/embedded.S", + "google3/snapshots/ia32/noicu/snapshot.cc", + ], +- "@config//:v8_target_arm64": [":noicu/generated_snapshot_files"], +- "@config//:v8_target_x64": [":noicu/generated_snapshot_files"], ++ "@v8//bazel/config:v8_target_arm64": [":noicu/generated_snapshot_files"], ++ "@v8//bazel/config:v8_target_s390x": [":noicu/generated_snapshot_files"], ++ "@v8//bazel/config:v8_target_x64": [":noicu/generated_snapshot_files"], + }), + ) + +@@ -3010,16 +3036,17 @@ filegroup( + srcs = [ + "src/init/setup-isolate-deserialize.cc", + ] + select({ +- "@config//:v8_target_arm": [ ++ "@v8//bazel/config:v8_target_arm": [ + "google3/snapshots/arm/icu/embedded.S", + "google3/snapshots/arm/icu/snapshot.cc", + ], +- "@config//:v8_target_ia32": [ ++ "@v8//bazel/config:v8_target_ia32": [ + "google3/snapshots/ia32/icu/embedded.S", + "google3/snapshots/ia32/icu/snapshot.cc", + ], +- "@config//:v8_target_arm64": [":icu/generated_snapshot_files"], +- "@config//:v8_target_x64": [":icu/generated_snapshot_files"], ++ "@v8//bazel/config:v8_target_arm64": [":icu/generated_snapshot_files"], ++ "@v8//bazel/config:v8_target_s390x": [":icu/generated_snapshot_files"], ++ "@v8//bazel/config:v8_target_x64": [":icu/generated_snapshot_files"], + }), + ) + +@@ -3050,7 +3077,7 @@ v8_torque( + ":is_v8_annotate_torque_ir": ["-annotate-ir"], + "//conditions:default": [], + }) + select({ +- "@config//:v8_target_is_32_bits": ["-m32"], ++ "@v8//bazel/config:v8_target_is_32_bits": ["-m32"], + "//conditions:default": [], + }), + extras = [ +@@ -3079,9 +3106,39 @@ v8_torque( + noicu_srcs = [":noicu/torque_files"], + ) + ++py_binary( ++ name = "code_generator", ++ srcs = [ ++ "third_party/inspector_protocol/code_generator.py", ++ "third_party/inspector_protocol/pdl.py", ++ ], ++ data = [ ++ "third_party/inspector_protocol/lib/Forward_h.template", ++ "third_party/inspector_protocol/lib/Object_cpp.template", ++ "third_party/inspector_protocol/lib/Object_h.template", ++ "third_party/inspector_protocol/lib/Protocol_cpp.template", ++ "third_party/inspector_protocol/lib/ValueConversions_cpp.template", ++ "third_party/inspector_protocol/lib/ValueConversions_h.template", ++ "third_party/inspector_protocol/lib/Values_cpp.template", ++ "third_party/inspector_protocol/lib/Values_h.template", ++ "third_party/inspector_protocol/lib/base_string_adapter_cc.template", ++ "third_party/inspector_protocol/lib/base_string_adapter_h.template", ++ "third_party/inspector_protocol/templates/Exported_h.template", ++ "third_party/inspector_protocol/templates/Imported_h.template", ++ "third_party/inspector_protocol/templates/TypeBuilder_cpp.template", ++ "third_party/inspector_protocol/templates/TypeBuilder_h.template", ++ ], ++ deps = [ ++ requirement("jinja2"), ++ ], ++) ++ + genrule( + name = "generated_inspector_files", +- srcs = ["include/js_protocol.pdl"], ++ srcs = [ ++ "include/js_protocol.pdl", ++ "src/inspector/inspector_protocol_config.json", ++ ], + outs = [ + "include/inspector/Debugger.h", + "include/inspector/Runtime.h", +@@ -3102,10 +3159,27 @@ genrule( + "src/inspector/protocol/Schema.cpp", + "src/inspector/protocol/Schema.h", + ], +- cmd = "bazel/generate-inspector-files.sh $(@D)", +- cmd_bat = "bazel\\generate-inspector-files.cmd $(@D)", +- local = 1, ++ cmd = """ ++ export DIR=$$(dirname $$(dirname $(location :include/js_protocol.pdl))) \ ++ && \ ++ sed -e 's@"path": "..\\/..\\/@"path": "'"$${DIR}"'\\/@g' \ ++ -e 's@"output": "..\\/..\\/@"output": "@g' \ ++ -e 's@"output": "protocol"@"output": "src\\/inspector\\/protocol"@g' \ ++ $(location src/inspector/inspector_protocol_config.json) \ ++ > modified_config.json \ ++ && \ ++ $(location :code_generator) \ ++ --jinja_dir . \ ++ --inspector_protocol_dir third_party/inspector_protocol \ ++ --config modified_config.json \ ++ --output_base $(@D) \ ++ && \ ++ rm modified_config.json ++ """, + message = "Generating inspector files", ++ tools = [ ++ ":code_generator", ++ ], + ) + + filegroup( +@@ -3218,7 +3292,7 @@ cc_library( + ":torque_base_files", + ], + copts = select({ +- "@config//:is_posix": [ "-fexceptions" ], ++ "@v8//bazel/config:is_posix": [ "-fexceptions" ], + "//conditions:default": [], + }), + features = ["-use_header_modules"], +@@ -3236,7 +3310,7 @@ v8_library( + ], + icu_deps = [ + ":icu/generated_torque_headers", +- "@icu", ++ "@com_googlesource_chromium_icu//:icu", + ], + icu_srcs = [ + ":generated_regexp_special_case", +@@ -3251,23 +3325,29 @@ v8_library( + ], + deps = [ + ":v8_libbase", +- "@zlib", ++ "@com_googlesource_chromium_trace_event_common//:trace_event_common", ++ "@com_googlesource_chromium_zlib//:zlib", + ], + ) + + v8_library( + name = "v8", + srcs = [":v8_inspector_files"], ++ hdrs = [":public_header_files"], + icu_deps = [":icu/v8_libshared"], + icu_srcs = [":icu/snapshot_files"], + noicu_deps = [":noicu/v8_libshared"], + noicu_srcs = [":noicu/snapshot_files"], ++ visibility = ["//visibility:public"], + ) + + # TODO(victorgomes): Check if v8_enable_webassembly is true. + v8_library( + name = "wee8", + srcs = [":wee8_files"], ++ hdrs = [":public_wasm_c_api_header_files"], ++ strip_include_prefix = "third_party", ++ visibility = ["//visibility:public"], + deps = [":noicu/v8"], + ) + +@@ -3314,7 +3394,7 @@ v8_binary( + "UNISTR_FROM_CHAR_EXPLICIT=", + ], + deps = [ +- "@icu", ++ "@com_googlesource_chromium_icu//:icu", + ], + ) + +@@ -3325,12 +3405,12 @@ v8_binary( + ":torque_base_files", + ], + copts = select({ +- "@config//:is_posix": [ "-fexceptions" ], ++ "@v8//bazel/config:is_posix": [ "-fexceptions" ], + "//conditions:default": [], + }), + features = ["-use_header_modules"], + linkopts = select({ +- "@config//:is_android": ["-llog"], ++ "@v8//bazel/config:is_android": ["-llog"], + "//conditions:default": [], + }), + deps = ["v8_libbase"], +@@ -3341,7 +3421,7 @@ v8_binary( + srcs = [":mksnapshot_files"], + icu_deps = [":icu/v8_libshared"], + linkopts = select({ +- "@config//:is_android": ["-llog"], ++ "@v8//bazel/config:is_android": ["-llog"], + "//conditions:default": [], + }), + noicu_deps = [":v8_libshared_noicu"], +diff --git a/WORKSPACE b/WORKSPACE +index 32fff02aab..4aacf4354f 100644 +--- a/WORKSPACE ++++ b/WORKSPACE +@@ -4,7 +4,9 @@ + + workspace(name = "v8") + ++load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") + load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") ++ + http_archive( + name = "bazel_skylib", + urls = [ +@@ -16,20 +18,37 @@ http_archive( + load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") + bazel_skylib_workspace() + +-new_local_repository( +- name = "config", +- path = "bazel/config", +- build_file = "bazel/config/BUILD.bazel", ++new_git_repository( ++ name = "com_googlesource_chromium_icu", ++ build_file = "//:bazel/BUILD.icu", ++ commit = "fbc6faf1c2c429cd27fabe615a89f0b217aa4213", ++ remote = "https://chromium.googlesource.com/chromium/deps/icu.git", ++) ++ ++new_git_repository( ++ name = "com_googlesource_chromium_trace_event_common", ++ build_file = "//:bazel/BUILD.trace_event_common", ++ commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb", ++ remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", + ) + +-new_local_repository( +- name = "zlib", +- path = "third_party/zlib", +- build_file = "bazel/BUILD.zlib", ++new_git_repository( ++ name = "com_googlesource_chromium_zlib", ++ build_file = "//:bazel/BUILD.zlib", ++ commit = "efd9399ae01364926be2a38946127fdf463480db", ++ remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", + ) + +-new_local_repository( +- name = "icu", +- path = "third_party/icu", +- build_file = "bazel/BUILD.icu", ++http_archive( ++ name = "rules_python", ++ sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", ++ url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", ++) ++ ++load("@rules_python//python:pip.bzl", "pip_install") ++ ++pip_install( ++ name = "v8_python_deps", ++ extra_pip_args = ["--require-hashes"], ++ requirements = "//:bazel/requirements.txt", + ) +diff --git a/bazel/BUILD.trace_event_common b/bazel/BUILD.trace_event_common +new file mode 100644 +index 0000000000..685b284071 +--- /dev/null ++++ b/bazel/BUILD.trace_event_common +@@ -0,0 +1,10 @@ ++# Copyright 2021 the V8 project authors. All rights reserved. ++# Use of this source code is governed by a BSD-style license that can be ++# found in the LICENSE file. ++ ++cc_library( ++ name = "trace_event_common", ++ hdrs = ["trace_event_common.h"], ++ include_prefix = "base/trace_event/common", ++ visibility = ["//visibility:public"], ++) +diff --git a/bazel/config/BUILD.bazel b/bazel/config/BUILD.bazel +index 78a1b5debd..b7edae5815 100644 +--- a/bazel/config/BUILD.bazel ++++ b/bazel/config/BUILD.bazel +@@ -15,6 +15,20 @@ package( + ], + ) + ++config_setting( ++ name = "is_fastbuild", ++ values = { ++ "compilation_mode": "fastbuild", ++ }, ++) ++ ++config_setting( ++ name = "is_debug", ++ values = { ++ "compilation_mode": "dbg", ++ }, ++) ++ + config_setting( + name = "platform_cpu_x64", + constraint_values = ["@platforms//cpu:x86_64"], +@@ -27,7 +41,7 @@ config_setting( + + config_setting( + name = "platform_cpu_arm64", +- constraint_values = ["@platforms//cpu:arm"], ++ constraint_values = ["@platforms//cpu:aarch64"], + ) + + config_setting( +@@ -35,6 +49,11 @@ config_setting( + constraint_values = ["@platforms//cpu:arm"], + ) + ++config_setting( ++ name = "platform_cpu_s390x", ++ constraint_values = ["@platforms//cpu:s390x"], ++) ++ + v8_target_cpu( + name = "v8_target_cpu", + build_setting_default = "none", +@@ -58,15 +77,20 @@ v8_configure_target_cpu( + ) + + v8_configure_target_cpu( +- name = "arm", ++ name = "arm64", + matching_configs = [":platform_cpu_arm64"], + ) + + v8_configure_target_cpu( +- name = "arm64", ++ name = "arm", + matching_configs = [":platform_cpu_arm"], + ) + ++v8_configure_target_cpu( ++ name = "s390x", ++ matching_configs = [":platform_cpu_s390x"], ++) ++ + selects.config_setting_group( + name = "v8_target_is_32_bits", + match_any = [ +@@ -158,6 +182,11 @@ selects.config_setting_group( + match_all = [":is_posix", ":is_arm"], + ) + ++selects.config_setting_group( ++ name = "is_inline_asm_s390x", ++ match_all = [":is_posix", ":is_s390x"], ++) ++ + selects.config_setting_group( + name = "is_msvc_asm_x64", + match_all = [":is_windows", ":is_x64"], +@@ -172,3 +201,64 @@ selects.config_setting_group( + name = "is_msvc_asm_arm64", + match_all = [":is_windows", ":is_arm64"], + ) ++ ++config_setting( ++ name = "is_compiler_default", ++ flag_values = { ++ "@bazel_tools//tools/cpp:compiler": "compiler", ++ }, ++) ++ ++selects.config_setting_group( ++ name = "is_compiler_default_on_linux", ++ match_all = [ ++ ":is_compiler_default", ++ ":is_linux", ++ ], ++) ++ ++selects.config_setting_group( ++ name = "is_compiler_default_on_macos", ++ match_all = [ ++ ":is_compiler_default", ++ ":is_macos", ++ ], ++) ++ ++config_setting( ++ name = "is_compiler_clang", ++ flag_values = { ++ "@bazel_tools//tools/cpp:compiler": "clang", ++ }, ++) ++ ++selects.config_setting_group( ++ name = "is_clang", ++ match_any = [ ++ ":is_compiler_default_on_macos", ++ ":is_compiler_clang", ++ ], ++) ++ ++config_setting( ++ name = "is_compiler_gcc", ++ flag_values = { ++ "@bazel_tools//tools/cpp:compiler": "gcc", ++ }, ++) ++ ++selects.config_setting_group( ++ name = "is_gcc", ++ match_any = [ ++ ":is_compiler_default_on_linux", ++ ":is_compiler_gcc", ++ ], ++) ++ ++selects.config_setting_group( ++ name = "is_gcc_fastbuild", ++ match_all = [ ++ ":is_gcc", ++ ":is_fastbuild", ++ ], ++) +diff --git a/bazel/config/v8-target-cpu.bzl b/bazel/config/v8-target-cpu.bzl +index 2d5d241ebf..72aae9e270 100644 +--- a/bazel/config/v8-target-cpu.bzl ++++ b/bazel/config/v8-target-cpu.bzl +@@ -14,7 +14,7 @@ V8CpuTypeInfo = provider( + ) + + def _host_target_cpu_impl(ctx): +- allowed_values = ["arm", "arm64", "ia32", "x64", "none"] ++ allowed_values = ["arm", "arm64", "ia32", "s390x", "x64", "none"] + cpu_type = ctx.build_setting_value + if cpu_type in allowed_values: + return V8CpuTypeInfo(value = cpu_type) +diff --git a/bazel/defs.bzl b/bazel/defs.bzl +index 53fccf92e7..14fff6f049 100644 +--- a/bazel/defs.bzl ++++ b/bazel/defs.bzl +@@ -89,7 +89,7 @@ def _default_args(): + return struct( + deps = [":define_flags"], + defines = select({ +- "@config//:is_windows": [ ++ "@v8//bazel/config:is_windows": [ + "UNICODE", + "_UNICODE", + "_CRT_RAND_S", +@@ -98,29 +98,59 @@ def _default_args(): + "//conditions:default": [], + }), + copts = select({ +- "@config//:is_posix": [ ++ "@v8//bazel/config:is_posix": [ + "-fPIC", ++ "-fno-strict-aliasing", + "-Werror", + "-Wextra", ++ "-Wno-unknown-warning-option", + "-Wno-bitwise-instead-of-logical", + "-Wno-builtin-assume-aligned-alignment", + "-Wno-unused-parameter", + "-Wno-implicit-int-float-conversion", + "-Wno-deprecated-copy", + "-Wno-non-virtual-dtor", +- "-std=c++17", + "-isystem .", + ], + "//conditions:default": [], ++ }) + select({ ++ "@v8//bazel/config:is_clang": [ ++ "-Wno-invalid-offsetof", ++ "-std=c++17", ++ ], ++ "@v8//bazel/config:is_gcc": [ ++ "-Wno-extra", ++ "-Wno-comments", ++ "-Wno-deprecated-declarations", ++ "-Wno-implicit-fallthrough", ++ "-Wno-maybe-uninitialized", ++ "-Wno-mismatched-new-delete", ++ "-Wno-redundant-move", ++ "-Wno-return-type", ++ # Use GNU dialect, because GCC doesn't allow using ++ # ##__VA_ARGS__ when in standards-conforming mode. ++ "-std=gnu++17", ++ ], ++ "@v8//bazel/config:is_windows": [ ++ "/std:c++17", ++ ], ++ "//conditions:default": [], ++ }) + select({ ++ "@v8//bazel/config:is_gcc_fastbuild": [ ++ # Non-debug builds without optimizations fail because ++ # of recursive inlining of "always_inline" functions. ++ "-O1", ++ ], ++ "//conditions:default": [], + }), + includes = ["include"], + linkopts = select({ +- "@config//:is_windows": [ ++ "@v8//bazel/config:is_windows": [ + "Winmm.lib", + "DbgHelp.lib", + "Advapi32.lib", + ], +- "@config//:is_macos": ["-pthread"], ++ "@v8//bazel/config:is_macos": ["-pthread"], + "//conditions:default": ["-Wl,--no-as-needed -ldl -pthread"], + }) + select({ + ":should_add_rdynamic": ["-rdynamic"], +@@ -248,8 +278,10 @@ def v8_library( + ) + + def _torque_impl(ctx): +- v8root = "." +- prefix = ctx.attr.prefix ++ if ctx.workspace_name == "v8": ++ v8root = "." ++ else: ++ v8root = "external/v8" + + # Arguments + args = [] +@@ -301,7 +333,6 @@ _v8_torque = rule( + cfg = "exec", + ), + "args": attr.string_list(), +- "v8root": attr.label(default = ":v8_root"), + }, + ) + +@@ -313,7 +344,7 @@ def v8_torque(name, noicu_srcs, icu_srcs, args, extras): + args = args, + extras = extras, + tool = select({ +- "@config//:v8_target_is_32_bits": ":torque_non_pointer_compression", ++ "@v8//bazel/config:v8_target_is_32_bits": ":torque_non_pointer_compression", + "//conditions:default": ":torque", + }), + ) +@@ -324,7 +355,7 @@ def v8_torque(name, noicu_srcs, icu_srcs, args, extras): + args = args, + extras = extras, + tool = select({ +- "@config//:v8_target_is_32_bits": ":torque_non_pointer_compression", ++ "@v8//bazel/config:v8_target_is_32_bits": ":torque_non_pointer_compression", + "//conditions:default": ":torque", + }), + ) +@@ -334,6 +365,7 @@ def _v8_target_cpu_transition_impl(settings, attr): + "haswell": "x64", + "k8": "x64", + "x86_64": "x64", ++ "darwin": "x64", + "darwin_x86_64": "x64", + "x86": "ia32", + "ppc": "ppc64", +@@ -342,14 +374,14 @@ def _v8_target_cpu_transition_impl(settings, attr): + "armeabi-v7a": "arm32", + } + v8_target_cpu = mapping[settings["//command_line_option:cpu"]] +- return {"@config//:v8_target_cpu": v8_target_cpu} ++ return {"@v8//bazel/config:v8_target_cpu": v8_target_cpu} + + # Set the v8_target_cpu to be the correct architecture given the cpu specified + # on the command line. + v8_target_cpu_transition = transition( + implementation = _v8_target_cpu_transition_impl, + inputs = ["//command_line_option:cpu"], +- outputs = ["@config//:v8_target_cpu"], ++ outputs = ["@v8//bazel/config:v8_target_cpu"], + ) + + def _mksnapshot(ctx): +diff --git a/bazel/generate-inspector-files.cmd b/bazel/generate-inspector-files.cmd +deleted file mode 100644 +index 202dd81d7c..0000000000 +--- a/bazel/generate-inspector-files.cmd ++++ /dev/null +@@ -1,24 +0,0 @@ +-REM Copyright 2021 the V8 project authors. All rights reserved. +-REM Use of this source code is governed by a BSD-style license that can be +-REM found in the LICENSE file. +- +-set BAZEL_OUT=%1 +- +-REM Bazel nukes all env vars, and we need the following for gn to work +-set DEPOT_TOOLS_WIN_TOOLCHAIN=0 +-set ProgramFiles(x86)=C:\Program Files (x86) +-set windir=C:\Windows +- +-REM Create a default GN output folder +-cmd.exe /S /E:ON /V:ON /D /c gn gen out/inspector +- +-REM Generate inspector files +-cmd.exe /S /E:ON /V:ON /D /c autoninja -C out/inspector gen/src/inspector/protocol/Forward.h +- +-REM Create directories in bazel output folder +-MKDIR -p %BAZEL_OUT%\include\inspector +-MKDIR -p %BAZEL_OUT%\src\inspector\protocol +- +-REM Copy generated files to bazel output folder +-COPY out\inspector\gen\include\inspector\* %BAZEL_OUT%\include\inspector\ +-COPY out\inspector\gen\src\inspector\protocol\* %BAZEL_OUT%\src\inspector\protocol\ +\ No newline at end of file +diff --git a/bazel/generate-inspector-files.sh b/bazel/generate-inspector-files.sh +deleted file mode 100755 +index 9547041c33..0000000000 +--- a/bazel/generate-inspector-files.sh ++++ /dev/null +@@ -1,21 +0,0 @@ +-# Copyright 2021 the V8 project authors. All rights reserved. +-# Use of this source code is governed by a BSD-style license that can be +-# found in the LICENSE file. +- +-set -e +- +-BAZEL_OUT=$1 +- +-# Create a default GN output folder +-gn gen out/inspector +- +-# Generate inspector files +-autoninja -C out/inspector src/inspector:protocol_generated_sources +- +-# Create directories in bazel output folder +-mkdir -p $BAZEL_OUT/include/inspector +-mkdir -p $BAZEL_OUT/src/inspector/protocol +- +-# Copy generated files to bazel output folder +-cp out/inspector/gen/include/inspector/* $BAZEL_OUT/include/inspector/ +-cp out/inspector/gen/src/inspector/protocol/* $BAZEL_OUT/src/inspector/protocol/ +diff --git a/bazel/requirements.in b/bazel/requirements.in +new file mode 100644 +index 0000000000..7f7afbf3bf +--- /dev/null ++++ b/bazel/requirements.in +@@ -0,0 +1 @@ ++jinja2 +diff --git a/bazel/requirements.txt b/bazel/requirements.txt +new file mode 100644 +index 0000000000..a9c132f688 +--- /dev/null ++++ b/bazel/requirements.txt +@@ -0,0 +1,81 @@ ++# ++# This file is autogenerated by pip-compile with python 3.9 ++# To update, run: ++# ++# pip-compile --generate-hashes requirements.in ++# ++jinja2==3.0.3 \ ++ --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ ++ --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 ++ # via -r requirements.in ++markupsafe==2.0.1 \ ++ --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ ++ --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ ++ --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ ++ --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ ++ --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ ++ --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ ++ --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ ++ --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ ++ --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ ++ --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ ++ --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ ++ --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ ++ --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ ++ --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ ++ --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ ++ --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ ++ --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ ++ --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ ++ --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ ++ --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ ++ --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ ++ --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ ++ --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ ++ --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ ++ --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ ++ --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ ++ --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ ++ --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ ++ --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ ++ --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ ++ --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ ++ --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ ++ --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ ++ --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ ++ --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ ++ --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ ++ --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ ++ --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ ++ --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ ++ --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ ++ --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ ++ --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ ++ --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ ++ --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ ++ --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ ++ --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ ++ --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ ++ --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ ++ --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ ++ --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ ++ --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ ++ --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ ++ --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ ++ --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ ++ --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ ++ --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ ++ --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ ++ --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ ++ --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ ++ --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ ++ --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ ++ --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ ++ --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ ++ --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ ++ --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ ++ --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ ++ --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ ++ --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ ++ --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 ++ # via jinja2 diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 7c4f65fb3..f2c99b4df 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") def proxy_wasm_cpp_host_repositories(): @@ -121,3 +122,39 @@ def proxy_wasm_cpp_host_repositories(): name = "wavm", actual = "@com_github_wavm_wavm//:wavm_lib", ) + + git_repository( + name = "v8", + commit = "11559b4461ac0c3328354229e03c2a989b104ff9", + remote = "https://chromium.googlesource.com/v8/v8", + shallow_since = "1641210631 +0000", + patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], + patch_args = ["-p1"], + ) + + new_git_repository( + name = "com_googlesource_chromium_trace_event_common", + build_file = "@v8//:bazel/BUILD.trace_event_common", + commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb", + remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", + shallow_since = "1635355186 -0700", + ) + + new_git_repository( + name = "com_googlesource_chromium_zlib", + build_file = "@v8//:bazel/BUILD.zlib", + commit = "efd9399ae01364926be2a38946127fdf463480db", + remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", + shallow_since = "1638492135 -0800", + ) + + http_archive( + name = "rules_python", + sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", + ) + + native.bind( + name = "wee8", + actual = "@v8//:wee8", + ) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index dd33f5b26..29f3de090 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -25,8 +25,8 @@ #include #include -#include "v8.h" -#include "v8-version.h" +#include "include/v8.h" +#include "include/v8-version.h" #include "wasm-api/wasm.hh" namespace proxy_wasm { From 5d1798b47a140cb287ff152301abfb39e026638b Mon Sep 17 00:00:00 2001 From: Faseela K Date: Wed, 5 Jan 2022 20:29:15 +0100 Subject: [PATCH 131/287] wasmtime: update to v0.32.1. (#212) Signed-off-by: Faseela K --- .github/workflows/cargo.yml | 2 +- bazel/cargo/BUILD.bazel | 2 +- bazel/cargo/Cargo.raze.lock | 129 +++------- bazel/cargo/Cargo.toml | 6 +- bazel/cargo/crates.bzl | 222 ++++++------------ .../remote/BUILD.block-buffer-0.9.0.bazel | 54 ----- .../remote/BUILD.cpufeatures-0.2.1.bazel | 68 ------ ...l => BUILD.cranelift-bforest-0.79.1.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.79.1.bazel} | 13 +- ...BUILD.cranelift-codegen-meta-0.79.1.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.79.1.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.79.1.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.79.1.bazel} | 4 +- ...el => BUILD.cranelift-native-0.79.1.bazel} | 4 +- ...azel => BUILD.cranelift-wasm-0.79.1.bazel} | 10 +- bazel/cargo/remote/BUILD.digest-0.9.0.bazel | 56 ----- .../remote/BUILD.generic-array-0.14.4.bazel | 97 -------- .../remote/BUILD.opaque-debug-0.3.0.bazel | 55 ----- bazel/cargo/remote/BUILD.sha2-0.9.8.bazel | 93 -------- bazel/cargo/remote/BUILD.typenum-1.15.0.bazel | 85 ------- .../remote/BUILD.version_check-0.9.4.bazel | 53 ----- ...32.0.bazel => BUILD.wasmtime-0.32.1.bazel} | 12 +- ... => BUILD.wasmtime-cranelift-0.32.1.bazel} | 14 +- ...el => BUILD.wasmtime-environ-0.32.1.bazel} | 6 +- ....bazel => BUILD.wasmtime-jit-0.32.1.bazel} | 6 +- ...el => BUILD.wasmtime-runtime-0.32.1.bazel} | 6 +- ...azel => BUILD.wasmtime-types-0.32.1.bazel} | 4 +- bazel/repositories.bzl | 6 +- 28 files changed, 154 insertions(+), 865 deletions(-) delete mode 100644 bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel delete mode 100644 bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel rename bazel/cargo/remote/{BUILD.cranelift-bforest-0.79.0.bazel => BUILD.cranelift-bforest-0.79.1.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-0.79.0.bazel => BUILD.cranelift-codegen-0.79.1.bazel} (86%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-meta-0.79.0.bazel => BUILD.cranelift-codegen-meta-0.79.1.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-shared-0.79.0.bazel => BUILD.cranelift-codegen-shared-0.79.1.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-entity-0.79.0.bazel => BUILD.cranelift-entity-0.79.1.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-frontend-0.79.0.bazel => BUILD.cranelift-frontend-0.79.1.bazel} (93%) rename bazel/cargo/remote/{BUILD.cranelift-native-0.79.0.bazel => BUILD.cranelift-native-0.79.1.bazel} (94%) rename bazel/cargo/remote/{BUILD.cranelift-wasm-0.79.0.bazel => BUILD.cranelift-wasm-0.79.1.bazel} (83%) delete mode 100644 bazel/cargo/remote/BUILD.digest-0.9.0.bazel delete mode 100644 bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel delete mode 100644 bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel delete mode 100644 bazel/cargo/remote/BUILD.sha2-0.9.8.bazel delete mode 100644 bazel/cargo/remote/BUILD.typenum-1.15.0.bazel delete mode 100644 bazel/cargo/remote/BUILD.version_check-0.9.4.bazel rename bazel/cargo/remote/{BUILD.wasmtime-0.32.0.bazel => BUILD.wasmtime-0.32.1.bazel} (91%) rename bazel/cargo/remote/{BUILD.wasmtime-cranelift-0.32.0.bazel => BUILD.wasmtime-cranelift-0.32.1.bazel} (79%) rename bazel/cargo/remote/{BUILD.wasmtime-environ-0.32.0.bazel => BUILD.wasmtime-environ-0.32.1.bazel} (91%) rename bazel/cargo/remote/{BUILD.wasmtime-jit-0.32.0.bazel => BUILD.wasmtime-jit-0.32.1.bazel} (94%) rename bazel/cargo/remote/{BUILD.wasmtime-runtime-0.32.0.bazel => BUILD.wasmtime-runtime-0.32.1.bazel} (98%) rename bazel/cargo/remote/{BUILD.wasmtime-types-0.32.0.bazel => BUILD.wasmtime-types-0.32.1.bazel} (93%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 3f3f3c8c6..775a5fab3 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -42,4 +42,4 @@ jobs: cargo raze # Ignore manual changes in "cpufeatures, errno and rustix" crate until fixed in cargo-raze. # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!remote/BUILD.cpufeatures-0.2.1.bazel' ':!remote/BUILD.errno-0.2.8.bazel' ':!remote/BUILD.rustix-0.26.2.bazel' + git diff --exit-code -- ':!remote/BUILD.errno-0.2.8.bazel' ':!remote/BUILD.rustix-0.26.2.bazel' diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index a3a8cd90c..17adfba2c 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -61,7 +61,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_32_0//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_32_1//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index 9ad0593d4..e50557e43 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -86,15 +86,6 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" -[[package]] -name = "block-buffer" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" -dependencies = [ - "generic-array", -] - [[package]] name = "byteorder" version = "1.4.3" @@ -137,29 +128,20 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "cpufeatures" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469" -dependencies = [ - "libc", -] - [[package]] name = "cranelift-bforest" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0fb5e025141af5b9cbfff4351dc393596d017725f126c954bf472ce78dbba6b" +checksum = "ebddaa5d12cb299b0bc7c930aff12c5591d4ba9aa84eea637807e07283b900aa" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a278c67cc48d0e8ff2275fb6fc31527def4be8f3d81640ecc8cd005a3aa45ded" +checksum = "da1daf5641177162644b521b64418564b8ed5deb126275a4d91472d13e7c72df" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -168,40 +150,39 @@ dependencies = [ "gimli", "log", "regalloc", - "sha2", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28274c1916c931c5603d94c5479d2ddacaaa574d298814ac1c99964ce92cbe85" +checksum = "001c1e9e540940c81596e547e732f99c2146c21ea7e82da99be961a1e86feefa" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5411cf49ab440b749d4da5129dfc45caf6e5fb7b2742b1fe1a421964fda2ee88" +checksum = "0ebaf07b5d7501cc606f41c81333bd63a5a17eb501362ccb10bc8ff5c03d0232" [[package]] name = "cranelift-entity" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64dde596f98462a37b029d81c8567c23cc68b8356b017f12945c545ac0a83203" +checksum = "a27ada0e3ffe5325179fc750252c18d614fa5470d595ce5c8a794c495434d80a" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "544605d400710bd9c89924050b30c2e0222a387a5a8b5f04da9a9fdcbd8656a5" +checksum = "2912c0eec9fd3df2dcf82b02b642caaa85d762b84ac5a3b27bc93a07eeeb64e2" dependencies = [ "cranelift-codegen", "log", @@ -211,9 +192,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7f8839befb64f7a39cb855241ae2c8eb74cea27c97fff2a007075fdb8a7f7d4" +checksum = "9fd20f78f378f55a70738a2eb9815dcd7e8455ff091b70701cfd086dd44927da" dependencies = [ "cranelift-codegen", "libc", @@ -222,9 +203,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.79.0" +version = "0.79.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80c9e14062c6a1cd2367dd30ea8945976639d5fe2062da8bdd40ada9ce3cb82e" +checksum = "353abcef10511d565b25bd00f3d7b1babcc040d9644c5259467c9a514dc945f0" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -245,15 +226,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "digest" -version = "0.9.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066" -dependencies = [ - "generic-array", -] - [[package]] name = "ed25519-compact" version = "1.0.1" @@ -309,16 +281,6 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" -[[package]] -name = "generic-array" -version = "0.14.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817" -dependencies = [ - "typenum", - "version_check", -] - [[package]] name = "getrandom" version = "0.2.3" @@ -482,12 +444,6 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" -[[package]] -name = "opaque-debug" -version = "0.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" - [[package]] name = "parity-wasm" version = "0.42.2" @@ -675,19 +631,6 @@ dependencies = [ "syn", ] -[[package]] -name = "sha2" -version = "0.9.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" -dependencies = [ - "block-buffer", - "cfg-if", - "cpufeatures", - "digest", - "opaque-debug", -] - [[package]] name = "smallvec" version = "1.7.0" @@ -761,12 +704,6 @@ dependencies = [ "syn", ] -[[package]] -name = "typenum" -version = "1.15.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987" - [[package]] name = "unicode-width" version = "0.1.9" @@ -785,12 +722,6 @@ version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" -[[package]] -name = "version_check" -version = "0.9.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" - [[package]] name = "wasi" version = "0.10.2+wasi-snapshot-preview1" @@ -819,9 +750,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "0.32.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d59b4bcc681f894d018e7032ba3149ab8e5f86828fab0b6ff31999c5691f20b" +checksum = "d56ceaa60d3019887d6ba5768860fac99f5a6511453e183cb3ba2aaafd9411f3" dependencies = [ "anyhow", "backtrace", @@ -849,7 +780,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.32.0" +version = "0.32.1" dependencies = [ "anyhow", "env_logger", @@ -862,7 +793,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.32.0#c1c4c59670f45a35ac73910662ab26201e9b6b07" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.32.1#309002b02183e949c5977e998cd4ae6a66da7d84" dependencies = [ "proc-macro2", "quote", @@ -870,9 +801,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.32.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d079ceda53d15a5d29e8f4f8d3fcf9a9bb589c05e29b49ea10d129b5ff8e09" +checksum = "e5793c2d14c7e2b962d1d79408df011190ec8f6214a01efd676f5e2266c44bc8" dependencies = [ "anyhow", "cranelift-codegen", @@ -892,9 +823,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.32.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c39e4ba1fb154cca6a0f2350acc83248e22defb0cc647ae78879fe246a49dd61" +checksum = "79131537408f938501b4f540ae0f61b456d9962c2bb590edefb904cf7d1e5f54" dependencies = [ "anyhow", "cranelift-entity", @@ -912,9 +843,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.32.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3dd538de9501eb0f2c4c7b3d8acc7f918276ca28591a67d4ebe0672ebd558b65" +checksum = "8031b6e83071b40b0139924024ee0d2e11f65f7677d7b028720df55610cbf994" dependencies = [ "addr2line", "anyhow", @@ -933,9 +864,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.32.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "910ccbd8cc18a02f626a1b2c7a7ddb57808db3c1780fd0af0aa5a5dae86c610b" +checksum = "b4c9412d752736938c2a57228fb95e13d40bdbc879ac741874e7f7b49c198ffa" dependencies = [ "anyhow", "backtrace", @@ -958,9 +889,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.32.0" +version = "0.32.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "115bfe5c6eb6aba7e4eaa931ce225871c40280fb2cfb4ce4d3ab98d082e52fc4" +checksum = "b1602b6ae8b901e60e8b9d51cadbf51a0421b7e67bf4cbe2e647695783fd9d45" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index 453494c59..e63abe9c0 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.32.0" +version = "0.32.1" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.32.0", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.32.0"} +wasmtime = {version = "0.32.1", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.32.1"} wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} [package.metadata.raze] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 52843127e..f6cdaa1e0 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -111,16 +111,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.3.2.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__block_buffer__0_9_0", - url = "https://crates.io/api/v1/crates/block-buffer/0.9.0/download", - type = "tar.gz", - sha256 = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4", - strip_prefix = "block-buffer-0.9.0", - build_file = Label("//bazel/cargo/remote:BUILD.block-buffer-0.9.0.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__byteorder__1_4_3", @@ -173,92 +163,82 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cpufeatures__0_2_1", - url = "https://crates.io/api/v1/crates/cpufeatures/0.2.1/download", - type = "tar.gz", - sha256 = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469", - strip_prefix = "cpufeatures-0.2.1", - build_file = Label("//bazel/cargo/remote:BUILD.cpufeatures-0.2.1.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.79.1/download", type = "tar.gz", - sha256 = "f0fb5e025141af5b9cbfff4351dc393596d017725f126c954bf472ce78dbba6b", - strip_prefix = "cranelift-bforest-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.79.0.bazel"), + sha256 = "ebddaa5d12cb299b0bc7c930aff12c5591d4ba9aa84eea637807e07283b900aa", + strip_prefix = "cranelift-bforest-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.79.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.79.1/download", type = "tar.gz", - sha256 = "a278c67cc48d0e8ff2275fb6fc31527def4be8f3d81640ecc8cd005a3aa45ded", - strip_prefix = "cranelift-codegen-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.79.0.bazel"), + sha256 = "da1daf5641177162644b521b64418564b8ed5deb126275a4d91472d13e7c72df", + strip_prefix = "cranelift-codegen-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.79.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.79.1/download", type = "tar.gz", - sha256 = "28274c1916c931c5603d94c5479d2ddacaaa574d298814ac1c99964ce92cbe85", - strip_prefix = "cranelift-codegen-meta-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.79.0.bazel"), + sha256 = "001c1e9e540940c81596e547e732f99c2146c21ea7e82da99be961a1e86feefa", + strip_prefix = "cranelift-codegen-meta-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.79.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.79.1/download", type = "tar.gz", - sha256 = "5411cf49ab440b749d4da5129dfc45caf6e5fb7b2742b1fe1a421964fda2ee88", - strip_prefix = "cranelift-codegen-shared-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.79.0.bazel"), + sha256 = "0ebaf07b5d7501cc606f41c81333bd63a5a17eb501362ccb10bc8ff5c03d0232", + strip_prefix = "cranelift-codegen-shared-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.79.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_entity__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.79.1/download", type = "tar.gz", - sha256 = "64dde596f98462a37b029d81c8567c23cc68b8356b017f12945c545ac0a83203", - strip_prefix = "cranelift-entity-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.79.0.bazel"), + sha256 = "a27ada0e3ffe5325179fc750252c18d614fa5470d595ce5c8a794c495434d80a", + strip_prefix = "cranelift-entity-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.79.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.79.1/download", type = "tar.gz", - sha256 = "544605d400710bd9c89924050b30c2e0222a387a5a8b5f04da9a9fdcbd8656a5", - strip_prefix = "cranelift-frontend-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.79.0.bazel"), + sha256 = "2912c0eec9fd3df2dcf82b02b642caaa85d762b84ac5a3b27bc93a07eeeb64e2", + strip_prefix = "cranelift-frontend-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.79.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_native__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-native/0.79.1/download", type = "tar.gz", - sha256 = "b7f8839befb64f7a39cb855241ae2c8eb74cea27c97fff2a007075fdb8a7f7d4", - strip_prefix = "cranelift-native-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.79.0.bazel"), + sha256 = "9fd20f78f378f55a70738a2eb9815dcd7e8455ff091b70701cfd086dd44927da", + strip_prefix = "cranelift-native-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.79.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_79_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.79.0/download", + name = "proxy_wasm_cpp_host__cranelift_wasm__0_79_1", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.79.1/download", type = "tar.gz", - sha256 = "80c9e14062c6a1cd2367dd30ea8945976639d5fe2062da8bdd40ada9ce3cb82e", - strip_prefix = "cranelift-wasm-0.79.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.79.0.bazel"), + sha256 = "353abcef10511d565b25bd00f3d7b1babcc040d9644c5259467c9a514dc945f0", + strip_prefix = "cranelift-wasm-0.79.1", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.79.1.bazel"), ) maybe( @@ -271,16 +251,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.crc32fast-1.3.0.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__digest__0_9_0", - url = "https://crates.io/api/v1/crates/digest/0.9.0/download", - type = "tar.gz", - sha256 = "d3dd60d1080a57a05ab032377049e0591415d2b31afd7028356dbf3cc6dcb066", - strip_prefix = "digest-0.9.0", - build_file = Label("//bazel/cargo/remote:BUILD.digest-0.9.0.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__ed25519_compact__1_0_1", @@ -341,16 +311,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.fallible-iterator-0.2.0.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__generic_array__0_14_4", - url = "https://crates.io/api/v1/crates/generic-array/0.14.4/download", - type = "tar.gz", - sha256 = "501466ecc8a30d1d3b7fc9229b122b2ce8ed6e9d9223f1138d4babb253e51817", - strip_prefix = "generic-array-0.14.4", - build_file = Label("//bazel/cargo/remote:BUILD.generic-array-0.14.4.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__getrandom__0_2_3", @@ -551,16 +511,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.9.0.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__opaque_debug__0_3_0", - url = "https://crates.io/api/v1/crates/opaque-debug/0.3.0/download", - type = "tar.gz", - sha256 = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5", - strip_prefix = "opaque-debug-0.3.0", - build_file = Label("//bazel/cargo/remote:BUILD.opaque-debug-0.3.0.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__parity_wasm__0_42_2", @@ -774,16 +724,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.133.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__sha2__0_9_8", - url = "https://crates.io/api/v1/crates/sha2/0.9.8/download", - type = "tar.gz", - sha256 = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa", - strip_prefix = "sha2-0.9.8", - build_file = Label("//bazel/cargo/remote:BUILD.sha2-0.9.8.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__smallvec__1_7_0", @@ -874,16 +814,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.30.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__typenum__1_15_0", - url = "https://crates.io/api/v1/crates/typenum/1.15.0/download", - type = "tar.gz", - sha256 = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987", - strip_prefix = "typenum-1.15.0", - build_file = Label("//bazel/cargo/remote:BUILD.typenum-1.15.0.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__unicode_width__0_1_9", @@ -914,16 +844,6 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): build_file = Label("//bazel/cargo/remote:BUILD.vec_map-0.8.2.bazel"), ) - maybe( - http_archive, - name = "proxy_wasm_cpp_host__version_check__0_9_4", - url = "https://crates.io/api/v1/crates/version_check/0.9.4/download", - type = "tar.gz", - sha256 = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f", - strip_prefix = "version_check-0.9.4", - build_file = Label("//bazel/cargo/remote:BUILD.version_check-0.9.4.bazel"), - ) - maybe( http_archive, name = "proxy_wasm_cpp_host__wasi__0_10_2_wasi_snapshot_preview1", @@ -955,71 +875,71 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_32_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.32.0/download", + name = "proxy_wasm_cpp_host__wasmtime__0_32_1", + url = "https://crates.io/api/v1/crates/wasmtime/0.32.1/download", type = "tar.gz", - sha256 = "5d59b4bcc681f894d018e7032ba3149ab8e5f86828fab0b6ff31999c5691f20b", - strip_prefix = "wasmtime-0.32.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.32.0.bazel"), + sha256 = "d56ceaa60d3019887d6ba5768860fac99f5a6511453e183cb3ba2aaafd9411f3", + strip_prefix = "wasmtime-0.32.1", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.32.1.bazel"), ) maybe( new_git_repository, name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "c1c4c59670f45a35ac73910662ab26201e9b6b07", + commit = "309002b02183e949c5977e998cd4ae6a66da7d84", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_32_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.32.0/download", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_32_1", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.32.1/download", type = "tar.gz", - sha256 = "30d079ceda53d15a5d29e8f4f8d3fcf9a9bb589c05e29b49ea10d129b5ff8e09", - strip_prefix = "wasmtime-cranelift-0.32.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.32.0.bazel"), + sha256 = "e5793c2d14c7e2b962d1d79408df011190ec8f6214a01efd676f5e2266c44bc8", + strip_prefix = "wasmtime-cranelift-0.32.1", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.32.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_32_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.32.0/download", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_32_1", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.32.1/download", type = "tar.gz", - sha256 = "c39e4ba1fb154cca6a0f2350acc83248e22defb0cc647ae78879fe246a49dd61", - strip_prefix = "wasmtime-environ-0.32.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.32.0.bazel"), + sha256 = "79131537408f938501b4f540ae0f61b456d9962c2bb590edefb904cf7d1e5f54", + strip_prefix = "wasmtime-environ-0.32.1", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.32.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_32_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.32.0/download", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_32_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.32.1/download", type = "tar.gz", - sha256 = "3dd538de9501eb0f2c4c7b3d8acc7f918276ca28591a67d4ebe0672ebd558b65", - strip_prefix = "wasmtime-jit-0.32.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.32.0.bazel"), + sha256 = "8031b6e83071b40b0139924024ee0d2e11f65f7677d7b028720df55610cbf994", + strip_prefix = "wasmtime-jit-0.32.1", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.32.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_32_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.32.0/download", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_32_1", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.32.1/download", type = "tar.gz", - sha256 = "910ccbd8cc18a02f626a1b2c7a7ddb57808db3c1780fd0af0aa5a5dae86c610b", - strip_prefix = "wasmtime-runtime-0.32.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.32.0.bazel"), + sha256 = "b4c9412d752736938c2a57228fb95e13d40bdbc879ac741874e7f7b49c198ffa", + strip_prefix = "wasmtime-runtime-0.32.1", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.32.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_types__0_32_0", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.32.0/download", + name = "proxy_wasm_cpp_host__wasmtime_types__0_32_1", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.32.1/download", type = "tar.gz", - sha256 = "115bfe5c6eb6aba7e4eaa931ce225871c40280fb2cfb4ce4d3ab98d082e52fc4", - strip_prefix = "wasmtime-types-0.32.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.32.0.bazel"), + sha256 = "b1602b6ae8b901e60e8b9d51cadbf51a0421b7e67bf4cbe2e647695783fd9d45", + strip_prefix = "wasmtime-types-0.32.1", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.32.1.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel b/bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel deleted file mode 100644 index 6c666387d..000000000 --- a/bazel/cargo/remote/BUILD.block-buffer-0.9.0.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "block_buffer", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__generic_array__0_14_4//:generic_array", - ], -) diff --git a/bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel b/bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel deleted file mode 100644 index 15a97cd02..000000000 --- a/bazel/cargo/remote/BUILD.cpufeatures-0.2.1.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cpufeatures", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.1", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(all(target_arch = "aarch64", target_os = "linux")), aarch64-apple-darwin - ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - ): [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "aarch64" with type "test" omitted - -# Unsupported target "x86" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel index ba2d19df8..0090686b1 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel index 0525a4e02..ace8d908b 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel @@ -57,11 +57,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_0//:cranelift_codegen_meta", - "@proxy_wasm_cpp_host__sha2__0_9_8//:sha2", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_1//:cranelift_codegen_meta", ], ) @@ -87,13 +86,13 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__cranelift_bforest__0_79_0//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_bforest__0_79_1//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_1//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__regalloc__0_0_33//:regalloc", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel index c840d2913..cf3619e18 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel @@ -46,9 +46,9 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_1//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel index 4c81ea602..68884a9d1 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel @@ -46,7 +46,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel index 50ea5a673..d33f2261c 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__serde__1_0_133//:serde", diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel index 2dc823bf6..f7cc24cbc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel @@ -48,10 +48,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.cranelift-native-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel index 8702e42f6..fecf1a404 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel @@ -50,10 +50,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.0.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel similarity index 83% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.79.0.bazel rename to bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel index 53bcb39bc..24b73da4f 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.0.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel @@ -48,17 +48,17 @@ rust_library( "cargo-raze", "manual", ], - version = "0.79.0", + version = "0.79.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_79_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_79_1//:cranelift_frontend", "@proxy_wasm_cpp_host__itertools__0_10_3//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_32_0//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmtime_types__0_32_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.digest-0.9.0.bazel b/bazel/cargo/remote/BUILD.digest-0.9.0.bazel deleted file mode 100644 index c825c43eb..000000000 --- a/bazel/cargo/remote/BUILD.digest-0.9.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "digest", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "std", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__generic_array__0_14_4//:generic_array", - ], -) diff --git a/bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel b/bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel deleted file mode 100644 index 720524bbc..000000000 --- a/bazel/cargo/remote/BUILD.generic-array-0.14.4.bazel +++ /dev/null @@ -1,97 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "generic_array_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.14.4", - visibility = ["//visibility:private"], - deps = [ - "@proxy_wasm_cpp_host__version_check__0_9_4//:version_check", - ], -) - -rust_library( - name = "generic_array", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.14.4", - # buildifier: leave-alone - deps = [ - ":generic_array_build_script", - "@proxy_wasm_cpp_host__typenum__1_15_0//:typenum", - ], -) - -# Unsupported target "arr" with type "test" omitted - -# Unsupported target "generics" with type "test" omitted - -# Unsupported target "hex" with type "test" omitted - -# Unsupported target "import_name" with type "test" omitted - -# Unsupported target "iter" with type "test" omitted - -# Unsupported target "mod" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel b/bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel deleted file mode 100644 index b10134cc0..000000000 --- a/bazel/cargo/remote/BUILD.opaque-debug-0.3.0.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "opaque_debug", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "mod" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.sha2-0.9.8.bazel b/bazel/cargo/remote/BUILD.sha2-0.9.8.bazel deleted file mode 100644 index 4ddcf9ada..000000000 --- a/bazel/cargo/remote/BUILD.sha2-0.9.8.bazel +++ /dev/null @@ -1,93 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "sha256" with type "bench" omitted - -# Unsupported target "sha512" with type "bench" omitted - -# Unsupported target "sha256sum" with type "example" omitted - -# Unsupported target "sha512sum" with type "example" omitted - -rust_library( - name = "sha2", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.8", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__block_buffer__0_9_0//:block_buffer", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__digest__0_9_0//:digest", - "@proxy_wasm_cpp_host__opaque_debug__0_3_0//:opaque_debug", - ] + selects.with_or({ - # cfg(any(target_arch = "aarch64", target_arch = "x86_64", target_arch = "x86")) - ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - "@proxy_wasm_cpp_host__cpufeatures__0_2_1//:cpufeatures", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "lib" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.typenum-1.15.0.bazel b/bazel/cargo/remote/BUILD.typenum-1.15.0.bazel deleted file mode 100644 index a0f11488b..000000000 --- a/bazel/cargo/remote/BUILD.typenum-1.15.0.bazel +++ /dev/null @@ -1,85 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "typenum_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build/main.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.15.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "typenum", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.15.0", - # buildifier: leave-alone - deps = [ - ":typenum_build_script", - ], -) - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.version_check-0.9.4.bazel b/bazel/cargo/remote/BUILD.version_check-0.9.4.bazel deleted file mode 100644 index 696b95722..000000000 --- a/bazel/cargo/remote/BUILD.version_check-0.9.4.bazel +++ /dev/null @@ -1,53 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:rust.bzl", - "rust_binary", - "rust_library", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "version_check", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - crate_type = "lib", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.4", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.32.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.wasmtime-0.32.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel index f76481a90..5ac367d6e 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.32.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -92,7 +92,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", # buildifier: leave-alone deps = [ ":wasmtime_build_script", @@ -112,10 +112,10 @@ rust_library( "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_32_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_32_0//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_32_1//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_32_1//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel similarity index 79% rename from bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel index 37d62f610..3443915c1 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel @@ -46,15 +46,15 @@ rust_library( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_79_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_79_0//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_79_0//:cranelift_wasm", + "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_79_1//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_79_1//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_79_1//:cranelift_wasm", "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", @@ -62,6 +62,6 @@ rust_library( "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.32.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel index f2ae2a18a..56bc827b8 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel @@ -46,11 +46,11 @@ rust_library( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", "@proxy_wasm_cpp_host__log__0_4_14//:log", @@ -60,6 +60,6 @@ rust_library( "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_32_0//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmtime_types__0_32_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.wasmtime-jit-0.32.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel index e4ed552d0..18ed39884 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel @@ -48,7 +48,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__addr2line__0_17_0//:addr2line", @@ -61,8 +61,8 @@ rust_library( "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_0//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel index 623567b52..8548626aa 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", @@ -131,7 +131,7 @@ rust_library( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", @@ -147,7 +147,7 @@ rust_library( "@proxy_wasm_cpp_host__rand__0_8_4//:rand", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "linux") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-types-0.32.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.wasmtime-types-0.32.0.bazel rename to bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel index 90a309d45..2cbbbaa93 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-types-0.32.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel @@ -46,10 +46,10 @@ rust_library( "cargo-raze", "manual", ], - version = "0.32.0", + version = "0.32.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_79_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index f2c99b4df..8ce71b491 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -70,9 +70,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "47d823a71c2512f201b772fae73912c22882385197d67ece6855f29393516147", - strip_prefix = "wasmtime-0.32.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.32.0.tar.gz", + sha256 = "80b5b3d149776bd56a872730775445bdfba1fb6a75eb79230a7686092932c1dc", + strip_prefix = "wasmtime-0.32.1", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.32.1.tar.gz", ) http_archive( From af1728efccef6e69747abaf608f68a399c765a7c Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 5 Jan 2022 18:17:17 -0600 Subject: [PATCH 132/287] build: improve caching. (#210) There is a lot of unnecessary data in Bazel's cache, so this commit removes Bazel's repository cache (~700 MiB), install base (150 MiB) and tarballs from the Rust toolchain (350 MiB) before saving cache. This decreases the cache size for each OS+runtime combination from 1.8 GiB to 700 MiB, which means that we can save cache from 2 runs with 7 combinations using GitHub's 10 GiB total storage. Additionally, Wasmtime builds so fast that we can disable cache to free 2 slots for future OS+runtime combinations. While there, fix caching on macOS, which uses a different location. Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 547fdfc64..cb344058b 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -99,12 +99,13 @@ jobs: if: startsWith(matrix.os, 'macos') run: brew install ninja - - name: Mount Bazel cache + - name: Bazel cache + if: matrix.runtime != 'wasmtime' uses: actions/cache@v2 with: path: | ~/.cache/bazel - ~/.cache/bazelisk + /private/var/tmp/_bazel_runner/ key: bazel-${{ matrix.os }}-${{ matrix.runtime }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} - name: Test @@ -114,3 +115,27 @@ jobs: - name: Test (signed Wasm module) run: | bazel test --test_output=errors --define runtime=${{ matrix.runtime }} --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test + + - name: Cleanup Bazel cache + if: matrix.runtime != 'wasmtime' + run: | + export OUTPUT=$(bazel info output_base) + # BoringSSL's test data (90 MiB). + rm -rf ${OUTPUT}/external/boringssl/crypto_test_data.cc + rm -rf ${OUTPUT}/external/boringssl/src/crypto/*/test/ + rm -rf ${OUTPUT}/external/boringssl/src/third_party/wycheproof_testvectors/ + # LLVM's tests (500 MiB). + rm -rf ${OUTPUT}/external/llvm*/test/ + # V8's tests (100 MiB). + if [ -d "${OUTPUT}/external/v8/test/torque" ]; then + mv ${OUTPUT}/external/v8/test/torque ${OUTPUT}/external/v8/test_torque + rm -rf ${OUTPUT}/external/v8/test/* + mv ${OUTPUT}/external/v8/test_torque ${OUTPUT}/external/v8/test/torque + fi + # Unnecessary CMake tools (65 MiB). + rm -rf ${OUTPUT}/external/cmake-*/bin/{ccmake,cmake-gui,cpack,ctest} + # Distfiles for Rust toolchains (350 MiB). + rm -rf ${OUTPUT}/external/rust_*/*.tar.gz + # Bazel's repository cache (650-800 MiB) and install base (155 MiB). + rm -rf $(bazel info repository_cache) + rm -rf $(bazel info install_base) From 0df122436a8ab94ae742d0402c2ed3b4fc43add0 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 5 Jan 2022 20:46:36 -0600 Subject: [PATCH 133/287] Update cargo-raze to v0.14.1. (#213) Signed-off-by: Piotr Sikora --- .github/workflows/cargo.yml | 6 +- bazel/cargo/BUILD.bazel | 10 ++-- .../cargo/remote/BUILD.addr2line-0.17.0.bazel | 5 +- bazel/cargo/remote/BUILD.adler-1.0.2.bazel | 5 +- .../remote/BUILD.aho-corasick-0.7.18.bazel | 5 +- .../cargo/remote/BUILD.ansi_term-0.12.1.bazel | 5 +- bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel | 5 +- bazel/cargo/remote/BUILD.atty-0.2.14.bazel | 13 ++-- bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel | 5 +- .../cargo/remote/BUILD.backtrace-0.3.63.bazel | 27 ++------- bazel/cargo/remote/BUILD.bincode-1.3.3.bazel | 5 +- bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel | 5 +- .../cargo/remote/BUILD.byteorder-1.4.3.bazel | 5 +- bazel/cargo/remote/BUILD.cc-1.0.72.bazel | 6 +- bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel | 5 +- bazel/cargo/remote/BUILD.clap-2.34.0.bazel | 13 ++-- .../remote/BUILD.cpp_demangle-0.3.5.bazel | 6 +- .../BUILD.cranelift-bforest-0.79.1.bazel | 5 +- .../BUILD.cranelift-codegen-0.79.1.bazel | 5 +- .../BUILD.cranelift-codegen-meta-0.79.1.bazel | 5 +- ...UILD.cranelift-codegen-shared-0.79.1.bazel | 5 +- .../BUILD.cranelift-entity-0.79.1.bazel | 5 +- .../BUILD.cranelift-frontend-0.79.1.bazel | 5 +- .../BUILD.cranelift-native-0.79.1.bazel | 5 +- .../remote/BUILD.cranelift-wasm-0.79.1.bazel | 5 +- .../cargo/remote/BUILD.crc32fast-1.3.0.bazel | 5 +- .../remote/BUILD.ed25519-compact-1.0.1.bazel | 5 +- bazel/cargo/remote/BUILD.either-1.6.1.bazel | 5 +- .../cargo/remote/BUILD.env_logger-0.8.4.bazel | 5 +- bazel/cargo/remote/BUILD.errno-0.2.8.bazel | 13 ++-- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 5 +- .../BUILD.fallible-iterator-0.2.0.bazel | 5 +- .../cargo/remote/BUILD.getrandom-0.2.3.bazel | 20 +++---- bazel/cargo/remote/BUILD.gimli-0.26.1.bazel | 5 +- .../cargo/remote/BUILD.hashbrown-0.11.2.bazel | 5 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 5 +- .../remote/BUILD.hmac-sha512-1.1.1.bazel | 5 +- .../cargo/remote/BUILD.humantime-2.1.0.bazel | 5 +- bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel | 5 +- .../remote/BUILD.io-lifetimes-0.3.3.bazel | 53 +---------------- .../cargo/remote/BUILD.itertools-0.10.3.bazel | 5 +- .../remote/BUILD.lazy_static-1.4.0.bazel | 5 +- bazel/cargo/remote/BUILD.libc-0.2.112.bazel | 5 +- .../remote/BUILD.linux-raw-sys-0.0.36.bazel | 5 +- bazel/cargo/remote/BUILD.log-0.4.14.bazel | 5 +- bazel/cargo/remote/BUILD.mach-0.3.2.bazel | 9 +-- bazel/cargo/remote/BUILD.memchr-2.4.1.bazel | 5 +- .../cargo/remote/BUILD.memoffset-0.6.5.bazel | 5 +- .../remote/BUILD.miniz_oxide-0.4.4.bazel | 5 +- .../remote/BUILD.more-asserts-0.2.2.bazel | 5 +- bazel/cargo/remote/BUILD.object-0.27.1.bazel | 5 +- .../cargo/remote/BUILD.once_cell-1.9.0.bazel | 5 +- .../remote/BUILD.parity-wasm-0.42.2.bazel | 5 +- bazel/cargo/remote/BUILD.paste-1.0.6.bazel | 7 ++- .../remote/BUILD.ppv-lite86-0.2.16.bazel | 5 +- .../remote/BUILD.proc-macro2-1.0.36.bazel | 5 +- bazel/cargo/remote/BUILD.psm-0.1.16.bazel | 5 +- bazel/cargo/remote/BUILD.quote-1.0.14.bazel | 5 +- bazel/cargo/remote/BUILD.rand-0.8.4.bazel | 41 ++++++++++--- .../remote/BUILD.rand_chacha-0.3.1.bazel | 5 +- .../cargo/remote/BUILD.rand_core-0.6.3.bazel | 5 +- bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel | 5 +- .../cargo/remote/BUILD.regalloc-0.0.33.bazel | 5 +- bazel/cargo/remote/BUILD.regex-1.5.4.bazel | 5 +- .../remote/BUILD.regex-syntax-0.6.25.bazel | 5 +- bazel/cargo/remote/BUILD.region-2.2.0.bazel | 9 +-- .../remote/BUILD.rustc-demangle-0.1.21.bazel | 5 +- .../cargo/remote/BUILD.rustc-hash-1.1.0.bazel | 5 +- .../remote/BUILD.rustc_version-0.4.0.bazel | 5 +- bazel/cargo/remote/BUILD.rustix-0.26.2.bazel | 59 +++++-------------- bazel/cargo/remote/BUILD.semver-1.0.4.bazel | 5 +- bazel/cargo/remote/BUILD.serde-1.0.133.bazel | 5 +- .../remote/BUILD.serde_derive-1.0.133.bazel | 7 ++- bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel | 5 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 5 +- bazel/cargo/remote/BUILD.strsim-0.8.0.bazel | 5 +- bazel/cargo/remote/BUILD.syn-1.0.84.bazel | 5 +- .../remote/BUILD.target-lexicon-0.12.2.bazel | 5 +- .../cargo/remote/BUILD.termcolor-1.1.2.bazel | 5 +- .../cargo/remote/BUILD.textwrap-0.11.0.bazel | 5 +- .../cargo/remote/BUILD.thiserror-1.0.30.bazel | 5 +- .../remote/BUILD.thiserror-impl-1.0.30.bazel | 7 ++- .../remote/BUILD.unicode-width-0.1.9.bazel | 5 +- .../remote/BUILD.unicode-xid-0.2.2.bazel | 5 +- bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel | 5 +- ...D.wasi-0.10.2+wasi-snapshot-preview1.bazel | 5 +- .../remote/BUILD.wasmparser-0.81.0.bazel | 5 +- bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel | 6 +- .../cargo/remote/BUILD.wasmtime-0.32.1.bazel | 5 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 7 ++- .../BUILD.wasmtime-cranelift-0.32.1.bazel | 5 +- .../BUILD.wasmtime-environ-0.32.1.bazel | 5 +- .../remote/BUILD.wasmtime-jit-0.32.1.bazel | 17 +----- .../BUILD.wasmtime-runtime-0.32.1.bazel | 49 ++++----------- .../remote/BUILD.wasmtime-types-0.32.1.bazel | 5 +- bazel/cargo/remote/BUILD.winapi-0.3.9.bazel | 5 +- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 5 +- .../remote/BUILD.winapi-util-0.1.5.bazel | 5 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 5 +- 99 files changed, 380 insertions(+), 395 deletions(-) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 775a5fab3..199316c72 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -38,8 +38,8 @@ jobs: - name: Format (cargo raze) working-directory: bazel/cargo run: | - cargo install cargo-raze --version 0.12.0 + cargo install cargo-raze --version 0.14.1 cargo raze - # Ignore manual changes in "cpufeatures, errno and rustix" crate until fixed in cargo-raze. + # Ignore manual changes in "errno" crate until fixed in cargo-raze. # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!remote/BUILD.errno-0.2.8.bazel' ':!remote/BUILD.rustix-0.26.2.bazel' + git diff --exit-code -- ':!remote/BUILD.errno-0.2.8.bazel' diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index 17adfba2c..af2530172 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -40,8 +40,8 @@ alias( ) alias( - name = "wasmsign", - actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:wasmsign", + name = "cargo_bin_wasmsign", + actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:cargo_bin_wasmsign", tags = [ "cargo-raze", "manual", @@ -49,10 +49,8 @@ alias( ) alias( - # Extra aliased target, from raze configuration - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_wasmsign", - actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:cargo_bin_wasmsign", + name = "wasmsign", + actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:wasmsign", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel b/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel index d87d340a8..69cafd18c 100644 --- a/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel +++ b/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=addr2line", "manual", ], version = "0.17.0", diff --git a/bazel/cargo/remote/BUILD.adler-1.0.2.bazel b/bazel/cargo/remote/BUILD.adler-1.0.2.bazel index c5cb69602..a2b439c74 100644 --- a/bazel/cargo/remote/BUILD.adler-1.0.2.bazel +++ b/bazel/cargo/remote/BUILD.adler-1.0.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=adler", "manual", ], version = "1.0.2", diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel b/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel index 10c3278c5..a5442568b 100644 --- a/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel +++ b/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=aho_corasick", "manual", ], version = "0.7.18", diff --git a/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel b/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel index 08d694018..b449edf68 100644 --- a/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel +++ b/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -44,7 +45,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -52,6 +52,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=ansi_term", "manual", ], version = "0.12.1", diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel b/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel index 04fb0855a..7b217342c 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel +++ b/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -69,7 +70,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -77,6 +77,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=anyhow", "manual", ], version = "1.0.52", diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel index f17e93133..fe14a6ec8 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/remote/BUILD.atty-0.2.14.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -40,7 +41,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -48,6 +48,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=atty", "manual", ], version = "0.2.14", @@ -56,22 +57,22 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel index 22a819b6e..2e0c8bcad 100644 --- a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -44,7 +45,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -52,6 +52,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=autocfg", "manual", ], version = "1.0.1", diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel b/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel index c0d3c6043..68cf4beb4 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel +++ b/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -59,15 +60,7 @@ cargo_build_script( visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - ], - "//conditions:default": [], - }), + ], ) # Unsupported target "benchmarks" with type "bench" omitted @@ -79,14 +72,11 @@ cargo_build_script( rust_library( name = "backtrace", srcs = glob(["**/*.rs"]), - aliases = { - }, crate_features = [ "default", "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -94,6 +84,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=backtrace", "manual", ], version = "0.3.63", @@ -106,15 +97,7 @@ rust_library( "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - ], - "//conditions:default": [], - }), + ], ) # Unsupported target "accuracy" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel index b3e0197ab..e7f5a53ca 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=bincode", "manual", ], version = "1.3.3", diff --git a/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel index 6f45176aa..4ebcf1821 100644 --- a/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -37,7 +38,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -45,6 +45,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=bitflags", "manual", ], version = "1.3.2", diff --git a/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel b/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel index b998b1fbd..3f8147957 100644 --- a/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel +++ b/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -40,7 +41,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -48,6 +48,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=byteorder", "manual", ], version = "1.4.3", diff --git a/bazel/cargo/remote/BUILD.cc-1.0.72.bazel b/bazel/cargo/remote/BUILD.cc-1.0.72.bazel index 0a37f0614..717ee45dd 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.72.bazel +++ b/bazel/cargo/remote/BUILD.cc-1.0.72.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -45,6 +46,7 @@ rust_binary( ], tags = [ "cargo-raze", + "crate-name=gcc-shim", "manual", ], version = "1.0.72", @@ -60,7 +62,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -68,6 +69,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cc", "manual", ], version = "1.0.72", diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel index c921ef918..6408a6f83 100644 --- a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cfg-if", "manual", ], version = "1.0.0", diff --git a/bazel/cargo/remote/BUILD.clap-2.34.0.bazel b/bazel/cargo/remote/BUILD.clap-2.34.0.bazel index e5dd171b4..d519b1939 100644 --- a/bazel/cargo/remote/BUILD.clap-2.34.0.bazel +++ b/bazel/cargo/remote/BUILD.clap-2.34.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -45,7 +46,6 @@ rust_library( "vec_map", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -53,6 +53,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=clap", "manual", ], version = "2.34.0", @@ -67,24 +68,24 @@ rust_library( ] + selects.with_or({ # cfg(not(windows)) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ "@proxy_wasm_cpp_host__ansi_term__0_12_1//:ansi_term", ], diff --git a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel index 4f5801e72..9389cf15a 100644 --- a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel +++ b/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -78,6 +79,7 @@ rust_binary( ], tags = [ "cargo-raze", + "crate-name=afl_runner", "manual", ], version = "0.3.5", @@ -99,7 +101,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -107,6 +108,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cpp_demangle", "manual", ], version = "0.3.5", diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel index 0090686b1..1d1275711 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-bforest", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel index ace8d908b..21904439e 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -76,7 +77,6 @@ rust_library( "unwind", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -84,6 +84,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-codegen", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel index cf3619e18..cceca2362 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-codegen-meta", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel index 68884a9d1..2dad0e951 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-codegen-shared", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel index d33f2261c..b5b5aa08d 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "serde", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-entity", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel index f7cc24cbc..96b4dc6cd 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-frontend", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel index fecf1a404..c6ecf3926 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -40,7 +41,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -48,6 +48,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-native", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel index 24b73da4f..3735122cc 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=cranelift-wasm", "manual", ], version = "0.79.1", diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel b/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel index 060463abb..b6bd4b14b 100644 --- a/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel +++ b/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -71,7 +72,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -79,6 +79,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=crc32fast", "manual", ], version = "1.3.0", diff --git a/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel b/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel index 61e69f595..9d44aab53 100644 --- a/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel +++ b/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -40,7 +41,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -48,6 +48,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=ed25519-compact", "manual", ], version = "1.0.1", diff --git a/bazel/cargo/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/remote/BUILD.either-1.6.1.bazel index 49161e7d1..b096446c2 100644 --- a/bazel/cargo/remote/BUILD.either-1.6.1.bazel +++ b/bazel/cargo/remote/BUILD.either-1.6.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=either", "manual", ], version = "1.6.1", diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel b/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel index f3b304ffa..f468b75f6 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel +++ b/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -41,7 +42,6 @@ rust_library( "termcolor", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -49,6 +49,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=env_logger", "manual", ], version = "0.8.4", diff --git a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel index a04969af3..ae421ea79 100644 --- a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=errno", "manual", ], version = "0.2.8", @@ -54,22 +55,22 @@ rust_library( ] + selects.with_or({ # cfg(unix), cfg(target_os = "wasi") ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-wasi", ): [ "@proxy_wasm_cpp_host__libc__0_2_112//:libc", diff --git a/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel index 28708fd38..b84aa3e7e 100644 --- a/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -66,7 +67,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -74,6 +74,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=errno-dragonfly", "manual", ], version = "0.1.2", diff --git a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel index 8ec69bc6c..e9944e278 100644 --- a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -37,7 +38,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -45,6 +45,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=fallible-iterator", "manual", ], version = "0.2.0", diff --git a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel index d0bde06a4..4a8f2b4df 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel +++ b/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -41,7 +42,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -49,6 +49,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=getrandom", "manual", ], version = "0.2.3", @@ -56,13 +57,6 @@ rust_library( deps = [ "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", ] + selects.with_or({ - # cfg(all(target_arch = "wasm32", target_os = "unknown")) - ( - "@rules_rust//rust/platform:wasm32-unknown-unknown", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(target_os = "wasi") ( "@rules_rust//rust/platform:wasm32-wasi", @@ -73,22 +67,22 @@ rust_library( }) + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], diff --git a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel index 1353bbc43..32af71490 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -53,7 +54,6 @@ rust_library( "write", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -61,6 +61,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=gimli", "manual", ], version = "0.26.1", diff --git a/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel b/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel index 48449f9fd..f548e2a7a 100644 --- a/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel +++ b/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -39,7 +40,6 @@ rust_library( "raw", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -47,6 +47,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=hashbrown", "manual", ], version = "0.11.2", diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel index 047c88bda..c6fc7646e 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -37,7 +38,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -45,6 +45,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=hermit-abi", "manual", ], version = "0.1.19", diff --git a/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel b/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel index 2d7f8e1c1..4f79876ea 100644 --- a/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel +++ b/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "sha384", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=hmac-sha512", "manual", ], version = "1.1.1", diff --git a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel index a4fa1f98b..9bd5ad1cd 100644 --- a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -40,7 +41,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -48,6 +48,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=humantime", "manual", ], version = "2.1.0", diff --git a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel index 1b98e8cbd..4df0d001c 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -76,7 +77,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -84,6 +84,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=indexmap", "manual", ], version = "1.7.0", diff --git a/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel b/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel index b989175ea..6a39c4525 100644 --- a/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel +++ b/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -58,30 +59,6 @@ cargo_build_script( deps = [ "@proxy_wasm_cpp_host__rustc_version__0_4_0//:rustc_version", ] + selects.with_or({ - # cfg(not(windows)) - ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(windows) ( "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -110,7 +87,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -118,6 +94,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=io-lifetimes", "manual", ], version = "0.3.3", @@ -125,30 +102,6 @@ rust_library( deps = [ ":io_lifetimes_build_script", ] + selects.with_or({ - # cfg(not(windows)) - ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(windows) ( "@rules_rust//rust/platform:i686-pc-windows-msvc", diff --git a/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel b/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel index 717a1acff..50c2644d5 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel +++ b/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -57,7 +58,6 @@ rust_library( "use_std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -65,6 +65,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=itertools", "manual", ], version = "0.10.3", diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel index b414da825..b0f697e88 100644 --- a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel +++ b/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=lazy_static", "manual", ], version = "1.4.0", diff --git a/bazel/cargo/remote/BUILD.libc-0.2.112.bazel b/bazel/cargo/remote/BUILD.libc-0.2.112.bazel index 3923e14b4..d92e14c24 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.112.bazel +++ b/bazel/cargo/remote/BUILD.libc-0.2.112.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -71,7 +72,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -79,6 +79,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=libc", "manual", ], version = "0.2.112", diff --git a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel index d33c0aa5e..46b903231 100644 --- a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel +++ b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -41,7 +42,6 @@ rust_library( "v5_4", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -49,6 +49,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=linux-raw-sys", "manual", ], version = "0.0.36", diff --git a/bazel/cargo/remote/BUILD.log-0.4.14.bazel b/bazel/cargo/remote/BUILD.log-0.4.14.bazel index a0d2abe3f..56a6b771b 100644 --- a/bazel/cargo/remote/BUILD.log-0.4.14.bazel +++ b/bazel/cargo/remote/BUILD.log-0.4.14.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -69,7 +70,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -77,6 +77,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=log", "manual", ], version = "0.4.14", diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel index 57db3d2fc..cc8147649 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/remote/BUILD.mach-0.3.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -41,7 +42,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -49,6 +49,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=mach", "manual", ], version = "0.3.2", @@ -57,10 +58,10 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ "@proxy_wasm_cpp_host__libc__0_2_112//:libc", diff --git a/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel b/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel index 693ef67e1..6a7af6600 100644 --- a/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel +++ b/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -69,7 +70,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -77,6 +77,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=memchr", "manual", ], version = "2.4.1", diff --git a/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel b/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel index d12e8f0a1..3f80e639c 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel +++ b/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -68,7 +69,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -76,6 +76,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=memoffset", "manual", ], version = "0.6.5", diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel index 414ae0899..1b31c6366 100644 --- a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel +++ b/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -66,7 +67,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -74,6 +74,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=miniz_oxide", "manual", ], version = "0.4.4", diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel b/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel index 594c67e58..2e2cbab0d 100644 --- a/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel +++ b/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=more-asserts", "manual", ], version = "0.2.2", diff --git a/bazel/cargo/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/remote/BUILD.object-0.27.1.bazel index 00b2e032b..62fe17e12 100644 --- a/bazel/cargo/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/remote/BUILD.object-0.27.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -48,7 +49,6 @@ rust_library( "write_core", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -56,6 +56,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=object", "manual", ], version = "0.27.1", diff --git a/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel b/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel index 09e114533..32942256f 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel +++ b/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -54,7 +55,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -62,6 +62,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=once_cell", "manual", ], version = "1.9.0", diff --git a/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel b/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel index cdce833cf..0c19037b5 100644 --- a/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel +++ b/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -54,7 +55,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -62,6 +62,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=parity-wasm", "manual", ], version = "0.42.2", diff --git a/bazel/cargo/remote/BUILD.paste-1.0.6.bazel b/bazel/cargo/remote/BUILD.paste-1.0.6.bazel index 5c307b9b5..a12c78af6 100644 --- a/bazel/cargo/remote/BUILD.paste-1.0.6.bazel +++ b/bazel/cargo/remote/BUILD.paste-1.0.6.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -30,13 +31,12 @@ licenses([ # Generated Targets -rust_library( +rust_proc_macro( name = "paste", srcs = glob(["**/*.rs"]), crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "proc-macro", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=paste", "manual", ], version = "1.0.6", diff --git a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel index f95da4268..b18e4c2f3 100644 --- a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel +++ b/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=ppv-lite86", "manual", ], version = "0.2.16", diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel b/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel index 42ed6301b..f0b2b47e6 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel +++ b/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -69,7 +70,6 @@ rust_library( "proc-macro", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -77,6 +77,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=proc-macro2", "manual", ], version = "1.0.36", diff --git a/bazel/cargo/remote/BUILD.psm-0.1.16.bazel b/bazel/cargo/remote/BUILD.psm-0.1.16.bazel index 6caa78ec0..972d2814a 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.16.bazel +++ b/bazel/cargo/remote/BUILD.psm-0.1.16.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -78,7 +79,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -86,6 +86,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=psm", "manual", ], version = "0.1.16", diff --git a/bazel/cargo/remote/BUILD.quote-1.0.14.bazel b/bazel/cargo/remote/BUILD.quote-1.0.14.bazel index 8679b4018..8e29e7d2d 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.14.bazel +++ b/bazel/cargo/remote/BUILD.quote-1.0.14.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "proc-macro", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=quote", "manual", ], version = "1.0.14", diff --git a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel index 5114efbe1..b09eb1afd 100644 --- a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel +++ b/bazel/cargo/remote/BUILD.rand-0.8.4.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -46,7 +47,6 @@ rust_library( "std_rng", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -54,32 +54,59 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rand", "manual", ], version = "0.8.4", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__rand_chacha__0_3_1//:rand_chacha", "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", ] + selects.with_or({ - # cfg(unix) + # cfg(not(target_os = "emscripten")) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@proxy_wasm_cpp_host__rand_chacha__0_3_1//:rand_chacha", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel index 1f028399c..7a3470d81 100644 --- a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -37,7 +38,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -45,6 +45,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rand_chacha", "manual", ], version = "0.3.1", diff --git a/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel b/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel index 9d71822a4..2627acc86 100644 --- a/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel +++ b/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -39,7 +40,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -47,6 +47,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rand_core", "manual", ], version = "0.6.3", diff --git a/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel b/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel index f3188afbd..01cc82ad4 100644 --- a/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel +++ b/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rand_hc", "manual", ], version = "0.3.1", diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel b/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel index 7a5ea3884..cdd2deaad 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel +++ b/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -37,7 +38,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -45,6 +45,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=regalloc", "manual", ], version = "0.0.33", diff --git a/bazel/cargo/remote/BUILD.regex-1.5.4.bazel b/bazel/cargo/remote/BUILD.regex-1.5.4.bazel index 7d5894bd8..8edd77791 100644 --- a/bazel/cargo/remote/BUILD.regex-1.5.4.bazel +++ b/bazel/cargo/remote/BUILD.regex-1.5.4.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -56,7 +57,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -64,6 +64,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=regex", "manual", ], version = "1.5.4", diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel b/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel index fbc65b8ad..31e894472 100644 --- a/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel +++ b/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=regex-syntax", "manual", ], version = "0.6.25", diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/remote/BUILD.region-2.2.0.bazel index 7d9dcd1a9..1e7fbc8bc 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/remote/BUILD.region-2.2.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=region", "manual", ], version = "2.2.0", @@ -56,10 +57,10 @@ rust_library( ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ "@proxy_wasm_cpp_host__mach__0_3_2//:mach", diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel index eae75a7ef..be128de4a 100644 --- a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel +++ b/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rustc-demangle", "manual", ], version = "0.1.21", diff --git a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel index f3571d78f..3db447526 100644 --- a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rustc-hash", "manual", ], version = "1.1.0", diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel index 63b3740dc..fdad27d8e 100644 --- a/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rustc_version", "manual", ], version = "0.4.0", diff --git a/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel b/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel index 094104810..2b2177685 100644 --- a/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel +++ b/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -65,10 +66,10 @@ cargo_build_script( ] + selects.with_or({ # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ "@proxy_wasm_cpp_host__linux_raw_sys__0_0_36//:linux_raw_sys", ], @@ -76,40 +77,25 @@ cargo_build_script( }) + selects.with_or({ # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ ], "//conditions:default": [], - }) + selects.with_or({ - # cfg(any(target_os = "android", target_os = "linux")) - ( - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], }) + selects.with_or({ # cfg(windows) ( @@ -140,7 +126,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -149,6 +134,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=rustix", "manual", ], version = "0.26.2", @@ -160,10 +146,10 @@ rust_library( ] + selects.with_or({ # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ "@proxy_wasm_cpp_host__linux_raw_sys__0_0_36//:linux_raw_sys", ], @@ -171,42 +157,27 @@ rust_library( }) + selects.with_or({ # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@proxy_wasm_cpp_host__errno__0_2_8//:errno", "@proxy_wasm_cpp_host__libc__0_2_112//:libc", ], "//conditions:default": [], - }) + selects.with_or({ - # cfg(any(target_os = "android", target_os = "linux")) - ( - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], }) + selects.with_or({ # cfg(windows) ( diff --git a/bazel/cargo/remote/BUILD.semver-1.0.4.bazel b/bazel/cargo/remote/BUILD.semver-1.0.4.bazel index 332aa8d16..4dad16563 100644 --- a/bazel/cargo/remote/BUILD.semver-1.0.4.bazel +++ b/bazel/cargo/remote/BUILD.semver-1.0.4.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -71,7 +72,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -79,6 +79,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=semver", "manual", ], version = "1.0.4", diff --git a/bazel/cargo/remote/BUILD.serde-1.0.133.bazel b/bazel/cargo/remote/BUILD.serde-1.0.133.bazel index d614ecfb2..65e947b4c 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.133.bazel +++ b/bazel/cargo/remote/BUILD.serde-1.0.133.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -73,7 +74,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", proc_macro_deps = [ @@ -84,6 +84,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=serde", "manual", ], version = "1.0.133", diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel index 11f7adc9c..67197c001 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -60,14 +61,13 @@ cargo_build_script( ], ) -rust_library( +rust_proc_macro( name = "serde_derive", srcs = glob(["**/*.rs"]), crate_features = [ "default", ], crate_root = "src/lib.rs", - crate_type = "proc-macro", data = [], edition = "2015", rustc_flags = [ @@ -75,6 +75,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=serde_derive", "manual", ], version = "1.0.133", diff --git a/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel b/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel index 6a9a26970..d66698a0b 100644 --- a/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel +++ b/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=smallvec", "manual", ], version = "1.7.0", diff --git a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel index 2c57c0915..5c794f6c2 100644 --- a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=stable_deref_trait", "manual", ], version = "1.2.0", diff --git a/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel b/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel index 131b093fc..41312f4ff 100644 --- a/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel +++ b/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=strsim", "manual", ], version = "0.8.0", diff --git a/bazel/cargo/remote/BUILD.syn-1.0.84.bazel b/bazel/cargo/remote/BUILD.syn-1.0.84.bazel index a2ea95182..81fb50133 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.84.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.84.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -83,7 +84,6 @@ rust_library( "quote", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -91,6 +91,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=syn", "manual", ], version = "1.0.84", diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel b/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel index 5ed0363a8..b5b320c3e 100644 --- a/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel +++ b/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -71,7 +72,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -79,6 +79,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=target-lexicon", "manual", ], version = "0.12.2", diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel index 67a791cb1..451225495 100644 --- a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel +++ b/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=termcolor", "manual", ], version = "1.1.2", diff --git a/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel index cc496b135..e1d473cfd 100644 --- a/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel +++ b/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -42,7 +43,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -50,6 +50,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=textwrap", "manual", ], version = "0.11.0", diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel b/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel index b73d9c0ff..0ddcc846e 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", proc_macro_deps = [ @@ -47,6 +47,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=thiserror", "manual", ], version = "1.0.30", diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel index fdaf8d682..7ee123d13 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -30,13 +31,12 @@ licenses([ # Generated Targets -rust_library( +rust_proc_macro( name = "thiserror_impl", srcs = glob(["**/*.rs"]), crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "proc-macro", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=thiserror-impl", "manual", ], version = "1.0.30", diff --git a/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel b/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel index 03141f414..ea3e19412 100644 --- a/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel +++ b/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -37,7 +38,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -45,6 +45,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=unicode-width", "manual", ], version = "0.1.9", diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel b/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel index fa0c6424a..e1aa20a16 100644 --- a/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel +++ b/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -39,7 +40,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -47,6 +47,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=unicode-xid", "manual", ], version = "0.2.2", diff --git a/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel b/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel index 2a6a47295..fd3d280bf 100644 --- a/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel +++ b/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=vec_map", "manual", ], version = "0.8.2", diff --git a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel index d65930a5c..9a4447f64 100644 --- a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( "std", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasi", "manual", ], version = "0.10.2+wasi-snapshot-preview1", diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel b/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel index 85696e4ea..e91ad4372 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -40,7 +41,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -48,6 +48,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmparser", "manual", ], version = "0.81.0", diff --git a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel index f8cde998d..d86ee49c9 100644 --- a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -45,6 +46,7 @@ rust_binary( ], tags = [ "cargo-raze", + "crate-name=wasmsign", "manual", ], version = "0.1.2", @@ -67,7 +69,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -75,6 +76,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmsign", "manual", ], version = "0.1.2", diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel index 5ac367d6e..24e652162 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -79,7 +80,6 @@ rust_library( "wasmtime-cranelift", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", proc_macro_deps = [ @@ -90,6 +90,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmtime", "manual", ], version = "0.32.1", diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index a6b984155..a57bbd655 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -30,13 +31,12 @@ licenses([ # Generated Targets -rust_library( +rust_proc_macro( name = "wasmtime_c_api_macros", srcs = glob(["**/*.rs"]), crate_features = [ ], crate_root = "crates/c-api/macros/src/lib.rs", - crate_type = "proc-macro", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmtime-c-api-macros", "manual", ], version = "0.19.0", diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel index 3443915c1..9bb7271d3 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmtime-cranelift", "manual", ], version = "0.32.1", diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel index 56bc827b8..e6c740047 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmtime-environ", "manual", ], version = "0.32.1", diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel index 18ed39884..c2b2d13ea 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmtime-jit", "manual", ], version = "0.32.1", @@ -64,18 +65,6 @@ rust_library( "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_1//:wasmtime_runtime", ] + selects.with_or({ - # cfg(target_os = "linux") - ( - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel index 8548626aa..5485a85e8 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -59,23 +60,11 @@ cargo_build_script( deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", ] + selects.with_or({ - # cfg(target_os = "linux") - ( - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(target_os = "macos") ( - "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-darwin", ): [ ], "//conditions:default": [], @@ -90,22 +79,22 @@ cargo_build_script( }) + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ ], "//conditions:default": [], @@ -121,7 +110,6 @@ rust_library( "default", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -129,6 +117,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmtime-runtime", "manual", ], version = "0.32.1", @@ -149,23 +138,11 @@ rust_library( "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", ] + selects.with_or({ - # cfg(target_os = "linux") - ( - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(target_os = "macos") ( - "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-darwin", ): [ "@proxy_wasm_cpp_host__mach__0_3_2//:mach", ], @@ -182,22 +159,22 @@ rust_library( }) + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", ): [ "@proxy_wasm_cpp_host__rustix__0_26_2//:rustix", ], diff --git a/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel index 2cbbbaa93..f381564b5 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -36,7 +37,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -44,6 +44,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=wasmtime-types", "manual", ], version = "0.32.1", diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel index c8d638cdb..908c4ade7 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -105,7 +106,6 @@ rust_library( "ws2tcpip", ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -113,6 +113,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=winapi", "manual", ], version = "0.3.9", diff --git a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index e501d339a..f96496447 100644 --- a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -65,7 +66,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -73,6 +73,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=winapi-i686-pc-windows-gnu", "manual", ], version = "0.4.0", diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel index 9978322dd..34f2d5570 100644 --- a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel +++ b/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -38,7 +39,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2018", rustc_flags = [ @@ -46,6 +46,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=winapi-util", "manual", ], version = "0.1.5", diff --git a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index 5cf1d6c3a..8274514dd 100644 --- a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -10,9 +10,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") # buildifier: disable=load load( - "@rules_rust//rust:rust.bzl", + "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", + "rust_proc_macro", "rust_test", ) @@ -65,7 +66,6 @@ rust_library( crate_features = [ ], crate_root = "src/lib.rs", - crate_type = "lib", data = [], edition = "2015", rustc_flags = [ @@ -73,6 +73,7 @@ rust_library( ], tags = [ "cargo-raze", + "crate-name=winapi-x86_64-pc-windows-gnu", "manual", ], version = "0.4.0", From bb641fe73a22d026fef0cbd632f90402e98bc2dc Mon Sep 17 00:00:00 2001 From: Faseela K Date: Mon, 10 Jan 2022 20:49:46 +0100 Subject: [PATCH 134/287] wasmtime: update to v0.33.0. (#215) Signed-off-by: Faseela K --- bazel/cargo/BUILD.bazel | 2 +- bazel/cargo/Cargo.raze.lock | 93 ++++---- bazel/cargo/Cargo.toml | 9 +- bazel/cargo/crates.bzl | 205 ++++++++---------- ...l => BUILD.cranelift-bforest-0.80.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.80.0.bazel} | 12 +- ...BUILD.cranelift-codegen-meta-0.80.0.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.80.0.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.80.0.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.80.0.bazel} | 4 +- ...el => BUILD.cranelift-native-0.80.0.bazel} | 4 +- ...azel => BUILD.cranelift-wasm-0.80.0.bazel} | 10 +- bazel/cargo/remote/BUILD.errno-0.2.8.bazel | 2 +- bazel/cargo/remote/BUILD.gimli-0.26.1.bazel | 2 +- ...1.7.0.bazel => BUILD.indexmap-1.8.0.bazel} | 4 +- ...3.bazel => BUILD.io-lifetimes-0.4.4.bazel} | 5 +- .../remote/BUILD.linux-raw-sys-0.0.36.bazel | 1 + bazel/cargo/remote/BUILD.object-0.27.1.bazel | 2 +- .../remote/BUILD.rustc_version-0.4.0.bazel | 57 ----- ...0.26.2.bazel => BUILD.rustix-0.31.3.bazel} | 9 +- bazel/cargo/remote/BUILD.semver-1.0.4.bazel | 96 -------- .../remote/BUILD.serde_derive-1.0.133.bazel | 2 +- ...yn-1.0.84.bazel => BUILD.syn-1.0.85.bazel} | 4 +- .../remote/BUILD.thiserror-impl-1.0.30.bazel | 2 +- ...32.1.bazel => BUILD.wasmtime-0.33.0.bazel} | 14 +- ... => BUILD.wasmtime-cranelift-0.33.0.bazel} | 14 +- ...el => BUILD.wasmtime-environ-0.33.0.bazel} | 8 +- ....bazel => BUILD.wasmtime-jit-0.33.0.bazel} | 6 +- ...el => BUILD.wasmtime-runtime-0.33.0.bazel} | 10 +- ...azel => BUILD.wasmtime-types-0.33.0.bazel} | 4 +- bazel/cargo/rustix-no_git_check.patch | 10 - bazel/repositories.bzl | 6 +- 32 files changed, 202 insertions(+), 407 deletions(-) rename bazel/cargo/remote/{BUILD.cranelift-bforest-0.79.1.bazel => BUILD.cranelift-bforest-0.80.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-0.79.1.bazel => BUILD.cranelift-codegen-0.80.0.bazel} (88%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-meta-0.79.1.bazel => BUILD.cranelift-codegen-meta-0.80.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.cranelift-codegen-shared-0.79.1.bazel => BUILD.cranelift-codegen-shared-0.80.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-entity-0.79.1.bazel => BUILD.cranelift-entity-0.80.0.bazel} (97%) rename bazel/cargo/remote/{BUILD.cranelift-frontend-0.79.1.bazel => BUILD.cranelift-frontend-0.80.0.bazel} (93%) rename bazel/cargo/remote/{BUILD.cranelift-native-0.79.1.bazel => BUILD.cranelift-native-0.80.0.bazel} (94%) rename bazel/cargo/remote/{BUILD.cranelift-wasm-0.79.1.bazel => BUILD.cranelift-wasm-0.80.0.bazel} (83%) rename bazel/cargo/remote/{BUILD.indexmap-1.7.0.bazel => BUILD.indexmap-1.8.0.bazel} (98%) rename bazel/cargo/remote/{BUILD.io-lifetimes-0.3.3.bazel => BUILD.io-lifetimes-0.4.4.bazel} (96%) delete mode 100644 bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel rename bazel/cargo/remote/{BUILD.rustix-0.26.2.bazel => BUILD.rustix-0.31.3.bazel} (97%) delete mode 100644 bazel/cargo/remote/BUILD.semver-1.0.4.bazel rename bazel/cargo/remote/{BUILD.syn-1.0.84.bazel => BUILD.syn-1.0.85.bazel} (98%) rename bazel/cargo/remote/{BUILD.wasmtime-0.32.1.bazel => BUILD.wasmtime-0.33.0.bazel} (90%) rename bazel/cargo/remote/{BUILD.wasmtime-cranelift-0.32.1.bazel => BUILD.wasmtime-cranelift-0.33.0.bazel} (79%) rename bazel/cargo/remote/{BUILD.wasmtime-environ-0.32.1.bazel => BUILD.wasmtime-environ-0.33.0.bazel} (88%) rename bazel/cargo/remote/{BUILD.wasmtime-jit-0.32.1.bazel => BUILD.wasmtime-jit-0.33.0.bazel} (92%) rename bazel/cargo/remote/{BUILD.wasmtime-runtime-0.32.1.bazel => BUILD.wasmtime-runtime-0.33.0.bazel} (96%) rename bazel/cargo/remote/{BUILD.wasmtime-types-0.32.1.bazel => BUILD.wasmtime-types-0.33.0.bazel} (93%) delete mode 100644 bazel/cargo/rustix-no_git_check.patch diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/BUILD.bazel index af2530172..74e6b7fd8 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/BUILD.bazel @@ -59,7 +59,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_32_1//:wasmtime", + actual = "@proxy_wasm_cpp_host__wasmtime__0_33_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/Cargo.raze.lock index e50557e43..4dac7d372 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/Cargo.raze.lock @@ -130,18 +130,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ebddaa5d12cb299b0bc7c930aff12c5591d4ba9aa84eea637807e07283b900aa" +checksum = "9516ba6b2ba47b4cbf63b713f75b432fafa0a0e0464ec8381ec76e6efe931ab3" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da1daf5641177162644b521b64418564b8ed5deb126275a4d91472d13e7c72df" +checksum = "489e5d0081f7edff6be12d71282a8bf387b5df64d5592454b75d662397f2d642" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -156,33 +156,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "001c1e9e540940c81596e547e732f99c2146c21ea7e82da99be961a1e86feefa" +checksum = "d36ee1140371bb0f69100e734b30400157a4adf7b86148dee8b0a438763ead48" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ebaf07b5d7501cc606f41c81333bd63a5a17eb501362ccb10bc8ff5c03d0232" +checksum = "981da52d8f746af1feb96290c83977ff8d41071a7499e991d8abae0d4869f564" [[package]] name = "cranelift-entity" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a27ada0e3ffe5325179fc750252c18d614fa5470d595ce5c8a794c495434d80a" +checksum = "a2906740053dd3bcf95ce53df0fd9b5649c68ae4bd9adada92b406f059eae461" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2912c0eec9fd3df2dcf82b02b642caaa85d762b84ac5a3b27bc93a07eeeb64e2" +checksum = "b7cb156de1097f567d46bf57a0cd720a72c3e15e1a2bd8b1041ba2fc894471b7" dependencies = [ "cranelift-codegen", "log", @@ -192,9 +192,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fd20f78f378f55a70738a2eb9815dcd7e8455ff091b70701cfd086dd44927da" +checksum = "166028ca0343a6ee7bddac0e70084e142b23f99c701bd6f6ea9123afac1a7a46" dependencies = [ "cranelift-codegen", "libc", @@ -203,9 +203,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.79.1" +version = "0.80.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "353abcef10511d565b25bd00f3d7b1babcc040d9644c5259467c9a514dc945f0" +checksum = "5012a1cde0c8b3898770b711490d803018ae9bec2d60674ba0e5b2058a874f80" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -332,9 +332,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indexmap" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5" +checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223" dependencies = [ "autocfg", "hashbrown", @@ -343,11 +343,10 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "0.3.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "278e90d6f8a6c76a8334b336e306efa3c5f2b604048cbfd486d6f49878e3af14" +checksum = "f6ef6787e7f0faedc040f95716bdd0e62bcfcf4ba93da053b62dea2691c13864" dependencies = [ - "rustc_version", "winapi", ] @@ -581,36 +580,20 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" -[[package]] -name = "rustc_version" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" -dependencies = [ - "semver", -] - [[package]] name = "rustix" -version = "0.26.2" +version = "0.31.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18c44018277ec7195538f5631b90def7ad975bb46370cb0f4eff4012de9333f8" +checksum = "b2dcfc2778a90e38f56a708bfc90572422e11d6c7ee233d053d1f782cf9df6d2" dependencies = [ "bitflags", "errno", "io-lifetimes", "libc", "linux-raw-sys", - "rustc_version", "winapi", ] -[[package]] -name = "semver" -version = "1.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012" - [[package]] name = "serde" version = "1.0.133" @@ -651,9 +634,9 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "syn" -version = "1.0.84" +version = "1.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecb2e6da8ee5eb9a61068762a32fa9619cc591ceb055b3687f4cd4051ec2e06b" +checksum = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7" dependencies = [ "proc-macro2", "quote", @@ -750,9 +733,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "0.32.1" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d56ceaa60d3019887d6ba5768860fac99f5a6511453e183cb3ba2aaafd9411f3" +checksum = "414be1bc5ca12e755ffd3ff7acc3a6d1979922f8237fc34068b2156cebcc3270" dependencies = [ "anyhow", "backtrace", @@ -780,7 +763,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.32.1" +version = "0.33.0" dependencies = [ "anyhow", "env_logger", @@ -793,7 +776,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.32.1#309002b02183e949c5977e998cd4ae6a66da7d84" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.33.0#8043c1f919a77905255eded33e4e51a6fbfd1de1" dependencies = [ "proc-macro2", "quote", @@ -801,9 +784,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.32.1" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5793c2d14c7e2b962d1d79408df011190ec8f6214a01efd676f5e2266c44bc8" +checksum = "a4693d33725773615a4c9957e4aa731af57b27dca579702d1d8ed5750760f1a9" dependencies = [ "anyhow", "cranelift-codegen", @@ -823,9 +806,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.32.1" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79131537408f938501b4f540ae0f61b456d9962c2bb590edefb904cf7d1e5f54" +checksum = "5b17e47116a078b9770e6fb86cff8b9a660826623cebcfff251b047c8d8993ef" dependencies = [ "anyhow", "cranelift-entity", @@ -843,9 +826,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.32.1" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8031b6e83071b40b0139924024ee0d2e11f65f7677d7b028720df55610cbf994" +checksum = "60ea5b380bdf92e32911400375aeefb900ac9d3f8e350bb6ba555a39315f2ee7" dependencies = [ "addr2line", "anyhow", @@ -864,9 +847,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.32.1" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4c9412d752736938c2a57228fb95e13d40bdbc879ac741874e7f7b49c198ffa" +checksum = "abc7cd79937edd6e238b337608ebbcaf9c086a8457f01dfd598324f7fa56d81a" dependencies = [ "anyhow", "backtrace", @@ -889,9 +872,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.32.1" +version = "0.33.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1602b6ae8b901e60e8b9d51cadbf51a0421b7e67bf4cbe2e647695783fd9d45" +checksum = "d9e5e51a461a2cf2b69e1fc48f325b17d78a8582816e18479e8ead58844b23f8" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index e63abe9c0..a8277f9fe 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.32.1" +version = "0.33.0" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.32.1", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.32.1"} +wasmtime = {version = "0.33.0", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.33.0"} wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} [package.metadata.raze] @@ -31,6 +31,3 @@ additional_flags = [ buildrs_additional_deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", ] -patches = [ - "@proxy_wasm_cpp_host//bazel/cargo:rustix-no_git_check.patch", -] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index f6cdaa1e0..6727a369e 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -163,82 +163,82 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_bforest__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.80.0/download", type = "tar.gz", - sha256 = "ebddaa5d12cb299b0bc7c930aff12c5591d4ba9aa84eea637807e07283b900aa", - strip_prefix = "cranelift-bforest-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.79.1.bazel"), + sha256 = "9516ba6b2ba47b4cbf63b713f75b432fafa0a0e0464ec8381ec76e6efe931ab3", + strip_prefix = "cranelift-bforest-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_codegen__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.80.0/download", type = "tar.gz", - sha256 = "da1daf5641177162644b521b64418564b8ed5deb126275a4d91472d13e7c72df", - strip_prefix = "cranelift-codegen-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.79.1.bazel"), + sha256 = "489e5d0081f7edff6be12d71282a8bf387b5df64d5592454b75d662397f2d642", + strip_prefix = "cranelift-codegen-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.80.0/download", type = "tar.gz", - sha256 = "001c1e9e540940c81596e547e732f99c2146c21ea7e82da99be961a1e86feefa", - strip_prefix = "cranelift-codegen-meta-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.79.1.bazel"), + sha256 = "d36ee1140371bb0f69100e734b30400157a4adf7b86148dee8b0a438763ead48", + strip_prefix = "cranelift-codegen-meta-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.80.0/download", type = "tar.gz", - sha256 = "0ebaf07b5d7501cc606f41c81333bd63a5a17eb501362ccb10bc8ff5c03d0232", - strip_prefix = "cranelift-codegen-shared-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.79.1.bazel"), + sha256 = "981da52d8f746af1feb96290c83977ff8d41071a7499e991d8abae0d4869f564", + strip_prefix = "cranelift-codegen-shared-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_entity__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.80.0/download", type = "tar.gz", - sha256 = "a27ada0e3ffe5325179fc750252c18d614fa5470d595ce5c8a794c495434d80a", - strip_prefix = "cranelift-entity-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.79.1.bazel"), + sha256 = "a2906740053dd3bcf95ce53df0fd9b5649c68ae4bd9adada92b406f059eae461", + strip_prefix = "cranelift-entity-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_frontend__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.80.0/download", type = "tar.gz", - sha256 = "2912c0eec9fd3df2dcf82b02b642caaa85d762b84ac5a3b27bc93a07eeeb64e2", - strip_prefix = "cranelift-frontend-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.79.1.bazel"), + sha256 = "b7cb156de1097f567d46bf57a0cd720a72c3e15e1a2bd8b1041ba2fc894471b7", + strip_prefix = "cranelift-frontend-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-native/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_native__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.80.0/download", type = "tar.gz", - sha256 = "9fd20f78f378f55a70738a2eb9815dcd7e8455ff091b70701cfd086dd44927da", - strip_prefix = "cranelift-native-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.79.1.bazel"), + sha256 = "166028ca0343a6ee7bddac0e70084e142b23f99c701bd6f6ea9123afac1a7a46", + strip_prefix = "cranelift-native-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_79_1", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.79.1/download", + name = "proxy_wasm_cpp_host__cranelift_wasm__0_80_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.80.0/download", type = "tar.gz", - sha256 = "353abcef10511d565b25bd00f3d7b1babcc040d9644c5259467c9a514dc945f0", - strip_prefix = "cranelift-wasm-0.79.1", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.79.1.bazel"), + sha256 = "5012a1cde0c8b3898770b711490d803018ae9bec2d60674ba0e5b2058a874f80", + strip_prefix = "cranelift-wasm-0.80.0", + build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.80.0.bazel"), ) maybe( @@ -373,22 +373,22 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__indexmap__1_7_0", - url = "https://crates.io/api/v1/crates/indexmap/1.7.0/download", + name = "proxy_wasm_cpp_host__indexmap__1_8_0", + url = "https://crates.io/api/v1/crates/indexmap/1.8.0/download", type = "tar.gz", - sha256 = "bc633605454125dec4b66843673f01c7df2b89479b32e0ed634e43a91cff62a5", - strip_prefix = "indexmap-1.7.0", - build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.7.0.bazel"), + sha256 = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223", + strip_prefix = "indexmap-1.8.0", + build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.8.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__io_lifetimes__0_3_3", - url = "https://crates.io/api/v1/crates/io-lifetimes/0.3.3/download", + name = "proxy_wasm_cpp_host__io_lifetimes__0_4_4", + url = "https://crates.io/api/v1/crates/io-lifetimes/0.4.4/download", type = "tar.gz", - sha256 = "278e90d6f8a6c76a8334b336e306efa3c5f2b604048cbfd486d6f49878e3af14", - strip_prefix = "io-lifetimes-0.3.3", - build_file = Label("//bazel/cargo/remote:BUILD.io-lifetimes-0.3.3.bazel"), + sha256 = "f6ef6787e7f0faedc040f95716bdd0e62bcfcf4ba93da053b62dea2691c13864", + strip_prefix = "io-lifetimes-0.4.4", + build_file = Label("//bazel/cargo/remote:BUILD.io-lifetimes-0.4.4.bazel"), ) maybe( @@ -673,35 +673,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__rustc_version__0_4_0", - url = "https://crates.io/api/v1/crates/rustc_version/0.4.0/download", + name = "proxy_wasm_cpp_host__rustix__0_31_3", + url = "https://crates.io/api/v1/crates/rustix/0.31.3/download", type = "tar.gz", - sha256 = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366", - strip_prefix = "rustc_version-0.4.0", - build_file = Label("//bazel/cargo/remote:BUILD.rustc_version-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__rustix__0_26_2", - url = "https://crates.io/api/v1/crates/rustix/0.26.2/download", - type = "tar.gz", - sha256 = "18c44018277ec7195538f5631b90def7ad975bb46370cb0f4eff4012de9333f8", - strip_prefix = "rustix-0.26.2", - patches = [ - "@proxy_wasm_cpp_host//bazel/cargo:rustix-no_git_check.patch", - ], - build_file = Label("//bazel/cargo/remote:BUILD.rustix-0.26.2.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__semver__1_0_4", - url = "https://crates.io/api/v1/crates/semver/1.0.4/download", - type = "tar.gz", - sha256 = "568a8e6258aa33c13358f81fd834adb854c6f7c9468520910a9b1e8fac068012", - strip_prefix = "semver-1.0.4", - build_file = Label("//bazel/cargo/remote:BUILD.semver-1.0.4.bazel"), + sha256 = "b2dcfc2778a90e38f56a708bfc90572422e11d6c7ee233d053d1f782cf9df6d2", + strip_prefix = "rustix-0.31.3", + build_file = Label("//bazel/cargo/remote:BUILD.rustix-0.31.3.bazel"), ) maybe( @@ -756,12 +733,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_84", - url = "https://crates.io/api/v1/crates/syn/1.0.84/download", + name = "proxy_wasm_cpp_host__syn__1_0_85", + url = "https://crates.io/api/v1/crates/syn/1.0.85/download", type = "tar.gz", - sha256 = "ecb2e6da8ee5eb9a61068762a32fa9619cc591ceb055b3687f4cd4051ec2e06b", - strip_prefix = "syn-1.0.84", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.84.bazel"), + sha256 = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7", + strip_prefix = "syn-1.0.85", + build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.85.bazel"), ) maybe( @@ -875,71 +852,71 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_32_1", - url = "https://crates.io/api/v1/crates/wasmtime/0.32.1/download", + name = "proxy_wasm_cpp_host__wasmtime__0_33_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.33.0/download", type = "tar.gz", - sha256 = "d56ceaa60d3019887d6ba5768860fac99f5a6511453e183cb3ba2aaafd9411f3", - strip_prefix = "wasmtime-0.32.1", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.32.1.bazel"), + sha256 = "414be1bc5ca12e755ffd3ff7acc3a6d1979922f8237fc34068b2156cebcc3270", + strip_prefix = "wasmtime-0.33.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.33.0.bazel"), ) maybe( new_git_repository, name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "309002b02183e949c5977e998cd4ae6a66da7d84", + commit = "8043c1f919a77905255eded33e4e51a6fbfd1de1", build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_32_1", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.32.1/download", + name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_33_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.33.0/download", type = "tar.gz", - sha256 = "e5793c2d14c7e2b962d1d79408df011190ec8f6214a01efd676f5e2266c44bc8", - strip_prefix = "wasmtime-cranelift-0.32.1", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.32.1.bazel"), + sha256 = "a4693d33725773615a4c9957e4aa731af57b27dca579702d1d8ed5750760f1a9", + strip_prefix = "wasmtime-cranelift-0.33.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_32_1", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.32.1/download", + name = "proxy_wasm_cpp_host__wasmtime_environ__0_33_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.33.0/download", type = "tar.gz", - sha256 = "79131537408f938501b4f540ae0f61b456d9962c2bb590edefb904cf7d1e5f54", - strip_prefix = "wasmtime-environ-0.32.1", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.32.1.bazel"), + sha256 = "5b17e47116a078b9770e6fb86cff8b9a660826623cebcfff251b047c8d8993ef", + strip_prefix = "wasmtime-environ-0.33.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_32_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.32.1/download", + name = "proxy_wasm_cpp_host__wasmtime_jit__0_33_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.33.0/download", type = "tar.gz", - sha256 = "8031b6e83071b40b0139924024ee0d2e11f65f7677d7b028720df55610cbf994", - strip_prefix = "wasmtime-jit-0.32.1", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.32.1.bazel"), + sha256 = "60ea5b380bdf92e32911400375aeefb900ac9d3f8e350bb6ba555a39315f2ee7", + strip_prefix = "wasmtime-jit-0.33.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_32_1", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.32.1/download", + name = "proxy_wasm_cpp_host__wasmtime_runtime__0_33_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.33.0/download", type = "tar.gz", - sha256 = "b4c9412d752736938c2a57228fb95e13d40bdbc879ac741874e7f7b49c198ffa", - strip_prefix = "wasmtime-runtime-0.32.1", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.32.1.bazel"), + sha256 = "abc7cd79937edd6e238b337608ebbcaf9c086a8457f01dfd598324f7fa56d81a", + strip_prefix = "wasmtime-runtime-0.33.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_types__0_32_1", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.32.1/download", + name = "proxy_wasm_cpp_host__wasmtime_types__0_33_0", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.33.0/download", type = "tar.gz", - sha256 = "b1602b6ae8b901e60e8b9d51cadbf51a0421b7e67bf4cbe2e647695783fd9d45", - strip_prefix = "wasmtime-types-0.32.1", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.32.1.bazel"), + sha256 = "d9e5e51a461a2cf2b69e1fc48f325b17d78a8582816e18479e8ead58844b23f8", + strip_prefix = "wasmtime-types-0.33.0", + build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.33.0.bazel"), ) maybe( diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-bforest-0.80.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-bforest-0.80.0.bazel index 1d1275711..2c35cf599 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-bforest-0.80.0.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-0.80.0.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-0.80.0.bazel index 21904439e..a48c13ab1 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-0.80.0.bazel @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.79.1", + version = "0.80.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_79_1//:cranelift_codegen_meta", + "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_80_0//:cranelift_codegen_meta", ], ) @@ -87,13 +87,13 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__cranelift_bforest__0_79_1//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_1//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_bforest__0_80_0//:cranelift_bforest", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__regalloc__0_0_33//:regalloc", diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel index cceca2362..48cb1098a 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_79_1//:cranelift_codegen_shared", + "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel index 2dad0e951..35965cc99 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-entity-0.80.0.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-entity-0.80.0.bazel index b5b5aa08d..fab375b07 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-entity-0.80.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__serde__1_0_133//:serde", diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-frontend-0.80.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-frontend-0.80.0.bazel index 96b4dc6cd..cc7c32e9d 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-frontend-0.80.0.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-native-0.80.0.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-native-0.80.0.bazel index c6ecf3926..41905600c 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-native-0.80.0.bazel @@ -51,10 +51,10 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel b/bazel/cargo/remote/BUILD.cranelift-wasm-0.80.0.bazel similarity index 83% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel rename to bazel/cargo/remote/BUILD.cranelift-wasm-0.80.0.bazel index 3735122cc..7fda40b9a 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.79.1.bazel +++ b/bazel/cargo/remote/BUILD.cranelift-wasm-0.80.0.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.79.1", + version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_79_1//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_80_0//:cranelift_frontend", "@proxy_wasm_cpp_host__itertools__0_10_3//:itertools", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_32_1//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmtime_types__0_33_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel index ae421ea79..e0f7cc651 100644 --- a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/remote/BUILD.errno-0.2.8.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ ] + selects.with_or({ - # cfg(unix), cfg(target_os = "wasi") + # cfg(unix) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-unknown-linux-gnu", diff --git a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel index 32af71490..be8eaeeaa 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel +++ b/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel @@ -68,7 +68,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", - "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel b/bazel/cargo/remote/BUILD.indexmap-1.8.0.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel rename to bazel/cargo/remote/BUILD.indexmap-1.8.0.bazel index 4df0d001c..6b1bdbecb 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.7.0.bazel +++ b/bazel/cargo/remote/BUILD.indexmap-1.8.0.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.7.0", + version = "1.8.0", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", @@ -87,7 +87,7 @@ rust_library( "crate-name=indexmap", "manual", ], - version = "1.7.0", + version = "1.8.0", # buildifier: leave-alone deps = [ ":indexmap_build_script", diff --git a/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel b/bazel/cargo/remote/BUILD.io-lifetimes-0.4.4.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel rename to bazel/cargo/remote/BUILD.io-lifetimes-0.4.4.bazel index 6a39c4525..2c3aae0b8 100644 --- a/bazel/cargo/remote/BUILD.io-lifetimes-0.3.3.bazel +++ b/bazel/cargo/remote/BUILD.io-lifetimes-0.4.4.bazel @@ -54,10 +54,9 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.3", + version = "0.4.4", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__rustc_version__0_4_0//:rustc_version", ] + selects.with_or({ # cfg(windows) ( @@ -97,7 +96,7 @@ rust_library( "crate-name=io-lifetimes", "manual", ], - version = "0.3.3", + version = "0.4.4", # buildifier: leave-alone deps = [ ":io_lifetimes_build_script", diff --git a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel index 46b903231..c5aa0df4f 100644 --- a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel +++ b/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel @@ -37,6 +37,7 @@ rust_library( crate_features = [ "errno", "general", + "no_std", "std", "v5_11", "v5_4", diff --git a/bazel/cargo/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/remote/BUILD.object-0.27.1.bazel index 62fe17e12..d83b03863 100644 --- a/bazel/cargo/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/remote/BUILD.object-0.27.1.bazel @@ -63,7 +63,7 @@ rust_library( # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__crc32fast__1_3_0//:crc32fast", - "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", ], ) diff --git a/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel b/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel deleted file mode 100644 index fdad27d8e..000000000 --- a/bazel/cargo/remote/BUILD.rustc_version-0.4.0.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rustc_version", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rustc_version", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__semver__1_0_4//:semver", - ], -) - -# Unsupported target "all" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel b/bazel/cargo/remote/BUILD.rustix-0.31.3.bazel similarity index 97% rename from bazel/cargo/remote/BUILD.rustix-0.26.2.bazel rename to bazel/cargo/remote/BUILD.rustix-0.31.3.bazel index 2b2177685..9aecc7c26 100644 --- a/bazel/cargo/remote/BUILD.rustix-0.26.2.bazel +++ b/bazel/cargo/remote/BUILD.rustix-0.31.3.bazel @@ -58,11 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.26.2", + version = "0.31.3", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", - "@proxy_wasm_cpp_host__rustc_version__0_4_0//:rustc_version", ] + selects.with_or({ # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( @@ -109,6 +108,8 @@ cargo_build_script( # Unsupported target "mod" with type "bench" omitted +# Unsupported target "hello" with type "example" omitted + # Unsupported target "process" with type "example" omitted # Unsupported target "stdio" with type "example" omitted @@ -137,12 +138,12 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.26.2", + version = "0.31.3", # buildifier: leave-alone deps = [ ":rustix_build_script", "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", - "@proxy_wasm_cpp_host__io_lifetimes__0_3_3//:io_lifetimes", + "@proxy_wasm_cpp_host__io_lifetimes__0_4_4//:io_lifetimes", ] + selects.with_or({ # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( diff --git a/bazel/cargo/remote/BUILD.semver-1.0.4.bazel b/bazel/cargo/remote/BUILD.semver-1.0.4.bazel deleted file mode 100644 index 4dad16563..000000000 --- a/bazel/cargo/remote/BUILD.semver-1.0.4.bazel +++ /dev/null @@ -1,96 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "semver_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.4", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "parse" with type "bench" omitted - -rust_library( - name = "semver", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=semver", - "manual", - ], - version = "1.0.4", - # buildifier: leave-alone - deps = [ - ":semver_build_script", - ], -) - -# Unsupported target "test_identifier" with type "test" omitted - -# Unsupported target "test_version" with type "test" omitted - -# Unsupported target "test_version_req" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel b/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel index 67197c001..80f32a48a 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel +++ b/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel @@ -84,6 +84,6 @@ rust_proc_macro( ":serde_derive_build_script", "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_14//:quote", - "@proxy_wasm_cpp_host__syn__1_0_84//:syn", + "@proxy_wasm_cpp_host__syn__1_0_85//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.syn-1.0.84.bazel b/bazel/cargo/remote/BUILD.syn-1.0.85.bazel similarity index 98% rename from bazel/cargo/remote/BUILD.syn-1.0.84.bazel rename to bazel/cargo/remote/BUILD.syn-1.0.85.bazel index 81fb50133..2ea72bd13 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.84.bazel +++ b/bazel/cargo/remote/BUILD.syn-1.0.85.bazel @@ -61,7 +61,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.84", + version = "1.0.85", visibility = ["//visibility:private"], deps = [ ], @@ -94,7 +94,7 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.84", + version = "1.0.85", # buildifier: leave-alone deps = [ ":syn_build_script", diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel index 7ee123d13..c2cd51759 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -52,6 +52,6 @@ rust_proc_macro( deps = [ "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", "@proxy_wasm_cpp_host__quote__1_0_14//:quote", - "@proxy_wasm_cpp_host__syn__1_0_84//:syn", + "@proxy_wasm_cpp_host__syn__1_0_85//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-0.33.0.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel rename to bazel/cargo/remote/BUILD.wasmtime-0.33.0.bazel index 24e652162..3a51bc96a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-0.33.0.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.32.1", + version = "0.33.0", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -93,7 +93,7 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.32.1", + version = "0.33.0", # buildifier: leave-alone deps = [ ":wasmtime_build_script", @@ -102,7 +102,7 @@ rust_library( "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", "@proxy_wasm_cpp_host__cpp_demangle__0_3_5//:cpp_demangle", - "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", "@proxy_wasm_cpp_host__libc__0_2_112//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", @@ -113,10 +113,10 @@ rust_library( "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_32_1//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_32_1//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_1//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmtime_cranelift__0_33_0//:wasmtime_cranelift", + "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_jit__0_33_0//:wasmtime_jit", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_33_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.33.0.bazel similarity index 79% rename from bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel rename to bazel/cargo/remote/BUILD.wasmtime-cranelift-0.33.0.bazel index 9bb7271d3..2f402c60f 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.33.0.bazel @@ -47,15 +47,15 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.32.1", + version = "0.33.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__cranelift_codegen__0_79_1//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_79_1//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_79_1//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_79_1//:cranelift_wasm", + "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", + "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_frontend__0_80_0//:cranelift_frontend", + "@proxy_wasm_cpp_host__cranelift_native__0_80_0//:cranelift_native", + "@proxy_wasm_cpp_host__cranelift_wasm__0_80_0//:cranelift_wasm", "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", @@ -63,6 +63,6 @@ rust_library( "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-environ-0.33.0.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel rename to bazel/cargo/remote/BUILD.wasmtime-environ-0.33.0.bazel index e6c740047..042b35258 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-environ-0.33.0.bazel @@ -47,13 +47,13 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.32.1", + version = "0.33.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", - "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", "@proxy_wasm_cpp_host__log__0_4_14//:log", "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", "@proxy_wasm_cpp_host__object__0_27_1//:object", @@ -61,6 +61,6 @@ rust_library( "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_32_1//:wasmtime_types", + "@proxy_wasm_cpp_host__wasmtime_types__0_33_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel rename to bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel index c2b2d13ea..b8250a2b4 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.32.1", + version = "0.33.0", # buildifier: leave-alone deps = [ "@proxy_wasm_cpp_host__addr2line__0_17_0//:addr2line", @@ -62,8 +62,8 @@ rust_library( "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_32_1//:wasmtime_runtime", + "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_runtime__0_33_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.33.0.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel rename to bazel/cargo/remote/BUILD.wasmtime-runtime-0.33.0.bazel index 5485a85e8..de5cdefc1 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-runtime-0.33.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.32.1", + version = "0.33.0", visibility = ["//visibility:private"], deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", @@ -120,14 +120,14 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.32.1", + version = "0.33.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", "@proxy_wasm_cpp_host__backtrace__0_3_63//:backtrace", "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__indexmap__1_7_0//:indexmap", + "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", "@proxy_wasm_cpp_host__libc__0_2_112//:libc", "@proxy_wasm_cpp_host__log__0_4_14//:log", @@ -136,7 +136,7 @@ rust_library( "@proxy_wasm_cpp_host__rand__0_8_4//:rand", "@proxy_wasm_cpp_host__region__2_2_0//:region", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_32_1//:wasmtime_environ", + "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__rustix__0_26_2//:rustix", + "@proxy_wasm_cpp_host__rustix__0_31_3//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel b/bazel/cargo/remote/BUILD.wasmtime-types-0.33.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel rename to bazel/cargo/remote/BUILD.wasmtime-types-0.33.0.bazel index f381564b5..332be3f70 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-types-0.32.1.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-types-0.33.0.bazel @@ -47,10 +47,10 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.32.1", + version = "0.33.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_79_1//:cranelift_entity", + "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", diff --git a/bazel/cargo/rustix-no_git_check.patch b/bazel/cargo/rustix-no_git_check.patch deleted file mode 100644 index 79aafac36..000000000 --- a/bazel/cargo/rustix-no_git_check.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- build.rs -+++ build.rs -@@ -62,6 +62,7 @@ fn link_in_librustix_outline(arch: &str, asm_name: &str) { - let out_dir = var("OUT_DIR").unwrap(); - Build::new().file(&asm_name).compile(&name); - println!("cargo:rerun-if-changed={}", asm_name); -+ return; - let from = format!("{}/lib{}.a", out_dir, name); - let prev_metadata = std::fs::metadata(&to); - std::fs::copy(&from, &to).unwrap(); diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 8ce71b491..9e0c5ac48 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -70,9 +70,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "80b5b3d149776bd56a872730775445bdfba1fb6a75eb79230a7686092932c1dc", - strip_prefix = "wasmtime-0.32.1", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.32.1.tar.gz", + sha256 = "c59a2aa110b25921d370944287cd97205c73cf3dc76776c5b3551135c1e42ddc", + strip_prefix = "wasmtime-0.33.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.33.0.tar.gz", ) http_archive( From a887508dc04c55caa5f03c072770e9a239742c03 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 10 Jan 2022 20:20:05 -0600 Subject: [PATCH 135/287] v8: update to v9.9.74. (#216) Signed-off-by: Piotr Sikora --- bazel/external/v8.patch | 1079 +-------------------------------------- bazel/repositories.bzl | 32 +- 2 files changed, 32 insertions(+), 1079 deletions(-) diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index 0f227f32a..b115a0433 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,1078 +1,15 @@ -1. Use bazel/config from within the main repository. (https://crrev.com/c/3331591) -2. Manage dependencies in Bazel. (https://crrev.com/c/3344621) -3. Generate inspector files using @rules_python. (https://crrev.com/c/3343881) -7. Fix v8_torque when imported in another workspace. (https://crrev.com/c/3346680) -4. Fix build with GCC and older versions of Clang. (https://crrev.com/c/3333635) -5. Fix build on arm64. (https://crrev.com/c/3337367) -6. Fix build on macOS. (https://crrev.com/c/3364916) -7. Add support for building on s390x. (https://crrev.com/c/3346395) -8. Expose :v8 and :wee8 libraries with headers. (https://crrev.com/c/3346681) +# Set v8_enable_handle_zapping=False to regain performance. -diff --git a/.bazelrc b/.bazelrc -index e0127628ca..ef69dda4a5 100644 ---- a/.bazelrc -+++ b/.bazelrc -@@ -2,12 +2,16 @@ - # Use of this source code is governed by a BSD-style license that can be - # found in the LICENSE file. - --# V8 bazel port only supports clang --build --action_env=BAZEL_COMPILER=clang --build --action_env=CC=clang --build --action_env=CXX=clang++ -+# Pass CC, CXX and PATH from the environment -+build --action_env=CC -+build --action_env=CXX - build --action_env=PATH - -+# Use Clang compiler -+build:clang --action_env=BAZEL_COMPILER=clang -+build:clang --action_env=CC=clang -+build:clang --action_env=CXX=clang++ -+ - # V8 debug config - build:debug --compilation_mode=dbg - build:debug --config=v8_enable_debugging_features diff --git a/BUILD.bazel b/BUILD.bazel -index c9864429a5..b1717e8fda 100644 +index 7d09243ee9..b9dec574e9 100644 --- a/BUILD.bazel +++ b/BUILD.bazel -@@ -3,6 +3,8 @@ - # found in the LICENSE file. - - load("@bazel_skylib//lib:selects.bzl", "selects") -+load("@rules_python//python:defs.bzl", "py_binary") -+load("@v8_python_deps//:requirements.bzl", "requirement") - load( - "@v8//:bazel/defs.bzl", - "v8_binary", -@@ -18,13 +20,6 @@ load( - ) - load(":bazel/v8-non-pointer-compression.bzl", "v8_binary_non_pointer_compression") - --config_setting( -- name = "is_debug", -- values = { -- "compilation_mode": "dbg", -- }, --) -- - # ================================================= - # Flags - # ================================================= -@@ -198,7 +193,7 @@ selects.config_setting_group( - name = "v8_target_x64_default_pointer_compression", - match_all = [ - ":v8_enable_pointer_compression_is_none", -- "@config//:v8_target_x64", -+ "@v8//bazel/config:v8_target_x64", - ], - ) - -@@ -207,7 +202,7 @@ selects.config_setting_group( - name = "v8_target_arm64_default_pointer_compression", - match_all = [ - ":v8_enable_pointer_compression_is_none", -- "@config//:v8_target_arm64", -+ "@v8//bazel/config:v8_target_arm64", - ], - ) - -@@ -252,7 +247,7 @@ selects.config_setting_group( - selects.config_setting_group( - name = "should_add_rdynamic", - match_all = [ -- "@config//:is_linux", -+ "@v8//bazel/config:is_linux", - ":is_v8_enable_backtrace", - ], - ) -@@ -290,37 +285,41 @@ v8_config( - "V8_ADVANCED_BIGINT_ALGORITHMS", - "V8_CONCURRENT_MARKING", - ] + select({ -- ":is_debug": [ -+ "@v8//bazel/config:is_debug": [ - "DEBUG", - "V8_ENABLE_CHECKS", - ], - "//conditions:default": [], - }) + select( - { -- "@config//:v8_target_ia32": ["V8_TARGET_ARCH_IA32"], -- "@config//:v8_target_x64": ["V8_TARGET_ARCH_X64"], -- "@config//:v8_target_arm": [ -+ "@v8//bazel/config:v8_target_ia32": ["V8_TARGET_ARCH_IA32"], -+ "@v8//bazel/config:v8_target_x64": ["V8_TARGET_ARCH_X64"], -+ "@v8//bazel/config:v8_target_arm": [ - "V8_TARGET_ARCH_ARM", - "CAN_USE_ARMV7_INSTRUCTIONS", - "CAN_USE_VFP3_INSTRUCTIONS", - ], -- "@config//:v8_target_arm64": ["V8_TARGET_ARCH_ARM64"], -+ "@v8//bazel/config:v8_target_arm64": ["V8_TARGET_ARCH_ARM64"], -+ "@v8//bazel/config:v8_target_s390x": [ -+ "V8_TARGET_ARCH_S390", -+ "V8_TARGET_ARCH_S390X", -+ ], - }, - no_match_error = "Please specify a target cpu supported by v8", - ) + select({ -- "@config//:is_android": [ -+ "@v8//bazel/config:is_android": [ - "V8_HAVE_TARGET_OS", - "V8_TARGET_OS_ANDROID", - ], -- "@config//:is_linux": [ -+ "@v8//bazel/config:is_linux": [ - "V8_HAVE_TARGET_OS", - "V8_TARGET_OS_LINUX", - ], -- "@config//:is_macos": [ -+ "@v8//bazel/config:is_macos": [ - "V8_HAVE_TARGET_OS", - "V8_TARGET_OS_MACOSX", - ], -- "@config//:is_windows": [ -+ "@v8//bazel/config:is_windows": [ - "V8_HAVE_TARGET_OS", - "V8_TARGET_OS_WIN", - "UNICODE", -@@ -622,7 +621,7 @@ filegroup( - "src/base/vlq-base64.h", - "src/base/platform/yield-processor.h", - ] + select({ -- "@config//:is_posix": [ -+ "@v8//bazel/config:is_posix": [ - "src/base/platform/platform-posix.cc", - "src/base/platform/platform-posix.h", - "src/base/platform/platform-posix-time.cc", -@@ -630,19 +629,19 @@ filegroup( - ], - "//conditions:default": [], - }) + select({ -- "@config//:is_linux": [ -+ "@v8//bazel/config:is_linux": [ - "src/base/debug/stack_trace_posix.cc", - "src/base/platform/platform-linux.cc", - ], -- "@config//:is_android": [ -+ "@v8//bazel/config:is_android": [ - "src/base/debug/stack_trace_android.cc", - "src/base/platform/platform-linux.cc", - ], -- "@config//:is_macos": [ -+ "@v8//bazel/config:is_macos": [ - "src/base/debug/stack_trace_posix.cc", - "src/base/platform/platform-macos.cc", - ], -- "@config//:is_windows": [ -+ "@v8//bazel/config:is_windows": [ - "src/base/win32-headers.h", - "src/base/debug/stack_trace_win.cc", - "src/base/platform/platform-win32.cc", -@@ -654,7 +653,6 @@ filegroup( - filegroup( - name = "v8_libplatform_files", - srcs = [ -- "base/trace_event/common/trace_event_common.h", - "include/libplatform/libplatform.h", - "include/libplatform/libplatform-export.h", - "include/libplatform/v8-tracing.h", -@@ -982,7 +980,6 @@ filegroup( - ":v8_cppgc_shared_files", - ":v8_bigint", - ":generated_bytecode_builtins_list", -- "base/trace_event/common/trace_event_common.h", - "include/cppgc/common.h", - "include/v8-inspector-protocol.h", - "include/v8-inspector.h", -@@ -1966,8 +1963,6 @@ filegroup( - "src/snapshot/shared-heap-serializer.cc", - "src/snapshot/snapshot-compression.cc", - "src/snapshot/snapshot-compression.h", -- "third_party/zlib/google/compression_utils_portable.h", -- "third_party/zlib/google/compression_utils_portable.cc", - "src/snapshot/snapshot-data.cc", - "src/snapshot/snapshot-data.h", - "src/snapshot/snapshot-source-sink.cc", -@@ -2072,7 +2067,7 @@ filegroup( - "src/heap/third-party/heap-api.h", - "src/heap/third-party/heap-api-stub.cc", - ] + select({ -- "@config//:v8_target_ia32": [ -+ "@v8//bazel/config:v8_target_ia32": [ - "src/baseline/ia32/baseline-assembler-ia32-inl.h", - "src/baseline/ia32/baseline-compiler-ia32-inl.h", - "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.h", -@@ -2100,7 +2095,7 @@ filegroup( - "src/regexp/ia32/regexp-macro-assembler-ia32.h", - "src/wasm/baseline/ia32/liftoff-assembler-ia32.h", - ], -- "@config//:v8_target_x64": [ -+ "@v8//bazel/config:v8_target_x64": [ - "src/baseline/x64/baseline-assembler-x64-inl.h", - "src/baseline/x64/baseline-compiler-x64-inl.h", - "src/codegen/shared-ia32-x64/macro-assembler-shared-ia32-x64.h", -@@ -2132,7 +2127,7 @@ filegroup( - "src/regexp/x64/regexp-macro-assembler-x64.h", - "src/wasm/baseline/x64/liftoff-assembler-x64.h", - ], -- "@config//:v8_target_arm": [ -+ "@v8//bazel/config:v8_target_arm": [ - "src/baseline/arm/baseline-assembler-arm-inl.h", - "src/baseline/arm/baseline-compiler-arm-inl.h", - "src/codegen/arm/assembler-arm-inl.h", -@@ -2163,7 +2158,7 @@ filegroup( - "src/regexp/arm/regexp-macro-assembler-arm.h", - "src/wasm/baseline/arm/liftoff-assembler-arm.h", - ], -- "@config//:v8_target_arm64": [ -+ "@v8//bazel/config:v8_target_arm64": [ - "src/baseline/arm64/baseline-assembler-arm64-inl.h", - "src/baseline/arm64/baseline-compiler-arm64-inl.h", - "src/codegen/arm64/assembler-arm64-inl.h", -@@ -2206,31 +2201,59 @@ filegroup( - "src/regexp/arm64/regexp-macro-assembler-arm64.h", - "src/wasm/baseline/arm64/liftoff-assembler-arm64.h", - ], -+ "@v8//bazel/config:v8_target_s390x": [ -+ "src/baseline/s390/baseline-assembler-s390-inl.h", -+ "src/baseline/s390/baseline-compiler-s390-inl.h", -+ "src/codegen/s390/assembler-s390-inl.h", -+ "src/codegen/s390/assembler-s390.h", -+ "src/codegen/s390/constants-s390.h", -+ "src/codegen/s390/interface-descriptors-s390-inl.h", -+ "src/codegen/s390/macro-assembler-s390.h", -+ "src/codegen/s390/register-s390.h", -+ "src/compiler/backend/s390/instruction-codes-s390.h", -+ "src/compiler/backend/s390/unwinding-info-writer-s390.h", -+ "src/execution/s390/frame-constants-s390.h", -+ "src/execution/s390/simulator-s390.h", -+ "src/regexp/s390/regexp-macro-assembler-s390.h", -+ "src/wasm/baseline/s390/liftoff-assembler-s390.h", -+ "src/codegen/s390/assembler-s390.cc", -+ "src/codegen/s390/constants-s390.cc", -+ "src/codegen/s390/cpu-s390.cc", -+ "src/codegen/s390/macro-assembler-s390.cc", -+ "src/compiler/backend/s390/code-generator-s390.cc", -+ "src/compiler/backend/s390/instruction-scheduler-s390.cc", -+ "src/compiler/backend/s390/instruction-selector-s390.cc", -+ "src/compiler/backend/s390/unwinding-info-writer-s390.cc", -+ "src/deoptimizer/s390/deoptimizer-s390.cc", -+ "src/diagnostics/s390/disasm-s390.cc", -+ "src/diagnostics/s390/eh-frame-s390.cc", -+ "src/diagnostics/s390/unwinder-s390.cc", -+ "src/execution/s390/frame-constants-s390.cc", -+ "src/execution/s390/simulator-s390.cc", -+ "src/regexp/s390/regexp-macro-assembler-s390.cc", -+ ], - }) + select({ - # Only for x64 builds and for arm64 with x64 host simulator. -- "@config//:is_posix_x64": [ -+ "@v8//bazel/config:is_posix_x64": [ - "src/trap-handler/handler-inside-posix.cc", - "src/trap-handler/handler-outside-posix.cc", - ], - "//conditions:default": [], - }) + select({ -- "@config//:v8_arm64_simulator": [ -+ "@v8//bazel/config:v8_arm64_simulator": [ - "src/trap-handler/trap-handler-simulator.h", - "src/trap-handler/handler-outside-simulator.cc", - ], - "//conditions:default": [], - }) + select({ -- "@config//:is_windows": [ -+ "@v8//bazel/config:is_windows": [ - "src/trap-handler/handler-inside-win.cc", - "src/trap-handler/handler-outside-win.cc", - "src/trap-handler/handler-inside-win.h", -- # Needed on windows to work around https://github.com/bazelbuild/bazel/issues/6337 -- "third_party/zlib/zlib.h", -- "third_party/zlib/zconf.h", - ], - "//conditions:default": [], - }) + select({ -- "@config//:is_windows_64bit": [ -+ "@v8//bazel/config:is_windows_64bit": [ - "src/diagnostics/unwinding-info-win64.cc", - "src/diagnostics/unwinding-info-win64.h", - ], -@@ -2712,10 +2735,11 @@ filegroup( - "src/interpreter/interpreter-intrinsics-generator.cc", - "src/interpreter/interpreter-intrinsics-generator.h", - ] + select({ -- "@config//:v8_target_ia32": ["src/builtins/ia32/builtins-ia32.cc"], -- "@config//:v8_target_x64": ["src/builtins/x64/builtins-x64.cc"], -- "@config//:v8_target_arm": ["src/builtins/arm/builtins-arm.cc"], -- "@config//:v8_target_arm64": ["src/builtins/arm64/builtins-arm64.cc"], -+ "@v8//bazel/config:v8_target_ia32": ["src/builtins/ia32/builtins-ia32.cc"], -+ "@v8//bazel/config:v8_target_x64": ["src/builtins/x64/builtins-x64.cc"], -+ "@v8//bazel/config:v8_target_arm": ["src/builtins/arm/builtins-arm.cc"], -+ "@v8//bazel/config:v8_target_arm64": ["src/builtins/arm64/builtins-arm64.cc"], -+ "@v8//bazel/config:v8_target_s390x": ["src/builtins/s390/builtins-s390.cc"], - }) + select({ - ":is_v8_enable_webassembly": [ - "src/builtins/builtins-wasm-gen.cc", -@@ -2832,13 +2856,14 @@ filegroup( - # Note these cannot be v8_target_is_* selects because these contain - # inline assembly that runs inside the executable. Since these are - # linked directly into mksnapshot, they must use the actual target cpu. -- "@config//:is_inline_asm_ia32": ["src/heap/base/asm/ia32/push_registers_asm.cc"], -- "@config//:is_inline_asm_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"], -- "@config//:is_inline_asm_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"], -- "@config//:is_inline_asm_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"], -- "@config//:is_msvc_asm_ia32": ["src/heap/base/asm/ia32/push_registers_masm.S"], -- "@config//:is_msvc_asm_x64": ["src/heap/base/asm/x64/push_registers_masm.S"], -- "@config//:is_msvc_asm_arm64": ["src/heap/base/asm/arm64/push_registers_masm.S"], -+ "@v8//bazel/config:is_inline_asm_ia32": ["src/heap/base/asm/ia32/push_registers_asm.cc"], -+ "@v8//bazel/config:is_inline_asm_x64": ["src/heap/base/asm/x64/push_registers_asm.cc"], -+ "@v8//bazel/config:is_inline_asm_arm": ["src/heap/base/asm/arm/push_registers_asm.cc"], -+ "@v8//bazel/config:is_inline_asm_arm64": ["src/heap/base/asm/arm64/push_registers_asm.cc"], -+ "@v8//bazel/config:is_inline_asm_s390x": ["src/heap/base/asm/s390/push_registers_asm.cc"], -+ "@v8//bazel/config:is_msvc_asm_ia32": ["src/heap/base/asm/ia32/push_registers_masm.S"], -+ "@v8//bazel/config:is_msvc_asm_x64": ["src/heap/base/asm/x64/push_registers_masm.S"], -+ "@v8//bazel/config:is_msvc_asm_arm64": ["src/heap/base/asm/arm64/push_registers_masm.S"], - }), - ) - -@@ -2992,16 +3017,17 @@ filegroup( - srcs = [ - "src/init/setup-isolate-deserialize.cc", - ] + select({ -- "@config//:v8_target_arm": [ -+ "@v8//bazel/config:v8_target_arm": [ - "google3/snapshots/arm/noicu/embedded.S", - "google3/snapshots/arm/noicu/snapshot.cc", - ], -- "@config//:v8_target_ia32": [ -+ "@v8//bazel/config:v8_target_ia32": [ - "google3/snapshots/ia32/noicu/embedded.S", - "google3/snapshots/ia32/noicu/snapshot.cc", - ], -- "@config//:v8_target_arm64": [":noicu/generated_snapshot_files"], -- "@config//:v8_target_x64": [":noicu/generated_snapshot_files"], -+ "@v8//bazel/config:v8_target_arm64": [":noicu/generated_snapshot_files"], -+ "@v8//bazel/config:v8_target_s390x": [":noicu/generated_snapshot_files"], -+ "@v8//bazel/config:v8_target_x64": [":noicu/generated_snapshot_files"], - }), - ) - -@@ -3010,16 +3036,17 @@ filegroup( - srcs = [ - "src/init/setup-isolate-deserialize.cc", - ] + select({ -- "@config//:v8_target_arm": [ -+ "@v8//bazel/config:v8_target_arm": [ - "google3/snapshots/arm/icu/embedded.S", - "google3/snapshots/arm/icu/snapshot.cc", - ], -- "@config//:v8_target_ia32": [ -+ "@v8//bazel/config:v8_target_ia32": [ - "google3/snapshots/ia32/icu/embedded.S", - "google3/snapshots/ia32/icu/snapshot.cc", - ], -- "@config//:v8_target_arm64": [":icu/generated_snapshot_files"], -- "@config//:v8_target_x64": [":icu/generated_snapshot_files"], -+ "@v8//bazel/config:v8_target_arm64": [":icu/generated_snapshot_files"], -+ "@v8//bazel/config:v8_target_s390x": [":icu/generated_snapshot_files"], -+ "@v8//bazel/config:v8_target_x64": [":icu/generated_snapshot_files"], - }), - ) - -@@ -3050,7 +3077,7 @@ v8_torque( - ":is_v8_annotate_torque_ir": ["-annotate-ir"], - "//conditions:default": [], - }) + select({ -- "@config//:v8_target_is_32_bits": ["-m32"], -+ "@v8//bazel/config:v8_target_is_32_bits": ["-m32"], - "//conditions:default": [], - }), - extras = [ -@@ -3079,9 +3106,39 @@ v8_torque( - noicu_srcs = [":noicu/torque_files"], - ) - -+py_binary( -+ name = "code_generator", -+ srcs = [ -+ "third_party/inspector_protocol/code_generator.py", -+ "third_party/inspector_protocol/pdl.py", -+ ], -+ data = [ -+ "third_party/inspector_protocol/lib/Forward_h.template", -+ "third_party/inspector_protocol/lib/Object_cpp.template", -+ "third_party/inspector_protocol/lib/Object_h.template", -+ "third_party/inspector_protocol/lib/Protocol_cpp.template", -+ "third_party/inspector_protocol/lib/ValueConversions_cpp.template", -+ "third_party/inspector_protocol/lib/ValueConversions_h.template", -+ "third_party/inspector_protocol/lib/Values_cpp.template", -+ "third_party/inspector_protocol/lib/Values_h.template", -+ "third_party/inspector_protocol/lib/base_string_adapter_cc.template", -+ "third_party/inspector_protocol/lib/base_string_adapter_h.template", -+ "third_party/inspector_protocol/templates/Exported_h.template", -+ "third_party/inspector_protocol/templates/Imported_h.template", -+ "third_party/inspector_protocol/templates/TypeBuilder_cpp.template", -+ "third_party/inspector_protocol/templates/TypeBuilder_h.template", -+ ], -+ deps = [ -+ requirement("jinja2"), -+ ], -+) -+ - genrule( - name = "generated_inspector_files", -- srcs = ["include/js_protocol.pdl"], -+ srcs = [ -+ "include/js_protocol.pdl", -+ "src/inspector/inspector_protocol_config.json", -+ ], - outs = [ - "include/inspector/Debugger.h", - "include/inspector/Runtime.h", -@@ -3102,10 +3159,27 @@ genrule( - "src/inspector/protocol/Schema.cpp", - "src/inspector/protocol/Schema.h", - ], -- cmd = "bazel/generate-inspector-files.sh $(@D)", -- cmd_bat = "bazel\\generate-inspector-files.cmd $(@D)", -- local = 1, -+ cmd = """ -+ export DIR=$$(dirname $$(dirname $(location :include/js_protocol.pdl))) \ -+ && \ -+ sed -e 's@"path": "..\\/..\\/@"path": "'"$${DIR}"'\\/@g' \ -+ -e 's@"output": "..\\/..\\/@"output": "@g' \ -+ -e 's@"output": "protocol"@"output": "src\\/inspector\\/protocol"@g' \ -+ $(location src/inspector/inspector_protocol_config.json) \ -+ > modified_config.json \ -+ && \ -+ $(location :code_generator) \ -+ --jinja_dir . \ -+ --inspector_protocol_dir third_party/inspector_protocol \ -+ --config modified_config.json \ -+ --output_base $(@D) \ -+ && \ -+ rm modified_config.json -+ """, - message = "Generating inspector files", -+ tools = [ -+ ":code_generator", -+ ], - ) - - filegroup( -@@ -3218,7 +3292,7 @@ cc_library( - ":torque_base_files", - ], - copts = select({ -- "@config//:is_posix": [ "-fexceptions" ], -+ "@v8//bazel/config:is_posix": [ "-fexceptions" ], - "//conditions:default": [], - }), - features = ["-use_header_modules"], -@@ -3236,7 +3310,7 @@ v8_library( - ], - icu_deps = [ - ":icu/generated_torque_headers", -- "@icu", -+ "@com_googlesource_chromium_icu//:icu", - ], - icu_srcs = [ - ":generated_regexp_special_case", -@@ -3251,23 +3325,29 @@ v8_library( - ], - deps = [ - ":v8_libbase", -- "@zlib", -+ "@com_googlesource_chromium_trace_event_common//:trace_event_common", -+ "@com_googlesource_chromium_zlib//:zlib", - ], - ) - - v8_library( - name = "v8", - srcs = [":v8_inspector_files"], -+ hdrs = [":public_header_files"], - icu_deps = [":icu/v8_libshared"], - icu_srcs = [":icu/snapshot_files"], - noicu_deps = [":noicu/v8_libshared"], - noicu_srcs = [":noicu/snapshot_files"], -+ visibility = ["//visibility:public"], - ) - - # TODO(victorgomes): Check if v8_enable_webassembly is true. - v8_library( - name = "wee8", - srcs = [":wee8_files"], -+ hdrs = [":public_wasm_c_api_header_files"], -+ strip_include_prefix = "third_party", -+ visibility = ["//visibility:public"], - deps = [":noicu/v8"], - ) - -@@ -3314,7 +3394,7 @@ v8_binary( - "UNISTR_FROM_CHAR_EXPLICIT=", - ], - deps = [ -- "@icu", -+ "@com_googlesource_chromium_icu//:icu", - ], - ) - -@@ -3325,12 +3405,12 @@ v8_binary( - ":torque_base_files", - ], - copts = select({ -- "@config//:is_posix": [ "-fexceptions" ], -+ "@v8//bazel/config:is_posix": [ "-fexceptions" ], - "//conditions:default": [], - }), - features = ["-use_header_modules"], - linkopts = select({ -- "@config//:is_android": ["-llog"], -+ "@v8//bazel/config:is_android": ["-llog"], - "//conditions:default": [], - }), - deps = ["v8_libbase"], -@@ -3341,7 +3421,7 @@ v8_binary( - srcs = [":mksnapshot_files"], - icu_deps = [":icu/v8_libshared"], - linkopts = select({ -- "@config//:is_android": ["-llog"], -+ "@v8//bazel/config:is_android": ["-llog"], - "//conditions:default": [], - }), - noicu_deps = [":v8_libshared_noicu"], -diff --git a/WORKSPACE b/WORKSPACE -index 32fff02aab..4aacf4354f 100644 ---- a/WORKSPACE -+++ b/WORKSPACE -@@ -4,7 +4,9 @@ - - workspace(name = "v8") - -+load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") - load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") -+ - http_archive( - name = "bazel_skylib", - urls = [ -@@ -16,20 +18,37 @@ http_archive( - load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") - bazel_skylib_workspace() - --new_local_repository( -- name = "config", -- path = "bazel/config", -- build_file = "bazel/config/BUILD.bazel", -+new_git_repository( -+ name = "com_googlesource_chromium_icu", -+ build_file = "//:bazel/BUILD.icu", -+ commit = "fbc6faf1c2c429cd27fabe615a89f0b217aa4213", -+ remote = "https://chromium.googlesource.com/chromium/deps/icu.git", -+) -+ -+new_git_repository( -+ name = "com_googlesource_chromium_trace_event_common", -+ build_file = "//:bazel/BUILD.trace_event_common", -+ commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb", -+ remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", - ) - --new_local_repository( -- name = "zlib", -- path = "third_party/zlib", -- build_file = "bazel/BUILD.zlib", -+new_git_repository( -+ name = "com_googlesource_chromium_zlib", -+ build_file = "//:bazel/BUILD.zlib", -+ commit = "efd9399ae01364926be2a38946127fdf463480db", -+ remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", - ) - --new_local_repository( -- name = "icu", -- path = "third_party/icu", -- build_file = "bazel/BUILD.icu", -+http_archive( -+ name = "rules_python", -+ sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", -+ url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", -+) -+ -+load("@rules_python//python:pip.bzl", "pip_install") -+ -+pip_install( -+ name = "v8_python_deps", -+ extra_pip_args = ["--require-hashes"], -+ requirements = "//:bazel/requirements.txt", - ) -diff --git a/bazel/BUILD.trace_event_common b/bazel/BUILD.trace_event_common -new file mode 100644 -index 0000000000..685b284071 ---- /dev/null -+++ b/bazel/BUILD.trace_event_common -@@ -0,0 +1,10 @@ -+# Copyright 2021 the V8 project authors. All rights reserved. -+# Use of this source code is governed by a BSD-style license that can be -+# found in the LICENSE file. -+ -+cc_library( -+ name = "trace_event_common", -+ hdrs = ["trace_event_common.h"], -+ include_prefix = "base/trace_event/common", -+ visibility = ["//visibility:public"], -+) -diff --git a/bazel/config/BUILD.bazel b/bazel/config/BUILD.bazel -index 78a1b5debd..b7edae5815 100644 ---- a/bazel/config/BUILD.bazel -+++ b/bazel/config/BUILD.bazel -@@ -15,6 +15,20 @@ package( - ], - ) - -+config_setting( -+ name = "is_fastbuild", -+ values = { -+ "compilation_mode": "fastbuild", -+ }, -+) -+ -+config_setting( -+ name = "is_debug", -+ values = { -+ "compilation_mode": "dbg", -+ }, -+) -+ - config_setting( - name = "platform_cpu_x64", - constraint_values = ["@platforms//cpu:x86_64"], -@@ -27,7 +41,7 @@ config_setting( - - config_setting( - name = "platform_cpu_arm64", -- constraint_values = ["@platforms//cpu:arm"], -+ constraint_values = ["@platforms//cpu:aarch64"], - ) - - config_setting( -@@ -35,6 +49,11 @@ config_setting( - constraint_values = ["@platforms//cpu:arm"], - ) - -+config_setting( -+ name = "platform_cpu_s390x", -+ constraint_values = ["@platforms//cpu:s390x"], -+) -+ - v8_target_cpu( - name = "v8_target_cpu", - build_setting_default = "none", -@@ -58,15 +77,20 @@ v8_configure_target_cpu( - ) - - v8_configure_target_cpu( -- name = "arm", -+ name = "arm64", - matching_configs = [":platform_cpu_arm64"], - ) - - v8_configure_target_cpu( -- name = "arm64", -+ name = "arm", - matching_configs = [":platform_cpu_arm"], - ) - -+v8_configure_target_cpu( -+ name = "s390x", -+ matching_configs = [":platform_cpu_s390x"], -+) -+ - selects.config_setting_group( - name = "v8_target_is_32_bits", - match_any = [ -@@ -158,6 +182,11 @@ selects.config_setting_group( - match_all = [":is_posix", ":is_arm"], - ) - -+selects.config_setting_group( -+ name = "is_inline_asm_s390x", -+ match_all = [":is_posix", ":is_s390x"], -+) -+ - selects.config_setting_group( - name = "is_msvc_asm_x64", - match_all = [":is_windows", ":is_x64"], -@@ -172,3 +201,64 @@ selects.config_setting_group( - name = "is_msvc_asm_arm64", - match_all = [":is_windows", ":is_arm64"], - ) -+ -+config_setting( -+ name = "is_compiler_default", -+ flag_values = { -+ "@bazel_tools//tools/cpp:compiler": "compiler", -+ }, -+) -+ -+selects.config_setting_group( -+ name = "is_compiler_default_on_linux", -+ match_all = [ -+ ":is_compiler_default", -+ ":is_linux", -+ ], -+) -+ -+selects.config_setting_group( -+ name = "is_compiler_default_on_macos", -+ match_all = [ -+ ":is_compiler_default", -+ ":is_macos", -+ ], -+) -+ -+config_setting( -+ name = "is_compiler_clang", -+ flag_values = { -+ "@bazel_tools//tools/cpp:compiler": "clang", -+ }, -+) -+ -+selects.config_setting_group( -+ name = "is_clang", -+ match_any = [ -+ ":is_compiler_default_on_macos", -+ ":is_compiler_clang", -+ ], -+) -+ -+config_setting( -+ name = "is_compiler_gcc", -+ flag_values = { -+ "@bazel_tools//tools/cpp:compiler": "gcc", -+ }, -+) -+ -+selects.config_setting_group( -+ name = "is_gcc", -+ match_any = [ -+ ":is_compiler_default_on_linux", -+ ":is_compiler_gcc", -+ ], -+) -+ -+selects.config_setting_group( -+ name = "is_gcc_fastbuild", -+ match_all = [ -+ ":is_gcc", -+ ":is_fastbuild", -+ ], -+) -diff --git a/bazel/config/v8-target-cpu.bzl b/bazel/config/v8-target-cpu.bzl -index 2d5d241ebf..72aae9e270 100644 ---- a/bazel/config/v8-target-cpu.bzl -+++ b/bazel/config/v8-target-cpu.bzl -@@ -14,7 +14,7 @@ V8CpuTypeInfo = provider( - ) - - def _host_target_cpu_impl(ctx): -- allowed_values = ["arm", "arm64", "ia32", "x64", "none"] -+ allowed_values = ["arm", "arm64", "ia32", "s390x", "x64", "none"] - cpu_type = ctx.build_setting_value - if cpu_type in allowed_values: - return V8CpuTypeInfo(value = cpu_type) -diff --git a/bazel/defs.bzl b/bazel/defs.bzl -index 53fccf92e7..14fff6f049 100644 ---- a/bazel/defs.bzl -+++ b/bazel/defs.bzl -@@ -89,7 +89,7 @@ def _default_args(): - return struct( - deps = [":define_flags"], - defines = select({ -- "@config//:is_windows": [ -+ "@v8//bazel/config:is_windows": [ - "UNICODE", - "_UNICODE", - "_CRT_RAND_S", -@@ -98,29 +98,59 @@ def _default_args(): - "//conditions:default": [], - }), - copts = select({ -- "@config//:is_posix": [ -+ "@v8//bazel/config:is_posix": [ - "-fPIC", -+ "-fno-strict-aliasing", - "-Werror", - "-Wextra", -+ "-Wno-unknown-warning-option", - "-Wno-bitwise-instead-of-logical", - "-Wno-builtin-assume-aligned-alignment", - "-Wno-unused-parameter", - "-Wno-implicit-int-float-conversion", - "-Wno-deprecated-copy", - "-Wno-non-virtual-dtor", -- "-std=c++17", - "-isystem .", - ], - "//conditions:default": [], -+ }) + select({ -+ "@v8//bazel/config:is_clang": [ -+ "-Wno-invalid-offsetof", -+ "-std=c++17", -+ ], -+ "@v8//bazel/config:is_gcc": [ -+ "-Wno-extra", -+ "-Wno-comments", -+ "-Wno-deprecated-declarations", -+ "-Wno-implicit-fallthrough", -+ "-Wno-maybe-uninitialized", -+ "-Wno-mismatched-new-delete", -+ "-Wno-redundant-move", -+ "-Wno-return-type", -+ # Use GNU dialect, because GCC doesn't allow using -+ # ##__VA_ARGS__ when in standards-conforming mode. -+ "-std=gnu++17", -+ ], -+ "@v8//bazel/config:is_windows": [ -+ "/std:c++17", -+ ], -+ "//conditions:default": [], -+ }) + select({ -+ "@v8//bazel/config:is_gcc_fastbuild": [ -+ # Non-debug builds without optimizations fail because -+ # of recursive inlining of "always_inline" functions. -+ "-O1", -+ ], -+ "//conditions:default": [], - }), - includes = ["include"], - linkopts = select({ -- "@config//:is_windows": [ -+ "@v8//bazel/config:is_windows": [ - "Winmm.lib", - "DbgHelp.lib", - "Advapi32.lib", - ], -- "@config//:is_macos": ["-pthread"], -+ "@v8//bazel/config:is_macos": ["-pthread"], - "//conditions:default": ["-Wl,--no-as-needed -ldl -pthread"], - }) + select({ - ":should_add_rdynamic": ["-rdynamic"], -@@ -248,8 +278,10 @@ def v8_library( - ) - - def _torque_impl(ctx): -- v8root = "." -- prefix = ctx.attr.prefix -+ if ctx.workspace_name == "v8": -+ v8root = "." -+ else: -+ v8root = "external/v8" - - # Arguments - args = [] -@@ -301,7 +333,6 @@ _v8_torque = rule( - cfg = "exec", - ), - "args": attr.string_list(), -- "v8root": attr.label(default = ":v8_root"), - }, - ) - -@@ -313,7 +344,7 @@ def v8_torque(name, noicu_srcs, icu_srcs, args, extras): - args = args, - extras = extras, - tool = select({ -- "@config//:v8_target_is_32_bits": ":torque_non_pointer_compression", -+ "@v8//bazel/config:v8_target_is_32_bits": ":torque_non_pointer_compression", - "//conditions:default": ":torque", - }), - ) -@@ -324,7 +355,7 @@ def v8_torque(name, noicu_srcs, icu_srcs, args, extras): - args = args, - extras = extras, - tool = select({ -- "@config//:v8_target_is_32_bits": ":torque_non_pointer_compression", -+ "@v8//bazel/config:v8_target_is_32_bits": ":torque_non_pointer_compression", - "//conditions:default": ":torque", - }), - ) -@@ -334,6 +365,7 @@ def _v8_target_cpu_transition_impl(settings, attr): - "haswell": "x64", - "k8": "x64", - "x86_64": "x64", -+ "darwin": "x64", - "darwin_x86_64": "x64", - "x86": "ia32", - "ppc": "ppc64", -@@ -342,14 +374,14 @@ def _v8_target_cpu_transition_impl(settings, attr): - "armeabi-v7a": "arm32", - } - v8_target_cpu = mapping[settings["//command_line_option:cpu"]] -- return {"@config//:v8_target_cpu": v8_target_cpu} -+ return {"@v8//bazel/config:v8_target_cpu": v8_target_cpu} +@@ -106,7 +106,7 @@ v8_flag(name = "v8_enable_disassembler") - # Set the v8_target_cpu to be the correct architecture given the cpu specified - # on the command line. - v8_target_cpu_transition = transition( - implementation = _v8_target_cpu_transition_impl, - inputs = ["//command_line_option:cpu"], -- outputs = ["@config//:v8_target_cpu"], -+ outputs = ["@v8//bazel/config:v8_target_cpu"], + v8_flag( + name = "v8_enable_handle_zapping", +- default = True, ++ default = False, ) - def _mksnapshot(ctx): -diff --git a/bazel/generate-inspector-files.cmd b/bazel/generate-inspector-files.cmd -deleted file mode 100644 -index 202dd81d7c..0000000000 ---- a/bazel/generate-inspector-files.cmd -+++ /dev/null -@@ -1,24 +0,0 @@ --REM Copyright 2021 the V8 project authors. All rights reserved. --REM Use of this source code is governed by a BSD-style license that can be --REM found in the LICENSE file. -- --set BAZEL_OUT=%1 -- --REM Bazel nukes all env vars, and we need the following for gn to work --set DEPOT_TOOLS_WIN_TOOLCHAIN=0 --set ProgramFiles(x86)=C:\Program Files (x86) --set windir=C:\Windows -- --REM Create a default GN output folder --cmd.exe /S /E:ON /V:ON /D /c gn gen out/inspector -- --REM Generate inspector files --cmd.exe /S /E:ON /V:ON /D /c autoninja -C out/inspector gen/src/inspector/protocol/Forward.h -- --REM Create directories in bazel output folder --MKDIR -p %BAZEL_OUT%\include\inspector --MKDIR -p %BAZEL_OUT%\src\inspector\protocol -- --REM Copy generated files to bazel output folder --COPY out\inspector\gen\include\inspector\* %BAZEL_OUT%\include\inspector\ --COPY out\inspector\gen\src\inspector\protocol\* %BAZEL_OUT%\src\inspector\protocol\ -\ No newline at end of file -diff --git a/bazel/generate-inspector-files.sh b/bazel/generate-inspector-files.sh -deleted file mode 100755 -index 9547041c33..0000000000 ---- a/bazel/generate-inspector-files.sh -+++ /dev/null -@@ -1,21 +0,0 @@ --# Copyright 2021 the V8 project authors. All rights reserved. --# Use of this source code is governed by a BSD-style license that can be --# found in the LICENSE file. -- --set -e -- --BAZEL_OUT=$1 -- --# Create a default GN output folder --gn gen out/inspector -- --# Generate inspector files --autoninja -C out/inspector src/inspector:protocol_generated_sources -- --# Create directories in bazel output folder --mkdir -p $BAZEL_OUT/include/inspector --mkdir -p $BAZEL_OUT/src/inspector/protocol -- --# Copy generated files to bazel output folder --cp out/inspector/gen/include/inspector/* $BAZEL_OUT/include/inspector/ --cp out/inspector/gen/src/inspector/protocol/* $BAZEL_OUT/src/inspector/protocol/ -diff --git a/bazel/requirements.in b/bazel/requirements.in -new file mode 100644 -index 0000000000..7f7afbf3bf ---- /dev/null -+++ b/bazel/requirements.in -@@ -0,0 +1 @@ -+jinja2 -diff --git a/bazel/requirements.txt b/bazel/requirements.txt -new file mode 100644 -index 0000000000..a9c132f688 ---- /dev/null -+++ b/bazel/requirements.txt -@@ -0,0 +1,81 @@ -+# -+# This file is autogenerated by pip-compile with python 3.9 -+# To update, run: -+# -+# pip-compile --generate-hashes requirements.in -+# -+jinja2==3.0.3 \ -+ --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ -+ --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 -+ # via -r requirements.in -+markupsafe==2.0.1 \ -+ --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ -+ --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ -+ --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ -+ --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ -+ --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ -+ --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ -+ --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ -+ --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ -+ --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ -+ --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ -+ --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ -+ --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ -+ --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ -+ --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ -+ --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ -+ --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ -+ --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ -+ --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ -+ --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ -+ --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ -+ --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ -+ --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ -+ --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ -+ --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ -+ --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ -+ --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ -+ --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ -+ --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ -+ --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ -+ --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ -+ --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ -+ --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ -+ --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ -+ --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ -+ --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ -+ --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ -+ --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ -+ --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ -+ --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ -+ --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ -+ --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ -+ --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ -+ --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ -+ --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ -+ --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ -+ --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ -+ --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ -+ --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ -+ --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ -+ --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ -+ --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ -+ --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ -+ --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ -+ --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ -+ --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ -+ --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ -+ --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ -+ --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ -+ --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ -+ --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ -+ --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ -+ --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ -+ --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ -+ --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ -+ --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ -+ --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ -+ --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ -+ --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ -+ --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 -+ # via jinja2 + v8_flag(name = "v8_enable_hugepage") diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 9e0c5ac48..8ac679bab 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -125,13 +125,18 @@ def proxy_wasm_cpp_host_repositories(): git_repository( name = "v8", - commit = "11559b4461ac0c3328354229e03c2a989b104ff9", + commit = "a5ff33ec02e0dff53217bf7fd5ca0ec504775d23", remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1641210631 +0000", + shallow_since = "1641852349 +0000", patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], patch_args = ["-p1"], ) + native.bind( + name = "wee8", + actual = "@v8//:wee8", + ) + new_git_repository( name = "com_googlesource_chromium_trace_event_common", build_file = "@v8//:bazel/BUILD.trace_event_common", @@ -140,6 +145,11 @@ def proxy_wasm_cpp_host_repositories(): shallow_since = "1635355186 -0700", ) + native.bind( + name = "base_trace_event_common", + actual = "@com_googlesource_chromium_trace_event_common//:trace_event_common", + ) + new_git_repository( name = "com_googlesource_chromium_zlib", build_file = "@v8//:bazel/BUILD.zlib", @@ -148,13 +158,19 @@ def proxy_wasm_cpp_host_repositories(): shallow_since = "1638492135 -0800", ) - http_archive( - name = "rules_python", - sha256 = "cd6730ed53a002c56ce4e2f396ba3b3be262fd7cb68339f0377a45e8227fe332", - url = "https://github.com/bazelbuild/rules_python/releases/download/0.5.0/rules_python-0.5.0.tar.gz", + native.bind( + name = "zlib", + actual = "@com_googlesource_chromium_zlib//:zlib", ) native.bind( - name = "wee8", - actual = "@v8//:wee8", + name = "zlib_compression_utils", + actual = "@com_googlesource_chromium_zlib//:zlib_compression_utils", + ) + + http_archive( + name = "rules_python", + sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502", + strip_prefix = "rules_python-0.6.0", + url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", ) From fd40710d41c879299f8b671a64f19755262f4811 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 12 Jan 2022 04:40:01 -0600 Subject: [PATCH 136/287] wasmtime: rely on the build script to build helpers. (#218) Helpers are compiled by the build script in wasmtime-runtime crate, which also sets a platform-specific define that was missing here. Signed-off-by: Piotr Sikora --- bazel/external/wasmtime.BUILD | 9 --------- 1 file changed, 9 deletions(-) diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index d8afdff3a..fda981850 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -5,14 +5,6 @@ licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) -cc_library( - name = "helpers_lib", - srcs = [ - "crates/runtime/src/helpers.c", - ], - visibility = ["//visibility:private"], -) - rust_library( name = "rust_c_api", srcs = glob(["crates/c-api/src/**/*.rs"]), @@ -24,7 +16,6 @@ rust_library( "@proxy_wasm_cpp_host//bazel/cargo:wasmtime_c_api_macros", ], deps = [ - ":helpers_lib", "@proxy_wasm_cpp_host//bazel/cargo:anyhow", "@proxy_wasm_cpp_host//bazel/cargo:env_logger", "@proxy_wasm_cpp_host//bazel/cargo:once_cell", From 4540d323aa6e4632c8cfcdfc31a34ced59501067 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 12 Jan 2022 08:11:06 -0600 Subject: [PATCH 137/287] Allow using system's crypto library instead of BoringSSL. (#219) Use: bazel test --define crypto=system //test/... Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 16 ++++++++++++++-- BUILD | 10 ++++++++-- bazel/BUILD | 5 +++++ src/signature_util.cc | 26 ++++++++++++++++++++++++-- 4 files changed, 51 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index cb344058b..c0c8bcc89 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -69,6 +69,7 @@ jobs: - name: 'V8 on Linux' runtime: 'v8' os: ubuntu-20.04 + flags: '--define crypto=system' - name: 'V8 on macOS' runtime: 'v8' os: macos-11 @@ -110,11 +111,22 @@ jobs: - name: Test run: | - bazel test --test_output=errors --define runtime=${{ matrix.runtime }} //test/... + bazel test \ + --verbose_failures \ + --test_output=errors \ + --define runtime=${{ matrix.runtime }} \ + ${{ matrix.flags }} \ + //test/... - name: Test (signed Wasm module) run: | - bazel test --test_output=errors --define runtime=${{ matrix.runtime }} --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test + bazel test \ + --verbose_failures \ + --test_output=errors \ + --define runtime=${{ matrix.runtime }} \ + ${{ matrix.flags }} \ + --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" \ + //test:signature_util_test - name: Cleanup Bazel cache if: matrix.runtime != 'wasmtime' diff --git a/BUILD b/BUILD index 66d16d6ce..aa5845a6c 100644 --- a/BUILD +++ b/BUILD @@ -56,10 +56,16 @@ cc_library( "include/proxy-wasm/bytecode_util.h", "include/proxy-wasm/signature_util.h", ], + linkopts = select({ + "//bazel:crypto_system": ["-lcrypto"], + "//conditions:default": [], + }), deps = [ ":headers", - "@boringssl//:crypto", - ], + ] + select({ + "//bazel:crypto_system": [], + "//conditions:default": ["@boringssl//:crypto"], + }), ) cc_library( diff --git a/bazel/BUILD b/bazel/BUILD index b6eb774cd..620b8ebda 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -17,3 +17,8 @@ config_setting( name = "runtime_wavm", values = {"define": "runtime=wavm"}, ) + +config_setting( + name = "crypto_system", + values = {"define": "crypto=system"}, +) diff --git a/src/signature_util.cc b/src/signature_util.cc index 71b1341ce..7e3e1d976 100644 --- a/src/signature_util.cc +++ b/src/signature_util.cc @@ -17,8 +17,10 @@ #include #include -#include +#ifdef PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY +#include #include +#endif #include "include/proxy-wasm/bytecode_util.h" @@ -103,7 +105,27 @@ bool SignatureUtil::verifySignature(std::string_view bytecode, std::string &mess static const auto ed25519_pubkey = hex2pubkey<32>(PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY); - if (!ED25519_verify(hash, sizeof(hash), signature, ed25519_pubkey.data())) { + EVP_PKEY *pubkey = EVP_PKEY_new_raw_public_key(EVP_PKEY_ED25519, nullptr, ed25519_pubkey.data(), + 32 /* ED25519_PUBLIC_KEY_LEN */); + if (!pubkey) { + message = "Failed to load the public key"; + return false; + } + + EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); + if (!mdctx) { + message = "Failed to allocate memory for EVP_MD_CTX"; + EVP_PKEY_free(pubkey); + return false; + } + + bool ok = EVP_DigestVerifyInit(mdctx, nullptr, nullptr, nullptr, pubkey) && + EVP_DigestVerify(mdctx, signature, 64 /* ED25519_SIGNATURE_LEN */, hash, sizeof(hash)); + + EVP_MD_CTX_free(mdctx); + EVP_PKEY_free(pubkey); + + if (!ok) { message = "Signature mismatch"; return false; } From 76e226dca1c94dcd278cbada17a76e967b64638c Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 12 Jan 2022 09:16:22 -0600 Subject: [PATCH 138/287] Automatically use system's crypto library on Linux/s390x. (#220) BoringSSL doesn't support Linux/s390x. Signed-off-by: Piotr Sikora --- bazel/BUILD | 17 ++++++++++++++++- bazel/repositories.bzl | 9 +++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/bazel/BUILD b/bazel/BUILD index 620b8ebda..e0214a55f 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -1,3 +1,5 @@ +load("@bazel_skylib//lib:selects.bzl", "selects") + config_setting( name = "runtime_v8", values = {"define": "runtime=v8"}, @@ -19,6 +21,19 @@ config_setting( ) config_setting( - name = "crypto_system", + name = "requested_crypto_system", values = {"define": "crypto=system"}, ) + +config_setting( + name = "linux_s390x", + values = {"cpu": "s390x"}, +) + +selects.config_setting_group( + name = "crypto_system", + match_any = [ + ":requested_crypto_system", + ":linux_s390x", + ], +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 8ac679bab..2f0c21eb0 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -174,3 +174,12 @@ def proxy_wasm_cpp_host_repositories(): strip_prefix = "rules_python-0.6.0", url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", ) + + http_archive( + name = "bazel_skylib", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", + ], + sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", + ) From 1ba0e93b7b1063e41d19bba1f0b18ca2815b83bc Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 12 Jan 2022 11:55:32 -0600 Subject: [PATCH 139/287] Update rules_rust to latest (with Rust v1.57.0). (#222) Signed-off-by: Piotr Sikora --- bazel/external/wasmtime.BUILD | 5 ++--- bazel/repositories.bzl | 6 +++--- bazel/wasm.bzl | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index fda981850..913b6cc35 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -1,16 +1,15 @@ load("@rules_cc//cc:defs.bzl", "cc_library") -load("@rules_rust//rust:rust.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_static_library") licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) -rust_library( +rust_static_library( name = "rust_c_api", srcs = glob(["crates/c-api/src/**/*.rs"]), crate_features = [], crate_root = "crates/c-api/src/lib.rs", - crate_type = "staticlib", edition = "2018", proc_macro_deps = [ "@proxy_wasm_cpp_host//bazel/cargo:wasmtime_c_api_macros", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 2f0c21eb0..126a687a6 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -90,9 +90,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "rules_rust", - sha256 = "d195a85d38ee2dd7aecfedba6c9814a2ff22f968abac0818fd91e35c5b7aca6f", - strip_prefix = "rules_rust-6f79458dee68d691d6a5aee67b06a620bdf9293f", - url = "https://github.com/bazelbuild/rules_rust/archive/6f79458dee68d691d6a5aee67b06a620bdf9293f.tar.gz", + sha256 = "8a2052e8ec707aa04a6b9e72bfc67fea44e915ecab1d2d0a4835ad51c2410c36", + strip_prefix = "rules_rust-b16c26ba5faf1c58ebe94582afd20567ce676e6d", + url = "https://github.com/bazelbuild/rules_rust/archive/b16c26ba5faf1c58ebe94582afd20567ce676e6d.tar.gz", ) http_archive( diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index 8bc3351bf..7a62ccc87 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@rules_rust//rust:rust.bzl", "rust_binary") +load("@rules_rust//rust:defs.bzl", "rust_binary") def _wasm_rust_transition_impl(settings, attr): return { From d7b80ff81596684e0e4a0172feb70c010cd1b7fa Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 12 Jan 2022 14:38:17 -0600 Subject: [PATCH 140/287] Fix rules_rust on Linux/s390x. (#221) Signed-off-by: Piotr Sikora --- bazel/dependencies.bzl | 10 +++++++++- bazel/repositories.bzl | 1 + bazel/wasm.bzl | 7 ++++++- 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index b211b4579..2d5ef058f 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -15,11 +15,19 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates") load("@rules_python//python:pip.bzl", "pip_install") -load("@rules_rust//rust:repositories.bzl", "rust_repositories") +load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set") def proxy_wasm_cpp_host_dependencies(): protobuf_deps() + rust_repositories() + rust_repository_set( + name = "rust_linux_s390x", + exec_triple = "s390x-unknown-linux-gnu", + extra_target_triples = ["wasm32-unknown-unknown", "wasm32-wasi"], + version = "1.57.0", + ) + proxy_wasm_cpp_host_fetch_remote_crates() pip_install( diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 126a687a6..6f7812268 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -92,6 +92,7 @@ def proxy_wasm_cpp_host_repositories(): name = "rules_rust", sha256 = "8a2052e8ec707aa04a6b9e72bfc67fea44e915ecab1d2d0a4835ad51c2410c36", strip_prefix = "rules_rust-b16c26ba5faf1c58ebe94582afd20567ce676e6d", + # NOTE: Update Rust version for Linux/s390x in bazel/dependencies.bzl. url = "https://github.com/bazelbuild/rules_rust/archive/b16c26ba5faf1c58ebe94582afd20567ce676e6d.tar.gz", ) diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index 7a62ccc87..706d47a91 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -77,7 +77,7 @@ wasi_rust_binary_rule = rule( attrs = _wasm_attrs(wasi_rust_transition), ) -def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], **kwargs): +def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], rustc_flags = [], **kwargs): wasm_name = "_wasm_" + name.replace(".", "_") kwargs.setdefault("visibility", ["//visibility:public"]) @@ -87,6 +87,11 @@ def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], **kwargs): crate_type = "cdylib", out_binary = True, tags = ["manual"], + # Rust doesn't distribute rust-lld for Linux/s390x. + rustc_flags = rustc_flags + select({ + "//bazel:linux_s390x": ["-C", "linker=/usr/bin/lld"], + "//conditions:default": [], + }), **kwargs ) From 4634be18b3c2f54999be713fe3e183d62d9ec4a5 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 12 Jan 2022 23:49:06 -0600 Subject: [PATCH 141/287] Update Bazel to v4.2.2. (#223) Signed-off-by: Piotr Sikora --- .bazelversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelversion b/.bazelversion index ee74734aa..af8c8ec7c 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -4.1.0 +4.2.2 From e0274bf2c09947678e80422c6ead334a560db0d5 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 25 Jan 2022 00:19:21 -0600 Subject: [PATCH 142/287] Update BoringSSL to 2022-01-10. (#224) Signed-off-by: Piotr Sikora --- bazel/repositories.bzl | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 6f7812268..6ac39dfe5 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -25,9 +25,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "boringssl", - sha256 = "bb55b0ed2f0cb548b5dce6a6b8307ce37f7f748eb9f1be6bfe2d266ff2b4d52b", - strip_prefix = "boringssl-2192bbc878822cf6ab5977d4257a1339453d9d39", - urls = ["https://github.com/google/boringssl/archive/2192bbc878822cf6ab5977d4257a1339453d9d39.tar.gz"], + # 2022-01-10 (master-with-bazel) + sha256 = "a530919e3141d00d593a0d74cd0f9f88707e35ec58bb62245968fec16cb9257f", + strip_prefix = "boringssl-9420fb54116466923afa1f34a23dd8a4a7ddb69d", + urls = ["https://github.com/google/boringssl/archive/9420fb54116466923afa1f34a23dd8a4a7ddb69d.tar.gz"], ) http_archive( From a15f79d51fee82d4682deee56df7e1c26b60907c Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 25 Jan 2022 00:19:40 -0600 Subject: [PATCH 143/287] v8: update to v9.9.115.3. (#225) Signed-off-by: Piotr Sikora --- bazel/external/v8.patch | 15 --------------- bazel/repositories.bzl | 15 +++++++-------- 2 files changed, 7 insertions(+), 23 deletions(-) delete mode 100644 bazel/external/v8.patch diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch deleted file mode 100644 index b115a0433..000000000 --- a/bazel/external/v8.patch +++ /dev/null @@ -1,15 +0,0 @@ -# Set v8_enable_handle_zapping=False to regain performance. - -diff --git a/BUILD.bazel b/BUILD.bazel -index 7d09243ee9..b9dec574e9 100644 ---- a/BUILD.bazel -+++ b/BUILD.bazel -@@ -106,7 +106,7 @@ v8_flag(name = "v8_enable_disassembler") - - v8_flag( - name = "v8_enable_handle_zapping", -- default = True, -+ default = False, - ) - - v8_flag(name = "v8_enable_hugepage") diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 6ac39dfe5..d44a63cc5 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -127,11 +127,10 @@ def proxy_wasm_cpp_host_repositories(): git_repository( name = "v8", - commit = "a5ff33ec02e0dff53217bf7fd5ca0ec504775d23", + # 9.9.115.3 + commit = "90f089d97b6e4146ad106eee1829d86ad6392027", remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1641852349 +0000", - patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], - patch_args = ["-p1"], + shallow_since = "1643043727 +0000", ) native.bind( @@ -140,7 +139,7 @@ def proxy_wasm_cpp_host_repositories(): ) new_git_repository( - name = "com_googlesource_chromium_trace_event_common", + name = "com_googlesource_chromium_base_trace_event_common", build_file = "@v8//:bazel/BUILD.trace_event_common", commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb", remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", @@ -149,15 +148,15 @@ def proxy_wasm_cpp_host_repositories(): native.bind( name = "base_trace_event_common", - actual = "@com_googlesource_chromium_trace_event_common//:trace_event_common", + actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common", ) new_git_repository( name = "com_googlesource_chromium_zlib", build_file = "@v8//:bazel/BUILD.zlib", - commit = "efd9399ae01364926be2a38946127fdf463480db", + commit = "fc5cfd78a357d5bb7735a58f383634faaafe706a", remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", - shallow_since = "1638492135 -0800", + shallow_since = "1642005087 -0800", ) native.bind( From 5785e9292afc22dc06d3ffacdf90de24852cfaa3 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 25 Jan 2022 00:19:58 -0600 Subject: [PATCH 144/287] wamr: update to WAMR-01-18-2022. (#226) Signed-off-by: Piotr Sikora --- bazel/external/wamr.patch | 15 --------------- bazel/repositories.bzl | 9 ++++----- 2 files changed, 4 insertions(+), 20 deletions(-) delete mode 100644 bazel/external/wamr.patch diff --git a/bazel/external/wamr.patch b/bazel/external/wamr.patch deleted file mode 100644 index f129e44dd..000000000 --- a/bazel/external/wamr.patch +++ /dev/null @@ -1,15 +0,0 @@ -1. Automatically detect the host platform. (https://github.com/bytecodealliance/wasm-micro-runtime/pull/929) - -diff --git a/CMakeLists.txt b/CMakeLists.txt -index d77473e..bc74e72 100644 ---- a/CMakeLists.txt -+++ b/CMakeLists.txt -@@ -6,7 +6,7 @@ cmake_minimum_required (VERSION 2.8...3.16) - project (iwasm) - # set (CMAKE_VERBOSE_MAKEFILE 1) - --set (WAMR_BUILD_PLATFORM "linux") -+string (TOLOWER ${CMAKE_HOST_SYSTEM_NAME} WAMR_BUILD_PLATFORM) - - # Reset default linker flags - set (CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index d44a63cc5..1cc9f3348 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -56,11 +56,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive( name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - sha256 = "0ccf19f30f744fca635be5428f6460c14dfee19bfa0820c70e0fc9554f79c9b1", - strip_prefix = "wasm-micro-runtime-cdf306364eff8f50fd6473b32a316cb90cc15a2f", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/cdf306364eff8f50fd6473b32a316cb90cc15a2f.tar.gz", - patches = ["@proxy_wasm_cpp_host//bazel/external:wamr.patch"], - patch_args = ["-p1"], + # WAMR-01-18-2022 + sha256 = "af88da144bcb5ecac417af7fd34130487f5e4792e79670f07530474b2ef43912", + strip_prefix = "wasm-micro-runtime-d856af6c33591815ab4c890f0606bc99ee8135ad", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/d856af6c33591815ab4c890f0606bc99ee8135ad.tar.gz", ) native.bind( From 18e8d38aa542c4278323ae32def6e269a159e1ba Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 25 Jan 2022 00:20:23 -0600 Subject: [PATCH 145/287] wavm: fix build with Clang 13. (#227) Signed-off-by: Piotr Sikora --- bazel/external/wavm.patch | 14 ++++++++++++++ bazel/repositories.bzl | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 bazel/external/wavm.patch diff --git a/bazel/external/wavm.patch b/bazel/external/wavm.patch new file mode 100644 index 000000000..a03c67c32 --- /dev/null +++ b/bazel/external/wavm.patch @@ -0,0 +1,14 @@ +# Fix build with Clang 13. (https://github.com/WAVM/WAVM/pull/332) + +diff --git a/Lib/Platform/POSIX/ThreadPOSIX.cpp b/Lib/Platform/POSIX/ThreadPOSIX.cpp +index e1f232f6..d3241349 100644 +--- a/Lib/Platform/POSIX/ThreadPOSIX.cpp ++++ b/Lib/Platform/POSIX/ThreadPOSIX.cpp +@@ -173,6 +173,7 @@ WAVM_NO_ASAN static void touchStackPages(U8* minAddr, Uptr numBytesPerPage) + sum += *touchAddr; + if(touchAddr < minAddr + numBytesPerPage) { break; } + } ++ WAVM_SUPPRESS_UNUSED(sum); + } + + bool Platform::initThreadAndGlobalSignalsOnce() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 1cc9f3348..ed41d6ffc 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -117,6 +117,8 @@ def proxy_wasm_cpp_host_repositories(): sha256 = "bf2b2aec8a4c6a5413081c0527cb40dd16cb67e9c74a91f8a82fe1cf27a3c5d5", strip_prefix = "WAVM-c8997ebf154f3b42e688e670a7d0fa045b7a32a0", url = "https://github.com/WAVM/WAVM/archive/c8997ebf154f3b42e688e670a7d0fa045b7a32a0.tar.gz", + patches = ["@proxy_wasm_cpp_host//bazel/external:wavm.patch"], + patch_args = ["-p1"], ) native.bind( From 47c51822624e4a6671c1466892de2a10929cc8d9 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 25 Jan 2022 00:40:06 -0600 Subject: [PATCH 146/287] wasmtime: fix build on Linux/aarch64. (#228) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 74 ++++++++++++------- bazel/cargo/Cargo.toml | 5 ++ .../remote/BUILD.wasmtime-jit-0.33.0.bazel | 1 + 3 files changed, 52 insertions(+), 28 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index c0c8bcc89..b02b9cbdb 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -58,7 +58,7 @@ jobs: addlicense -check . build: - name: build (${{ matrix.name }}) + name: ${{ matrix.action }} with ${{ matrix.name }} runs-on: ${{ matrix.os }} @@ -66,28 +66,40 @@ jobs: fail-fast: false matrix: include: - - name: 'V8 on Linux' + - name: 'V8 on Linux/x86_64' runtime: 'v8' os: ubuntu-20.04 + action: test flags: '--define crypto=system' - - name: 'V8 on macOS' + - name: 'V8 on macOS/x86_64' runtime: 'v8' os: macos-11 - - name: 'WAMR on Linux' + action: test + - name: 'WAMR on Linux/x86_64' runtime: 'wamr' os: ubuntu-20.04 - - name: 'WAMR on macOS' + action: test + - name: 'WAMR on macOS/x86_64' runtime: 'wamr' os: macos-11 - - name: 'Wasmtime on Linux' + action: test + - name: 'Wasmtime on Linux/x86_64' runtime: 'wasmtime' os: ubuntu-20.04 - - name: 'Wasmtime on macOS' + action: test + - name: 'Wasmtime on Linux/aarch64' + runtime: 'wasmtime' + os: ubuntu-20.04 + action: build + run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-4.2.2-clang-13-gcc-11 + - name: 'Wasmtime on macOS/x86_64' runtime: 'wasmtime' os: macos-11 - - name: 'WAVM on Linux' + action: test + - name: 'WAVM on Linux/x86_64' runtime: 'wavm' os: ubuntu-20.04 + action: test steps: - uses: actions/checkout@v2 @@ -100,8 +112,12 @@ jobs: if: startsWith(matrix.os, 'macos') run: brew install ninja + - name: Activate Docker/QEMU + if: startsWith(matrix.run_under, 'docker') + run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + - name: Bazel cache - if: matrix.runtime != 'wasmtime' + if: ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }} uses: actions/cache@v2 with: path: | @@ -109,27 +125,29 @@ jobs: /private/var/tmp/_bazel_runner/ key: bazel-${{ matrix.os }}-${{ matrix.runtime }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} - - name: Test - run: | - bazel test \ - --verbose_failures \ - --test_output=errors \ - --define runtime=${{ matrix.runtime }} \ - ${{ matrix.flags }} \ - //test/... - - - name: Test (signed Wasm module) - run: | - bazel test \ - --verbose_failures \ - --test_output=errors \ - --define runtime=${{ matrix.runtime }} \ - ${{ matrix.flags }} \ - --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" \ - //test:signature_util_test + - name: Bazel build/test + run: > + ${{ matrix.run_under }} + bazel ${{ matrix.action }} + --verbose_failures + --test_output=errors + --define runtime=${{ matrix.runtime }} + ${{ matrix.flags }} + //test/... + + - name: Bazel build/test (signed Wasm module) + run: > + ${{ matrix.run_under }} + bazel ${{ matrix.action }} + --verbose_failures + --test_output=errors + --define runtime=${{ matrix.runtime }} + ${{ matrix.flags }} + --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" + //test:signature_util_test - name: Cleanup Bazel cache - if: matrix.runtime != 'wasmtime' + if: ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }} run: | export OUTPUT=$(bazel info output_base) # BoringSSL's test data (90 MiB). diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index a8277f9fe..a8f1aa19d 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -31,3 +31,8 @@ additional_flags = [ buildrs_additional_deps = [ "@proxy_wasm_cpp_host__cc__1_0_72//:cc", ] + +[package.metadata.raze.crates.wasmtime-jit.'*'] +additional_deps = [ + "@proxy_wasm_cpp_host__rustix__0_31_3//:rustix", +] diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel index b8250a2b4..36c1435e2 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel +++ b/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel @@ -59,6 +59,7 @@ rust_library( "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", "@proxy_wasm_cpp_host__object__0_27_1//:object", "@proxy_wasm_cpp_host__region__2_2_0//:region", + "@proxy_wasm_cpp_host__rustix__0_31_3//:rustix", "@proxy_wasm_cpp_host__serde__1_0_133//:serde", "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", From 9fa182a70a0f59fd23b815e53c5429f27e7af6e3 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 25 Jan 2022 03:33:17 -0600 Subject: [PATCH 147/287] wasmtime: fix build on Linux/s390x. (#229) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 5 +++++ bazel/cargo/Cargo.toml | 6 ++++++ bazel/cargo/crates.bzl | 6 ++++++ bazel/cargo/wasmtime.patch | 20 ++++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 bazel/cargo/wasmtime.patch diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index b02b9cbdb..2a3ad4fff 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -92,6 +92,11 @@ jobs: os: ubuntu-20.04 action: build run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-4.2.2-clang-13-gcc-11 + - name: 'Wasmtime on Linux/s390x' + runtime: 'wasmtime' + os: ubuntu-20.04 + action: build + run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-4.2.2-clang-13-gcc-11 - name: 'Wasmtime on macOS/x86_64' runtime: 'wasmtime' os: macos-11 diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/Cargo.toml index a8f1aa19d..b6759f615 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/Cargo.toml @@ -36,3 +36,9 @@ buildrs_additional_deps = [ additional_deps = [ "@proxy_wasm_cpp_host__rustix__0_31_3//:rustix", ] + +[package.metadata.raze.crates.wasmtime-runtime.'*'] +patches = [ + "@proxy_wasm_cpp_host//bazel/cargo:wasmtime.patch", +] +patch_args = ["-p3"] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/crates.bzl index 6727a369e..9cdbcd48b 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/crates.bzl @@ -906,6 +906,12 @@ def proxy_wasm_cpp_host_fetch_remote_crates(): type = "tar.gz", sha256 = "abc7cd79937edd6e238b337608ebbcaf9c086a8457f01dfd598324f7fa56d81a", strip_prefix = "wasmtime-runtime-0.33.0", + patches = [ + "@proxy_wasm_cpp_host//bazel/cargo:wasmtime.patch", + ], + patch_args = [ + "-p3", + ], build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.33.0.bazel"), ) diff --git a/bazel/cargo/wasmtime.patch b/bazel/cargo/wasmtime.patch new file mode 100644 index 000000000..274043bc9 --- /dev/null +++ b/bazel/cargo/wasmtime.patch @@ -0,0 +1,20 @@ +# Fix build on s390x. (https://github.com/bytecodealliance/wasmtime/pull/3673) + +diff --git a/crates/runtime/src/helpers.c b/crates/runtime/src/helpers.c +index 66b87a150..b036b06a8 100644 +--- a/crates/runtime/src/helpers.c ++++ b/crates/runtime/src/helpers.c +@@ -8,10 +8,10 @@ + #define platform_longjmp(buf, arg) longjmp(buf, arg) + typedef jmp_buf platform_jmp_buf; + +-#elif defined(__clang__) && defined(__aarch64__) ++#elif defined(__clang__) && (defined(__aarch64__) || defined(__s390x__)) + +-// Clang on aarch64 doesn't support `__builtin_setjmp`, so use `sigsetjmp` +-// from libc. ++// Clang on aarch64 and s390x doesn't support `__builtin_setjmp`, so use ++//`sigsetjmp` from libc. + // + // Note that `sigsetjmp` and `siglongjmp` are used here where possible to + // explicitly pass a 0 argument to `sigsetjmp` that we don't need to preserve From 0310550c23e15d37ab9e96e327a9b3595d6549fc Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 25 Jan 2022 21:51:18 -0600 Subject: [PATCH 148/287] build: improve caching. (#231) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 2a3ad4fff..458a0f8ca 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -68,42 +68,60 @@ jobs: include: - name: 'V8 on Linux/x86_64' runtime: 'v8' + repo: 'v8' os: ubuntu-20.04 + arch: x86_64 action: test flags: '--define crypto=system' - name: 'V8 on macOS/x86_64' runtime: 'v8' + repo: 'v8' os: macos-11 + arch: x86_64 action: test - name: 'WAMR on Linux/x86_64' runtime: 'wamr' + repo: 'com_github_bytecodealliance_wasm_micro_runtime' os: ubuntu-20.04 + arch: x86_64 action: test - name: 'WAMR on macOS/x86_64' runtime: 'wamr' + repo: 'com_github_bytecodealliance_wasm_micro_runtime' os: macos-11 + arch: x86_64 action: test - name: 'Wasmtime on Linux/x86_64' runtime: 'wasmtime' + repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 + arch: x86_64 action: test - name: 'Wasmtime on Linux/aarch64' runtime: 'wasmtime' + repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 + arch: aarch64 action: build run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-4.2.2-clang-13-gcc-11 - name: 'Wasmtime on Linux/s390x' runtime: 'wasmtime' + repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 + arch: s390x action: build run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-4.2.2-clang-13-gcc-11 - name: 'Wasmtime on macOS/x86_64' runtime: 'wasmtime' + repo: 'com_github_bytecodealliance_wasmtime' os: macos-11 + arch: x86_64 action: test - name: 'WAVM on Linux/x86_64' runtime: 'wavm' + repo: 'com_github_wavm_wavm' os: ubuntu-20.04 + arch: x86_64 action: test steps: @@ -121,6 +139,10 @@ jobs: if: startsWith(matrix.run_under, 'docker') run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + - name: Set cache key + id: cache-key + run: echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)" + - name: Bazel cache if: ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }} uses: actions/cache@v2 @@ -128,7 +150,10 @@ jobs: path: | ~/.cache/bazel /private/var/tmp/_bazel_runner/ - key: bazel-${{ matrix.os }}-${{ matrix.runtime }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} + key: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} + restore-keys: | + ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}- + ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }} - name: Bazel build/test run: > From a4c273cb98a040c4e27157fb6ddc602a925bd243 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 26 Jan 2022 01:58:21 -0600 Subject: [PATCH 149/287] build: split Bazel rules for Wasmsign and Wasmtime. (#232) Signed-off-by: Piotr Sikora --- .github/workflows/cargo.yml | 5 +- .github/workflows/cpp.yml | 2 +- .../BUILD.wasmtime-cranelift-0.33.0.bazel | 68 --- bazel/cargo/wasmsign/BUILD.bazel | 39 ++ bazel/cargo/wasmsign/Cargo.raze.lock | 238 +++++++++ bazel/cargo/wasmsign/Cargo.toml | 20 + bazel/cargo/wasmsign/crates.bzl | 291 ++++++++++ .../remote/BUILD.ansi_term-0.12.1.bazel | 4 +- .../remote/BUILD.anyhow-1.0.53.bazel} | 6 +- .../remote/BUILD.atty-0.2.14.bazel | 6 +- bazel/cargo/{ => wasmsign}/remote/BUILD.bazel | 0 .../remote/BUILD.bitflags-1.3.2.bazel | 2 +- .../remote/BUILD.byteorder-1.4.3.bazel | 2 +- .../remote/BUILD.cfg-if-1.0.0.bazel | 2 +- .../remote/BUILD.clap-2.34.0.bazel | 16 +- .../remote/BUILD.ed25519-compact-1.0.8.bazel} | 6 +- .../remote/BUILD.getrandom-0.2.4.bazel | 96 ++++ .../remote/BUILD.hermit-abi-0.1.19.bazel | 4 +- .../remote/BUILD.hmac-sha512-1.1.1.bazel | 2 +- .../wasmsign/remote/BUILD.libc-0.2.114.bazel | 86 +++ .../remote/BUILD.parity-wasm-0.42.2.bazel | 2 +- .../remote/BUILD.proc-macro2-1.0.36.bazel | 4 +- .../remote/BUILD.quote-1.0.15.bazel} | 6 +- .../remote/BUILD.strsim-0.8.0.bazel | 2 +- .../remote/BUILD.syn-1.0.86.bazel} | 12 +- .../remote/BUILD.textwrap-0.11.0.bazel | 4 +- .../remote/BUILD.thiserror-1.0.30.bazel | 4 +- .../remote/BUILD.thiserror-impl-1.0.30.bazel | 8 +- .../remote/BUILD.unicode-width-0.1.9.bazel | 2 +- .../remote/BUILD.unicode-xid-0.2.2.bazel | 2 +- .../remote/BUILD.vec_map-0.8.2.bazel | 2 +- ...D.wasi-0.10.2+wasi-snapshot-preview1.bazel | 2 +- .../remote/BUILD.wasmsign-0.1.2.bazel | 30 +- .../wasmsign/remote/BUILD.winapi-0.3.9.bazel | 100 ++++ ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 2 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 2 +- bazel/cargo/{ => wasmtime}/BUILD.bazel | 28 +- bazel/cargo/{ => wasmtime}/Cargo.raze.lock | 129 +---- bazel/cargo/{ => wasmtime}/Cargo.toml | 14 +- bazel/cargo/{ => wasmtime}/crates.bzl | 503 +++++++----------- .../remote/BUILD.addr2line-0.17.0.bazel | 4 +- .../remote/BUILD.adler-1.0.2.bazel | 2 +- .../remote/BUILD.aho-corasick-0.7.18.bazel | 4 +- .../wasmtime/remote/BUILD.anyhow-1.0.53.bazel | 116 ++++ .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 90 ++++ .../remote/BUILD.autocfg-1.0.1.bazel | 2 +- .../remote/BUILD.backtrace-0.3.63.bazel | 16 +- bazel/cargo/wasmtime/remote/BUILD.bazel | 0 .../remote/BUILD.bincode-1.3.3.bazel | 4 +- .../remote/BUILD.bitflags-1.3.2.bazel | 59 ++ .../remote/BUILD.cc-1.0.72.bazel | 2 +- .../wasmtime/remote/BUILD.cfg-if-1.0.0.bazel | 56 ++ .../remote/BUILD.cpp_demangle-0.3.5.bazel | 6 +- .../BUILD.cranelift-bforest-0.80.0.bazel | 4 +- .../BUILD.cranelift-codegen-0.80.0.bazel | 20 +- .../BUILD.cranelift-codegen-meta-0.80.0.bazel | 4 +- ...UILD.cranelift-codegen-shared-0.80.0.bazel | 2 +- .../BUILD.cranelift-entity-0.80.0.bazel | 4 +- .../BUILD.cranelift-frontend-0.80.0.bazel | 10 +- .../BUILD.cranelift-native-0.80.0.bazel | 8 +- .../remote/BUILD.cranelift-wasm-0.80.0.bazel | 18 +- .../remote/BUILD.crc32fast-1.3.1.bazel} | 8 +- .../remote/BUILD.either-1.6.1.bazel | 2 +- .../remote/BUILD.env_logger-0.8.4.bazel | 12 +- .../remote/BUILD.errno-0.2.8.bazel | 8 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 6 +- .../BUILD.fallible-iterator-0.2.0.bazel | 2 +- .../remote/BUILD.getrandom-0.2.4.bazel} | 10 +- .../remote/BUILD.gimli-0.26.1.bazel | 8 +- .../remote/BUILD.hashbrown-0.11.2.bazel | 2 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 56 ++ .../remote/BUILD.humantime-2.1.0.bazel | 2 +- .../remote/BUILD.indexmap-1.8.0.bazel | 8 +- .../remote/BUILD.io-lifetimes-0.4.4.bazel | 4 +- .../remote/BUILD.itertools-0.10.3.bazel | 4 +- .../remote/BUILD.lazy_static-1.4.0.bazel | 2 +- .../remote/BUILD.libc-0.2.114.bazel} | 6 +- .../remote/BUILD.linux-raw-sys-0.0.36.bazel | 2 +- .../remote/BUILD.log-0.4.14.bazel | 4 +- .../remote/BUILD.mach-0.3.2.bazel | 4 +- .../remote/BUILD.memchr-2.4.1.bazel | 2 +- .../remote/BUILD.memoffset-0.6.5.bazel | 4 +- .../remote/BUILD.miniz_oxide-0.4.4.bazel | 6 +- .../remote/BUILD.more-asserts-0.2.2.bazel | 2 +- .../remote/BUILD.object-0.27.1.bazel | 8 +- .../remote/BUILD.once_cell-1.9.0.bazel | 2 +- .../remote/BUILD.paste-1.0.6.bazel | 2 +- .../remote/BUILD.ppv-lite86-0.2.16.bazel | 2 +- .../remote/BUILD.proc-macro2-1.0.36.bazel | 99 ++++ .../remote/BUILD.psm-0.1.16.bazel | 4 +- .../wasmtime/remote/BUILD.quote-1.0.15.bazel | 61 +++ .../remote/BUILD.rand-0.8.4.bazel | 8 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 6 +- .../remote/BUILD.rand_core-0.6.3.bazel | 4 +- .../remote/BUILD.rand_hc-0.3.1.bazel | 4 +- .../remote/BUILD.regalloc-0.0.33.bazel | 8 +- .../remote/BUILD.regex-1.5.4.bazel | 8 +- .../remote/BUILD.regex-syntax-0.6.25.bazel | 2 +- .../remote/BUILD.region-2.2.0.bazel | 10 +- .../remote/BUILD.rustc-demangle-0.1.21.bazel | 2 +- .../remote/BUILD.rustc-hash-1.1.0.bazel | 2 +- .../remote/BUILD.rustix-0.31.3.bazel | 18 +- .../remote/BUILD.serde-1.0.136.bazel} | 8 +- .../remote/BUILD.serde_derive-1.0.136.bazel} | 12 +- .../remote/BUILD.smallvec-1.8.0.bazel} | 4 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 2 +- .../wasmtime/remote/BUILD.syn-1.0.86.bazel | 159 ++++++ .../remote/BUILD.target-lexicon-0.12.2.bazel | 2 +- .../remote/BUILD.termcolor-1.1.2.bazel | 4 +- .../remote/BUILD.thiserror-1.0.30.bazel | 81 +++ .../remote/BUILD.thiserror-impl-1.0.30.bazel | 57 ++ .../remote/BUILD.unicode-xid-0.2.2.bazel | 59 ++ ...D.wasi-0.10.2+wasi-snapshot-preview1.bazel | 56 ++ .../remote/BUILD.wasmparser-0.81.0.bazel | 2 +- .../remote/BUILD.wasmtime-0.33.0.bazel | 46 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 6 +- .../BUILD.wasmtime-cranelift-0.33.0.bazel | 68 +++ .../BUILD.wasmtime-environ-0.33.0.bazel | 26 +- .../remote/BUILD.wasmtime-jit-0.33.0.bazel | 30 +- .../BUILD.wasmtime-runtime-0.33.0.bazel | 36 +- .../remote/BUILD.wasmtime-types-0.33.0.bazel | 10 +- .../remote/BUILD.winapi-0.3.9.bazel | 2 +- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 84 +++ .../remote/BUILD.winapi-util-0.1.5.bazel | 4 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 84 +++ .../wasmtime-runtime.patch} | 0 bazel/dependencies.bzl | 6 +- bazel/external/wasmtime.BUILD | 10 +- bazel/wasm.bzl | 2 +- 129 files changed, 2612 insertions(+), 846 deletions(-) delete mode 100644 bazel/cargo/remote/BUILD.wasmtime-cranelift-0.33.0.bazel create mode 100644 bazel/cargo/wasmsign/BUILD.bazel create mode 100644 bazel/cargo/wasmsign/Cargo.raze.lock create mode 100644 bazel/cargo/wasmsign/Cargo.toml create mode 100644 bazel/cargo/wasmsign/crates.bzl rename bazel/cargo/{ => wasmsign}/remote/BUILD.ansi_term-0.12.1.bazel (91%) rename bazel/cargo/{remote/BUILD.anyhow-1.0.52.bazel => wasmsign/remote/BUILD.anyhow-1.0.53.bazel} (95%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.atty-0.2.14.bazel (92%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.bazel (100%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.bitflags-1.3.2.bazel (93%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.byteorder-1.4.3.bazel (93%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.cfg-if-1.0.0.bazel (93%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.clap-2.34.0.bazel (82%) rename bazel/cargo/{remote/BUILD.ed25519-compact-1.0.1.bazel => wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel} (87%) create mode 100644 bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel rename bazel/cargo/{ => wasmsign}/remote/BUILD.hermit-abi-0.1.19.bazel (89%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.hmac-sha512-1.1.1.bazel (93%) create mode 100644 bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel rename bazel/cargo/{ => wasmsign}/remote/BUILD.parity-wasm-0.42.2.bazel (95%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.proc-macro2-1.0.36.bazel (93%) rename bazel/cargo/{remote/BUILD.quote-1.0.14.bazel => wasmsign/remote/BUILD.quote-1.0.15.bazel} (87%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.strsim-0.8.0.bazel (93%) rename bazel/cargo/{remote/BUILD.syn-1.0.85.bazel => wasmsign/remote/BUILD.syn-1.0.86.bazel} (92%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.textwrap-0.11.0.bazel (89%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.thiserror-1.0.30.bazel (92%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.thiserror-impl-1.0.30.bazel (80%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.unicode-width-0.1.9.bazel (93%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.unicode-xid-0.2.2.bazel (93%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.vec_map-0.8.2.bazel (92%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel (93%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.wasmsign-0.1.2.bazel (61%) create mode 100644 bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel rename bazel/cargo/{ => wasmsign}/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel (95%) rename bazel/cargo/{ => wasmsign}/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel (95%) rename bazel/cargo/{ => wasmtime}/BUILD.bazel (55%) rename bazel/cargo/{ => wasmtime}/Cargo.raze.lock (85%) rename bazel/cargo/{ => wasmtime}/Cargo.toml (63%) rename bazel/cargo/{ => wasmtime}/crates.bzl (54%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.addr2line-0.17.0.bazel (91%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.adler-1.0.2.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.aho-corasick-0.7.18.bazel (89%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.53.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.autocfg-1.0.1.bazel (94%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.backtrace-0.3.63.bazel (81%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.bincode-1.3.3.bazel (89%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.cc-1.0.72.bazel (95%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.cpp_demangle-0.3.5.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-bforest-0.80.0.bazel (87%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-codegen-0.80.0.bazel (72%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel (86%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-entity-0.80.0.bazel (89%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-frontend-0.80.0.bazel (75%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-native-0.80.0.bazel (82%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.cranelift-wasm-0.80.0.bazel (64%) rename bazel/cargo/{remote/BUILD.crc32fast-1.3.0.bazel => wasmtime/remote/BUILD.crc32fast-1.3.1.bazel} (90%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.either-1.6.1.bazel (92%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.env_logger-0.8.4.bazel (79%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.errno-0.2.8.bazel (91%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.errno-dragonfly-0.1.2.bazel (90%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.fallible-iterator-0.2.0.bazel (93%) rename bazel/cargo/{remote/BUILD.getrandom-0.2.3.bazel => wasmtime/remote/BUILD.getrandom-0.2.4.bazel} (89%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.gimli-0.26.1.bazel (84%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.hashbrown-0.11.2.bazel (94%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.humantime-2.1.0.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.indexmap-1.8.0.bazel (89%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.io-lifetimes-0.4.4.bazel (95%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.itertools-0.10.3.bazel (94%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.lazy_static-1.4.0.bazel (93%) rename bazel/cargo/{remote/BUILD.libc-0.2.112.bazel => wasmtime/remote/BUILD.libc-0.2.114.bazel} (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.linux-raw-sys-0.0.36.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.log-0.4.14.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.mach-0.3.2.bazel (92%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.memchr-2.4.1.bazel (95%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.memoffset-0.6.5.bazel (92%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.miniz_oxide-0.4.4.bazel (90%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.more-asserts-0.2.2.bazel (92%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.object-0.27.1.bazel (84%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.once_cell-1.9.0.bazel (95%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.paste-1.0.6.bazel (94%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.ppv-lite86-0.2.16.bazel (93%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.36.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.psm-0.1.16.bazel (94%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.quote-1.0.15.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.rand-0.8.4.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.rand_chacha-0.3.1.bazel (83%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.rand_core-0.6.3.bazel (89%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.rand_hc-0.3.1.bazel (88%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.regalloc-0.0.33.bazel (80%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.regex-1.5.4.bazel (89%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.regex-syntax-0.6.25.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.region-2.2.0.bazel (85%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.rustc-demangle-0.1.21.bazel (92%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.rustc-hash-1.1.0.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.rustix-0.31.3.bazel (92%) rename bazel/cargo/{remote/BUILD.serde-1.0.133.bazel => wasmtime/remote/BUILD.serde-1.0.136.bazel} (90%) rename bazel/cargo/{remote/BUILD.serde_derive-1.0.133.bazel => wasmtime/remote/BUILD.serde_derive-1.0.136.bazel} (84%) rename bazel/cargo/{remote/BUILD.smallvec-1.7.0.bazel => wasmtime/remote/BUILD.smallvec-1.8.0.bazel} (91%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.stable_deref_trait-1.2.0.bazel (93%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.syn-1.0.86.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.target-lexicon-0.12.2.bazel (95%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.termcolor-1.1.2.bazel (90%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.30.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.wasmparser-0.81.0.bazel (93%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.wasmtime-0.33.0.bazel (61%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel (84%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.33.0.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.wasmtime-environ-0.33.0.bazel (55%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.wasmtime-jit-0.33.0.bazel (57%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.wasmtime-runtime-0.33.0.bazel (82%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.wasmtime-types-0.33.0.bazel (75%) rename bazel/cargo/{ => wasmtime}/remote/BUILD.winapi-0.3.9.bazel (96%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel rename bazel/cargo/{ => wasmtime}/remote/BUILD.winapi-util-0.1.5.bazel (90%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel rename bazel/cargo/{wasmtime.patch => wasmtime/wasmtime-runtime.patch} (100%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml index 199316c72..f9cc340cf 100644 --- a/.github/workflows/cargo.yml +++ b/.github/workflows/cargo.yml @@ -39,7 +39,8 @@ jobs: working-directory: bazel/cargo run: | cargo install cargo-raze --version 0.14.1 - cargo raze + cd wasmsign && cargo raze && cd .. + cd wasmtime && cargo raze && cd .. # Ignore manual changes in "errno" crate until fixed in cargo-raze. # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!remote/BUILD.errno-0.2.8.bazel' + git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.2.8.bazel' diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 458a0f8ca..946f74608 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -150,7 +150,7 @@ jobs: path: | ~/.cache/bazel /private/var/tmp/_bazel_runner/ - key: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/cargo/Cargo.raze.lock', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} + key: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} restore-keys: | ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}- ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }} diff --git a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.33.0.bazel b/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.33.0.bazel deleted file mode 100644 index 2f402c60f..000000000 --- a/bazel/cargo/remote/BUILD.wasmtime-cranelift-0.33.0.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_cranelift", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-cranelift", - "manual", - ], - version = "0.33.0", - # buildifier: leave-alone - deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_80_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__cranelift_native__0_80_0//:cranelift_native", - "@proxy_wasm_cpp_host__cranelift_wasm__0_80_0//:cranelift_wasm", - "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", - "@proxy_wasm_cpp_host__object__0_27_1//:object", - "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", - ], -) diff --git a/bazel/cargo/wasmsign/BUILD.bazel b/bazel/cargo/wasmsign/BUILD.bazel new file mode 100644 index 000000000..86c76b90b --- /dev/null +++ b/bazel/cargo/wasmsign/BUILD.bazel @@ -0,0 +1,39 @@ +""" +@generated +cargo-raze generated Bazel file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +package(default_visibility = ["//visibility:public"]) + +licenses([ + "notice", # See individual crates for specific licenses +]) + +# Aliased targets +alias( + name = "cargo_bin_wasmsign", + actual = "@wasmsign__wasmsign__0_1_2//:cargo_bin_wasmsign", + tags = [ + "cargo-raze", + "manual", + ], +) + +alias( + name = "wasmsign", + actual = "@wasmsign__wasmsign__0_1_2//:wasmsign", + tags = [ + "cargo-raze", + "manual", + ], +) + +# Export file for Stardoc support +exports_files( + [ + "crates.bzl", + ], + visibility = ["//visibility:public"], +) diff --git a/bazel/cargo/wasmsign/Cargo.raze.lock b/bazel/cargo/wasmsign/Cargo.raze.lock new file mode 100644 index 000000000..83bc73988 --- /dev/null +++ b/bazel/cargo/wasmsign/Cargo.raze.lock @@ -0,0 +1,238 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "ansi_term" +version = "0.12.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" +dependencies = [ + "winapi", +] + +[[package]] +name = "anyhow" +version = "1.0.53" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0" + +[[package]] +name = "atty" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" +dependencies = [ + "hermit-abi", + "libc", + "winapi", +] + +[[package]] +name = "bitflags" +version = "1.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" + +[[package]] +name = "byteorder" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "clap" +version = "2.34.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" +dependencies = [ + "ansi_term", + "atty", + "bitflags", + "strsim", + "textwrap", + "unicode-width", + "vec_map", +] + +[[package]] +name = "ed25519-compact" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "302ea73924517e9952bf08b505536f757e28dca8372cbf8b20723a0e2bab6c01" +dependencies = [ + "getrandom", +] + +[[package]] +name = "getrandom" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "hermit-abi" +version = "0.1.19" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +dependencies = [ + "libc", +] + +[[package]] +name = "hmac-sha512" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10" + +[[package]] +name = "libc" +version = "0.2.114" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50" + +[[package]] +name = "parity-wasm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" + +[[package]] +name = "proc-macro2" +version = "1.0.36" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +dependencies = [ + "unicode-xid", +] + +[[package]] +name = "quote" +version = "1.0.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +dependencies = [ + "proc-macro2", +] + +[[package]] +name = "strsim" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" + +[[package]] +name = "syn" +version = "1.0.86" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" +dependencies = [ + "proc-macro2", + "quote", + "unicode-xid", +] + +[[package]] +name = "textwrap" +version = "0.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" +dependencies = [ + "unicode-width", +] + +[[package]] +name = "thiserror" +version = "1.0.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" +dependencies = [ + "thiserror-impl", +] + +[[package]] +name = "thiserror-impl" +version = "1.0.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + +[[package]] +name = "unicode-width" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" + +[[package]] +name = "unicode-xid" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" + +[[package]] +name = "vec_map" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" + +[[package]] +name = "wasi" +version = "0.10.2+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" + +[[package]] +name = "wasmsign" +version = "0.1.2" +source = "git+https://github.com/jedisct1/wasmsign#dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc" +dependencies = [ + "anyhow", + "byteorder", + "clap", + "ed25519-compact", + "hmac-sha512", + "parity-wasm", + "thiserror", +] + +[[package]] +name = "wasmsign-bazel" +version = "0.1.2" +dependencies = [ + "wasmsign", +] + +[[package]] +name = "winapi" +version = "0.3.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +dependencies = [ + "winapi-i686-pc-windows-gnu", + "winapi-x86_64-pc-windows-gnu", +] + +[[package]] +name = "winapi-i686-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" + +[[package]] +name = "winapi-x86_64-pc-windows-gnu" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" diff --git a/bazel/cargo/wasmsign/Cargo.toml b/bazel/cargo/wasmsign/Cargo.toml new file mode 100644 index 000000000..0beaa0880 --- /dev/null +++ b/bazel/cargo/wasmsign/Cargo.toml @@ -0,0 +1,20 @@ +[package] +edition = "2018" +name = "wasmsign-bazel" +version = "0.1.2" + +[lib] +path = "fake_lib.rs" + +[dependencies] +wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} + +[package.metadata.raze] +rust_rules_workspace_name = "rules_rust" +gen_workspace_prefix = "wasmsign" +genmode = "Remote" +package_aliases_dir = "." +workspace_path = "//bazel/cargo/wasmsign" + +[package.metadata.raze.crates.wasmsign.'*'] +extra_aliased_targets = ["cargo_bin_wasmsign"] diff --git a/bazel/cargo/wasmsign/crates.bzl b/bazel/cargo/wasmsign/crates.bzl new file mode 100644 index 000000000..e23b594e0 --- /dev/null +++ b/bazel/cargo/wasmsign/crates.bzl @@ -0,0 +1,291 @@ +""" +@generated +cargo-raze generated Bazel file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load + +def wasmsign_fetch_remote_crates(): + """This function defines a collection of repos and should be called in a WORKSPACE file""" + maybe( + http_archive, + name = "wasmsign__ansi_term__0_12_1", + url = "https://crates.io/api/v1/crates/ansi_term/0.12.1/download", + type = "tar.gz", + sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2", + strip_prefix = "ansi_term-0.12.1", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.ansi_term-0.12.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__anyhow__1_0_53", + url = "https://crates.io/api/v1/crates/anyhow/1.0.53/download", + type = "tar.gz", + sha256 = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0", + strip_prefix = "anyhow-1.0.53", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.anyhow-1.0.53.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__atty__0_2_14", + url = "https://crates.io/api/v1/crates/atty/0.2.14/download", + type = "tar.gz", + sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", + strip_prefix = "atty-0.2.14", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.atty-0.2.14.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__bitflags__1_3_2", + url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", + type = "tar.gz", + sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", + strip_prefix = "bitflags-1.3.2", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.bitflags-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__byteorder__1_4_3", + url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", + type = "tar.gz", + sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", + strip_prefix = "byteorder-1.4.3", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.byteorder-1.4.3.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__cfg_if__1_0_0", + url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", + type = "tar.gz", + sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", + strip_prefix = "cfg-if-1.0.0", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__clap__2_34_0", + url = "https://crates.io/api/v1/crates/clap/2.34.0/download", + type = "tar.gz", + sha256 = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c", + strip_prefix = "clap-2.34.0", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.clap-2.34.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__ed25519_compact__1_0_8", + url = "https://crates.io/api/v1/crates/ed25519-compact/1.0.8/download", + type = "tar.gz", + sha256 = "302ea73924517e9952bf08b505536f757e28dca8372cbf8b20723a0e2bab6c01", + strip_prefix = "ed25519-compact-1.0.8", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.ed25519-compact-1.0.8.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__getrandom__0_2_4", + url = "https://crates.io/api/v1/crates/getrandom/0.2.4/download", + type = "tar.gz", + sha256 = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c", + strip_prefix = "getrandom-0.2.4", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.getrandom-0.2.4.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__hermit_abi__0_1_19", + url = "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download", + type = "tar.gz", + sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", + strip_prefix = "hermit-abi-0.1.19", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.hermit-abi-0.1.19.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__hmac_sha512__1_1_1", + url = "https://crates.io/api/v1/crates/hmac-sha512/1.1.1/download", + type = "tar.gz", + sha256 = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10", + strip_prefix = "hmac-sha512-1.1.1", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.hmac-sha512-1.1.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__libc__0_2_114", + url = "https://crates.io/api/v1/crates/libc/0.2.114/download", + type = "tar.gz", + sha256 = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50", + strip_prefix = "libc-0.2.114", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.libc-0.2.114.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__parity_wasm__0_42_2", + url = "https://crates.io/api/v1/crates/parity-wasm/0.42.2/download", + type = "tar.gz", + sha256 = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92", + strip_prefix = "parity-wasm-0.42.2", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.parity-wasm-0.42.2.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__proc_macro2__1_0_36", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download", + type = "tar.gz", + sha256 = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029", + strip_prefix = "proc-macro2-1.0.36", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.proc-macro2-1.0.36.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__quote__1_0_15", + url = "https://crates.io/api/v1/crates/quote/1.0.15/download", + type = "tar.gz", + sha256 = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145", + strip_prefix = "quote-1.0.15", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.quote-1.0.15.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__strsim__0_8_0", + url = "https://crates.io/api/v1/crates/strsim/0.8.0/download", + type = "tar.gz", + sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a", + strip_prefix = "strsim-0.8.0", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.strsim-0.8.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__syn__1_0_86", + url = "https://crates.io/api/v1/crates/syn/1.0.86/download", + type = "tar.gz", + sha256 = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b", + strip_prefix = "syn-1.0.86", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.syn-1.0.86.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__textwrap__0_11_0", + url = "https://crates.io/api/v1/crates/textwrap/0.11.0/download", + type = "tar.gz", + sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", + strip_prefix = "textwrap-0.11.0", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.textwrap-0.11.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__thiserror__1_0_30", + url = "https://crates.io/api/v1/crates/thiserror/1.0.30/download", + type = "tar.gz", + sha256 = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417", + strip_prefix = "thiserror-1.0.30", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.thiserror-1.0.30.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__thiserror_impl__1_0_30", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.30/download", + type = "tar.gz", + sha256 = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b", + strip_prefix = "thiserror-impl-1.0.30", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.thiserror-impl-1.0.30.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__unicode_width__0_1_9", + url = "https://crates.io/api/v1/crates/unicode-width/0.1.9/download", + type = "tar.gz", + sha256 = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973", + strip_prefix = "unicode-width-0.1.9", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.unicode-width-0.1.9.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__unicode_xid__0_2_2", + url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", + type = "tar.gz", + sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", + strip_prefix = "unicode-xid-0.2.2", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.unicode-xid-0.2.2.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__vec_map__0_8_2", + url = "https://crates.io/api/v1/crates/vec_map/0.8.2/download", + type = "tar.gz", + sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191", + strip_prefix = "vec_map-0.8.2", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.vec_map-0.8.2.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__wasi__0_10_2_wasi_snapshot_preview1", + url = "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download", + type = "tar.gz", + sha256 = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6", + strip_prefix = "wasi-0.10.2+wasi-snapshot-preview1", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), + ) + + maybe( + new_git_repository, + name = "wasmsign__wasmsign__0_1_2", + remote = "https://github.com/jedisct1/wasmsign", + commit = "dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.wasmsign-0.1.2.bazel"), + init_submodules = True, + ) + + maybe( + http_archive, + name = "wasmsign__winapi__0_3_9", + url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", + type = "tar.gz", + sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", + strip_prefix = "winapi-0.3.9", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.winapi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__winapi_i686_pc_windows_gnu__0_4_0", + url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", + type = "tar.gz", + sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", + strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmsign__winapi_x86_64_pc_windows_gnu__0_4_0", + url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", + type = "tar.gz", + sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", + strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", + build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + ) diff --git a/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel rename to bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel index b449edf68..b1e6ca34f 100644 --- a/bazel/cargo/remote/BUILD.ansi_term-0.12.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmsign__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.53.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel rename to bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.53.bazel index 7b217342c..0d6557ced 100644 --- a/bazel/cargo/remote/BUILD.anyhow-1.0.52.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.53.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.52", + version = "1.0.53", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=anyhow", "manual", ], - version = "1.0.52", + version = "1.0.53", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.atty-0.2.14.bazel rename to bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel index fe14a6ec8..9f3121cc3 100644 --- a/bazel/cargo/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmsign__libc__0_2_114//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -83,7 +83,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmsign__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.bazel b/bazel/cargo/wasmsign/remote/BUILD.bazel similarity index 100% rename from bazel/cargo/remote/BUILD.bazel rename to bazel/cargo/wasmsign/remote/BUILD.bazel diff --git a/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel rename to bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel index 4ebcf1821..345927151 100644 --- a/bazel/cargo/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.4.3.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel rename to bazel/cargo/wasmsign/remote/BUILD.byteorder-1.4.3.bazel index 3f8147957..5540dc77d 100644 --- a/bazel/cargo/remote/BUILD.byteorder-1.4.3.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.4.3.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel rename to bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel index 6408a6f83..cdfafef08 100644 --- a/bazel/cargo/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.clap-2.34.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel similarity index 82% rename from bazel/cargo/remote/BUILD.clap-2.34.0.bazel rename to bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel index d519b1939..f95162fab 100644 --- a/bazel/cargo/remote/BUILD.clap-2.34.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -59,12 +59,12 @@ rust_library( version = "2.34.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__atty__0_2_14//:atty", - "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", - "@proxy_wasm_cpp_host__strsim__0_8_0//:strsim", - "@proxy_wasm_cpp_host__textwrap__0_11_0//:textwrap", - "@proxy_wasm_cpp_host__unicode_width__0_1_9//:unicode_width", - "@proxy_wasm_cpp_host__vec_map__0_8_2//:vec_map", + "@wasmsign__atty__0_2_14//:atty", + "@wasmsign__bitflags__1_3_2//:bitflags", + "@wasmsign__strsim__0_8_0//:strsim", + "@wasmsign__textwrap__0_11_0//:textwrap", + "@wasmsign__unicode_width__0_1_9//:unicode_width", + "@wasmsign__vec_map__0_8_2//:vec_map", ] + selects.with_or({ # cfg(not(windows)) ( @@ -87,7 +87,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__ansi_term__0_12_1//:ansi_term", + "@wasmsign__ansi_term__0_12_1//:ansi_term", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel rename to bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel index 9d44aab53..55d81676f 100644 --- a/bazel/cargo/remote/BUILD.ed25519-compact-1.0.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -51,9 +51,9 @@ rust_library( "crate-name=ed25519-compact", "manual", ], - version = "1.0.1", + version = "1.0.8", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__getrandom__0_2_3//:getrandom", + "@wasmsign__getrandom__0_2_4//:getrandom", ], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel new file mode 100644 index 000000000..9f107edbf --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel @@ -0,0 +1,96 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmsign", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "mod" with type "bench" omitted + +rust_library( + name = "getrandom", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=getrandom", + "manual", + ], + version = "0.2.4", + # buildifier: leave-alone + deps = [ + "@wasmsign__cfg_if__1_0_0//:cfg_if", + ] + selects.with_or({ + # cfg(target_os = "wasi") + ( + "@rules_rust//rust/platform:wasm32-wasi", + ): [ + "@wasmsign__wasi__0_10_2_wasi_snapshot_preview1//:wasi", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@wasmsign__libc__0_2_114//:libc", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "custom" with type "test" omitted + +# Unsupported target "normal" with type "test" omitted + +# Unsupported target "rdrand" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel rename to bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel index c6fc7646e..714afbab6 100644 --- a/bazel/cargo/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmsign__libc__0_2_114//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.1.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel rename to bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.1.bazel index 4f79876ea..a98166ac6 100644 --- a/bazel/cargo/remote/BUILD.hmac-sha512-1.1.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel new file mode 100644 index 000000000..19145c96a --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel @@ -0,0 +1,86 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmsign", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "libc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.2.114", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "libc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=libc", + "manual", + ], + version = "0.2.114", + # buildifier: leave-alone + deps = [ + ":libc_build_script", + ], +) + +# Unsupported target "const_fn" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel rename to bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel index 0c19037b5..eb0b8425a 100644 --- a/bazel/cargo/remote/BUILD.parity-wasm-0.42.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.36.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel rename to bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.36.bazel index f0b2b47e6..98ac0ca43 100644 --- a/bazel/cargo/remote/BUILD.proc-macro2-1.0.36.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.36.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -84,7 +84,7 @@ rust_library( # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@proxy_wasm_cpp_host__unicode_xid__0_2_2//:unicode_xid", + "@wasmsign__unicode_xid__0_2_2//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.quote-1.0.14.bazel b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.15.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.quote-1.0.14.bazel rename to bazel/cargo/wasmsign/remote/BUILD.quote-1.0.15.bazel index 8e29e7d2d..984db3ca0 100644 --- a/bazel/cargo/remote/BUILD.quote-1.0.14.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.15.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -49,10 +49,10 @@ rust_library( "crate-name=quote", "manual", ], - version = "1.0.14", + version = "1.0.15", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", + "@wasmsign__proc_macro2__1_0_36//:proc_macro2", ], ) diff --git a/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.strsim-0.8.0.bazel rename to bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel index 41312f4ff..17633e197 100644 --- a/bazel/cargo/remote/BUILD.strsim-0.8.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.syn-1.0.85.bazel b/bazel/cargo/wasmsign/remote/BUILD.syn-1.0.86.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.syn-1.0.85.bazel rename to bazel/cargo/wasmsign/remote/BUILD.syn-1.0.86.bazel index 2ea72bd13..8fe60304a 100644 --- a/bazel/cargo/remote/BUILD.syn-1.0.85.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.syn-1.0.86.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -61,7 +61,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.85", + version = "1.0.86", visibility = ["//visibility:private"], deps = [ ], @@ -94,13 +94,13 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.85", + version = "1.0.86", # buildifier: leave-alone deps = [ ":syn_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_14//:quote", - "@proxy_wasm_cpp_host__unicode_xid__0_2_2//:unicode_xid", + "@wasmsign__proc_macro2__1_0_36//:proc_macro2", + "@wasmsign__quote__1_0_15//:quote", + "@wasmsign__unicode_xid__0_2_2//:unicode_xid", ], ) diff --git a/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel rename to bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel index e1d473cfd..1f5ef4754 100644 --- a/bazel/cargo/remote/BUILD.textwrap-0.11.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -56,7 +56,7 @@ rust_library( version = "0.11.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__unicode_width__0_1_9//:unicode_width", + "@wasmsign__unicode_width__0_1_9//:unicode_width", ], ) diff --git a/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.30.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel rename to bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.30.bazel index 0ddcc846e..963d9d3ee 100644 --- a/bazel/cargo/remote/BUILD.thiserror-1.0.30.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.30.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -40,7 +40,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host__thiserror_impl__1_0_30//:thiserror_impl", + "@wasmsign__thiserror_impl__1_0_30//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", diff --git a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.30.bazel similarity index 80% rename from bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel rename to bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.30.bazel index c2cd51759..5f03eb1e5 100644 --- a/bazel/cargo/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,8 +50,8 @@ rust_proc_macro( version = "1.0.30", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_14//:quote", - "@proxy_wasm_cpp_host__syn__1_0_85//:syn", + "@wasmsign__proc_macro2__1_0_36//:proc_macro2", + "@wasmsign__quote__1_0_15//:quote", + "@wasmsign__syn__1_0_86//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.9.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel rename to bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.9.bazel index ea3e19412..205525026 100644 --- a/bazel/cargo/remote/BUILD.unicode-width-0.1.9.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.9.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-xid-0.2.2.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel rename to bazel/cargo/wasmsign/remote/BUILD.unicode-xid-0.2.2.bazel index e1aa20a16..489f09ed3 100644 --- a/bazel/cargo/remote/BUILD.unicode-xid-0.2.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-xid-0.2.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel rename to bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel index fd3d280bf..41e120f56 100644 --- a/bazel/cargo/remote/BUILD.vec_map-0.8.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel rename to bazel/cargo/wasmsign/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel index 9a4447f64..120daec83 100644 --- a/bazel/cargo/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel similarity index 61% rename from bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel rename to bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel index d86ee49c9..ecf416787 100644 --- a/bazel/cargo/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -53,13 +53,13 @@ rust_binary( # buildifier: leave-alone deps = [ ":wasmsign", - "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", - "@proxy_wasm_cpp_host__clap__2_34_0//:clap", - "@proxy_wasm_cpp_host__ed25519_compact__1_0_1//:ed25519_compact", - "@proxy_wasm_cpp_host__hmac_sha512__1_1_1//:hmac_sha512", - "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", - "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", + "@wasmsign__anyhow__1_0_53//:anyhow", + "@wasmsign__byteorder__1_4_3//:byteorder", + "@wasmsign__clap__2_34_0//:clap", + "@wasmsign__ed25519_compact__1_0_8//:ed25519_compact", + "@wasmsign__hmac_sha512__1_1_1//:hmac_sha512", + "@wasmsign__parity_wasm__0_42_2//:parity_wasm", + "@wasmsign__thiserror__1_0_30//:thiserror", ], ) @@ -82,12 +82,12 @@ rust_library( version = "0.1.2", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__byteorder__1_4_3//:byteorder", - "@proxy_wasm_cpp_host__clap__2_34_0//:clap", - "@proxy_wasm_cpp_host__ed25519_compact__1_0_1//:ed25519_compact", - "@proxy_wasm_cpp_host__hmac_sha512__1_1_1//:hmac_sha512", - "@proxy_wasm_cpp_host__parity_wasm__0_42_2//:parity_wasm", - "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", + "@wasmsign__anyhow__1_0_53//:anyhow", + "@wasmsign__byteorder__1_4_3//:byteorder", + "@wasmsign__clap__2_34_0//:clap", + "@wasmsign__ed25519_compact__1_0_8//:ed25519_compact", + "@wasmsign__hmac_sha512__1_1_1//:hmac_sha512", + "@wasmsign__parity_wasm__0_42_2//:parity_wasm", + "@wasmsign__thiserror__1_0_30//:thiserror", ], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel new file mode 100644 index 000000000..165665faa --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel @@ -0,0 +1,100 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmsign", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "winapi_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "consoleapi", + "errhandlingapi", + "fileapi", + "handleapi", + "minwinbase", + "minwindef", + "processenv", + "winbase", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.3.9", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "winapi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "consoleapi", + "errhandlingapi", + "fileapi", + "handleapi", + "minwinbase", + "minwindef", + "processenv", + "winbase", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=winapi", + "manual", + ], + version = "0.3.9", + # buildifier: leave-alone + deps = [ + ":winapi_build_script", + ], +) diff --git a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel rename to bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index f96496447..71509c182 100644 --- a/bazel/cargo/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel rename to bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index 8274514dd..f94e57719 100644 --- a/bazel/cargo/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmsign", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel similarity index 55% rename from bazel/cargo/BUILD.bazel rename to bazel/cargo/wasmtime/BUILD.bazel index 74e6b7fd8..2da0808db 100644 --- a/bazel/cargo/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", + actual = "@wasmtime__anyhow__1_0_53//:anyhow", tags = [ "cargo-raze", "manual", @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@proxy_wasm_cpp_host__env_logger__0_8_4//:env_logger", + actual = "@wasmtime__env_logger__0_8_4//:env_logger", tags = [ "cargo-raze", "manual", @@ -32,25 +32,7 @@ alias( alias( name = "once_cell", - actual = "@proxy_wasm_cpp_host__once_cell__1_9_0//:once_cell", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "cargo_bin_wasmsign", - actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:cargo_bin_wasmsign", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "wasmsign", - actual = "@proxy_wasm_cpp_host__wasmsign__0_1_2//:wasmsign", + actual = "@wasmtime__once_cell__1_9_0//:once_cell", tags = [ "cargo-raze", "manual", @@ -59,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@proxy_wasm_cpp_host__wasmtime__0_33_0//:wasmtime", + actual = "@wasmtime__wasmtime__0_33_0//:wasmtime", tags = [ "cargo-raze", "manual", @@ -68,7 +50,7 @@ alias( alias( name = "wasmtime_c_api_macros", - actual = "@proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros", + actual = "@wasmtime__wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock similarity index 85% rename from bazel/cargo/Cargo.raze.lock rename to bazel/cargo/wasmtime/Cargo.raze.lock index 4dac7d372..dd180cee6 100644 --- a/bazel/cargo/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -24,20 +24,11 @@ dependencies = [ "memchr", ] -[[package]] -name = "ansi_term" -version = "0.12.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2" -dependencies = [ - "winapi", -] - [[package]] name = "anyhow" -version = "1.0.52" +version = "1.0.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3" +checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0" [[package]] name = "atty" @@ -86,12 +77,6 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" -[[package]] -name = "byteorder" -version = "1.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" - [[package]] name = "cc" version = "1.0.72" @@ -104,21 +89,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" -[[package]] -name = "clap" -version = "2.34.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c" -dependencies = [ - "ansi_term", - "atty", - "bitflags", - "strsim", - "textwrap", - "unicode-width", - "vec_map", -] - [[package]] name = "cpp_demangle" version = "0.3.5" @@ -219,22 +189,13 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.3.0" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836" +checksum = "a2209c310e29876f7f0b2721e7e26b84aff178aa3da5d091f9bfbf47669e60e3" dependencies = [ "cfg-if", ] -[[package]] -name = "ed25519-compact" -version = "1.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85424599b04c7251cd887b95b13c2bb853f3050a2619f40fbf9c23d0baf47223" -dependencies = [ - "getrandom", -] - [[package]] name = "either" version = "1.6.1" @@ -283,9 +244,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "getrandom" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753" +checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" dependencies = [ "cfg-if", "libc", @@ -318,12 +279,6 @@ dependencies = [ "libc", ] -[[package]] -name = "hmac-sha512" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10" - [[package]] name = "humantime" version = "2.1.0" @@ -367,9 +322,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.112" +version = "0.2.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125" +checksum = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50" [[package]] name = "linux-raw-sys" @@ -443,12 +398,6 @@ version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" -[[package]] -name = "parity-wasm" -version = "0.42.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" - [[package]] name = "paste" version = "1.0.6" @@ -481,9 +430,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.14" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d" +checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" dependencies = [ "proc-macro2", ] @@ -596,18 +545,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.133" +version = "1.0.136" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97565067517b60e2d1ea8b268e59ce036de907ac523ad83a0475da04e818989a" +checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.133" +version = "1.0.136" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed201699328568d8d08208fdd080e3ff594e6c422e438b6705905da01005d537" +checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" dependencies = [ "proc-macro2", "quote", @@ -616,9 +565,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309" +checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" [[package]] name = "stable_deref_trait" @@ -626,17 +575,11 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" -[[package]] -name = "strsim" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" - [[package]] name = "syn" -version = "1.0.85" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7" +checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" dependencies = [ "proc-macro2", "quote", @@ -658,15 +601,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "textwrap" -version = "0.11.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060" -dependencies = [ - "unicode-width", -] - [[package]] name = "thiserror" version = "1.0.30" @@ -687,24 +621,12 @@ dependencies = [ "syn", ] -[[package]] -name = "unicode-width" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" - [[package]] name = "unicode-xid" version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" -[[package]] -name = "vec_map" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" - [[package]] name = "wasi" version = "0.10.2+wasi-snapshot-preview1" @@ -717,20 +639,6 @@ version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc" -[[package]] -name = "wasmsign" -version = "0.1.2" -source = "git+https://github.com/jedisct1/wasmsign#dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc" -dependencies = [ - "anyhow", - "byteorder", - "clap", - "ed25519-compact", - "hmac-sha512", - "parity-wasm", - "thiserror", -] - [[package]] name = "wasmtime" version = "0.33.0" @@ -768,7 +676,6 @@ dependencies = [ "anyhow", "env_logger", "once_cell", - "wasmsign", "wasmtime", "wasmtime-c-api-macros", ] diff --git a/bazel/cargo/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml similarity index 63% rename from bazel/cargo/Cargo.toml rename to bazel/cargo/wasmtime/Cargo.toml index b6759f615..43e6533c3 100644 --- a/bazel/cargo/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -12,33 +12,29 @@ anyhow = "1.0" once_cell = "1.3" wasmtime = {version = "0.33.0", default-features = false, features = ['cranelift']} wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.33.0"} -wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" -gen_workspace_prefix = "proxy_wasm_cpp_host" +gen_workspace_prefix = "wasmtime" genmode = "Remote" package_aliases_dir = "." -workspace_path = "//bazel/cargo" - -[package.metadata.raze.crates.wasmsign.'*'] -extra_aliased_targets = ["cargo_bin_wasmsign"] +workspace_path = "//bazel/cargo/wasmtime" [package.metadata.raze.crates.rustix.'*'] additional_flags = [ "--cfg=feature=\\\"cc\\\"", ] buildrs_additional_deps = [ - "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_72//:cc", ] [package.metadata.raze.crates.wasmtime-jit.'*'] additional_deps = [ - "@proxy_wasm_cpp_host__rustix__0_31_3//:rustix", + "@wasmtime__rustix__0_31_3//:rustix", ] [package.metadata.raze.crates.wasmtime-runtime.'*'] patches = [ - "@proxy_wasm_cpp_host//bazel/cargo:wasmtime.patch", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime-runtime.patch", ] patch_args = ["-p3"] diff --git a/bazel/cargo/crates.bzl b/bazel/cargo/wasmtime/crates.bzl similarity index 54% rename from bazel/cargo/crates.bzl rename to bazel/cargo/wasmtime/crates.bzl index 9cdbcd48b..84b7f336e 100644 --- a/bazel/cargo/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -9,958 +9,849 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # bui load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load -def proxy_wasm_cpp_host_fetch_remote_crates(): +def wasmtime_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" maybe( http_archive, - name = "proxy_wasm_cpp_host__addr2line__0_17_0", + name = "wasmtime__addr2line__0_17_0", url = "https://crates.io/api/v1/crates/addr2line/0.17.0/download", type = "tar.gz", sha256 = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b", strip_prefix = "addr2line-0.17.0", - build_file = Label("//bazel/cargo/remote:BUILD.addr2line-0.17.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.addr2line-0.17.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__adler__1_0_2", + name = "wasmtime__adler__1_0_2", url = "https://crates.io/api/v1/crates/adler/1.0.2/download", type = "tar.gz", sha256 = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe", strip_prefix = "adler-1.0.2", - build_file = Label("//bazel/cargo/remote:BUILD.adler-1.0.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.adler-1.0.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__aho_corasick__0_7_18", + name = "wasmtime__aho_corasick__0_7_18", url = "https://crates.io/api/v1/crates/aho-corasick/0.7.18/download", type = "tar.gz", sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f", strip_prefix = "aho-corasick-0.7.18", - build_file = Label("//bazel/cargo/remote:BUILD.aho-corasick-0.7.18.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-0.7.18.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__ansi_term__0_12_1", - url = "https://crates.io/api/v1/crates/ansi_term/0.12.1/download", + name = "wasmtime__anyhow__1_0_53", + url = "https://crates.io/api/v1/crates/anyhow/1.0.53/download", type = "tar.gz", - sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2", - strip_prefix = "ansi_term-0.12.1", - build_file = Label("//bazel/cargo/remote:BUILD.ansi_term-0.12.1.bazel"), + sha256 = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0", + strip_prefix = "anyhow-1.0.53", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.53.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__anyhow__1_0_52", - url = "https://crates.io/api/v1/crates/anyhow/1.0.52/download", - type = "tar.gz", - sha256 = "84450d0b4a8bd1ba4144ce8ce718fbc5d071358b1e5384bace6536b3d1f2d5b3", - strip_prefix = "anyhow-1.0.52", - build_file = Label("//bazel/cargo/remote:BUILD.anyhow-1.0.52.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__atty__0_2_14", + name = "wasmtime__atty__0_2_14", url = "https://crates.io/api/v1/crates/atty/0.2.14/download", type = "tar.gz", sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", strip_prefix = "atty-0.2.14", - build_file = Label("//bazel/cargo/remote:BUILD.atty-0.2.14.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.atty-0.2.14.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__autocfg__1_0_1", + name = "wasmtime__autocfg__1_0_1", url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", type = "tar.gz", sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", strip_prefix = "autocfg-1.0.1", - build_file = Label("//bazel/cargo/remote:BUILD.autocfg-1.0.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.autocfg-1.0.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__backtrace__0_3_63", + name = "wasmtime__backtrace__0_3_63", url = "https://crates.io/api/v1/crates/backtrace/0.3.63/download", type = "tar.gz", sha256 = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6", strip_prefix = "backtrace-0.3.63", - build_file = Label("//bazel/cargo/remote:BUILD.backtrace-0.3.63.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.63.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__bincode__1_3_3", + name = "wasmtime__bincode__1_3_3", url = "https://crates.io/api/v1/crates/bincode/1.3.3/download", type = "tar.gz", sha256 = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad", strip_prefix = "bincode-1.3.3", - build_file = Label("//bazel/cargo/remote:BUILD.bincode-1.3.3.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bincode-1.3.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__bitflags__1_3_2", + name = "wasmtime__bitflags__1_3_2", url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", type = "tar.gz", sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", strip_prefix = "bitflags-1.3.2", - build_file = Label("//bazel/cargo/remote:BUILD.bitflags-1.3.2.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__byteorder__1_4_3", - url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", - type = "tar.gz", - sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", - strip_prefix = "byteorder-1.4.3", - build_file = Label("//bazel/cargo/remote:BUILD.byteorder-1.4.3.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bitflags-1.3.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cc__1_0_72", + name = "wasmtime__cc__1_0_72", url = "https://crates.io/api/v1/crates/cc/1.0.72/download", type = "tar.gz", sha256 = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee", strip_prefix = "cc-1.0.72", - build_file = Label("//bazel/cargo/remote:BUILD.cc-1.0.72.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.72.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cfg_if__1_0_0", + name = "wasmtime__cfg_if__1_0_0", url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", type = "tar.gz", sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", strip_prefix = "cfg-if-1.0.0", - build_file = Label("//bazel/cargo/remote:BUILD.cfg-if-1.0.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__clap__2_34_0", - url = "https://crates.io/api/v1/crates/clap/2.34.0/download", - type = "tar.gz", - sha256 = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c", - strip_prefix = "clap-2.34.0", - build_file = Label("//bazel/cargo/remote:BUILD.clap-2.34.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cfg-if-1.0.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cpp_demangle__0_3_5", + name = "wasmtime__cpp_demangle__0_3_5", url = "https://crates.io/api/v1/crates/cpp_demangle/0.3.5/download", type = "tar.gz", sha256 = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f", strip_prefix = "cpp_demangle-0.3.5", - build_file = Label("//bazel/cargo/remote:BUILD.cpp_demangle-0.3.5.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cpp_demangle-0.3.5.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_bforest__0_80_0", + name = "wasmtime__cranelift_bforest__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-bforest/0.80.0/download", type = "tar.gz", sha256 = "9516ba6b2ba47b4cbf63b713f75b432fafa0a0e0464ec8381ec76e6efe931ab3", strip_prefix = "cranelift-bforest-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-bforest-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen__0_80_0", + name = "wasmtime__cranelift_codegen__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-codegen/0.80.0/download", type = "tar.gz", sha256 = "489e5d0081f7edff6be12d71282a8bf387b5df64d5592454b75d662397f2d642", strip_prefix = "cranelift-codegen-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_meta__0_80_0", + name = "wasmtime__cranelift_codegen_meta__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.80.0/download", type = "tar.gz", sha256 = "d36ee1140371bb0f69100e734b30400157a4adf7b86148dee8b0a438763ead48", strip_prefix = "cranelift-codegen-meta-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-meta-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_codegen_shared__0_80_0", + name = "wasmtime__cranelift_codegen_shared__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.80.0/download", type = "tar.gz", sha256 = "981da52d8f746af1feb96290c83977ff8d41071a7499e991d8abae0d4869f564", strip_prefix = "cranelift-codegen-shared-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-codegen-shared-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_entity__0_80_0", + name = "wasmtime__cranelift_entity__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-entity/0.80.0/download", type = "tar.gz", sha256 = "a2906740053dd3bcf95ce53df0fd9b5649c68ae4bd9adada92b406f059eae461", strip_prefix = "cranelift-entity-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-entity-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_frontend__0_80_0", + name = "wasmtime__cranelift_frontend__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-frontend/0.80.0/download", type = "tar.gz", sha256 = "b7cb156de1097f567d46bf57a0cd720a72c3e15e1a2bd8b1041ba2fc894471b7", strip_prefix = "cranelift-frontend-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-frontend-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_native__0_80_0", + name = "wasmtime__cranelift_native__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-native/0.80.0/download", type = "tar.gz", sha256 = "166028ca0343a6ee7bddac0e70084e142b23f99c701bd6f6ea9123afac1a7a46", strip_prefix = "cranelift-native-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-native-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__cranelift_wasm__0_80_0", + name = "wasmtime__cranelift_wasm__0_80_0", url = "https://crates.io/api/v1/crates/cranelift-wasm/0.80.0/download", type = "tar.gz", sha256 = "5012a1cde0c8b3898770b711490d803018ae9bec2d60674ba0e5b2058a874f80", strip_prefix = "cranelift-wasm-0.80.0", - build_file = Label("//bazel/cargo/remote:BUILD.cranelift-wasm-0.80.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.80.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__crc32fast__1_3_0", - url = "https://crates.io/api/v1/crates/crc32fast/1.3.0/download", + name = "wasmtime__crc32fast__1_3_1", + url = "https://crates.io/api/v1/crates/crc32fast/1.3.1/download", type = "tar.gz", - sha256 = "738c290dfaea84fc1ca15ad9c168d083b05a714e1efddd8edaab678dc28d2836", - strip_prefix = "crc32fast-1.3.0", - build_file = Label("//bazel/cargo/remote:BUILD.crc32fast-1.3.0.bazel"), + sha256 = "a2209c310e29876f7f0b2721e7e26b84aff178aa3da5d091f9bfbf47669e60e3", + strip_prefix = "crc32fast-1.3.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.3.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__ed25519_compact__1_0_1", - url = "https://crates.io/api/v1/crates/ed25519-compact/1.0.1/download", - type = "tar.gz", - sha256 = "85424599b04c7251cd887b95b13c2bb853f3050a2619f40fbf9c23d0baf47223", - strip_prefix = "ed25519-compact-1.0.1", - build_file = Label("//bazel/cargo/remote:BUILD.ed25519-compact-1.0.1.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__either__1_6_1", + name = "wasmtime__either__1_6_1", url = "https://crates.io/api/v1/crates/either/1.6.1/download", type = "tar.gz", sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", strip_prefix = "either-1.6.1", - build_file = Label("//bazel/cargo/remote:BUILD.either-1.6.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.6.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__env_logger__0_8_4", + name = "wasmtime__env_logger__0_8_4", url = "https://crates.io/api/v1/crates/env_logger/0.8.4/download", type = "tar.gz", sha256 = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3", strip_prefix = "env_logger-0.8.4", - build_file = Label("//bazel/cargo/remote:BUILD.env_logger-0.8.4.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.8.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__errno__0_2_8", + name = "wasmtime__errno__0_2_8", url = "https://crates.io/api/v1/crates/errno/0.2.8/download", type = "tar.gz", sha256 = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1", strip_prefix = "errno-0.2.8", - build_file = Label("//bazel/cargo/remote:BUILD.errno-0.2.8.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.errno-0.2.8.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__errno_dragonfly__0_1_2", + name = "wasmtime__errno_dragonfly__0_1_2", url = "https://crates.io/api/v1/crates/errno-dragonfly/0.1.2/download", type = "tar.gz", sha256 = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf", strip_prefix = "errno-dragonfly-0.1.2", - build_file = Label("//bazel/cargo/remote:BUILD.errno-dragonfly-0.1.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.errno-dragonfly-0.1.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__fallible_iterator__0_2_0", + name = "wasmtime__fallible_iterator__0_2_0", url = "https://crates.io/api/v1/crates/fallible-iterator/0.2.0/download", type = "tar.gz", sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", strip_prefix = "fallible-iterator-0.2.0", - build_file = Label("//bazel/cargo/remote:BUILD.fallible-iterator-0.2.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.fallible-iterator-0.2.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__getrandom__0_2_3", - url = "https://crates.io/api/v1/crates/getrandom/0.2.3/download", + name = "wasmtime__getrandom__0_2_4", + url = "https://crates.io/api/v1/crates/getrandom/0.2.4/download", type = "tar.gz", - sha256 = "7fcd999463524c52659517fe2cea98493cfe485d10565e7b0fb07dbba7ad2753", - strip_prefix = "getrandom-0.2.3", - build_file = Label("//bazel/cargo/remote:BUILD.getrandom-0.2.3.bazel"), + sha256 = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c", + strip_prefix = "getrandom-0.2.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__gimli__0_26_1", + name = "wasmtime__gimli__0_26_1", url = "https://crates.io/api/v1/crates/gimli/0.26.1/download", type = "tar.gz", sha256 = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4", strip_prefix = "gimli-0.26.1", - build_file = Label("//bazel/cargo/remote:BUILD.gimli-0.26.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.gimli-0.26.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__hashbrown__0_11_2", + name = "wasmtime__hashbrown__0_11_2", url = "https://crates.io/api/v1/crates/hashbrown/0.11.2/download", type = "tar.gz", sha256 = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e", strip_prefix = "hashbrown-0.11.2", - build_file = Label("//bazel/cargo/remote:BUILD.hashbrown-0.11.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.11.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__hermit_abi__0_1_19", + name = "wasmtime__hermit_abi__0_1_19", url = "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download", type = "tar.gz", sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", strip_prefix = "hermit-abi-0.1.19", - build_file = Label("//bazel/cargo/remote:BUILD.hermit-abi-0.1.19.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__hmac_sha512__1_1_1", - url = "https://crates.io/api/v1/crates/hmac-sha512/1.1.1/download", - type = "tar.gz", - sha256 = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10", - strip_prefix = "hmac-sha512-1.1.1", - build_file = Label("//bazel/cargo/remote:BUILD.hmac-sha512-1.1.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hermit-abi-0.1.19.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__humantime__2_1_0", + name = "wasmtime__humantime__2_1_0", url = "https://crates.io/api/v1/crates/humantime/2.1.0/download", type = "tar.gz", sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4", strip_prefix = "humantime-2.1.0", - build_file = Label("//bazel/cargo/remote:BUILD.humantime-2.1.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.humantime-2.1.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__indexmap__1_8_0", + name = "wasmtime__indexmap__1_8_0", url = "https://crates.io/api/v1/crates/indexmap/1.8.0/download", type = "tar.gz", sha256 = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223", strip_prefix = "indexmap-1.8.0", - build_file = Label("//bazel/cargo/remote:BUILD.indexmap-1.8.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.8.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__io_lifetimes__0_4_4", + name = "wasmtime__io_lifetimes__0_4_4", url = "https://crates.io/api/v1/crates/io-lifetimes/0.4.4/download", type = "tar.gz", sha256 = "f6ef6787e7f0faedc040f95716bdd0e62bcfcf4ba93da053b62dea2691c13864", strip_prefix = "io-lifetimes-0.4.4", - build_file = Label("//bazel/cargo/remote:BUILD.io-lifetimes-0.4.4.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.4.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__itertools__0_10_3", + name = "wasmtime__itertools__0_10_3", url = "https://crates.io/api/v1/crates/itertools/0.10.3/download", type = "tar.gz", sha256 = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3", strip_prefix = "itertools-0.10.3", - build_file = Label("//bazel/cargo/remote:BUILD.itertools-0.10.3.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.itertools-0.10.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__lazy_static__1_4_0", + name = "wasmtime__lazy_static__1_4_0", url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", type = "tar.gz", sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", strip_prefix = "lazy_static-1.4.0", - build_file = Label("//bazel/cargo/remote:BUILD.lazy_static-1.4.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.lazy_static-1.4.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__libc__0_2_112", - url = "https://crates.io/api/v1/crates/libc/0.2.112/download", + name = "wasmtime__libc__0_2_114", + url = "https://crates.io/api/v1/crates/libc/0.2.114/download", type = "tar.gz", - sha256 = "1b03d17f364a3a042d5e5d46b053bbbf82c92c9430c592dd4c064dc6ee997125", - strip_prefix = "libc-0.2.112", - build_file = Label("//bazel/cargo/remote:BUILD.libc-0.2.112.bazel"), + sha256 = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50", + strip_prefix = "libc-0.2.114", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.114.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__linux_raw_sys__0_0_36", + name = "wasmtime__linux_raw_sys__0_0_36", url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.36/download", type = "tar.gz", sha256 = "a261afc61b7a5e323933b402ca6a1765183687c614789b1e4db7762ed4230bca", strip_prefix = "linux-raw-sys-0.0.36", - build_file = Label("//bazel/cargo/remote:BUILD.linux-raw-sys-0.0.36.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.36.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__log__0_4_14", + name = "wasmtime__log__0_4_14", url = "https://crates.io/api/v1/crates/log/0.4.14/download", type = "tar.gz", sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710", strip_prefix = "log-0.4.14", - build_file = Label("//bazel/cargo/remote:BUILD.log-0.4.14.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.14.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__mach__0_3_2", + name = "wasmtime__mach__0_3_2", url = "https://crates.io/api/v1/crates/mach/0.3.2/download", type = "tar.gz", sha256 = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa", strip_prefix = "mach-0.3.2", - build_file = Label("//bazel/cargo/remote:BUILD.mach-0.3.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.mach-0.3.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__memchr__2_4_1", + name = "wasmtime__memchr__2_4_1", url = "https://crates.io/api/v1/crates/memchr/2.4.1/download", type = "tar.gz", sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a", strip_prefix = "memchr-2.4.1", - build_file = Label("//bazel/cargo/remote:BUILD.memchr-2.4.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memchr-2.4.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__memoffset__0_6_5", + name = "wasmtime__memoffset__0_6_5", url = "https://crates.io/api/v1/crates/memoffset/0.6.5/download", type = "tar.gz", sha256 = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce", strip_prefix = "memoffset-0.6.5", - build_file = Label("//bazel/cargo/remote:BUILD.memoffset-0.6.5.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.6.5.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__miniz_oxide__0_4_4", + name = "wasmtime__miniz_oxide__0_4_4", url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.4/download", type = "tar.gz", sha256 = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b", strip_prefix = "miniz_oxide-0.4.4", - build_file = Label("//bazel/cargo/remote:BUILD.miniz_oxide-0.4.4.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.miniz_oxide-0.4.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__more_asserts__0_2_2", + name = "wasmtime__more_asserts__0_2_2", url = "https://crates.io/api/v1/crates/more-asserts/0.2.2/download", type = "tar.gz", sha256 = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389", strip_prefix = "more-asserts-0.2.2", - build_file = Label("//bazel/cargo/remote:BUILD.more-asserts-0.2.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.more-asserts-0.2.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__object__0_27_1", + name = "wasmtime__object__0_27_1", url = "https://crates.io/api/v1/crates/object/0.27.1/download", type = "tar.gz", sha256 = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9", strip_prefix = "object-0.27.1", - build_file = Label("//bazel/cargo/remote:BUILD.object-0.27.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.27.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__once_cell__1_9_0", + name = "wasmtime__once_cell__1_9_0", url = "https://crates.io/api/v1/crates/once_cell/1.9.0/download", type = "tar.gz", sha256 = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5", strip_prefix = "once_cell-1.9.0", - build_file = Label("//bazel/cargo/remote:BUILD.once_cell-1.9.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.9.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__parity_wasm__0_42_2", - url = "https://crates.io/api/v1/crates/parity-wasm/0.42.2/download", - type = "tar.gz", - sha256 = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92", - strip_prefix = "parity-wasm-0.42.2", - build_file = Label("//bazel/cargo/remote:BUILD.parity-wasm-0.42.2.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__paste__1_0_6", + name = "wasmtime__paste__1_0_6", url = "https://crates.io/api/v1/crates/paste/1.0.6/download", type = "tar.gz", sha256 = "0744126afe1a6dd7f394cb50a716dbe086cb06e255e53d8d0185d82828358fb5", strip_prefix = "paste-1.0.6", - build_file = Label("//bazel/cargo/remote:BUILD.paste-1.0.6.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.6.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__ppv_lite86__0_2_16", + name = "wasmtime__ppv_lite86__0_2_16", url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.16/download", type = "tar.gz", sha256 = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872", strip_prefix = "ppv-lite86-0.2.16", - build_file = Label("//bazel/cargo/remote:BUILD.ppv-lite86-0.2.16.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ppv-lite86-0.2.16.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__proc_macro2__1_0_36", + name = "wasmtime__proc_macro2__1_0_36", url = "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download", type = "tar.gz", sha256 = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029", strip_prefix = "proc-macro2-1.0.36", - build_file = Label("//bazel/cargo/remote:BUILD.proc-macro2-1.0.36.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.36.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__psm__0_1_16", + name = "wasmtime__psm__0_1_16", url = "https://crates.io/api/v1/crates/psm/0.1.16/download", type = "tar.gz", sha256 = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69", strip_prefix = "psm-0.1.16", - build_file = Label("//bazel/cargo/remote:BUILD.psm-0.1.16.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.16.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__quote__1_0_14", - url = "https://crates.io/api/v1/crates/quote/1.0.14/download", + name = "wasmtime__quote__1_0_15", + url = "https://crates.io/api/v1/crates/quote/1.0.15/download", type = "tar.gz", - sha256 = "47aa80447ce4daf1717500037052af176af5d38cc3e571d9ec1c7353fc10c87d", - strip_prefix = "quote-1.0.14", - build_file = Label("//bazel/cargo/remote:BUILD.quote-1.0.14.bazel"), + sha256 = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145", + strip_prefix = "quote-1.0.15", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.15.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand__0_8_4", + name = "wasmtime__rand__0_8_4", url = "https://crates.io/api/v1/crates/rand/0.8.4/download", type = "tar.gz", sha256 = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8", strip_prefix = "rand-0.8.4", - build_file = Label("//bazel/cargo/remote:BUILD.rand-0.8.4.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand-0.8.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_chacha__0_3_1", + name = "wasmtime__rand_chacha__0_3_1", url = "https://crates.io/api/v1/crates/rand_chacha/0.3.1/download", type = "tar.gz", sha256 = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88", strip_prefix = "rand_chacha-0.3.1", - build_file = Label("//bazel/cargo/remote:BUILD.rand_chacha-0.3.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_chacha-0.3.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_core__0_6_3", + name = "wasmtime__rand_core__0_6_3", url = "https://crates.io/api/v1/crates/rand_core/0.6.3/download", type = "tar.gz", sha256 = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7", strip_prefix = "rand_core-0.6.3", - build_file = Label("//bazel/cargo/remote:BUILD.rand_core-0.6.3.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_core-0.6.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rand_hc__0_3_1", + name = "wasmtime__rand_hc__0_3_1", url = "https://crates.io/api/v1/crates/rand_hc/0.3.1/download", type = "tar.gz", sha256 = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7", strip_prefix = "rand_hc-0.3.1", - build_file = Label("//bazel/cargo/remote:BUILD.rand_hc-0.3.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_hc-0.3.1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__regalloc__0_0_33", + name = "wasmtime__regalloc__0_0_33", url = "https://crates.io/api/v1/crates/regalloc/0.0.33/download", type = "tar.gz", sha256 = "7d808cff91dfca7b239d40b972ba628add94892b1d9e19a842aedc5cfae8ab1a", strip_prefix = "regalloc-0.0.33", - build_file = Label("//bazel/cargo/remote:BUILD.regalloc-0.0.33.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc-0.0.33.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__regex__1_5_4", + name = "wasmtime__regex__1_5_4", url = "https://crates.io/api/v1/crates/regex/1.5.4/download", type = "tar.gz", sha256 = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461", strip_prefix = "regex-1.5.4", - build_file = Label("//bazel/cargo/remote:BUILD.regex-1.5.4.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.5.4.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__regex_syntax__0_6_25", + name = "wasmtime__regex_syntax__0_6_25", url = "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download", type = "tar.gz", sha256 = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b", strip_prefix = "regex-syntax-0.6.25", - build_file = Label("//bazel/cargo/remote:BUILD.regex-syntax-0.6.25.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.6.25.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__region__2_2_0", + name = "wasmtime__region__2_2_0", url = "https://crates.io/api/v1/crates/region/2.2.0/download", type = "tar.gz", sha256 = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0", strip_prefix = "region-2.2.0", - build_file = Label("//bazel/cargo/remote:BUILD.region-2.2.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.region-2.2.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rustc_demangle__0_1_21", + name = "wasmtime__rustc_demangle__0_1_21", url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.21/download", type = "tar.gz", sha256 = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342", strip_prefix = "rustc-demangle-0.1.21", - build_file = Label("//bazel/cargo/remote:BUILD.rustc-demangle-0.1.21.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-demangle-0.1.21.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rustc_hash__1_1_0", + name = "wasmtime__rustc_hash__1_1_0", url = "https://crates.io/api/v1/crates/rustc-hash/1.1.0/download", type = "tar.gz", sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", strip_prefix = "rustc-hash-1.1.0", - build_file = Label("//bazel/cargo/remote:BUILD.rustc-hash-1.1.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-hash-1.1.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__rustix__0_31_3", + name = "wasmtime__rustix__0_31_3", url = "https://crates.io/api/v1/crates/rustix/0.31.3/download", type = "tar.gz", sha256 = "b2dcfc2778a90e38f56a708bfc90572422e11d6c7ee233d053d1f782cf9df6d2", strip_prefix = "rustix-0.31.3", - build_file = Label("//bazel/cargo/remote:BUILD.rustix-0.31.3.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.31.3.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__serde__1_0_133", - url = "https://crates.io/api/v1/crates/serde/1.0.133/download", + name = "wasmtime__serde__1_0_136", + url = "https://crates.io/api/v1/crates/serde/1.0.136/download", type = "tar.gz", - sha256 = "97565067517b60e2d1ea8b268e59ce036de907ac523ad83a0475da04e818989a", - strip_prefix = "serde-1.0.133", - build_file = Label("//bazel/cargo/remote:BUILD.serde-1.0.133.bazel"), + sha256 = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789", + strip_prefix = "serde-1.0.136", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.136.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__serde_derive__1_0_133", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.133/download", + name = "wasmtime__serde_derive__1_0_136", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.136/download", type = "tar.gz", - sha256 = "ed201699328568d8d08208fdd080e3ff594e6c422e438b6705905da01005d537", - strip_prefix = "serde_derive-1.0.133", - build_file = Label("//bazel/cargo/remote:BUILD.serde_derive-1.0.133.bazel"), + sha256 = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9", + strip_prefix = "serde_derive-1.0.136", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.136.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__smallvec__1_7_0", - url = "https://crates.io/api/v1/crates/smallvec/1.7.0/download", + name = "wasmtime__smallvec__1_8_0", + url = "https://crates.io/api/v1/crates/smallvec/1.8.0/download", type = "tar.gz", - sha256 = "1ecab6c735a6bb4139c0caafd0cc3635748bbb3acf4550e8138122099251f309", - strip_prefix = "smallvec-1.7.0", - build_file = Label("//bazel/cargo/remote:BUILD.smallvec-1.7.0.bazel"), + sha256 = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83", + strip_prefix = "smallvec-1.8.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.8.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__stable_deref_trait__1_2_0", + name = "wasmtime__stable_deref_trait__1_2_0", url = "https://crates.io/api/v1/crates/stable_deref_trait/1.2.0/download", type = "tar.gz", sha256 = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3", strip_prefix = "stable_deref_trait-1.2.0", - build_file = Label("//bazel/cargo/remote:BUILD.stable_deref_trait-1.2.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__strsim__0_8_0", - url = "https://crates.io/api/v1/crates/strsim/0.8.0/download", - type = "tar.gz", - sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a", - strip_prefix = "strsim-0.8.0", - build_file = Label("//bazel/cargo/remote:BUILD.strsim-0.8.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.stable_deref_trait-1.2.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__syn__1_0_85", - url = "https://crates.io/api/v1/crates/syn/1.0.85/download", + name = "wasmtime__syn__1_0_86", + url = "https://crates.io/api/v1/crates/syn/1.0.86/download", type = "tar.gz", - sha256 = "a684ac3dcd8913827e18cd09a68384ee66c1de24157e3c556c9ab16d85695fb7", - strip_prefix = "syn-1.0.85", - build_file = Label("//bazel/cargo/remote:BUILD.syn-1.0.85.bazel"), + sha256 = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b", + strip_prefix = "syn-1.0.86", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.86.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__target_lexicon__0_12_2", + name = "wasmtime__target_lexicon__0_12_2", url = "https://crates.io/api/v1/crates/target-lexicon/0.12.2/download", type = "tar.gz", sha256 = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff", strip_prefix = "target-lexicon-0.12.2", - build_file = Label("//bazel/cargo/remote:BUILD.target-lexicon-0.12.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__termcolor__1_1_2", + name = "wasmtime__termcolor__1_1_2", url = "https://crates.io/api/v1/crates/termcolor/1.1.2/download", type = "tar.gz", sha256 = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4", strip_prefix = "termcolor-1.1.2", - build_file = Label("//bazel/cargo/remote:BUILD.termcolor-1.1.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.termcolor-1.1.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__textwrap__0_11_0", - url = "https://crates.io/api/v1/crates/textwrap/0.11.0/download", - type = "tar.gz", - sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", - strip_prefix = "textwrap-0.11.0", - build_file = Label("//bazel/cargo/remote:BUILD.textwrap-0.11.0.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__thiserror__1_0_30", + name = "wasmtime__thiserror__1_0_30", url = "https://crates.io/api/v1/crates/thiserror/1.0.30/download", type = "tar.gz", sha256 = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417", strip_prefix = "thiserror-1.0.30", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-1.0.30.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.30.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__thiserror_impl__1_0_30", + name = "wasmtime__thiserror_impl__1_0_30", url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.30/download", type = "tar.gz", sha256 = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b", strip_prefix = "thiserror-impl-1.0.30", - build_file = Label("//bazel/cargo/remote:BUILD.thiserror-impl-1.0.30.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.30.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__unicode_width__0_1_9", - url = "https://crates.io/api/v1/crates/unicode-width/0.1.9/download", - type = "tar.gz", - sha256 = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973", - strip_prefix = "unicode-width-0.1.9", - build_file = Label("//bazel/cargo/remote:BUILD.unicode-width-0.1.9.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__unicode_xid__0_2_2", + name = "wasmtime__unicode_xid__0_2_2", url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", type = "tar.gz", sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", strip_prefix = "unicode-xid-0.2.2", - build_file = Label("//bazel/cargo/remote:BUILD.unicode-xid-0.2.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-xid-0.2.2.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__vec_map__0_8_2", - url = "https://crates.io/api/v1/crates/vec_map/0.8.2/download", - type = "tar.gz", - sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191", - strip_prefix = "vec_map-0.8.2", - build_file = Label("//bazel/cargo/remote:BUILD.vec_map-0.8.2.bazel"), - ) - - maybe( - http_archive, - name = "proxy_wasm_cpp_host__wasi__0_10_2_wasi_snapshot_preview1", + name = "wasmtime__wasi__0_10_2_wasi_snapshot_preview1", url = "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download", type = "tar.gz", sha256 = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6", strip_prefix = "wasi-0.10.2+wasi-snapshot-preview1", - build_file = Label("//bazel/cargo/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmparser__0_81_0", + name = "wasmtime__wasmparser__0_81_0", url = "https://crates.io/api/v1/crates/wasmparser/0.81.0/download", type = "tar.gz", sha256 = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc", strip_prefix = "wasmparser-0.81.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmparser-0.81.0.bazel"), - ) - - maybe( - new_git_repository, - name = "proxy_wasm_cpp_host__wasmsign__0_1_2", - remote = "https://github.com/jedisct1/wasmsign", - commit = "dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc", - build_file = Label("//bazel/cargo/remote:BUILD.wasmsign-0.1.2.bazel"), - init_submodules = True, + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.81.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime__0_33_0", + name = "wasmtime__wasmtime__0_33_0", url = "https://crates.io/api/v1/crates/wasmtime/0.33.0/download", type = "tar.gz", sha256 = "414be1bc5ca12e755ffd3ff7acc3a6d1979922f8237fc34068b2156cebcc3270", strip_prefix = "wasmtime-0.33.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-0.33.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.33.0.bazel"), ) maybe( new_git_repository, - name = "proxy_wasm_cpp_host__wasmtime_c_api_macros__0_19_0", + name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", commit = "8043c1f919a77905255eded33e4e51a6fbfd1de1", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_cranelift__0_33_0", + name = "wasmtime__wasmtime_cranelift__0_33_0", url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.33.0/download", type = "tar.gz", sha256 = "a4693d33725773615a4c9957e4aa731af57b27dca579702d1d8ed5750760f1a9", strip_prefix = "wasmtime-cranelift-0.33.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-cranelift-0.33.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_environ__0_33_0", + name = "wasmtime__wasmtime_environ__0_33_0", url = "https://crates.io/api/v1/crates/wasmtime-environ/0.33.0/download", type = "tar.gz", sha256 = "5b17e47116a078b9770e6fb86cff8b9a660826623cebcfff251b047c8d8993ef", strip_prefix = "wasmtime-environ-0.33.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-environ-0.33.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_jit__0_33_0", + name = "wasmtime__wasmtime_jit__0_33_0", url = "https://crates.io/api/v1/crates/wasmtime-jit/0.33.0/download", type = "tar.gz", sha256 = "60ea5b380bdf92e32911400375aeefb900ac9d3f8e350bb6ba555a39315f2ee7", strip_prefix = "wasmtime-jit-0.33.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-jit-0.33.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_runtime__0_33_0", + name = "wasmtime__wasmtime_runtime__0_33_0", url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.33.0/download", type = "tar.gz", sha256 = "abc7cd79937edd6e238b337608ebbcaf9c086a8457f01dfd598324f7fa56d81a", strip_prefix = "wasmtime-runtime-0.33.0", patches = [ - "@proxy_wasm_cpp_host//bazel/cargo:wasmtime.patch", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime-runtime.patch", ], patch_args = [ "-p3", ], - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-runtime-0.33.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__wasmtime_types__0_33_0", + name = "wasmtime__wasmtime_types__0_33_0", url = "https://crates.io/api/v1/crates/wasmtime-types/0.33.0/download", type = "tar.gz", sha256 = "d9e5e51a461a2cf2b69e1fc48f325b17d78a8582816e18479e8ead58844b23f8", strip_prefix = "wasmtime-types-0.33.0", - build_file = Label("//bazel/cargo/remote:BUILD.wasmtime-types-0.33.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.33.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__winapi__0_3_9", + name = "wasmtime__winapi__0_3_9", url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", type = "tar.gz", sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", strip_prefix = "winapi-0.3.9", - build_file = Label("//bazel/cargo/remote:BUILD.winapi-0.3.9.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-0.3.9.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__winapi_i686_pc_windows_gnu__0_4_0", + name = "wasmtime__winapi_i686_pc_windows_gnu__0_4_0", url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__winapi_util__0_1_5", + name = "wasmtime__winapi_util__0_1_5", url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", type = "tar.gz", sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", strip_prefix = "winapi-util-0.1.5", - build_file = Label("//bazel/cargo/remote:BUILD.winapi-util-0.1.5.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-util-0.1.5.bazel"), ) maybe( http_archive, - name = "proxy_wasm_cpp_host__winapi_x86_64_pc_windows_gnu__0_4_0", + name = "wasmtime__winapi_x86_64_pc_windows_gnu__0_4_0", url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) diff --git a/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel index 69cafd18c..35a316e9b 100644 --- a/bazel/cargo/remote/BUILD.addr2line-0.17.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,7 +52,7 @@ rust_library( version = "0.17.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", + "@wasmtime__gimli__0_26_1//:gimli", ], ) diff --git a/bazel/cargo/remote/BUILD.adler-1.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.adler-1.0.2.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.adler-1.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.adler-1.0.2.bazel index a2b439c74..602f9dd28 100644 --- a/bazel/cargo/remote/BUILD.adler-1.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.adler-1.0.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel rename to bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel index a5442568b..e43497742 100644 --- a/bazel/cargo/remote/BUILD.aho-corasick-0.7.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,6 +52,6 @@ rust_library( version = "0.7.18", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", + "@wasmtime__memchr__2_4_1//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.53.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.53.bazel new file mode 100644 index 000000000..5a0887d66 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.53.bazel @@ -0,0 +1,116 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "anyhow_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.53", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "anyhow", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=anyhow", + "manual", + ], + version = "1.0.53", + # buildifier: leave-alone + deps = [ + ":anyhow_build_script", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_autotrait" with type "test" omitted + +# Unsupported target "test_backtrace" with type "test" omitted + +# Unsupported target "test_boxed" with type "test" omitted + +# Unsupported target "test_chain" with type "test" omitted + +# Unsupported target "test_context" with type "test" omitted + +# Unsupported target "test_convert" with type "test" omitted + +# Unsupported target "test_downcast" with type "test" omitted + +# Unsupported target "test_ensure" with type "test" omitted + +# Unsupported target "test_ffi" with type "test" omitted + +# Unsupported target "test_fmt" with type "test" omitted + +# Unsupported target "test_macros" with type "test" omitted + +# Unsupported target "test_repr" with type "test" omitted + +# Unsupported target "test_source" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel new file mode 100644 index 000000000..8a23e8936 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -0,0 +1,90 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT" +]) + +# Generated Targets + +# Unsupported target "atty" with type "example" omitted + +rust_library( + name = "atty", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=atty", + "manual", + ], + version = "0.2.14", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(unix) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@wasmtime__libc__0_2_114//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@wasmtime__winapi__0_3_9//:winapi", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.0.1.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.autocfg-1.0.1.bazel index 2e0c8bcad..4400f5f1e 100644 --- a/bazel/cargo/remote/BUILD.autocfg-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.0.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.63.bazel similarity index 81% rename from bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel rename to bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.63.bazel index 68cf4beb4..6739eec44 100644 --- a/bazel/cargo/remote/BUILD.backtrace-0.3.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.63.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -59,7 +59,7 @@ cargo_build_script( version = "0.3.63", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_72//:cc", ], ) @@ -91,12 +91,12 @@ rust_library( # buildifier: leave-alone deps = [ ":backtrace_build_script", - "@proxy_wasm_cpp_host__addr2line__0_17_0//:addr2line", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", - "@proxy_wasm_cpp_host__miniz_oxide__0_4_4//:miniz_oxide", - "@proxy_wasm_cpp_host__object__0_27_1//:object", - "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", + "@wasmtime__addr2line__0_17_0//:addr2line", + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__miniz_oxide__0_4_4//:miniz_oxide", + "@wasmtime__object__0_27_1//:object", + "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bazel b/bazel/cargo/wasmtime/remote/BUILD.bazel new file mode 100644 index 000000000..e69de29bb diff --git a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.bincode-1.3.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index e7f5a53ca..e22d4cc7b 100644 --- a/bazel/cargo/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,7 +50,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_133//:serde", + "@wasmtime__serde__1_0_136//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel new file mode 100644 index 000000000..0e31ead71 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "bitflags", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=bitflags", + "manual", + ], + version = "1.3.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "basic" with type "test" omitted + +# Unsupported target "compile" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cc-1.0.72.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.72.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.cc-1.0.72.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cc-1.0.72.bazel index 717ee45dd..ed5c5d9b5 100644 --- a/bazel/cargo/remote/BUILD.cc-1.0.72.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.72.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel new file mode 100644 index 000000000..2b86c1e35 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cfg_if", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=cfg-if", + "manual", + ], + version = "1.0.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel index 9389cf15a..68344269d 100644 --- a/bazel/cargo/remote/BUILD.cpp_demangle-0.3.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -87,7 +87,7 @@ rust_binary( deps = [ ":cpp_demangle", ":cpp_demangle_build_script", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cfg_if__1_0_0//:cfg_if", ], ) @@ -115,6 +115,6 @@ rust_library( # buildifier: leave-alone deps = [ ":cpp_demangle_build_script", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-bforest-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.80.0.bazel similarity index 87% rename from bazel/cargo/remote/BUILD.cranelift-bforest-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.80.0.bazel index 2c35cf599..49220f5b8 100644 --- a/bazel/cargo/remote/BUILD.cranelift-bforest-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,6 +50,6 @@ rust_library( version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.80.0.bazel similarity index 72% rename from bazel/cargo/remote/BUILD.cranelift-codegen-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.80.0.bazel index a48c13ab1..eb10e85b3 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -61,7 +61,7 @@ cargo_build_script( version = "0.80.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_meta__0_80_0//:cranelift_codegen_meta", + "@wasmtime__cranelift_codegen_meta__0_80_0//:cranelift_codegen_meta", ], ) @@ -91,13 +91,13 @@ rust_library( # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@proxy_wasm_cpp_host__cranelift_bforest__0_80_0//:cranelift_bforest", - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", - "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", - "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__regalloc__0_0_33//:regalloc", - "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__cranelift_bforest__0_80_0//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__regalloc__0_0_33//:regalloc", + "@wasmtime__smallvec__1_8_0//:smallvec", + "@wasmtime__target_lexicon__0_12_2//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel similarity index 86% rename from bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel index 48cb1098a..add48dc83 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,6 +50,6 @@ rust_library( version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel index 35965cc99..5cff4403c 100644 --- a/bazel/cargo/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.cranelift-entity-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.80.0.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.cranelift-entity-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.80.0.bazel index fab375b07..34ccb5ccf 100644 --- a/bazel/cargo/remote/BUILD.cranelift-entity-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,6 +52,6 @@ rust_library( version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__serde__1_0_133//:serde", + "@wasmtime__serde__1_0_136//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-frontend-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.80.0.bazel similarity index 75% rename from bazel/cargo/remote/BUILD.cranelift-frontend-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.80.0.bazel index cc7c32e9d..2d44a927e 100644 --- a/bazel/cargo/remote/BUILD.cranelift-frontend-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,9 +52,9 @@ rust_library( version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", - "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__smallvec__1_8_0//:smallvec", + "@wasmtime__target_lexicon__0_12_2//:target_lexicon", ], ) diff --git a/bazel/cargo/remote/BUILD.cranelift-native-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.80.0.bazel similarity index 82% rename from bazel/cargo/remote/BUILD.cranelift-native-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.80.0.bazel index 41905600c..a83e17f41 100644 --- a/bazel/cargo/remote/BUILD.cranelift-native-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -54,14 +54,14 @@ rust_library( version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", + "@wasmtime__target_lexicon__0_12_2//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__libc__0_2_114//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.cranelift-wasm-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.80.0.bazel similarity index 64% rename from bazel/cargo/remote/BUILD.cranelift-wasm-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.80.0.bazel index 7fda40b9a..caeebb965 100644 --- a/bazel/cargo/remote/BUILD.cranelift-wasm-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.80.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,14 +52,14 @@ rust_library( version = "0.80.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_codegen__0_80_0//:cranelift_codegen", - "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", - "@proxy_wasm_cpp_host__cranelift_frontend__0_80_0//:cranelift_frontend", - "@proxy_wasm_cpp_host__itertools__0_10_3//:itertools", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", - "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_33_0//:wasmtime_types", + "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_80_0//:cranelift_frontend", + "@wasmtime__itertools__0_10_3//:itertools", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__smallvec__1_8_0//:smallvec", + "@wasmtime__wasmparser__0_81_0//:wasmparser", + "@wasmtime__wasmtime_types__0_33_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.1.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.1.bazel index b6bd4b14b..7d2d6f5d3 100644 --- a/bazel/cargo/remote/BUILD.crc32fast-1.3.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.3.0", + version = "1.3.1", visibility = ["//visibility:private"], deps = [ ], @@ -82,10 +82,10 @@ rust_library( "crate-name=crc32fast", "manual", ], - version = "1.3.0", + version = "1.3.1", # buildifier: leave-alone deps = [ ":crc32fast_build_script", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/bazel/cargo/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.6.1.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.either-1.6.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.either-1.6.1.bazel index b096446c2..051360647 100644 --- a/bazel/cargo/remote/BUILD.either-1.6.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.6.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel similarity index 79% rename from bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel index f468b75f6..9710c3865 100644 --- a/bazel/cargo/remote/BUILD.env_logger-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -55,11 +55,11 @@ rust_library( version = "0.8.4", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__atty__0_2_14//:atty", - "@proxy_wasm_cpp_host__humantime__2_1_0//:humantime", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__regex__1_5_4//:regex", - "@proxy_wasm_cpp_host__termcolor__1_1_2//:termcolor", + "@wasmtime__atty__0_2_14//:atty", + "@wasmtime__humantime__2_1_0//:humantime", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__regex__1_5_4//:regex", + "@wasmtime__termcolor__1_1_2//:termcolor", ], ) diff --git a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.errno-0.2.8.bazel rename to bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index e0f7cc651..6dcf117cf 100644 --- a/bazel/cargo/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ ] + selects.with_or({ - # cfg(unix) + # cfg(unix) or cfg(target_os = "wasi") ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-unknown-linux-gnu", @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__libc__0_2_114//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -82,7 +82,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index b84aa3e7e..b98fd2b5e 100644 --- a/bazel/cargo/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -57,7 +57,7 @@ cargo_build_script( version = "0.1.2", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_72//:cc", ], ) @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__libc__0_2_114//:libc", ], ) diff --git a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel index e9944e278..d43820ced 100644 --- a/bazel/cargo/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel index 4a8f2b4df..e3d2855d9 100644 --- a/bazel/cargo/remote/BUILD.getrandom-0.2.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,16 +52,16 @@ rust_library( "crate-name=getrandom", "manual", ], - version = "0.2.3", + version = "0.2.4", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cfg_if__1_0_0//:cfg_if", ] + selects.with_or({ # cfg(target_os = "wasi") ( "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@proxy_wasm_cpp_host__wasi__0_10_2_wasi_snapshot_preview1//:wasi", + "@wasmtime__wasi__0_10_2_wasi_snapshot_preview1//:wasi", ], "//conditions:default": [], }) + selects.with_or({ @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__libc__0_2_114//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.gimli-0.26.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel index be8eaeeaa..e449bfc35 100644 --- a/bazel/cargo/remote/BUILD.gimli-0.26.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -67,9 +67,9 @@ rust_library( version = "0.26.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__fallible_iterator__0_2_0//:fallible_iterator", - "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", - "@proxy_wasm_cpp_host__stable_deref_trait__1_2_0//:stable_deref_trait", + "@wasmtime__fallible_iterator__0_2_0//:fallible_iterator", + "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel index f548e2a7a..1cc30e2cf 100644 --- a/bazel/cargo/remote/BUILD.hashbrown-0.11.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel new file mode 100644 index 000000000..8ccaca13f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "hermit_abi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=hermit-abi", + "manual", + ], + version = "0.1.19", + # buildifier: leave-alone + deps = [ + "@wasmtime__libc__0_2_114//:libc", + ], +) diff --git a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.humantime-2.1.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel index 9bd5ad1cd..162d7370b 100644 --- a/bazel/cargo/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.indexmap-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.indexmap-1.8.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel index 6b1bdbecb..06e64293c 100644 --- a/bazel/cargo/remote/BUILD.indexmap-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -60,7 +60,7 @@ cargo_build_script( version = "1.8.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", + "@wasmtime__autocfg__1_0_1//:autocfg", ], ) @@ -91,8 +91,8 @@ rust_library( # buildifier: leave-alone deps = [ ":indexmap_build_script", - "@proxy_wasm_cpp_host__hashbrown__0_11_2//:hashbrown", - "@proxy_wasm_cpp_host__serde__1_0_133//:serde", + "@wasmtime__hashbrown__0_11_2//:hashbrown", + "@wasmtime__serde__1_0_136//:serde", ], ) diff --git a/bazel/cargo/remote/BUILD.io-lifetimes-0.4.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.4.4.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.io-lifetimes-0.4.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.4.4.bazel index 2c3aae0b8..51cd3f156 100644 --- a/bazel/cargo/remote/BUILD.io-lifetimes-0.4.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.4.4.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -106,7 +106,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.itertools-0.10.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel index 50c2644d5..cf8c4ca3e 100644 --- a/bazel/cargo/remote/BUILD.itertools-0.10.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -71,7 +71,7 @@ rust_library( version = "0.10.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__either__1_6_1//:either", + "@wasmtime__either__1_6_1//:either", ], ) diff --git a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.lazy_static-1.4.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.lazy_static-1.4.0.bazel index b0f697e88..28cacc564 100644 --- a/bazel/cargo/remote/BUILD.lazy_static-1.4.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.lazy_static-1.4.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.libc-0.2.112.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.114.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.libc-0.2.112.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.114.bazel index d92e14c24..0876a0443 100644 --- a/bazel/cargo/remote/BUILD.libc-0.2.112.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.114.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.112", + version = "0.2.114", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.112", + version = "0.2.114", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.36.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel rename to bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.36.bazel index c5aa0df4f..7a7d93642 100644 --- a/bazel/cargo/remote/BUILD.linux-raw-sys-0.0.36.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.36.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.log-0.4.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.14.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.log-0.4.14.bazel rename to bazel/cargo/wasmtime/remote/BUILD.log-0.4.14.bazel index 56a6b771b..38a9c611f 100644 --- a/bazel/cargo/remote/BUILD.log-0.4.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.14.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -84,7 +84,7 @@ rust_library( # buildifier: leave-alone deps = [ ":log_build_script", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.mach-0.3.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index cc8147649..278047568 100644 --- a/bazel/cargo/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__libc__0_2_114//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.4.1.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.memchr-2.4.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.memchr-2.4.1.bazel index 6a7af6600..eeecd0e64 100644 --- a/bazel/cargo/remote/BUILD.memchr-2.4.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.4.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel index 3f80e639c..6ed72c45b 100644 --- a/bazel/cargo/remote/BUILD.memoffset-0.6.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -58,7 +58,7 @@ cargo_build_script( version = "0.6.5", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", + "@wasmtime__autocfg__1_0_1//:autocfg", ], ) diff --git a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel index 1b31c6366..e31fa207f 100644 --- a/bazel/cargo/remote/BUILD.miniz_oxide-0.4.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -57,7 +57,7 @@ cargo_build_script( version = "0.4.4", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__autocfg__1_0_1//:autocfg", + "@wasmtime__autocfg__1_0_1//:autocfg", ], ) @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":miniz_oxide_build_script", - "@proxy_wasm_cpp_host__adler__1_0_2//:adler", + "@wasmtime__adler__1_0_2//:adler", ], ) diff --git a/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.more-asserts-0.2.2.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.more-asserts-0.2.2.bazel index 2e2cbab0d..123327069 100644 --- a/bazel/cargo/remote/BUILD.more-asserts-0.2.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.more-asserts-0.2.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.object-0.27.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel index d83b03863..824ecf9f6 100644 --- a/bazel/cargo/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -62,9 +62,9 @@ rust_library( version = "0.27.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__crc32fast__1_3_0//:crc32fast", - "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", - "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", + "@wasmtime__crc32fast__1_3_1//:crc32fast", + "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__memchr__2_4_1//:memchr", ], ) diff --git a/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.9.0.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.once_cell-1.9.0.bazel index 32942256f..eb0b4d6f5 100644 --- a/bazel/cargo/remote/BUILD.once_cell-1.9.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.9.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.paste-1.0.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.6.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.paste-1.0.6.bazel rename to bazel/cargo/wasmtime/remote/BUILD.paste-1.0.6.bazel index a12c78af6..5e5c49e88 100644 --- a/bazel/cargo/remote/BUILD.paste-1.0.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.6.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.16.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel rename to bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.16.bazel index b18e4c2f3..1f3e2d8de 100644 --- a/bazel/cargo/remote/BUILD.ppv-lite86-0.2.16.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.16.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.36.bazel new file mode 100644 index 000000000..ab2480f0f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.36.bazel @@ -0,0 +1,99 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "proc_macro2_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.36", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "proc_macro2", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=proc-macro2", + "manual", + ], + version = "1.0.36", + # buildifier: leave-alone + deps = [ + ":proc_macro2_build_script", + "@wasmtime__unicode_xid__0_2_2//:unicode_xid", + ], +) + +# Unsupported target "comments" with type "test" omitted + +# Unsupported target "features" with type "test" omitted + +# Unsupported target "marker" with type "test" omitted + +# Unsupported target "test" with type "test" omitted + +# Unsupported target "test_fmt" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.psm-0.1.16.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.16.bazel similarity index 94% rename from bazel/cargo/remote/BUILD.psm-0.1.16.bazel rename to bazel/cargo/wasmtime/remote/BUILD.psm-0.1.16.bazel index 972d2814a..7fbf5690c 100644 --- a/bazel/cargo/remote/BUILD.psm-0.1.16.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.16.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -57,7 +57,7 @@ cargo_build_script( version = "0.1.16", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_72//:cc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.15.bazel new file mode 100644 index 000000000..f83b9dc24 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.15.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "quote", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=quote", + "manual", + ], + version = "1.0.15", + # buildifier: leave-alone + deps = [ + "@wasmtime__proc_macro2__1_0_36//:proc_macro2", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.rand-0.8.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel index b09eb1afd..316dd5ee0 100644 --- a/bazel/cargo/remote/BUILD.rand-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -60,7 +60,7 @@ rust_library( version = "0.8.4", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", + "@wasmtime__rand_core__0_6_3//:rand_core", ] + selects.with_or({ # cfg(not(target_os = "emscripten")) ( @@ -85,7 +85,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__rand_chacha__0_3_1//:rand_chacha", + "@wasmtime__rand_chacha__0_3_1//:rand_chacha", ], "//conditions:default": [], }) + selects.with_or({ @@ -108,7 +108,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__libc__0_2_114//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel similarity index 83% rename from bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel index 7a3470d81..9fdf44b28 100644 --- a/bazel/cargo/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -51,7 +51,7 @@ rust_library( version = "0.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__ppv_lite86__0_2_16//:ppv_lite86", - "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", + "@wasmtime__ppv_lite86__0_2_16//:ppv_lite86", + "@wasmtime__rand_core__0_6_3//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel index 2627acc86..d81d33f08 100644 --- a/bazel/cargo/remote/BUILD.rand_core-0.6.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -53,6 +53,6 @@ rust_library( version = "0.6.3", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__getrandom__0_2_3//:getrandom", + "@wasmtime__getrandom__0_2_4//:getrandom", ], ) diff --git a/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_hc-0.3.1.bazel similarity index 88% rename from bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rand_hc-0.3.1.bazel index 01cc82ad4..42c0aa1ce 100644 --- a/bazel/cargo/remote/BUILD.rand_hc-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_hc-0.3.1.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,6 +50,6 @@ rust_library( version = "0.3.1", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__rand_core__0_6_3//:rand_core", + "@wasmtime__rand_core__0_6_3//:rand_core", ], ) diff --git a/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.33.bazel similarity index 80% rename from bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.33.bazel index cdd2deaad..0b12d21ae 100644 --- a/bazel/cargo/remote/BUILD.regalloc-0.0.33.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.33.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -51,8 +51,8 @@ rust_library( version = "0.0.33", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__rustc_hash__1_1_0//:rustc_hash", - "@proxy_wasm_cpp_host__smallvec__1_7_0//:smallvec", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__rustc_hash__1_1_0//:rustc_hash", + "@wasmtime__smallvec__1_8_0//:smallvec", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-1.5.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.4.bazel similarity index 89% rename from bazel/cargo/remote/BUILD.regex-1.5.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-1.5.4.bazel index 8edd77791..a415a2cb1 100644 --- a/bazel/cargo/remote/BUILD.regex-1.5.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.4.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -70,9 +70,9 @@ rust_library( version = "1.5.4", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__aho_corasick__0_7_18//:aho_corasick", - "@proxy_wasm_cpp_host__memchr__2_4_1//:memchr", - "@proxy_wasm_cpp_host__regex_syntax__0_6_25//:regex_syntax", + "@wasmtime__aho_corasick__0_7_18//:aho_corasick", + "@wasmtime__memchr__2_4_1//:memchr", + "@wasmtime__regex_syntax__0_6_25//:regex_syntax", ], ) diff --git a/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.25.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.25.bazel index 31e894472..b04c80e3c 100644 --- a/bazel/cargo/remote/BUILD.regex-syntax-0.6.25.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.25.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel similarity index 85% rename from bazel/cargo/remote/BUILD.region-2.2.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel index 1e7fbc8bc..942028bac 100644 --- a/bazel/cargo/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,8 +52,8 @@ rust_library( version = "2.2.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__bitflags__1_3_2//:bitflags", + "@wasmtime__libc__0_2_114//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( @@ -63,7 +63,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@proxy_wasm_cpp_host__mach__0_3_2//:mach", + "@wasmtime__mach__0_3_2//:mach", ], "//conditions:default": [], }) + selects.with_or({ @@ -72,7 +72,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.21.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.21.bazel index be128de4a..2b062d029 100644 --- a/bazel/cargo/remote/BUILD.rustc-demangle-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.21.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel index 3db447526..0f07a4bc7 100644 --- a/bazel/cargo/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.rustix-0.31.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.31.3.bazel similarity index 92% rename from bazel/cargo/remote/BUILD.rustix-0.31.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.31.3.bazel index 9aecc7c26..b3c86abdd 100644 --- a/bazel/cargo/remote/BUILD.rustix-0.31.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.31.3.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -61,7 +61,7 @@ cargo_build_script( version = "0.31.3", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_72//:cc", ] + selects.with_or({ # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( @@ -70,7 +70,7 @@ cargo_build_script( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@proxy_wasm_cpp_host__linux_raw_sys__0_0_36//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_0_36//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -142,8 +142,8 @@ rust_library( # buildifier: leave-alone deps = [ ":rustix_build_script", - "@proxy_wasm_cpp_host__bitflags__1_3_2//:bitflags", - "@proxy_wasm_cpp_host__io_lifetimes__0_4_4//:io_lifetimes", + "@wasmtime__bitflags__1_3_2//:bitflags", + "@wasmtime__io_lifetimes__0_4_4//:io_lifetimes", ] + selects.with_or({ # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( @@ -152,7 +152,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@proxy_wasm_cpp_host__linux_raw_sys__0_0_36//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_0_36//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -175,8 +175,8 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__errno__0_2_8//:errno", - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", + "@wasmtime__errno__0_2_8//:errno", + "@wasmtime__libc__0_2_114//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -185,7 +185,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.serde-1.0.133.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.136.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.serde-1.0.133.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde-1.0.136.bazel index 65e947b4c..311d8f4c9 100644 --- a/bazel/cargo/remote/BUILD.serde-1.0.133.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.136.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.133", + version = "1.0.136", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@proxy_wasm_cpp_host__serde_derive__1_0_133//:serde_derive", + "@wasmtime__serde_derive__1_0_136//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -87,7 +87,7 @@ rust_library( "crate-name=serde", "manual", ], - version = "1.0.133", + version = "1.0.136", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel index 80f32a48a..f84192c4a 100644 --- a/bazel/cargo/remote/BUILD.serde_derive-1.0.133.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.133", + version = "1.0.136", visibility = ["//visibility:private"], deps = [ ], @@ -78,12 +78,12 @@ rust_proc_macro( "crate-name=serde_derive", "manual", ], - version = "1.0.133", + version = "1.0.136", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_14//:quote", - "@proxy_wasm_cpp_host__syn__1_0_85//:syn", + "@wasmtime__proc_macro2__1_0_36//:proc_macro2", + "@wasmtime__quote__1_0_15//:quote", + "@wasmtime__syn__1_0_86//:syn", ], ) diff --git a/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.8.0.bazel similarity index 91% rename from bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.smallvec-1.8.0.bazel index d66698a0b..734404e4a 100644 --- a/bazel/cargo/remote/BUILD.smallvec-1.7.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.8.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -49,7 +49,7 @@ rust_library( "crate-name=smallvec", "manual", ], - version = "1.7.0", + version = "1.8.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel index 5c794f6c2..584db4e50 100644 --- a/bazel/cargo/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.86.bazel new file mode 100644 index 000000000..beb2ab37c --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.86.bazel @@ -0,0 +1,159 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "syn_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + "quote", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.86", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "file" with type "bench" omitted + +# Unsupported target "rust" with type "bench" omitted + +rust_library( + name = "syn", + srcs = glob(["**/*.rs"]), + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + "quote", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=syn", + "manual", + ], + version = "1.0.86", + # buildifier: leave-alone + deps = [ + ":syn_build_script", + "@wasmtime__proc_macro2__1_0_36//:proc_macro2", + "@wasmtime__quote__1_0_15//:quote", + "@wasmtime__unicode_xid__0_2_2//:unicode_xid", + ], +) + +# Unsupported target "regression" with type "test" omitted + +# Unsupported target "test_asyncness" with type "test" omitted + +# Unsupported target "test_attribute" with type "test" omitted + +# Unsupported target "test_derive_input" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_generics" with type "test" omitted + +# Unsupported target "test_grouping" with type "test" omitted + +# Unsupported target "test_ident" with type "test" omitted + +# Unsupported target "test_item" with type "test" omitted + +# Unsupported target "test_iterators" with type "test" omitted + +# Unsupported target "test_lit" with type "test" omitted + +# Unsupported target "test_meta" with type "test" omitted + +# Unsupported target "test_parse_buffer" with type "test" omitted + +# Unsupported target "test_parse_stream" with type "test" omitted + +# Unsupported target "test_pat" with type "test" omitted + +# Unsupported target "test_path" with type "test" omitted + +# Unsupported target "test_precedence" with type "test" omitted + +# Unsupported target "test_receiver" with type "test" omitted + +# Unsupported target "test_round_trip" with type "test" omitted + +# Unsupported target "test_shebang" with type "test" omitted + +# Unsupported target "test_should_parse" with type "test" omitted + +# Unsupported target "test_size" with type "test" omitted + +# Unsupported target "test_stmt" with type "test" omitted + +# Unsupported target "test_token_trees" with type "test" omitted + +# Unsupported target "test_ty" with type "test" omitted + +# Unsupported target "test_visibility" with type "test" omitted + +# Unsupported target "zzz_stable" with type "test" omitted diff --git a/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.2.bazel similarity index 95% rename from bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.2.bazel index b5b320c3e..680849e99 100644 --- a/bazel/cargo/remote/BUILD.target-lexicon-0.12.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.2.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.2.bazel index 451225495..a6e05508c 100644 --- a/bazel/cargo/remote/BUILD.termcolor-1.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.2.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -58,7 +58,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi_util__0_1_5//:winapi_util", + "@wasmtime__winapi_util__0_1_5//:winapi_util", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.30.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.30.bazel new file mode 100644 index 000000000..d6c042ae0 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.30.bazel @@ -0,0 +1,81 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "thiserror", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + proc_macro_deps = [ + "@wasmtime__thiserror_impl__1_0_30//:thiserror_impl", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=thiserror", + "manual", + ], + version = "1.0.30", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_backtrace" with type "test" omitted + +# Unsupported target "test_display" with type "test" omitted + +# Unsupported target "test_error" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_from" with type "test" omitted + +# Unsupported target "test_generics" with type "test" omitted + +# Unsupported target "test_lints" with type "test" omitted + +# Unsupported target "test_option" with type "test" omitted + +# Unsupported target "test_path" with type "test" omitted + +# Unsupported target "test_source" with type "test" omitted + +# Unsupported target "test_transparent" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel new file mode 100644 index 000000000..7e728bdef --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_proc_macro( + name = "thiserror_impl", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=thiserror-impl", + "manual", + ], + version = "1.0.30", + # buildifier: leave-alone + deps = [ + "@wasmtime__proc_macro2__1_0_36//:proc_macro2", + "@wasmtime__quote__1_0_15//:quote", + "@wasmtime__syn__1_0_86//:syn", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.2.bazel new file mode 100644 index 000000000..4f3bb923c --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.2.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "xid" with type "bench" omitted + +rust_library( + name = "unicode_xid", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=unicode-xid", + "manual", + ], + version = "0.2.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel new file mode 100644 index 000000000..1c0bde1e7 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets + +rust_library( + name = "wasi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=wasi", + "manual", + ], + version = "0.10.2+wasi-snapshot-preview1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.81.0.bazel similarity index 93% rename from bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.81.0.bazel index e91ad4372..5d162ddfd 100644 --- a/bazel/cargo/remote/BUILD.wasmparser-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.81.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/remote/BUILD.wasmtime-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.33.0.bazel similarity index 61% rename from bazel/cargo/remote/BUILD.wasmtime-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.33.0.bazel index 3a51bc96a..b241c8b40 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.33.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -83,7 +83,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host__paste__1_0_6//:paste", + "@wasmtime__paste__1_0_6//:paste", ], rustc_flags = [ "--cap-lints=allow", @@ -97,33 +97,33 @@ rust_library( # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_63//:backtrace", - "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__cpp_demangle__0_3_5//:cpp_demangle", - "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", - "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__object__0_27_1//:object", - "@proxy_wasm_cpp_host__psm__0_1_16//:psm", - "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__rustc_demangle__0_1_21//:rustc_demangle", - "@proxy_wasm_cpp_host__serde__1_0_133//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", - "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_cranelift__0_33_0//:wasmtime_cranelift", - "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_jit__0_33_0//:wasmtime_jit", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_33_0//:wasmtime_runtime", + "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__backtrace__0_3_63//:backtrace", + "@wasmtime__bincode__1_3_3//:bincode", + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", + "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__lazy_static__1_4_0//:lazy_static", + "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__object__0_27_1//:object", + "@wasmtime__psm__0_1_16//:psm", + "@wasmtime__region__2_2_0//:region", + "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", + "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__wasmparser__0_81_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__0_33_0//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_33_0//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_33_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel similarity index 84% rename from bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index a57bbd655..d5e19072f 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,7 +50,7 @@ rust_proc_macro( version = "0.19.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__proc_macro2__1_0_36//:proc_macro2", - "@proxy_wasm_cpp_host__quote__1_0_14//:quote", + "@wasmtime__proc_macro2__1_0_36//:proc_macro2", + "@wasmtime__quote__1_0_15//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.33.0.bazel new file mode 100644 index 000000000..5e0d0e640 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.33.0.bazel @@ -0,0 +1,68 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_cranelift", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=wasmtime-cranelift", + "manual", + ], + version = "0.33.0", + # buildifier: leave-alone + deps = [ + "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_80_0//:cranelift_frontend", + "@wasmtime__cranelift_native__0_80_0//:cranelift_native", + "@wasmtime__cranelift_wasm__0_80_0//:cranelift_wasm", + "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__more_asserts__0_2_2//:more_asserts", + "@wasmtime__object__0_27_1//:object", + "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__wasmparser__0_81_0//:wasmparser", + "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/remote/BUILD.wasmtime-environ-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.33.0.bazel similarity index 55% rename from bazel/cargo/remote/BUILD.wasmtime-environ-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.33.0.bazel index 042b35258..fea803e1a 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-environ-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.33.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,17 +50,17 @@ rust_library( version = "0.33.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", - "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", - "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", - "@proxy_wasm_cpp_host__object__0_27_1//:object", - "@proxy_wasm_cpp_host__serde__1_0_133//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", - "@proxy_wasm_cpp_host__wasmtime_types__0_33_0//:wasmtime_types", + "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__more_asserts__0_2_2//:more_asserts", + "@wasmtime__object__0_27_1//:object", + "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__wasmparser__0_81_0//:wasmparser", + "@wasmtime__wasmtime_types__0_33_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.33.0.bazel similarity index 57% rename from bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.33.0.bazel index 36c1435e2..620627381 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-jit-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.33.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -52,26 +52,26 @@ rust_library( version = "0.33.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__addr2line__0_17_0//:addr2line", - "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__bincode__1_3_3//:bincode", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__gimli__0_26_1//:gimli", - "@proxy_wasm_cpp_host__object__0_27_1//:object", - "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__rustix__0_31_3//:rustix", - "@proxy_wasm_cpp_host__serde__1_0_133//:serde", - "@proxy_wasm_cpp_host__target_lexicon__0_12_2//:target_lexicon", - "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", - "@proxy_wasm_cpp_host__wasmtime_runtime__0_33_0//:wasmtime_runtime", + "@wasmtime__addr2line__0_17_0//:addr2line", + "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__bincode__1_3_3//:bincode", + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__object__0_27_1//:object", + "@wasmtime__region__2_2_0//:region", + "@wasmtime__rustix__0_31_3//:rustix", + "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_33_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.33.0.bazel similarity index 82% rename from bazel/cargo/remote/BUILD.wasmtime-runtime-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.33.0.bazel index de5cdefc1..65701a486 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-runtime-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.33.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -58,7 +58,7 @@ cargo_build_script( version = "0.33.0", visibility = ["//visibility:private"], deps = [ - "@proxy_wasm_cpp_host__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_72//:cc", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -124,19 +124,19 @@ rust_library( # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@proxy_wasm_cpp_host__anyhow__1_0_52//:anyhow", - "@proxy_wasm_cpp_host__backtrace__0_3_63//:backtrace", - "@proxy_wasm_cpp_host__cfg_if__1_0_0//:cfg_if", - "@proxy_wasm_cpp_host__indexmap__1_8_0//:indexmap", - "@proxy_wasm_cpp_host__lazy_static__1_4_0//:lazy_static", - "@proxy_wasm_cpp_host__libc__0_2_112//:libc", - "@proxy_wasm_cpp_host__log__0_4_14//:log", - "@proxy_wasm_cpp_host__memoffset__0_6_5//:memoffset", - "@proxy_wasm_cpp_host__more_asserts__0_2_2//:more_asserts", - "@proxy_wasm_cpp_host__rand__0_8_4//:rand", - "@proxy_wasm_cpp_host__region__2_2_0//:region", - "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmtime_environ__0_33_0//:wasmtime_environ", + "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__backtrace__0_3_63//:backtrace", + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__lazy_static__1_4_0//:lazy_static", + "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__log__0_4_14//:log", + "@wasmtime__memoffset__0_6_5//:memoffset", + "@wasmtime__more_asserts__0_2_2//:more_asserts", + "@wasmtime__rand__0_8_4//:rand", + "@wasmtime__region__2_2_0//:region", + "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -144,7 +144,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-darwin", ): [ - "@proxy_wasm_cpp_host__mach__0_3_2//:mach", + "@wasmtime__mach__0_3_2//:mach", ], "//conditions:default": [], }) + selects.with_or({ @@ -153,7 +153,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }) + selects.with_or({ @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@proxy_wasm_cpp_host__rustix__0_31_3//:rustix", + "@wasmtime__rustix__0_31_3//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/remote/BUILD.wasmtime-types-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.33.0.bazel similarity index 75% rename from bazel/cargo/remote/BUILD.wasmtime-types-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.33.0.bazel index 332be3f70..216a537da 100644 --- a/bazel/cargo/remote/BUILD.wasmtime-types-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.33.0.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -50,9 +50,9 @@ rust_library( version = "0.33.0", # buildifier: leave-alone deps = [ - "@proxy_wasm_cpp_host__cranelift_entity__0_80_0//:cranelift_entity", - "@proxy_wasm_cpp_host__serde__1_0_133//:serde", - "@proxy_wasm_cpp_host__thiserror__1_0_30//:thiserror", - "@proxy_wasm_cpp_host__wasmparser__0_81_0//:wasmparser", + "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__wasmparser__0_81_0//:wasmparser", ], ) diff --git a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel similarity index 96% rename from bazel/cargo/remote/BUILD.winapi-0.3.9.bazel rename to bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel index 908c4ade7..b81b61484 100644 --- a/bazel/cargo/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 000000000..6cc4aaf22 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "winapi_i686_pc_windows_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "winapi_i686_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=winapi-i686-pc-windows-gnu", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ":winapi_i686_pc_windows_gnu_build_script", + ], +) diff --git a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.5.bazel similarity index 90% rename from bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.5.bazel index 34f2d5570..656930ec9 100644 --- a/bazel/cargo/remote/BUILD.winapi-util-0.1.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.5.bazel @@ -20,7 +20,7 @@ load( package(default_visibility = [ # Public for visibility by "@raze__crate__version//" targets. # - # Prefer access through "//bazel/cargo", which limits external + # Prefer access through "//bazel/cargo/wasmtime", which limits external # visibility to explicit Cargo.toml dependencies. "//visibility:public", ]) @@ -58,7 +58,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@proxy_wasm_cpp_host__winapi__0_3_9//:winapi", + "@wasmtime__winapi__0_3_9//:winapi", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel new file mode 100644 index 000000000..e34ab339d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "winapi_x86_64_pc_windows_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.4.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "winapi_x86_64_pc_windows_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=winapi-x86_64-pc-windows-gnu", + "manual", + ], + version = "0.4.0", + # buildifier: leave-alone + deps = [ + ":winapi_x86_64_pc_windows_gnu_build_script", + ], +) diff --git a/bazel/cargo/wasmtime.patch b/bazel/cargo/wasmtime/wasmtime-runtime.patch similarity index 100% rename from bazel/cargo/wasmtime.patch rename to bazel/cargo/wasmtime/wasmtime-runtime.patch diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 2d5ef058f..4d2662613 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -13,7 +13,8 @@ # limitations under the License. load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") -load("@proxy_wasm_cpp_host//bazel/cargo:crates.bzl", "proxy_wasm_cpp_host_fetch_remote_crates") +load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign:crates.bzl", "wasmsign_fetch_remote_crates") +load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime:crates.bzl", "wasmtime_fetch_remote_crates") load("@rules_python//python:pip.bzl", "pip_install") load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set") @@ -28,7 +29,8 @@ def proxy_wasm_cpp_host_dependencies(): version = "1.57.0", ) - proxy_wasm_cpp_host_fetch_remote_crates() + wasmsign_fetch_remote_crates() + wasmtime_fetch_remote_crates() pip_install( name = "v8_python_deps", diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index 913b6cc35..e297b38da 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -12,12 +12,12 @@ rust_static_library( crate_root = "crates/c-api/src/lib.rs", edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host//bazel/cargo:wasmtime_c_api_macros", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime_c_api_macros", ], deps = [ - "@proxy_wasm_cpp_host//bazel/cargo:anyhow", - "@proxy_wasm_cpp_host//bazel/cargo:env_logger", - "@proxy_wasm_cpp_host//bazel/cargo:once_cell", - "@proxy_wasm_cpp_host//bazel/cargo:wasmtime", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:anyhow", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:env_logger", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:once_cell", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime", ], ) diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index 706d47a91..58cd84e3b 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -63,7 +63,7 @@ def _wasm_attrs(transition): return { "binary": attr.label(mandatory = True, cfg = transition), "signing_key": attr.label_list(allow_files = True), - "_wasmsign_tool": attr.label(default = "//bazel/cargo:cargo_bin_wasmsign", executable = True, cfg = "exec"), + "_wasmsign_tool": attr.label(default = "//bazel/cargo/wasmsign:cargo_bin_wasmsign", executable = True, cfg = "exec"), "_whitelist_function_transition": attr.label(default = "@bazel_tools//tools/whitelists/function_transition_whitelist"), } From 44a63ebe58770a07e36ff1ff149f176fd8371810 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 26 Jan 2022 03:39:33 -0600 Subject: [PATCH 150/287] build: cleanup Bazel rules for dependencies. (#233) No updates or functional changes. Signed-off-by: Piotr Sikora --- WORKSPACE | 4 - bazel/dependencies.bzl | 16 ++- bazel/repositories.bzl | 226 +++++++++++++++++++++++------------------ 3 files changed, 142 insertions(+), 104 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 2008efc3e..77ecd3a0b 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -7,7 +7,3 @@ proxy_wasm_cpp_host_repositories() load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "proxy_wasm_cpp_host_dependencies") proxy_wasm_cpp_host_dependencies() - -load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") - -rules_foreign_cc_dependencies() diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 4d2662613..b81bf18de 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -15,11 +15,14 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign:crates.bzl", "wasmsign_fetch_remote_crates") load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime:crates.bzl", "wasmtime_fetch_remote_crates") +load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") load("@rules_python//python:pip.bzl", "pip_install") load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set") def proxy_wasm_cpp_host_dependencies(): - protobuf_deps() + # Bazel extensions. + + rules_foreign_cc_dependencies() rust_repositories() rust_repository_set( @@ -29,11 +32,20 @@ def proxy_wasm_cpp_host_dependencies(): version = "1.57.0", ) + # Core dependencies. + + protobuf_deps() + wasmsign_fetch_remote_crates() - wasmtime_fetch_remote_crates() + + # V8 dependencies. pip_install( name = "v8_python_deps", extra_pip_args = ["--require-hashes"], requirements = "@v8//:bazel/requirements.txt", ) + + # Wasmtime dependencies. + + wasmtime_fetch_remote_crates() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index ed41d6ffc..1cb2c6343 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -14,16 +14,50 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository", "new_git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def proxy_wasm_cpp_host_repositories(): - http_archive( - name = "proxy_wasm_cpp_sdk", - sha256 = "c57de2425b5c61d7f630c5061e319b4557ae1f1c7526e5a51c33dc1299471b08", - strip_prefix = "proxy-wasm-cpp-sdk-fd0be8405db25de0264bdb78fae3a82668c03782", - urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/fd0be8405db25de0264bdb78fae3a82668c03782.tar.gz"], + # Bazel extensions. + + maybe( + http_archive, + name = "bazel_skylib", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", + "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", + ], + sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", + ) + + maybe( + http_archive, + name = "rules_foreign_cc", + sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6", + strip_prefix = "rules_foreign_cc-0.2.0", + url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.2.0.tar.gz", + ) + + maybe( + http_archive, + name = "rules_python", + sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502", + strip_prefix = "rules_python-0.6.0", + url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", ) - http_archive( + maybe( + http_archive, + name = "rules_rust", + sha256 = "8a2052e8ec707aa04a6b9e72bfc67fea44e915ecab1d2d0a4835ad51c2410c36", + strip_prefix = "rules_rust-b16c26ba5faf1c58ebe94582afd20567ce676e6d", + # NOTE: Update Rust version for Linux/s390x in bazel/dependencies.bzl. + url = "https://github.com/bazelbuild/rules_rust/archive/b16c26ba5faf1c58ebe94582afd20567ce676e6d.tar.gz", + ) + + # Core. + + maybe( + http_archive, name = "boringssl", # 2022-01-10 (master-with-bazel) sha256 = "a530919e3141d00d593a0d74cd0f9f88707e35ec58bb62245968fec16cb9257f", @@ -31,29 +65,83 @@ def proxy_wasm_cpp_host_repositories(): urls = ["https://github.com/google/boringssl/archive/9420fb54116466923afa1f34a23dd8a4a7ddb69d.tar.gz"], ) - http_archive( + maybe( + http_archive, name = "com_google_googletest", sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", strip_prefix = "googletest-release-1.10.0", urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], ) - http_archive( + maybe( + http_archive, name = "com_google_protobuf", sha256 = "77ad26d3f65222fd96ccc18b055632b0bfedf295cb748b712a98ba1ac0b704b2", strip_prefix = "protobuf-3.17.3", url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz", ) - http_archive( - name = "llvm13", - build_file = "@proxy_wasm_cpp_host//bazel/external:llvm13.BUILD", - sha256 = "408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020", - strip_prefix = "llvm-13.0.0.src", - url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-13.0.0.src.tar.xz", + maybe( + http_archive, + name = "proxy_wasm_cpp_sdk", + sha256 = "c57de2425b5c61d7f630c5061e319b4557ae1f1c7526e5a51c33dc1299471b08", + strip_prefix = "proxy-wasm-cpp-sdk-fd0be8405db25de0264bdb78fae3a82668c03782", + urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/fd0be8405db25de0264bdb78fae3a82668c03782.tar.gz"], + ) + + # V8 with dependencies. + + maybe( + git_repository, + name = "v8", + # 9.9.115.3 + commit = "90f089d97b6e4146ad106eee1829d86ad6392027", + remote = "https://chromium.googlesource.com/v8/v8", + shallow_since = "1643043727 +0000", + ) + + native.bind( + name = "wee8", + actual = "@v8//:wee8", + ) + + maybe( + new_git_repository, + name = "com_googlesource_chromium_base_trace_event_common", + build_file = "@v8//:bazel/BUILD.trace_event_common", + commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb", + remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", + shallow_since = "1635355186 -0700", + ) + + native.bind( + name = "base_trace_event_common", + actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common", ) - http_archive( + maybe( + new_git_repository, + name = "com_googlesource_chromium_zlib", + build_file = "@v8//:bazel/BUILD.zlib", + commit = "fc5cfd78a357d5bb7735a58f383634faaafe706a", + remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", + shallow_since = "1642005087 -0800", + ) + + native.bind( + name = "zlib", + actual = "@com_googlesource_chromium_zlib//:zlib", + ) + + native.bind( + name = "zlib_compression_utils", + actual = "@com_googlesource_chromium_zlib//:zlib_compression_utils", + ) + + # WAMR with dependencies. + + maybe( + http_archive, name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", # WAMR-01-18-2022 @@ -67,7 +155,19 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib", ) - http_archive( + maybe( + http_archive, + name = "llvm13", + build_file = "@proxy_wasm_cpp_host//bazel/external:llvm13.BUILD", + sha256 = "408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020", + strip_prefix = "llvm-13.0.0.src", + url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-13.0.0.src.tar.xz", + ) + + # Wasmtime with dependencies. + + maybe( + http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", sha256 = "c59a2aa110b25921d370944287cd97205c73cf3dc76776c5b3551135c1e42ddc", @@ -75,7 +175,8 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/bytecodealliance/wasmtime/archive/v0.33.0.tar.gz", ) - http_archive( + maybe( + http_archive, name = "com_github_webassembly_wasm_c_api", build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", sha256 = "c774044f51431429e878bd1b9e2a4e38932f861f9211df72f75e9427eb6b8d32", @@ -88,30 +189,10 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_github_webassembly_wasm_c_api//:wasmtime_lib", ) - http_archive( - name = "rules_rust", - sha256 = "8a2052e8ec707aa04a6b9e72bfc67fea44e915ecab1d2d0a4835ad51c2410c36", - strip_prefix = "rules_rust-b16c26ba5faf1c58ebe94582afd20567ce676e6d", - # NOTE: Update Rust version for Linux/s390x in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/b16c26ba5faf1c58ebe94582afd20567ce676e6d.tar.gz", - ) - - http_archive( - name = "rules_foreign_cc", - sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6", - strip_prefix = "rules_foreign_cc-0.2.0", - url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.2.0.tar.gz", - ) - - http_archive( - name = "llvm", - build_file = "@proxy_wasm_cpp_host//bazel/external:llvm.BUILD", - sha256 = "7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf", - strip_prefix = "llvm-12.0.1.src", - url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/llvm-12.0.1.src.tar.xz", - ) + # WAVM with dependencies. - http_archive( + maybe( + http_archive, name = "com_github_wavm_wavm", build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD", sha256 = "bf2b2aec8a4c6a5413081c0527cb40dd16cb67e9c74a91f8a82fe1cf27a3c5d5", @@ -126,62 +207,11 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_github_wavm_wavm//:wavm_lib", ) - git_repository( - name = "v8", - # 9.9.115.3 - commit = "90f089d97b6e4146ad106eee1829d86ad6392027", - remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1643043727 +0000", - ) - - native.bind( - name = "wee8", - actual = "@v8//:wee8", - ) - - new_git_repository( - name = "com_googlesource_chromium_base_trace_event_common", - build_file = "@v8//:bazel/BUILD.trace_event_common", - commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb", - remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", - shallow_since = "1635355186 -0700", - ) - - native.bind( - name = "base_trace_event_common", - actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common", - ) - - new_git_repository( - name = "com_googlesource_chromium_zlib", - build_file = "@v8//:bazel/BUILD.zlib", - commit = "fc5cfd78a357d5bb7735a58f383634faaafe706a", - remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", - shallow_since = "1642005087 -0800", - ) - - native.bind( - name = "zlib", - actual = "@com_googlesource_chromium_zlib//:zlib", - ) - - native.bind( - name = "zlib_compression_utils", - actual = "@com_googlesource_chromium_zlib//:zlib_compression_utils", - ) - - http_archive( - name = "rules_python", - sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502", - strip_prefix = "rules_python-0.6.0", - url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", - ) - - http_archive( - name = "bazel_skylib", - urls = [ - "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", - "https://github.com/bazelbuild/bazel-skylib/releases/download/1.1.1/bazel-skylib-1.1.1.tar.gz", - ], - sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", + maybe( + http_archive, + name = "llvm", + build_file = "@proxy_wasm_cpp_host//bazel/external:llvm.BUILD", + sha256 = "7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf", + strip_prefix = "llvm-12.0.1.src", + url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/llvm-12.0.1.src.tar.xz", ) From 6640fcf9d676f047d598a9c106459513e292542e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 26 Jan 2022 04:24:16 -0600 Subject: [PATCH 151/287] build: stop installing Ninja. (#234) rules_foreign_cc is automatically downloading CMake and Ninja. Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 946f74608..779ef4aaa 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -127,14 +127,6 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Install dependency (Linux) - if: startsWith(matrix.os, 'ubuntu') - run: sudo apt-get install ninja-build - - - name: Install dependency (macOS) - if: startsWith(matrix.os, 'macos') - run: brew install ninja - - name: Activate Docker/QEMU if: startsWith(matrix.run_under, 'docker') run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes From 8a380426fa5d46e27f10b21a5e0ef1b4077d28db Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 27 Jan 2022 22:21:27 -0600 Subject: [PATCH 152/287] Update rules_rust to latest (with Rust v1.58.1). (#237) Signed-off-by: Piotr Sikora --- bazel/dependencies.bzl | 2 +- bazel/repositories.bzl | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index b81bf18de..f484c94d5 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -29,7 +29,7 @@ def proxy_wasm_cpp_host_dependencies(): name = "rust_linux_s390x", exec_triple = "s390x-unknown-linux-gnu", extra_target_triples = ["wasm32-unknown-unknown", "wasm32-wasi"], - version = "1.57.0", + version = "1.58.1", ) # Core dependencies. diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 1cb2c6343..c7306b95a 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -48,10 +48,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_rust", - sha256 = "8a2052e8ec707aa04a6b9e72bfc67fea44e915ecab1d2d0a4835ad51c2410c36", - strip_prefix = "rules_rust-b16c26ba5faf1c58ebe94582afd20567ce676e6d", + sha256 = "6c26af1bb98276917fcf29ea942615ab375cf9d3c52f15c27fdd176ced3ee906", + strip_prefix = "rules_rust-b3ddf6f096887b757ab1a661662a95d6b2699fa7", # NOTE: Update Rust version for Linux/s390x in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/b16c26ba5faf1c58ebe94582afd20567ce676e6d.tar.gz", + url = "https://github.com/bazelbuild/rules_rust/archive/b3ddf6f096887b757ab1a661662a95d6b2699fa7.tar.gz", ) # Core. From b42c3366a8599407c02983ae0502acd091d30a8e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 27 Jan 2022 22:21:48 -0600 Subject: [PATCH 153/287] Update rules_foreign_cc to v0.7.1. (#236) Signed-off-by: Piotr Sikora --- bazel/external/llvm.BUILD | 7 ------- bazel/external/llvm13.BUILD | 7 ------- bazel/external/wavm.BUILD | 7 ------- bazel/repositories.bzl | 6 +++--- 4 files changed, 3 insertions(+), 24 deletions(-) diff --git a/bazel/external/llvm.BUILD b/bazel/external/llvm.BUILD index 8245a375a..38909ee9a 100644 --- a/bazel/external/llvm.BUILD +++ b/bazel/external/llvm.BUILD @@ -37,13 +37,6 @@ cmake( "LLVM_TARGETS_TO_BUILD": "X86", "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", }, - env_vars = { - # Workaround for the -DDEBUG flag added in fastbuild on macOS, - # which conflicts with DEBUG macro used in LLVM. - "CFLAGS": "-UDEBUG", - "CXXFLAGS": "-UDEBUG", - "ASMFLAGS": "-UDEBUG", - }, generate_args = ["-GNinja"], lib_source = ":srcs", out_static_libs = [ diff --git a/bazel/external/llvm13.BUILD b/bazel/external/llvm13.BUILD index f372ddfb5..43dfe527d 100644 --- a/bazel/external/llvm13.BUILD +++ b/bazel/external/llvm13.BUILD @@ -37,13 +37,6 @@ cmake( "LLVM_TARGETS_TO_BUILD": "X86", "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", }, - env_vars = { - # Workaround for the -DDEBUG flag added in fastbuild on macOS, - # which conflicts with DEBUG macro used in LLVM. - "CFLAGS": "-UDEBUG", - "CXXFLAGS": "-UDEBUG", - "ASMFLAGS": "-UDEBUG", - }, generate_args = ["-GNinja"], lib_source = ":srcs", out_static_libs = [ diff --git a/bazel/external/wavm.BUILD b/bazel/external/wavm.BUILD index 94c6cb403..b315efdea 100644 --- a/bazel/external/wavm.BUILD +++ b/bazel/external/wavm.BUILD @@ -18,13 +18,6 @@ cmake( "WAVM_ENABLE_UNWIND": "on", "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", }, - env_vars = { - # Workaround for the -DDEBUG flag added in fastbuild on macOS, - # which conflicts with DEBUG macro used in LLVM. - "CFLAGS": "-UDEBUG", - "CXXFLAGS": "-UDEBUG", - "ASMFLAGS": "-UDEBUG", - }, generate_args = ["-GNinja"], lib_source = ":srcs", out_static_libs = [ diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index c7306b95a..087259556 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -32,9 +32,9 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_foreign_cc", - sha256 = "d54742ffbdc6924f222d2179f0e10e911c5c659c4ae74158e9fe827aad862ac6", - strip_prefix = "rules_foreign_cc-0.2.0", - url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.2.0.tar.gz", + sha256 = "bcd0c5f46a49b85b384906daae41d277b3dc0ff27c7c752cc51e43048a58ec83", + strip_prefix = "rules_foreign_cc-0.7.1", + url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz", ) maybe( From bab2ef1285f1bd0d6ee4e68df3694b53e377265e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 28 Jan 2022 00:52:58 -0600 Subject: [PATCH 154/287] Update Bazel to v5.0.0. (#235) Signed-off-by: Piotr Sikora --- .bazelversion | 2 +- .github/workflows/cpp.yml | 4 ++-- bazel/external/llvm.patch | 22 ++++++++++++++++++++++ bazel/external/llvm13.patch | 22 ++++++++++++++++++++++ bazel/repositories.bzl | 4 ++++ 5 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 bazel/external/llvm.patch create mode 100644 bazel/external/llvm13.patch diff --git a/.bazelversion b/.bazelversion index af8c8ec7c..0062ac971 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -4.2.2 +5.0.0 diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 779ef4aaa..b107dea51 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -103,14 +103,14 @@ jobs: os: ubuntu-20.04 arch: aarch64 action: build - run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-4.2.2-clang-13-gcc-11 + run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 - name: 'Wasmtime on Linux/s390x' runtime: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 arch: s390x action: build - run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-4.2.2-clang-13-gcc-11 + run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 - name: 'Wasmtime on macOS/x86_64' runtime: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' diff --git a/bazel/external/llvm.patch b/bazel/external/llvm.patch new file mode 100644 index 000000000..710d27427 --- /dev/null +++ b/bazel/external/llvm.patch @@ -0,0 +1,22 @@ +# Workaround for different linkers used in cmake()'s generate and build steps. +# See: https://github.com/bazelbuild/rules_foreign_cc/issues/863 + +diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake +index 5d4d692a70ac..0a2e441b1b94 100644 +--- a/cmake/modules/HandleLLVMOptions.cmake ++++ b/cmake/modules/HandleLLVMOptions.cmake +@@ -843,14 +843,6 @@ if (UNIX AND + append("-fdiagnostics-color" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + endif() + +-# lld doesn't print colored diagnostics when invoked from Ninja +-if (UNIX AND CMAKE_GENERATOR STREQUAL "Ninja") +- include(CheckLinkerFlag) +- check_linker_flag("-Wl,--color-diagnostics" LINKER_SUPPORTS_COLOR_DIAGNOSTICS) +- append_if(LINKER_SUPPORTS_COLOR_DIAGNOSTICS "-Wl,--color-diagnostics" +- CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS) +-endif() +- + # Add flags for add_dead_strip(). + # FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF? + # But MinSizeRel seems to add that automatically, so maybe disable these diff --git a/bazel/external/llvm13.patch b/bazel/external/llvm13.patch new file mode 100644 index 000000000..dbe1df125 --- /dev/null +++ b/bazel/external/llvm13.patch @@ -0,0 +1,22 @@ +# Workaround for different linkers used in cmake()'s generate and build steps. +# See: https://github.com/bazelbuild/rules_foreign_cc/issues/863 + +diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake +index 0c3419390c27..352e9402d808 100644 +--- a/cmake/modules/HandleLLVMOptions.cmake ++++ b/cmake/modules/HandleLLVMOptions.cmake +@@ -917,14 +917,6 @@ if (UNIX AND + append("-fdiagnostics-color" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) + endif() + +-# lld doesn't print colored diagnostics when invoked from Ninja +-if (UNIX AND CMAKE_GENERATOR STREQUAL "Ninja") +- include(LLVMCheckLinkerFlag) +- llvm_check_linker_flag(CXX "-Wl,--color-diagnostics" LINKER_SUPPORTS_COLOR_DIAGNOSTICS) +- append_if(LINKER_SUPPORTS_COLOR_DIAGNOSTICS "-Wl,--color-diagnostics" +- CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS) +-endif() +- + # Add flags for add_dead_strip(). + # FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF? + # But MinSizeRel seems to add that automatically, so maybe disable these diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 087259556..e13202393 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -162,6 +162,8 @@ def proxy_wasm_cpp_host_repositories(): sha256 = "408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020", strip_prefix = "llvm-13.0.0.src", url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-13.0.0.src.tar.xz", + patches = ["@proxy_wasm_cpp_host//bazel/external:llvm13.patch"], + patch_args = ["-p1"], ) # Wasmtime with dependencies. @@ -214,4 +216,6 @@ def proxy_wasm_cpp_host_repositories(): sha256 = "7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf", strip_prefix = "llvm-12.0.1.src", url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/llvm-12.0.1.src.tar.xz", + patches = ["@proxy_wasm_cpp_host//bazel/external:llvm.patch"], + patch_args = ["-p1"], ) From d6b6d50f6c1ecedccc3e141f290c9cb405aa6fc0 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 31 Jan 2022 01:50:09 -0600 Subject: [PATCH 155/287] build: increase reach of the buildifier check. (#238) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 2 +- bazel/external/wasmtime.BUILD | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index b107dea51..2840113cc 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -49,7 +49,7 @@ jobs: run: | go install github.com/bazelbuild/buildtools/buildifier@latest export PATH=$PATH:$(go env GOPATH)/bin - find . -name "BUILD" | xargs -n1 buildifier -mode=check + find . -name "WORKSPACE" -o -name "*BUILD*" -o -name "*.bzl" | xargs -n1 buildifier -mode=check - name: Format (addlicense) run: | diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index e297b38da..d108e71f9 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -1,4 +1,3 @@ -load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_rust//rust:defs.bzl", "rust_static_library") licenses(["notice"]) # Apache 2 @@ -18,6 +17,7 @@ rust_static_library( "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:anyhow", "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:env_logger", "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:once_cell", + # buildifier: leave-alone "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime", ], ) From 10d5b066c12f9c07897915cfda20c74ee9c2e3a8 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 31 Jan 2022 01:52:24 -0600 Subject: [PATCH 156/287] wamr: remove dependency on LLVM. (#239) WAMR is being used in an interpreter mode, without AOT and/or JIT, so LLVM isn't needed, and it was previously unnecessarily built. This can be reverted once we add support for precompiled modules. Signed-off-by: Piotr Sikora --- bazel/external/llvm13.BUILD | 117 ------------------------------------ bazel/external/llvm13.patch | 22 ------- bazel/external/wamr.BUILD | 4 -- bazel/repositories.bzl | 11 ---- 4 files changed, 154 deletions(-) delete mode 100644 bazel/external/llvm13.BUILD delete mode 100644 bazel/external/llvm13.patch diff --git a/bazel/external/llvm13.BUILD b/bazel/external/llvm13.BUILD deleted file mode 100644 index 43dfe527d..000000000 --- a/bazel/external/llvm13.BUILD +++ /dev/null @@ -1,117 +0,0 @@ -load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") - -licenses(["notice"]) # Apache 2 - -package(default_visibility = ["//visibility:public"]) - -filegroup( - name = "srcs", - srcs = glob(["**"]), -) - -cmake( - name = "llvm_lib", - cache_entries = { - # Disable both: BUILD and INCLUDE, since some of the INCLUDE - # targets build code instead of only generating build files. - "LLVM_BUILD_BENCHMARKS": "off", - "LLVM_INCLUDE_BENCHMARKS": "off", - "LLVM_BUILD_DOCS": "off", - "LLVM_INCLUDE_DOCS": "off", - "LLVM_BUILD_EXAMPLES": "off", - "LLVM_INCLUDE_EXAMPLES": "off", - "LLVM_BUILD_RUNTIME": "off", - "LLVM_BUILD_RUNTIMES": "off", - "LLVM_INCLUDE_RUNTIMES": "off", - "LLVM_BUILD_TESTS": "off", - "LLVM_INCLUDE_TESTS": "off", - "LLVM_BUILD_TOOLS": "off", - "LLVM_INCLUDE_TOOLS": "off", - "LLVM_BUILD_UTILS": "off", - "LLVM_INCLUDE_UTILS": "off", - "LLVM_ENABLE_IDE": "off", - "LLVM_ENABLE_LIBEDIT": "off", - "LLVM_ENABLE_LIBXML2": "off", - "LLVM_ENABLE_TERMINFO": "off", - "LLVM_ENABLE_ZLIB": "off", - "LLVM_TARGETS_TO_BUILD": "X86", - "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", - }, - generate_args = ["-GNinja"], - lib_source = ":srcs", - out_static_libs = [ - "libLLVMWindowsManifest.a", - "libLLVMXRay.a", - "libLLVMLibDriver.a", - "libLLVMDlltoolDriver.a", - "libLLVMCoverage.a", - "libLLVMLineEditor.a", - "libLLVMX86Disassembler.a", - "libLLVMX86AsmParser.a", - "libLLVMX86CodeGen.a", - "libLLVMX86Desc.a", - "libLLVMX86Info.a", - "libLLVMOrcJIT.a", - "libLLVMMCJIT.a", - "libLLVMJITLink.a", - "libLLVMInterpreter.a", - "libLLVMExecutionEngine.a", - "libLLVMRuntimeDyld.a", - "libLLVMOrcTargetProcess.a", - "libLLVMOrcShared.a", - "libLLVMDWP.a", - "libLLVMSymbolize.a", - "libLLVMDebugInfoPDB.a", - "libLLVMDebugInfoGSYM.a", - "libLLVMOption.a", - "libLLVMObjectYAML.a", - "libLLVMMCA.a", - "libLLVMMCDisassembler.a", - "libLLVMLTO.a", - "libLLVMPasses.a", - "libLLVMCFGuard.a", - "libLLVMCoroutines.a", - "libLLVMObjCARCOpts.a", - "libLLVMipo.a", - "libLLVMVectorize.a", - "libLLVMLinker.a", - "libLLVMInstrumentation.a", - "libLLVMFrontendOpenMP.a", - "libLLVMFrontendOpenACC.a", - "libLLVMExtensions.a", - "libLLVMDWARFLinker.a", - "libLLVMGlobalISel.a", - "libLLVMMIRParser.a", - "libLLVMAsmPrinter.a", - "libLLVMDebugInfoMSF.a", - "libLLVMDebugInfoDWARF.a", - "libLLVMSelectionDAG.a", - "libLLVMCodeGen.a", - "libLLVMIRReader.a", - "libLLVMAsmParser.a", - "libLLVMInterfaceStub.a", - "libLLVMFileCheck.a", - "libLLVMFuzzMutate.a", - "libLLVMTarget.a", - "libLLVMScalarOpts.a", - "libLLVMInstCombine.a", - "libLLVMAggressiveInstCombine.a", - "libLLVMTransformUtils.a", - "libLLVMBitWriter.a", - "libLLVMAnalysis.a", - "libLLVMProfileData.a", - "libLLVMObject.a", - "libLLVMTextAPI.a", - "libLLVMMCParser.a", - "libLLVMMC.a", - "libLLVMDebugInfoCodeView.a", - "libLLVMBitReader.a", - "libLLVMCore.a", - "libLLVMRemarks.a", - "libLLVMBitstreamReader.a", - "libLLVMBinaryFormat.a", - "libLLVMTableGen.a", - "libLLVMSupport.a", - "libLLVMDemangle.a", - ], -) diff --git a/bazel/external/llvm13.patch b/bazel/external/llvm13.patch deleted file mode 100644 index dbe1df125..000000000 --- a/bazel/external/llvm13.patch +++ /dev/null @@ -1,22 +0,0 @@ -# Workaround for different linkers used in cmake()'s generate and build steps. -# See: https://github.com/bazelbuild/rules_foreign_cc/issues/863 - -diff --git a/cmake/modules/HandleLLVMOptions.cmake b/cmake/modules/HandleLLVMOptions.cmake -index 0c3419390c27..352e9402d808 100644 ---- a/cmake/modules/HandleLLVMOptions.cmake -+++ b/cmake/modules/HandleLLVMOptions.cmake -@@ -917,14 +917,6 @@ if (UNIX AND - append("-fdiagnostics-color" CMAKE_C_FLAGS CMAKE_CXX_FLAGS) - endif() - --# lld doesn't print colored diagnostics when invoked from Ninja --if (UNIX AND CMAKE_GENERATOR STREQUAL "Ninja") -- include(LLVMCheckLinkerFlag) -- llvm_check_linker_flag(CXX "-Wl,--color-diagnostics" LINKER_SUPPORTS_COLOR_DIAGNOSTICS) -- append_if(LINKER_SUPPORTS_COLOR_DIAGNOSTICS "-Wl,--color-diagnostics" -- CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS) --endif() -- - # Add flags for add_dead_strip(). - # FIXME: With MSVS, consider compiling with /Gy and linking with /OPT:REF? - # But MinSizeRel seems to add that automatically, so maybe disable these diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index 2945ef963..f25b9f074 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -12,7 +12,6 @@ filegroup( cmake( name = "wamr_lib", cache_entries = { - "LLVM_DIR": "$EXT_BUILD_DEPS/copy_llvm13/llvm/lib/cmake/llvm", "WAMR_BUILD_INTERP": "1", "WAMR_BUILD_FAST_INTERP": "1", "WAMR_BUILD_JIT": "0", @@ -26,7 +25,4 @@ cmake( generate_args = ["-GNinja"], lib_source = ":srcs", out_static_libs = ["libvmlib.a"], - deps = [ - "@llvm13//:llvm_lib", - ], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index e13202393..2970b6936 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -155,17 +155,6 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib", ) - maybe( - http_archive, - name = "llvm13", - build_file = "@proxy_wasm_cpp_host//bazel/external:llvm13.BUILD", - sha256 = "408d11708643ea826f519ff79761fcdfc12d641a2510229eec459e72f8163020", - strip_prefix = "llvm-13.0.0.src", - url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.0/llvm-13.0.0.src.tar.xz", - patches = ["@proxy_wasm_cpp_host//bazel/external:llvm13.patch"], - patch_args = ["-p1"], - ) - # Wasmtime with dependencies. maybe( From 819dcc02bd2bc6fdec07720379c4d522d6b7da08 Mon Sep 17 00:00:00 2001 From: James Mulcahy Date: Tue, 1 Feb 2022 01:57:04 -0800 Subject: [PATCH 157/287] Add keys() and remove() methods to SharedData. (#203) Signed-off-by: James Mulcahy --- include/proxy-wasm/context.h | 3 ++ include/proxy-wasm/context_interface.h | 19 +++++++++++- src/context.cc | 9 ++++++ src/shared_data.cc | 41 ++++++++++++++++++++++++++ src/shared_data.h | 3 ++ test/shared_data_test.cc | 41 +++++++++++++++++++++++++- 6 files changed, 114 insertions(+), 2 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index f88b4aaac..7f66cdbfa 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -353,6 +353,9 @@ class ContextBase : public RootInterface, WasmResult getSharedData(std::string_view key, std::pair *data) override; WasmResult setSharedData(std::string_view key, std::string_view value, uint32_t cas) override; + WasmResult getSharedDataKeys(std::vector *result) override; + WasmResult removeSharedDataKey(std::string_view key, uint32_t cas, + std::pair *result) override; // Shared Queue WasmResult registerSharedQueue(std::string_view queue_name, diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 841dd0e16..85e251a0f 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -596,7 +596,7 @@ struct GeneralInterface { }; /** - * SharedDataInterface is for shaing data between VMs. In general the VMs may be on different + * SharedDataInterface is for sharing data between VMs. In general the VMs may be on different * threads. Keys can have any format, but good practice would use reverse DNS and namespacing * prefixes to avoid conflicts. */ @@ -621,6 +621,23 @@ struct SharedDataInterface { * @param data is a location to store the returned value. */ virtual WasmResult setSharedData(std::string_view key, std::string_view value, uint32_t cas) = 0; + + /** + * Return all the keys from the data shraed between VMs + * @param data is a location to store the returned value. + */ + virtual WasmResult getSharedDataKeys(std::vector *result) = 0; + + /** + * Removes the given key from the data shared between VMs. + * @param key is a proxy-wide key mapping to the shared data value. + * @param cas is a compare-and-swap value. If it is zero it is ignored, otherwise it must match + * @param cas is a location to store value, and cas number, associated with the removed key + * the cas associated with the value. + */ + virtual WasmResult + removeSharedDataKey(std::string_view key, uint32_t cas, + std::pair *result) = 0; }; // namespace proxy_wasm struct SharedQueueInterface { diff --git a/src/context.cc b/src/context.cc index 8a69aec5f..81633a7b3 100644 --- a/src/context.cc +++ b/src/context.cc @@ -192,6 +192,15 @@ WasmResult ContextBase::setSharedData(std::string_view key, std::string_view val return getGlobalSharedData().set(wasm_->vm_id(), key, value, cas); } +WasmResult ContextBase::getSharedDataKeys(std::vector *result) { + return getGlobalSharedData().keys(wasm_->vm_id(), result); +} + +WasmResult ContextBase::removeSharedDataKey(std::string_view key, uint32_t cas, + std::pair *result) { + return getGlobalSharedData().remove(wasm_->vm_id(), key, cas, result); +} + // Shared Queue WasmResult ContextBase::registerSharedQueue(std::string_view queue_name, diff --git a/src/shared_data.cc b/src/shared_data.cc index 73cbb1feb..d4306adae 100644 --- a/src/shared_data.cc +++ b/src/shared_data.cc @@ -56,6 +56,22 @@ WasmResult SharedData::get(std::string_view vm_id, const std::string_view key, return WasmResult::NotFound; } +WasmResult SharedData::keys(std::string_view vm_id, std::vector *result) { + result->clear(); + + std::lock_guard lock(mutex_); + auto map = data_.find(std::string(vm_id)); + if (map == data_.end()) { + return WasmResult::Ok; + } + + for (auto kv : map->second) { + result->push_back(kv.first); + } + + return WasmResult::Ok; +} + WasmResult SharedData::set(std::string_view vm_id, std::string_view key, std::string_view value, uint32_t cas) { std::lock_guard lock(mutex_); @@ -78,4 +94,29 @@ WasmResult SharedData::set(std::string_view vm_id, std::string_view key, std::st return WasmResult::Ok; } +WasmResult SharedData::remove(std::string_view vm_id, std::string_view key, uint32_t cas, + std::pair *result) { + std::lock_guard lock(mutex_); + std::unordered_map> *map; + auto map_it = data_.find(std::string(vm_id)); + if (map_it == data_.end()) { + return WasmResult::NotFound; + } else { + map = &map_it->second; + } + + auto it = map->find(std::string(key)); + if (it != map->end()) { + if (cas && cas != it->second.second) { + return WasmResult::CasMismatch; + } + if (result != nullptr) { + *result = it->second; + } + map->erase(it); + return WasmResult::Ok; + } + return WasmResult::NotFound; +} + } // namespace proxy_wasm diff --git a/src/shared_data.h b/src/shared_data.h index fec37aac8..cbc76fb12 100644 --- a/src/shared_data.h +++ b/src/shared_data.h @@ -25,8 +25,11 @@ class SharedData { SharedData(bool register_vm_id_callback = true); WasmResult get(std::string_view vm_id, const std::string_view key, std::pair *result); + WasmResult keys(std::string_view vm_id, std::vector *result); WasmResult set(std::string_view vm_id, std::string_view key, std::string_view value, uint32_t cas); + WasmResult remove(std::string_view vm_id, const std::string_view key, uint32_t cas, + std::pair *result); void deleteByVmId(std::string_view vm_id); private: diff --git a/test/shared_data_test.cc b/test/shared_data_test.cc index 0c3d2dec8..062625f8d 100644 --- a/test/shared_data_test.cc +++ b/test/shared_data_test.cc @@ -24,10 +24,24 @@ namespace proxy_wasm { TEST(SharedData, SingleThread) { SharedData shared_data(false); + std::string_view vm_id = "id"; + + // Validate we get an 'Ok' response when fetching keys before anything + // is initialized. + std::vector keys; + EXPECT_EQ(WasmResult::Ok, shared_data.keys(vm_id, &keys)); + EXPECT_EQ(0, keys.size()); + + // Validate that we clear the result set + std::vector nonEmptyKeys(2); + nonEmptyKeys[0] = "valueA"; + nonEmptyKeys[1] = "valueB"; + EXPECT_EQ(WasmResult::Ok, shared_data.keys(vm_id, &nonEmptyKeys)); + EXPECT_EQ(0, nonEmptyKeys.size()); + std::pair result; EXPECT_EQ(WasmResult::NotFound, shared_data.get("non-exist", "non-exists", &result)); - std::string_view vm_id = "id"; std::string_view key = "key"; std::string_view value = "1"; EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); @@ -44,6 +58,31 @@ TEST(SharedData, SingleThread) { EXPECT_EQ(WasmResult::Ok, shared_data.get(vm_id, key, &result)); EXPECT_EQ(value, result.first); EXPECT_EQ(result.second, 3); + + EXPECT_EQ(WasmResult::Ok, shared_data.keys(vm_id, &keys)); + EXPECT_EQ(1, keys.size()); + EXPECT_EQ(key, keys[0]); + + keys.clear(); + EXPECT_EQ(WasmResult::CasMismatch, shared_data.remove(vm_id, key, 911, nullptr)); + EXPECT_EQ(WasmResult::Ok, shared_data.keys(vm_id, &keys)); + EXPECT_EQ(1, keys.size()); + + EXPECT_EQ(WasmResult::Ok, shared_data.remove(vm_id, key, 0, nullptr)); + EXPECT_EQ(WasmResult::NotFound, shared_data.get(vm_id, key, &result)); + + EXPECT_EQ(WasmResult::NotFound, shared_data.remove(vm_id, "non-existent_key", 0, nullptr)); + + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); + EXPECT_EQ(WasmResult::Ok, shared_data.set(vm_id, key, value, 0)); + EXPECT_EQ(WasmResult::Ok, shared_data.get(vm_id, key, &result)); + + uint32_t expectedCasValue = result.second; + + std::pair removeResult; + EXPECT_EQ(WasmResult::Ok, shared_data.remove(vm_id, key, 0, &removeResult)); + EXPECT_EQ(value, removeResult.first); + EXPECT_EQ(removeResult.second, expectedCasValue); } void incrementData(SharedData *shared_data, std::string_view vm_id, std::string_view key) { From b402508f86f76a4f8d08aee7907f2cd9ec44b57d Mon Sep 17 00:00:00 2001 From: Konstantin Maksimov <18444445+knm3000@users.noreply.github.com> Date: Sun, 6 Feb 2022 23:35:22 +0100 Subject: [PATCH 158/287] Add support for big-endian platforms. (#198) Signed-off-by: Konstantin Maksimov --- include/proxy-wasm/exports.h | 6 +++--- include/proxy-wasm/word.h | 5 +++++ src/exports.cc | 9 +++++---- src/v8/v8.cc | 4 ++-- src/wamr/wamr.cc | 4 ++-- src/wasmtime/wasmtime.cc | 4 ++-- src/wavm/wavm.cc | 4 ++-- test/runtime_test.cc | 2 +- 8 files changed, 22 insertions(+), 16 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 15305a2ad..7fe8a4c57 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -74,12 +74,12 @@ template size_t pairsSize(const Pairs &result) { template void marshalPairs(const Pairs &result, char *buffer) { char *b = buffer; - *reinterpret_cast(b) = result.size(); + *reinterpret_cast(b) = htole32(result.size()); b += sizeof(uint32_t); for (auto &p : result) { - *reinterpret_cast(b) = p.first.size(); + *reinterpret_cast(b) = htole32(p.first.size()); b += sizeof(uint32_t); - *reinterpret_cast(b) = p.second.size(); + *reinterpret_cast(b) = htole32(p.second.size()); b += sizeof(uint32_t); } for (auto &p : result) { diff --git a/include/proxy-wasm/word.h b/include/proxy-wasm/word.h index e96fdfb94..549968342 100644 --- a/include/proxy-wasm/word.h +++ b/include/proxy-wasm/word.h @@ -17,6 +17,11 @@ #include +#ifdef __APPLE__ +#define htole32(x) (x) +#define le32toh(x) (x) +#endif + namespace proxy_wasm { #include "proxy_wasm_common.h" diff --git a/src/exports.cc b/src/exports.cc index 673fd1fe9..3e4f2622f 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -64,16 +64,16 @@ Pairs toPairs(std::string_view buffer) { if (buffer.size() < sizeof(uint32_t)) { return {}; } - auto size = *reinterpret_cast(b); + auto size = le32toh(*reinterpret_cast(b)); b += sizeof(uint32_t); if (sizeof(uint32_t) + size * 2 * sizeof(uint32_t) > buffer.size()) { return {}; } result.resize(size); for (uint32_t i = 0; i < size; i++) { - result[i].first = std::string_view(nullptr, *reinterpret_cast(b)); + result[i].first = std::string_view(nullptr, le32toh(*reinterpret_cast(b))); b += sizeof(uint32_t); - result[i].second = std::string_view(nullptr, *reinterpret_cast(b)); + result[i].second = std::string_view(nullptr, le32toh(*reinterpret_cast(b))); b += sizeof(uint32_t); } for (auto &p : result) { @@ -712,7 +712,8 @@ Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { } const uint32_t *iovec = reinterpret_cast(memslice.value().data()); if (iovec[1] /* buf_len */) { - memslice = context->wasmVm()->getMemory(iovec[0] /* buf */, iovec[1] /* buf_len */); + memslice = context->wasmVm()->getMemory(le32toh(iovec[0]) /* buf */, + le32toh(iovec[1]) /* buf_len */); if (!memslice) { return 21; // __WASI_EFAULT } diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 29f3de090..057c364ca 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -432,7 +432,7 @@ bool V8::getWord(uint64_t pointer, Word *word) { } uint32_t word32; ::memcpy(&word32, memory_->data() + pointer, size); - word->u64_ = word32; + word->u64_ = le32toh(word32); return true; } @@ -441,7 +441,7 @@ bool V8::setWord(uint64_t pointer, Word word) { if (pointer + size > memory_->data_size()) { return false; } - uint32_t word32 = word.u32(); + uint32_t word32 = htole32(word.u32()); ::memcpy(memory_->data() + pointer, &word32, size); return true; } diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 590de6823..de9cee494 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -340,7 +340,7 @@ bool Wamr::getWord(uint64_t pointer, Word *word) { uint32_t word32; ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); - word->u64_ = word32; + word->u64_ = le32toh(word32); return true; } @@ -349,7 +349,7 @@ bool Wamr::setWord(uint64_t pointer, Word word) { if (pointer + size > wasm_memory_data_size(memory_.get())) { return false; } - uint32_t word32 = word.u32(); + uint32_t word32 = htole32(word.u32()); ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); return true; } diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 8bef920a6..ef47f7d39 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -354,7 +354,7 @@ bool Wasmtime::getWord(uint64_t pointer, Word *word) { uint32_t word32; ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); - word->u64_ = word32; + word->u64_ = le32toh(word32); return true; } @@ -363,7 +363,7 @@ bool Wasmtime::setWord(uint64_t pointer, Word word) { if (pointer + size > wasm_memory_data_size(memory_.get())) { return false; } - uint32_t word32 = word.u32(); + uint32_t word32 = htole32(word.u32()); ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); return true; } diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 1b0d7383c..e7bbcf040 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -344,12 +344,12 @@ bool Wavm::getWord(uint64_t pointer, Word *data) { auto p = reinterpret_cast(memory_base_ + pointer); uint32_t data32; memcpy(&data32, p, sizeof(uint32_t)); - data->u64_ = data32; + data->u64_ = le32toh(data32); return true; } bool Wavm::setWord(uint64_t pointer, Word data) { - uint32_t data32 = data.u32(); + uint32_t data32 = htole32(data.u32()); return setMemory(pointer, sizeof(uint32_t), &data32); } diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 7bfd39211..d741919a9 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -56,7 +56,7 @@ TEST_P(TestVM, Memory) { ASSERT_TRUE(vm_->getWord(0x2000, &word)); ASSERT_EQ(100, word.u64_); - int32_t data[2] = {-1, 200}; + uint32_t data[2] = {htole32(static_cast(-1)), htole32(200)}; ASSERT_TRUE(vm_->setMemory(0x200, sizeof(int32_t) * 2, static_cast(data))); ASSERT_TRUE(vm_->getWord(0x200, &word)); ASSERT_EQ(-1, static_cast(word.u64_)); From 5cb6f888a8eb62bbb4c260acb058717bbb7c383a Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 7 Feb 2022 22:38:18 -0600 Subject: [PATCH 159/287] Fix Wasm signature verification on big-endian platforms. (#241) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 2 +- src/signature_util.cc | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 2840113cc..556f2dc5c 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -109,7 +109,7 @@ jobs: repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 arch: s390x - action: build + action: test run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 - name: 'Wasmtime on macOS/x86_64' runtime: 'wasmtime' diff --git a/src/signature_util.cc b/src/signature_util.cc index 7e3e1d976..9163c4661 100644 --- a/src/signature_util.cc +++ b/src/signature_util.cc @@ -85,6 +85,7 @@ bool SignatureUtil::verifySignature(std::string_view bytecode, std::string &mess uint32_t alg_id; std::memcpy(&alg_id, payload.data(), sizeof(uint32_t)); + alg_id = le32toh(alg_id); if (alg_id != 2) { message = "Signature has a wrong alg_id (want: 2, is: " + std::to_string(alg_id) + ")"; From 9699b3280c2a42229542cb4d0521ecfb8ca598e0 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 8 Feb 2022 00:08:20 -0600 Subject: [PATCH 160/287] Fix segfault when failing to instantiate Wasm module. (#240) Signed-off-by: Piotr Sikora --- bazel/external/v8.patch | 15 ++++++++++ bazel/repositories.bzl | 2 ++ src/v8/v8.cc | 59 ++++++++++++++++++++++++++++++++++------ src/wamr/wamr.cc | 35 ++++++++++++++++++++---- src/wasmtime/wasmtime.cc | 53 +++++++++++++++++++++++++++++++----- src/wavm/wavm.cc | 56 ++++++++++++++++++++++++++++++++++---- test/runtime_test.cc | 34 +++++++++++++++++++++++ 7 files changed, 229 insertions(+), 25 deletions(-) create mode 100644 bazel/external/v8.patch diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch new file mode 100644 index 000000000..b13fad255 --- /dev/null +++ b/bazel/external/v8.patch @@ -0,0 +1,15 @@ +# Disable pointer compression (limits the maximum number of WasmVMs). + +diff --git a/BUILD.bazel b/BUILD.bazel +index 1cc0121e60..4947c1dba2 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -161,7 +161,7 @@ v8_int( + # If no explicit value for v8_enable_pointer_compression, we set it to 'none'. + v8_string( + name = "v8_enable_pointer_compression", +- default = "none", ++ default = "False", + ) + + # Default setting for v8_enable_pointer_compression. diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 2970b6936..bef81aa7b 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -98,6 +98,8 @@ def proxy_wasm_cpp_host_repositories(): commit = "90f089d97b6e4146ad106eee1829d86ad6392027", remote = "https://chromium.googlesource.com/v8/v8", shallow_since = "1643043727 +0000", + patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], + patch_args = ["-p1"], ) native.bind( diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 057c364ca..1c0ae6932 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -250,25 +250,32 @@ template constexpr T convertValTypesToArgsTuple(const U bool V8::load(std::string_view bytecode, std::string_view precompiled, const std::unordered_map function_names) { store_ = wasm::Store::make(engine()); + if (store_ == nullptr) { + return false; + } if (!precompiled.empty()) { auto vec = wasm::vec::make_uninitialized(precompiled.size()); ::memcpy(vec.get(), precompiled.data(), precompiled.size()); module_ = wasm::Module::deserialize(store_.get(), vec); + if (module_ == nullptr) { + return false; + } } else { auto vec = wasm::vec::make_uninitialized(bytecode.size()); ::memcpy(vec.get(), bytecode.data(), bytecode.size()); module_ = wasm::Module::make(store_.get(), vec); + if (module_ == nullptr) { + return false; + } } - if (!module_) { + shared_module_ = module_->share(); + if (shared_module_ == nullptr) { return false; } - shared_module_ = module_->share(); - assert(shared_module_ != nullptr); - function_names_index_ = function_names; return true; @@ -278,10 +285,26 @@ std::unique_ptr V8::clone() { assert(shared_module_ != nullptr); auto clone = std::make_unique(); - clone->integration().reset(integration()->clone()); + if (clone == nullptr) { + return nullptr; + } + clone->store_ = wasm::Store::make(engine()); + if (clone->store_ == nullptr) { + return nullptr; + } clone->module_ = wasm::Module::obtain(clone->store_.get(), shared_module_.get()); + if (clone->module_ == nullptr) { + return nullptr; + } + + auto integration_clone = integration()->clone(); + if (integration_clone == nullptr) { + return nullptr; + } + clone->integration().reset(integration_clone); + clone->function_names_index_ = function_names_index_; return clone; @@ -322,7 +345,7 @@ bool V8::link(std::string_view debug_name) { fail(FailState::UnableToInitializeCode, std::string("Failed to load Wasm module due to a missing import: ") + std::string(module) + "." + std::string(name)); - break; + return false; } auto func = it->second.get()->callback_.get(); if (!equalValTypes(import_type->func()->params(), func->type()->params()) || @@ -334,7 +357,7 @@ bool V8::link(std::string_view debug_name) { printValTypes(import_type->func()->results()) + ", but host exports: " + printValTypes(func->type()->params()) + " -> " + printValTypes(func->type()->results())); - break; + return false; } imports.push_back(func); } break; @@ -344,12 +367,19 @@ bool V8::link(std::string_view debug_name) { fail(FailState::UnableToInitializeCode, "Failed to load Wasm module due to a missing import: " + std::string(module) + "." + std::string(name)); + return false; } break; case wasm::EXTERN_MEMORY: { assert(memory_ == nullptr); auto type = wasm::MemoryType::make(import_type->memory()->limits()); + if (type == nullptr) { + return false; + } memory_ = wasm::Memory::make(store_.get(), type.get()); + if (memory_ == nullptr) { + return false; + } imports.push_back(memory_.get()); } break; @@ -358,7 +388,13 @@ bool V8::link(std::string_view debug_name) { auto type = wasm::TableType::make(wasm::ValType::make(import_type->table()->element()->kind()), import_type->table()->limits()); + if (type == nullptr) { + return false; + } table_ = wasm::Table::make(store_.get(), type.get()); + if (table_ == nullptr) { + return false; + } imports.push_back(table_.get()); } break; } @@ -369,6 +405,10 @@ bool V8::link(std::string_view debug_name) { } instance_ = wasm::Instance::make(store_.get(), module_.get(), imports.data()); + if (instance_ == nullptr) { + fail(FailState::UnableToInitializeCode, "Failed to create new Wasm instance"); + return false; + } const auto export_types = module_.get()->exports(); const auto exports = instance_.get()->exports(); @@ -395,6 +435,9 @@ bool V8::link(std::string_view debug_name) { assert(export_item->memory() != nullptr); assert(memory_ == nullptr); memory_ = exports[i]->memory()->copy(); + if (memory_ == nullptr) { + return false; + } } break; case wasm::EXTERN_TABLE: { @@ -403,7 +446,7 @@ bool V8::link(std::string_view debug_name) { } } - return !isFailed(); + return true; } uint64_t V8::getMemorySize() { return memory_->data_size(); } diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index de9cee494..513978aa3 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -116,12 +116,19 @@ class Wamr : public WasmVm { bool Wamr::load(std::string_view bytecode, std::string_view, const std::unordered_map) { store_ = wasm_store_new(engine()); + if (store_ == nullptr) { + return false; + } WasmByteVec vec; wasm_byte_vec_new(vec.get(), bytecode.size(), bytecode.data()); + module_ = wasm_module_new(store_.get(), vec.get()); + if (module_ == nullptr) { + return false; + } - return module_ != nullptr; + return true; } static bool equalValTypes(const wasm_valtype_vec_t *left, const wasm_valtype_vec_t *right) { @@ -225,7 +232,7 @@ bool Wamr::link(std::string_view debug_name) { fail(FailState::UnableToInitializeCode, std::string("Failed to load Wasm module due to a missing import: ") + std::string(module_name) + "." + std::string(name)); - break; + return false; } auto func = it->second->callback_.get(); @@ -242,7 +249,7 @@ bool Wamr::link(std::string_view debug_name) { printValTypes(wasm_functype_results(exp_type)) + ", but host exports: " + printValTypes(wasm_functype_params(actual_type.get())) + " -> " + printValTypes(wasm_functype_results(actual_type.get()))); - break; + return false; } imports.push_back(wasm_func_as_extern(func)); } break; @@ -251,19 +258,32 @@ bool Wamr::link(std::string_view debug_name) { fail(FailState::UnableToInitializeCode, "Failed to load Wasm module due to a missing import: " + std::string(module_name) + "." + std::string(name)); + return false; } break; case WASM_EXTERN_MEMORY: { assert(memory_ == nullptr); const wasm_memorytype_t *memory_type = wasm_externtype_as_memorytype_const(extern_type); // owned by `extern_type` + if (memory_type == nullptr) { + return false; + } memory_ = wasm_memory_new(store_.get(), memory_type); + if (memory_ == nullptr) { + return false; + } imports.push_back(wasm_memory_as_extern(memory_.get())); } break; case WASM_EXTERN_TABLE: { assert(table_ == nullptr); const wasm_tabletype_t *table_type = wasm_externtype_as_tabletype_const(extern_type); // owned by `extern_type` + if (table_type == nullptr) { + return false; + } table_ = wasm_table_new(store_.get(), table_type, nullptr); + if (table_ == nullptr) { + return false; + } imports.push_back(wasm_table_as_extern(table_.get())); } break; } @@ -275,7 +295,10 @@ bool Wamr::link(std::string_view debug_name) { wasm_extern_vec_t imports_vec = {imports.size(), imports.data()}; instance_ = wasm_instance_new(store_.get(), module_.get(), &imports_vec, nullptr); - assert(instance_ != nullptr); + if (instance_ == nullptr) { + fail(FailState::UnableToInitializeCode, "Failed to create new Wasm instance"); + return false; + } WasmExportTypeVec export_types; wasm_module_exports(module_.get(), export_types.get()); @@ -302,7 +325,9 @@ bool Wamr::link(std::string_view debug_name) { case WASM_EXTERN_MEMORY: { assert(memory_ == nullptr); memory_ = wasm_memory_copy(wasm_extern_as_memory(actual_extern)); - assert(memory_ != nullptr); + if (memory_ == nullptr) { + return false; + } } break; case WASM_EXTERN_TABLE: { // TODO(mathetake): add support when/if needed. diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index ef47f7d39..7a9976735 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -112,28 +112,49 @@ class Wasmtime : public WasmVm { bool Wasmtime::load(std::string_view bytecode, std::string_view, const std::unordered_map) { store_ = wasm_store_new(engine()); + if (store_ == nullptr) { + return false; + } WasmByteVec vec; wasm_byte_vec_new(vec.get(), bytecode.size(), bytecode.data()); module_ = wasm_module_new(store_.get(), vec.get()); - if (!module_) { + if (module_ == nullptr) { return false; } shared_module_ = wasm_module_share(module_.get()); - assert(shared_module_ != nullptr); + if (shared_module_ == nullptr) { + return false; + } return true; } std::unique_ptr Wasmtime::clone() { assert(shared_module_ != nullptr); + auto clone = std::make_unique(); + if (clone == nullptr) { + return nullptr; + } - clone->integration().reset(integration()->clone()); clone->store_ = wasm_store_new(engine()); + if (clone->store_ == nullptr) { + return nullptr; + } + clone->module_ = wasm_module_obtain(clone->store_.get(), shared_module_.get()); + if (clone->module_ == nullptr) { + return nullptr; + } + + auto integration_clone = integration()->clone(); + if (integration_clone == nullptr) { + return nullptr; + } + clone->integration().reset(integration_clone); return clone; } @@ -239,7 +260,7 @@ bool Wasmtime::link(std::string_view debug_name) { fail(FailState::UnableToInitializeCode, std::string("Failed to load Wasm module due to a missing import: ") + std::string(module_name) + "." + std::string(name)); - break; + return false; } auto func = it->second->callback_.get(); @@ -256,7 +277,7 @@ bool Wasmtime::link(std::string_view debug_name) { printValTypes(wasm_functype_results(exp_type)) + ", but host exports: " + printValTypes(wasm_functype_params(actual_type.get())) + " -> " + printValTypes(wasm_functype_results(actual_type.get()))); - break; + return false; } imports.push_back(wasm_func_as_extern(func)); } break; @@ -265,19 +286,32 @@ bool Wasmtime::link(std::string_view debug_name) { fail(FailState::UnableToInitializeCode, "Failed to load Wasm module due to a missing import: " + std::string(module_name) + "." + std::string(name)); + return false; } break; case WASM_EXTERN_MEMORY: { assert(memory_ == nullptr); const wasm_memorytype_t *memory_type = wasm_externtype_as_memorytype_const(extern_type); // owned by `extern_type` + if (memory_type == nullptr) { + return false; + } memory_ = wasm_memory_new(store_.get(), memory_type); + if (memory_ == nullptr) { + return false; + } imports.push_back(wasm_memory_as_extern(memory_.get())); } break; case WASM_EXTERN_TABLE: { assert(table_ == nullptr); const wasm_tabletype_t *table_type = wasm_externtype_as_tabletype_const(extern_type); // owned by `extern_type` + if (table_type == nullptr) { + return false; + } table_ = wasm_table_new(store_.get(), table_type, nullptr); + if (table_ == nullptr) { + return false; + } imports.push_back(wasm_table_as_extern(table_.get())); } break; } @@ -289,7 +323,10 @@ bool Wasmtime::link(std::string_view debug_name) { wasm_extern_vec_t imports_vec = {imports.size(), imports.data()}; instance_ = wasm_instance_new(store_.get(), module_.get(), &imports_vec, nullptr); - assert(instance_ != nullptr); + if (instance_ == nullptr) { + fail(FailState::UnableToInitializeCode, "Failed to create new Wasm instance"); + return false; + } WasmExportTypeVec export_types; wasm_module_exports(module_.get(), export_types.get()); @@ -316,7 +353,9 @@ bool Wasmtime::link(std::string_view debug_name) { case WASM_EXTERN_MEMORY: { assert(memory_ == nullptr); memory_ = wasm_memory_copy(wasm_extern_as_memory(actual_extern)); - assert(memory_ != nullptr); + if (memory_ == nullptr) { + return false; + } } break; case WASM_EXTERN_TABLE: { // TODO(mathetake): add support when/if needed. diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index e7bbcf040..db39830b5 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -258,26 +258,51 @@ Wavm::~Wavm() { std::unique_ptr Wavm::clone() { auto wavm = std::make_unique(); - wavm->integration().reset(integration()->clone()); + if (wavm == nullptr) { + return nullptr; + } wavm->compartment_ = WAVM::Runtime::cloneCompartment(compartment_); + if (wavm->compartment_ == nullptr) { + return nullptr; + } + + wavm->context_ = WAVM::Runtime::cloneContext(context_, wavm->compartment_); + if (wavm->context_ == nullptr) { + return nullptr; + } + wavm->memory_ = WAVM::Runtime::remapToClonedCompartment(memory_, wavm->compartment_); wavm->memory_base_ = WAVM::Runtime::getMemoryBaseAddress(wavm->memory_); - wavm->context_ = WAVM::Runtime::createContext(wavm->compartment_); + wavm->module_instance_ = + WAVM::Runtime::remapToClonedCompartment(module_instance_, wavm->compartment_); for (auto &p : intrinsic_module_instances_) { wavm->intrinsic_module_instances_.emplace( p.first, WAVM::Runtime::remapToClonedCompartment(p.second, wavm->compartment_)); } - wavm->module_instance_ = - WAVM::Runtime::remapToClonedCompartment(module_instance_, wavm->compartment_); + + auto integration_clone = integration()->clone(); + if (integration_clone == nullptr) { + return nullptr; + } + wavm->integration().reset(integration_clone); + return wavm; } bool Wavm::load(std::string_view bytecode, std::string_view precompiled, const std::unordered_map) { compartment_ = WAVM::Runtime::createCompartment(); + if (compartment_ == nullptr) { + return false; + } + context_ = WAVM::Runtime::createContext(compartment_); + if (context_ == nullptr) { + return false; + } + if (!WASM::loadBinaryModule(reinterpret_cast(bytecode.data()), bytecode.size(), ir_module_)) { return false; @@ -286,11 +311,18 @@ bool Wavm::load(std::string_view bytecode, std::string_view precompiled, if (!precompiled.empty()) { module_ = WAVM::Runtime::loadPrecompiledModule( ir_module_, {precompiled.data(), precompiled.data() + precompiled.size()}); + if (module_ == nullptr) { + return false; + } + } else { module_ = WAVM::Runtime::compileModule(ir_module_); + if (module_ == nullptr) { + return false; + } } - return module_ != nullptr; + return true; } bool Wavm::link(std::string_view debug_name) { @@ -298,9 +330,13 @@ bool Wavm::link(std::string_view debug_name) { for (auto &p : intrinsic_modules_) { auto instance = Intrinsics::instantiateModule(compartment_, {&intrinsic_modules_[p.first]}, std::string(p.first)); + if (instance == nullptr) { + return false; + } intrinsic_module_instances_.emplace(p.first, instance); rootResolver.moduleNameToInstanceMap().set(p.first, instance); } + WAVM::Runtime::LinkResult link_result = linkModule(ir_module_, rootResolver); if (!link_result.missingImports.empty()) { for (auto &i : link_result.missingImports) { @@ -309,10 +345,20 @@ bool Wavm::link(std::string_view debug_name) { fail(FailState::MissingFunction, "Failed to load Wasm module due to a missing import(s)"); return false; } + module_instance_ = instantiateModule( compartment_, module_, std::move(link_result.resolvedImports), std::string(debug_name)); + if (module_instance_ == nullptr) { + return false; + } + memory_ = getDefaultMemory(module_instance_); + if (memory_ == nullptr) { + return false; + } + memory_base_ = WAVM::Runtime::getMemoryBaseAddress(memory_); + return true; } diff --git a/test/runtime_test.cc b/test/runtime_test.cc index d741919a9..10ca29bd6 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -91,6 +91,40 @@ TEST_P(TestVM, Clone) { ASSERT_NE(100, word.u64_); } +#if defined(__linux__) && defined(__x86_64__) + +TEST_P(TestVM, CloneUntilOutOfMemory) { + if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { + return; + } + if (runtime_ == "wavm") { + // TODO(PiotrSikora): Figure out why this fails on the CI. + return; + } + + auto source = readTestWasmFile("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); + ASSERT_TRUE(vm_->link("")); + + std::vector> clones; + for (;;) { + auto clone = vm_->clone(); + if (clone == nullptr) { + break; + } + if (clone->cloneable() != proxy_wasm::Cloneable::InstantiatedModule) { + if (clone->link("") == false) { + break; + } + } + // Prevent clone from droping out of scope and freeing memory. + clones.push_back(std::move(clone)); + } + EXPECT_GE(clones.size(), 1000); +} + +#endif + class TestContext : public ContextBase { public: TestContext(){}; From e67b546aee2415ee1882c821a92afdd07ce8e525 Mon Sep 17 00:00:00 2001 From: chaoqin-li1123 <55518381+chaoqin-li1123@users.noreply.github.com> Date: Tue, 8 Feb 2022 02:41:38 -0600 Subject: [PATCH 161/287] wavm: fix function export bug. (#200) Signed-off-by: chaoqin-li1123 --- src/wavm/wavm.cc | 4 ++++ test/runtime_test.cc | 29 +++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index db39830b5..c0ad6aa2c 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -443,8 +443,10 @@ void getFunctionWavm(WasmVm *vm, std::string_view function_name, return; } if (!checkFunctionType(f, inferStdFunctionType(function))) { + *function = nullptr; wavm->fail(FailState::UnableToInitializeCode, "Bad function signature for: " + std::string(function_name)); + return; } *function = [wavm, f, function_name](ContextBase *context, Args... args) -> R { WasmUntaggedValue values[] = {args...}; @@ -473,8 +475,10 @@ void getFunctionWavm(WasmVm *vm, std::string_view function_name, return; } if (!checkFunctionType(f, inferStdFunctionType(function))) { + *function = nullptr; wavm->fail(FailState::UnableToInitializeCode, "Bad function signature for: " + std::string(function_name)); + return; } *function = [wavm, f, function_name](ContextBase *context, Args... args) { WasmUntaggedValue values[] = {args...}; diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 10ca29bd6..9a8ac1202 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -171,6 +171,35 @@ TEST_P(TestVM, StraceLogLevel) { EXPECT_NE(integration->trace_message_, ""); } +TEST_P(TestVM, BadExportFunction) { + auto source = readTestWasmFile("callback.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); + + TestContext context; + vm_->registerCallback( + "env", "callback", &callback, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + vm_->registerCallback( + "env", "callback2", &callback2, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + ASSERT_TRUE(vm_->link("")); + + WasmCallVoid<0> run; + vm_->getFunction("non-existent", &run); + EXPECT_TRUE(run == nullptr); + + WasmCallWord<2> bad_signature_run; + vm_->getFunction("run", &bad_signature_run); + EXPECT_TRUE(bad_signature_run == nullptr); + + vm_->getFunction("run", &run); + EXPECT_TRUE(run != nullptr); + for (auto i = 0; i < 100; i++) { + run(&context); + } + ASSERT_EQ(context.counter, 100); +} + TEST_P(TestVM, Callback) { auto source = readTestWasmFile("callback.wasm"); ASSERT_TRUE(vm_->load(source, {}, {})); From 9818f68b7f25d76e44d8e1c81071592bcaa0951a Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 8 Feb 2022 04:27:55 -0600 Subject: [PATCH 162/287] ci: build test data only once. (#243) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 56 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 556f2dc5c..e05659f0d 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -57,9 +57,51 @@ jobs: export PATH=$PATH:$(go env GOPATH)/bin addlicense -check . + test_data: + name: build test data + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - name: Bazel cache + uses: actions/cache@v2 + with: + path: | + ~/.cache/bazel + key: test_data-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl', 'bazel/cargo/wasmsign/crates.bzl') }} + + - name: Bazel build + run: > + bazel build + --verbose_failures + --test_output=errors + -c opt + $(bazel query 'kind(was.*_rust_binary, //test/test_data/...)') + + - name: Upload test data + uses: actions/upload-artifact@v2 + with: + name: test_data + path: bazel-bin/test/test_data/*.wasm + if-no-files-found: error + retention-days: 3 + + - name: Cleanup Bazel cache + run: | + export OUTPUT=$(bazel info output_base) + # Distfiles for Rust toolchains (350 MiB). + rm -rf ${OUTPUT}/external/rust_*/*.tar.gz + # Bazel's repository cache (650-800 MiB) and install base (155 MiB). + rm -rf $(bazel info repository_cache) + rm -rf $(bazel info install_base) + build: name: ${{ matrix.action }} with ${{ matrix.name }} + needs: test_data + runs-on: ${{ matrix.os }} strategy: @@ -147,6 +189,20 @@ jobs: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}- ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }} + - name: Download test data + uses: actions/download-artifact@v2 + with: + name: test_data + path: test/test_data/ + + - name: Mangle build rules to use existing test data + run: > + sed 's/\.wasm//g' test/BUILD > test/BUILD.tmp && mv test/BUILD.tmp test/BUILD; + echo "package(default_visibility = [\"//visibility:public\"])" > test/test_data/BUILD; + for i in $(cd test/test_data && ls -1 *.wasm | sed 's/\.wasm$//g'); + do echo "filegroup(name = \"$i\", srcs = [\"$i.wasm\"])" >> test/test_data/BUILD; + done + - name: Bazel build/test run: > ${{ matrix.run_under }} From 898d2cba1f6c36f416b803186441d193aade3bea Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 8 Feb 2022 04:56:10 -0600 Subject: [PATCH 163/287] ci: skip cache update on PRs. (#244) Cache updates on PRs result in early eviction of primary cache, due to the limited cache quota on GitHub Actions. While there, remove fallback to restore cache key based only on the Wasm runtime name, since it prevents pruning of stale data. Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index e05659f0d..680268bfb 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -66,7 +66,7 @@ jobs: - uses: actions/checkout@v2 - name: Bazel cache - uses: actions/cache@v2 + uses: PiotrSikora/cache@v2.1.7-with-skip-cache with: path: | ~/.cache/bazel @@ -88,7 +88,12 @@ jobs: if-no-files-found: error retention-days: 3 + - name: Skip Bazel cache update + if: ${{ github.ref != 'refs/heads/master' }} + run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV + - name: Cleanup Bazel cache + if: ${{ github.ref == 'refs/heads/master' }} run: | export OUTPUT=$(bazel info output_base) # Distfiles for Rust toolchains (350 MiB). @@ -179,7 +184,7 @@ jobs: - name: Bazel cache if: ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }} - uses: actions/cache@v2 + uses: PiotrSikora/cache@v2.1.7-with-skip-cache with: path: | ~/.cache/bazel @@ -187,7 +192,6 @@ jobs: key: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} restore-keys: | ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}- - ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }} - name: Download test data uses: actions/download-artifact@v2 @@ -224,8 +228,12 @@ jobs: --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test + - name: Skip Bazel cache update + if: ${{ github.ref != 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }} + run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV + - name: Cleanup Bazel cache - if: ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }} + if: ${{ github.ref == 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }} run: | export OUTPUT=$(bazel info output_base) # BoringSSL's test data (90 MiB). From 438bf5ddc7cf5e8411e83aec5ed31713e6ab308d Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 8 Feb 2022 04:58:00 -0600 Subject: [PATCH 164/287] build: don't require using Clang compiler. (#230) Signed-off-by: Piotr Sikora --- .bazelrc | 11 +++++++++-- .github/workflows/cpp.yml | 8 +++++++- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.bazelrc b/.bazelrc index e0247e90e..4dd21abda 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,5 +1,12 @@ -build --action_env=CC=clang -build --action_env=CXX=clang++ +# Pass CC, CXX and PATH from the environment. +build --action_env=CC +build --action_env=CXX +build --action_env=PATH + +# Use Clang compiler. +build:clang --action_env=BAZEL_COMPILER=clang +build:clang --action_env=CC=clang +build:clang --action_env=CXX=clang++ build --enable_platform_specific_config diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 680268bfb..b85d0ffdc 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -77,6 +77,7 @@ jobs: bazel build --verbose_failures --test_output=errors + --config=clang -c opt $(bazel query 'kind(was.*_rust_binary, //test/test_data/...)') @@ -119,7 +120,7 @@ jobs: os: ubuntu-20.04 arch: x86_64 action: test - flags: '--define crypto=system' + flags: --config=clang --define=crypto=system - name: 'V8 on macOS/x86_64' runtime: 'v8' repo: 'v8' @@ -132,6 +133,7 @@ jobs: os: ubuntu-20.04 arch: x86_64 action: test + flags: --config=clang - name: 'WAMR on macOS/x86_64' runtime: 'wamr' repo: 'com_github_bytecodealliance_wasm_micro_runtime' @@ -144,12 +146,14 @@ jobs: os: ubuntu-20.04 arch: x86_64 action: test + flags: --config=clang - name: 'Wasmtime on Linux/aarch64' runtime: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 arch: aarch64 action: build + flags: --config=clang run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 - name: 'Wasmtime on Linux/s390x' runtime: 'wasmtime' @@ -157,6 +161,7 @@ jobs: os: ubuntu-20.04 arch: s390x action: test + flags: --config=clang run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 - name: 'Wasmtime on macOS/x86_64' runtime: 'wasmtime' @@ -170,6 +175,7 @@ jobs: os: ubuntu-20.04 arch: x86_64 action: test + flags: --config=clang steps: - uses: actions/checkout@v2 From cfdec841c00755cea8d6e258e0d6dc46f993d9bc Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 9 Feb 2022 04:16:38 -0600 Subject: [PATCH 165/287] v8: update to v10.0.101. (#249) Signed-off-by: Piotr Sikora --- bazel/repositories.bzl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index bef81aa7b..e81b5a484 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -94,10 +94,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( git_repository, name = "v8", - # 9.9.115.3 - commit = "90f089d97b6e4146ad106eee1829d86ad6392027", + # 10.0.101 + commit = "a3377e2234a32e1a67a620a180415b40f3dadb80", remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1643043727 +0000", + shallow_since = "1644336206 +0000", patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], patch_args = ["-p1"], ) @@ -111,9 +111,9 @@ def proxy_wasm_cpp_host_repositories(): new_git_repository, name = "com_googlesource_chromium_base_trace_event_common", build_file = "@v8//:bazel/BUILD.trace_event_common", - commit = "7f36dbc19d31e2aad895c60261ca8f726442bfbb", + commit = "d115b033c4e53666b535cbd1985ffe60badad082", remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", - shallow_since = "1635355186 -0700", + shallow_since = "1642576054 -0800", ) native.bind( @@ -125,9 +125,9 @@ def proxy_wasm_cpp_host_repositories(): new_git_repository, name = "com_googlesource_chromium_zlib", build_file = "@v8//:bazel/BUILD.zlib", - commit = "fc5cfd78a357d5bb7735a58f383634faaafe706a", + commit = "3fc79233fe8ff5cf39fec4c8b8a46272d4f11cec", remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", - shallow_since = "1642005087 -0800", + shallow_since = "1644209500 -0800", ) native.bind( From 742d6c8bea44df63681046a67c0d72dbee7469b6 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 9 Feb 2022 04:17:02 -0600 Subject: [PATCH 166/287] wasmtime: update to v0.34.0. (#248) Signed-off-by: Piotr Sikora --- bazel/cargo/wasmtime/BUILD.bazel | 2 +- bazel/cargo/wasmtime/Cargo.raze.lock | 110 ++++---- bazel/cargo/wasmtime/Cargo.toml | 17 +- bazel/cargo/wasmtime/crates.bzl | 248 +++++++++--------- .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- ...-1.0.1.bazel => BUILD.autocfg-1.1.0.bazel} | 2 +- ....63.bazel => BUILD.backtrace-0.3.64.bazel} | 6 +- ...l => BUILD.cranelift-bforest-0.81.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.81.0.bazel} | 16 +- ...BUILD.cranelift-codegen-meta-0.81.0.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.81.0.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.81.0.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.81.0.bazel} | 6 +- ...el => BUILD.cranelift-native-0.81.0.bazel} | 8 +- ...azel => BUILD.cranelift-wasm-0.81.0.bazel} | 12 +- ....3.1.bazel => BUILD.crc32fast-1.3.2.bazel} | 4 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 2 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- .../remote/BUILD.getrandom-0.2.4.bazel | 2 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- .../remote/BUILD.indexmap-1.8.0.bazel | 2 +- ...4.bazel => BUILD.io-lifetimes-0.5.1.bazel} | 27 +- ...0.2.114.bazel => BUILD.libc-0.2.117.bazel} | 4 +- ...bazel => BUILD.linux-raw-sys-0.0.40.bazel} | 5 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- .../remote/BUILD.memoffset-0.6.5.bazel | 2 +- .../remote/BUILD.miniz_oxide-0.4.4.bazel | 2 +- .../wasmtime/remote/BUILD.object-0.27.1.bazel | 2 +- .../wasmtime/remote/BUILD.rand-0.8.4.bazel | 2 +- ...0.33.bazel => BUILD.regalloc-0.0.34.bazel} | 2 +- .../wasmtime/remote/BUILD.region-2.2.0.bazel | 2 +- ...0.31.3.bazel => BUILD.rustix-0.33.1.bazel} | 14 +- ...azel => BUILD.target-lexicon-0.12.3.bazel} | 4 +- ....0.bazel => BUILD.wasmparser-0.82.0.bazel} | 2 +- ...33.0.bazel => BUILD.wasmtime-0.34.0.bazel} | 23 +- ... => BUILD.wasmtime-cranelift-0.34.0.bazel} | 18 +- ...el => BUILD.wasmtime-environ-0.34.0.bazel} | 10 +- ....bazel => BUILD.wasmtime-jit-0.34.0.bazel} | 25 +- ...el => BUILD.wasmtime-runtime-0.34.0.bazel} | 12 +- ...azel => BUILD.wasmtime-types-0.34.0.bazel} | 6 +- .../wasmtime/remote/BUILD.winapi-0.3.9.bazel | 2 - bazel/cargo/wasmtime/wasmtime-runtime.patch | 20 -- bazel/repositories.bzl | 6 +- 43 files changed, 302 insertions(+), 345 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.autocfg-1.0.1.bazel => BUILD.autocfg-1.1.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.backtrace-0.3.63.bazel => BUILD.backtrace-0.3.64.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.80.0.bazel => BUILD.cranelift-bforest-0.81.0.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.80.0.bazel => BUILD.cranelift-codegen-0.81.0.bazel} (83%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.80.0.bazel => BUILD.cranelift-codegen-meta-0.81.0.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.80.0.bazel => BUILD.cranelift-codegen-shared-0.81.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.80.0.bazel => BUILD.cranelift-entity-0.81.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.80.0.bazel => BUILD.cranelift-frontend-0.81.0.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.80.0.bazel => BUILD.cranelift-native-0.81.0.bazel} (87%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.80.0.bazel => BUILD.cranelift-wasm-0.81.0.bazel} (79%) rename bazel/cargo/wasmtime/remote/{BUILD.crc32fast-1.3.1.bazel => BUILD.crc32fast-1.3.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.io-lifetimes-0.4.4.bazel => BUILD.io-lifetimes-0.5.1.bazel} (78%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.114.bazel => BUILD.libc-0.2.117.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.linux-raw-sys-0.0.36.bazel => BUILD.linux-raw-sys-0.0.40.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.regalloc-0.0.33.bazel => BUILD.regalloc-0.0.34.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.31.3.bazel => BUILD.rustix-0.33.1.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.target-lexicon-0.12.2.bazel => BUILD.target-lexicon-0.12.3.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.81.0.bazel => BUILD.wasmparser-0.82.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.33.0.bazel => BUILD.wasmtime-0.34.0.bazel} (82%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.33.0.bazel => BUILD.wasmtime-cranelift-0.34.0.bazel} (72%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.33.0.bazel => BUILD.wasmtime-environ-0.34.0.bazel} (84%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.33.0.bazel => BUILD.wasmtime-jit-0.34.0.bazel} (65%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.33.0.bazel => BUILD.wasmtime-runtime-0.34.0.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.33.0.bazel => BUILD.wasmtime-types-0.34.0.bazel} (89%) delete mode 100644 bazel/cargo/wasmtime/wasmtime-runtime.patch diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 2da0808db..6b1582d6c 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_33_0//:wasmtime", + actual = "@wasmtime__wasmtime__0_34_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index dd180cee6..8a0bf0f99 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -43,15 +43,15 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.0.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" +checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.63" +version = "0.3.64" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6" +checksum = "5e121dee8023ce33ab248d9ce1493df03c3b38a659b240096fcbd7048ff9c31f" dependencies = [ "addr2line", "cc", @@ -100,18 +100,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9516ba6b2ba47b4cbf63b713f75b432fafa0a0e0464ec8381ec76e6efe931ab3" +checksum = "71447555acc6c875c52c407d572fc1327dc5c34cba72b4b2e7ad048aa4e4fd19" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "489e5d0081f7edff6be12d71282a8bf387b5df64d5592454b75d662397f2d642" +checksum = "ec9a10261891a7a919b0d4f6aa73582e88441d9a8f6173c88efbe4a5a362ea67" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -126,33 +126,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d36ee1140371bb0f69100e734b30400157a4adf7b86148dee8b0a438763ead48" +checksum = "815755d76fcbcf6e17ab888545b28ab775f917cb12ce0797e60cd41a2288692c" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "981da52d8f746af1feb96290c83977ff8d41071a7499e991d8abae0d4869f564" +checksum = "23ea92f2a67335a2e4d3c9c65624c3b14ae287d595b0650822c41824febab66b" [[package]] name = "cranelift-entity" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2906740053dd3bcf95ce53df0fd9b5649c68ae4bd9adada92b406f059eae461" +checksum = "bd25847875e388c500ad3624b4d2e14067955c93185194a7222246a25b91c975" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7cb156de1097f567d46bf57a0cd720a72c3e15e1a2bd8b1041ba2fc894471b7" +checksum = "308bcfb7eb47bdf5ff6e1ace262af4ed39ec19f204c751fffb037e0e82a0c8bf" dependencies = [ "cranelift-codegen", "log", @@ -162,9 +162,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "166028ca0343a6ee7bddac0e70084e142b23f99c701bd6f6ea9123afac1a7a46" +checksum = "12cdc799aee673be2317e631d4569a1ba0a7e77a07a7ce45557086d2e02e9514" dependencies = [ "cranelift-codegen", "libc", @@ -173,9 +173,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.80.0" +version = "0.81.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5012a1cde0c8b3898770b711490d803018ae9bec2d60674ba0e5b2058a874f80" +checksum = "7bf8577386bb813bc513e524f665d62b44debaddf929308d0fa2b99c030e17c7" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -189,9 +189,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.3.1" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2209c310e29876f7f0b2721e7e26b84aff178aa3da5d091f9bfbf47669e60e3" +checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" dependencies = [ "cfg-if", ] @@ -298,12 +298,9 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "0.4.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6ef6787e7f0faedc040f95716bdd0e62bcfcf4ba93da053b62dea2691c13864" -dependencies = [ - "winapi", -] +checksum = "768dbad422f45f69c8f5ce59c0802e2681aa3e751c5db8217901607bb2bc24dd" [[package]] name = "itertools" @@ -322,15 +319,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.114" +version = "0.2.117" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50" +checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c" [[package]] name = "linux-raw-sys" -version = "0.0.36" +version = "0.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a261afc61b7a5e323933b402ca6a1765183687c614789b1e4db7762ed4230bca" +checksum = "5bdc16c6ce4c85d9b46b4e66f2a814be5b3f034dbd5131c268a24ca26d970db8" [[package]] name = "log" @@ -479,9 +476,9 @@ dependencies = [ [[package]] name = "regalloc" -version = "0.0.33" +version = "0.0.34" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d808cff91dfca7b239d40b972ba628add94892b1d9e19a842aedc5cfae8ab1a" +checksum = "62446b1d3ebf980bdc68837700af1d77b37bc430e524bf95319c6eada2a4cc02" dependencies = [ "log", "rustc-hash", @@ -531,9 +528,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.31.3" +version = "0.33.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2dcfc2778a90e38f56a708bfc90572422e11d6c7ee233d053d1f782cf9df6d2" +checksum = "feb28d25b32441b96e8649b177ed42ba61e23bb217aec574c8ffb535dc9d5a23" dependencies = [ "bitflags", "errno", @@ -588,9 +585,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff" +checksum = "d7fa7e55043acb85fca6b3c01485a2eeb6b69c5d21002e273c79e465f43b7ac1" [[package]] name = "termcolor" @@ -635,30 +632,29 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasmparser" -version = "0.81.0" +version = "0.82.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc" +checksum = "0559cc0f1779240d6f894933498877ea94f693d84f3ee39c9a9932c6c312bd70" [[package]] name = "wasmtime" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "414be1bc5ca12e755ffd3ff7acc3a6d1979922f8237fc34068b2156cebcc3270" +checksum = "c794a893696a3bc8d5eb8f5fb30c5d1bace6552a2fc13eb84caffc258434502f" dependencies = [ "anyhow", "backtrace", "bincode", "cfg-if", - "cpp_demangle", "indexmap", "lazy_static", "libc", "log", "object", + "once_cell", "paste", "psm", "region", - "rustc-demangle", "serde", "target-lexicon", "wasmparser", @@ -671,7 +667,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.33.0" +version = "0.34.0" dependencies = [ "anyhow", "env_logger", @@ -683,7 +679,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.33.0#8043c1f919a77905255eded33e4e51a6fbfd1de1" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.34.0#39b88e4e9e8115e4a9da2c1e3423459edf0a648e" dependencies = [ "proc-macro2", "quote", @@ -691,9 +687,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4693d33725773615a4c9957e4aa731af57b27dca579702d1d8ed5750760f1a9" +checksum = "032f983a46b06a4f472c0c825fcf6819489df1f2f0a268653b46d948b955aaeb" dependencies = [ "anyhow", "cranelift-codegen", @@ -713,9 +709,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b17e47116a078b9770e6fb86cff8b9a660826623cebcfff251b047c8d8993ef" +checksum = "d02f9ee24c14f45c9ec988b3afeed00c756fc107c379d993248595e610d71601" dependencies = [ "anyhow", "cranelift-entity", @@ -733,17 +729,21 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "60ea5b380bdf92e32911400375aeefb900ac9d3f8e350bb6ba555a39315f2ee7" +checksum = "eae414b81367a4f39c688b22f3cd2127ef1452416c1d7f83862a0ba0e1faef33" dependencies = [ "addr2line", "anyhow", "bincode", "cfg-if", + "cpp_demangle", "gimli", + "log", "object", "region", + "rustc-demangle", + "rustix", "serde", "target-lexicon", "thiserror", @@ -754,9 +754,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abc7cd79937edd6e238b337608ebbcaf9c086a8457f01dfd598324f7fa56d81a" +checksum = "649e06a8c331f99e11acd72425b91dd478234bc4911bad794255bb2b95172c3e" dependencies = [ "anyhow", "backtrace", @@ -779,9 +779,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.33.0" +version = "0.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9e5e51a461a2cf2b69e1fc48f325b17d78a8582816e18479e8ead58844b23f8" +checksum = "62289c2b4917e9ca778be49e4c606346aeaccb06591ec76ace4c85562c851812" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 43e6533c3..2eb69df64 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.33.0" +version = "0.34.0" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.33.0", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.33.0"} +wasmtime = {version = "0.34.0", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.34.0"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" @@ -27,14 +27,3 @@ additional_flags = [ buildrs_additional_deps = [ "@wasmtime__cc__1_0_72//:cc", ] - -[package.metadata.raze.crates.wasmtime-jit.'*'] -additional_deps = [ - "@wasmtime__rustix__0_31_3//:rustix", -] - -[package.metadata.raze.crates.wasmtime-runtime.'*'] -patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime-runtime.patch", -] -patch_args = ["-p3"] diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index 84b7f336e..6170a8d5e 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -63,22 +63,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__autocfg__1_0_1", - url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", + name = "wasmtime__autocfg__1_1_0", + url = "https://crates.io/api/v1/crates/autocfg/1.1.0/download", type = "tar.gz", - sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", - strip_prefix = "autocfg-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.autocfg-1.0.1.bazel"), + sha256 = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa", + strip_prefix = "autocfg-1.1.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.autocfg-1.1.0.bazel"), ) maybe( http_archive, - name = "wasmtime__backtrace__0_3_63", - url = "https://crates.io/api/v1/crates/backtrace/0.3.63/download", + name = "wasmtime__backtrace__0_3_64", + url = "https://crates.io/api/v1/crates/backtrace/0.3.64/download", type = "tar.gz", - sha256 = "321629d8ba6513061f26707241fa9bc89524ff1cd7a915a97ef0c62c666ce1b6", - strip_prefix = "backtrace-0.3.63", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.63.bazel"), + sha256 = "5e121dee8023ce33ab248d9ce1493df03c3b38a659b240096fcbd7048ff9c31f", + strip_prefix = "backtrace-0.3.64", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.64.bazel"), ) maybe( @@ -133,92 +133,92 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.80.0/download", + name = "wasmtime__cranelift_bforest__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.81.0/download", type = "tar.gz", - sha256 = "9516ba6b2ba47b4cbf63b713f75b432fafa0a0e0464ec8381ec76e6efe931ab3", - strip_prefix = "cranelift-bforest-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.80.0.bazel"), + sha256 = "71447555acc6c875c52c407d572fc1327dc5c34cba72b4b2e7ad048aa4e4fd19", + strip_prefix = "cranelift-bforest-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.80.0/download", + name = "wasmtime__cranelift_codegen__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.81.0/download", type = "tar.gz", - sha256 = "489e5d0081f7edff6be12d71282a8bf387b5df64d5592454b75d662397f2d642", - strip_prefix = "cranelift-codegen-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.80.0.bazel"), + sha256 = "ec9a10261891a7a919b0d4f6aa73582e88441d9a8f6173c88efbe4a5a362ea67", + strip_prefix = "cranelift-codegen-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.80.0/download", + name = "wasmtime__cranelift_codegen_meta__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.81.0/download", type = "tar.gz", - sha256 = "d36ee1140371bb0f69100e734b30400157a4adf7b86148dee8b0a438763ead48", - strip_prefix = "cranelift-codegen-meta-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.80.0.bazel"), + sha256 = "815755d76fcbcf6e17ab888545b28ab775f917cb12ce0797e60cd41a2288692c", + strip_prefix = "cranelift-codegen-meta-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.80.0/download", + name = "wasmtime__cranelift_codegen_shared__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.81.0/download", type = "tar.gz", - sha256 = "981da52d8f746af1feb96290c83977ff8d41071a7499e991d8abae0d4869f564", - strip_prefix = "cranelift-codegen-shared-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.80.0.bazel"), + sha256 = "23ea92f2a67335a2e4d3c9c65624c3b14ae287d595b0650822c41824febab66b", + strip_prefix = "cranelift-codegen-shared-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.80.0/download", + name = "wasmtime__cranelift_entity__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.81.0/download", type = "tar.gz", - sha256 = "a2906740053dd3bcf95ce53df0fd9b5649c68ae4bd9adada92b406f059eae461", - strip_prefix = "cranelift-entity-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.80.0.bazel"), + sha256 = "bd25847875e388c500ad3624b4d2e14067955c93185194a7222246a25b91c975", + strip_prefix = "cranelift-entity-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.80.0/download", + name = "wasmtime__cranelift_frontend__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.81.0/download", type = "tar.gz", - sha256 = "b7cb156de1097f567d46bf57a0cd720a72c3e15e1a2bd8b1041ba2fc894471b7", - strip_prefix = "cranelift-frontend-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.80.0.bazel"), + sha256 = "308bcfb7eb47bdf5ff6e1ace262af4ed39ec19f204c751fffb037e0e82a0c8bf", + strip_prefix = "cranelift-frontend-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.80.0/download", + name = "wasmtime__cranelift_native__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.81.0/download", type = "tar.gz", - sha256 = "166028ca0343a6ee7bddac0e70084e142b23f99c701bd6f6ea9123afac1a7a46", - strip_prefix = "cranelift-native-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.80.0.bazel"), + sha256 = "12cdc799aee673be2317e631d4569a1ba0a7e77a07a7ce45557086d2e02e9514", + strip_prefix = "cranelift-native-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_80_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.80.0/download", + name = "wasmtime__cranelift_wasm__0_81_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.81.0/download", type = "tar.gz", - sha256 = "5012a1cde0c8b3898770b711490d803018ae9bec2d60674ba0e5b2058a874f80", - strip_prefix = "cranelift-wasm-0.80.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.80.0.bazel"), + sha256 = "7bf8577386bb813bc513e524f665d62b44debaddf929308d0fa2b99c030e17c7", + strip_prefix = "cranelift-wasm-0.81.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.81.0.bazel"), ) maybe( http_archive, - name = "wasmtime__crc32fast__1_3_1", - url = "https://crates.io/api/v1/crates/crc32fast/1.3.1/download", + name = "wasmtime__crc32fast__1_3_2", + url = "https://crates.io/api/v1/crates/crc32fast/1.3.2/download", type = "tar.gz", - sha256 = "a2209c310e29876f7f0b2721e7e26b84aff178aa3da5d091f9bfbf47669e60e3", - strip_prefix = "crc32fast-1.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.3.1.bazel"), + sha256 = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d", + strip_prefix = "crc32fast-1.3.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.3.2.bazel"), ) maybe( @@ -333,12 +333,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__io_lifetimes__0_4_4", - url = "https://crates.io/api/v1/crates/io-lifetimes/0.4.4/download", + name = "wasmtime__io_lifetimes__0_5_1", + url = "https://crates.io/api/v1/crates/io-lifetimes/0.5.1/download", type = "tar.gz", - sha256 = "f6ef6787e7f0faedc040f95716bdd0e62bcfcf4ba93da053b62dea2691c13864", - strip_prefix = "io-lifetimes-0.4.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.4.4.bazel"), + sha256 = "768dbad422f45f69c8f5ce59c0802e2681aa3e751c5db8217901607bb2bc24dd", + strip_prefix = "io-lifetimes-0.5.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.5.1.bazel"), ) maybe( @@ -363,22 +363,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_114", - url = "https://crates.io/api/v1/crates/libc/0.2.114/download", + name = "wasmtime__libc__0_2_117", + url = "https://crates.io/api/v1/crates/libc/0.2.117/download", type = "tar.gz", - sha256 = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50", - strip_prefix = "libc-0.2.114", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.114.bazel"), + sha256 = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c", + strip_prefix = "libc-0.2.117", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.117.bazel"), ) maybe( http_archive, - name = "wasmtime__linux_raw_sys__0_0_36", - url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.36/download", + name = "wasmtime__linux_raw_sys__0_0_40", + url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.40/download", type = "tar.gz", - sha256 = "a261afc61b7a5e323933b402ca6a1765183687c614789b1e4db7762ed4230bca", - strip_prefix = "linux-raw-sys-0.0.36", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.36.bazel"), + sha256 = "5bdc16c6ce4c85d9b46b4e66f2a814be5b3f034dbd5131c268a24ca26d970db8", + strip_prefix = "linux-raw-sys-0.0.40", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.40.bazel"), ) maybe( @@ -553,12 +553,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__regalloc__0_0_33", - url = "https://crates.io/api/v1/crates/regalloc/0.0.33/download", + name = "wasmtime__regalloc__0_0_34", + url = "https://crates.io/api/v1/crates/regalloc/0.0.34/download", type = "tar.gz", - sha256 = "7d808cff91dfca7b239d40b972ba628add94892b1d9e19a842aedc5cfae8ab1a", - strip_prefix = "regalloc-0.0.33", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc-0.0.33.bazel"), + sha256 = "62446b1d3ebf980bdc68837700af1d77b37bc430e524bf95319c6eada2a4cc02", + strip_prefix = "regalloc-0.0.34", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc-0.0.34.bazel"), ) maybe( @@ -613,12 +613,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_31_3", - url = "https://crates.io/api/v1/crates/rustix/0.31.3/download", + name = "wasmtime__rustix__0_33_1", + url = "https://crates.io/api/v1/crates/rustix/0.33.1/download", type = "tar.gz", - sha256 = "b2dcfc2778a90e38f56a708bfc90572422e11d6c7ee233d053d1f782cf9df6d2", - strip_prefix = "rustix-0.31.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.31.3.bazel"), + sha256 = "feb28d25b32441b96e8649b177ed42ba61e23bb217aec574c8ffb535dc9d5a23", + strip_prefix = "rustix-0.33.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.1.bazel"), ) maybe( @@ -673,12 +673,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__target_lexicon__0_12_2", - url = "https://crates.io/api/v1/crates/target-lexicon/0.12.2/download", + name = "wasmtime__target_lexicon__0_12_3", + url = "https://crates.io/api/v1/crates/target-lexicon/0.12.3/download", type = "tar.gz", - sha256 = "d9bffcddbc2458fa3e6058414599e3c838a022abae82e5c67b4f7f80298d5bff", - strip_prefix = "target-lexicon-0.12.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.2.bazel"), + sha256 = "d7fa7e55043acb85fca6b3c01485a2eeb6b69c5d21002e273c79e465f43b7ac1", + strip_prefix = "target-lexicon-0.12.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.3.bazel"), ) maybe( @@ -733,87 +733,81 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmparser__0_81_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.81.0/download", + name = "wasmtime__wasmparser__0_82_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.82.0/download", type = "tar.gz", - sha256 = "98930446519f63d00a836efdc22f67766ceae8dbcc1571379f2bcabc6b2b9abc", - strip_prefix = "wasmparser-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.81.0.bazel"), + sha256 = "0559cc0f1779240d6f894933498877ea94f693d84f3ee39c9a9932c6c312bd70", + strip_prefix = "wasmparser-0.82.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.82.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__0_33_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.33.0/download", + name = "wasmtime__wasmtime__0_34_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.34.0/download", type = "tar.gz", - sha256 = "414be1bc5ca12e755ffd3ff7acc3a6d1979922f8237fc34068b2156cebcc3270", - strip_prefix = "wasmtime-0.33.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.33.0.bazel"), + sha256 = "c794a893696a3bc8d5eb8f5fb30c5d1bace6552a2fc13eb84caffc258434502f", + strip_prefix = "wasmtime-0.34.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.34.0.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "8043c1f919a77905255eded33e4e51a6fbfd1de1", + commit = "39b88e4e9e8115e4a9da2c1e3423459edf0a648e", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_33_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.33.0/download", + name = "wasmtime__wasmtime_cranelift__0_34_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.34.0/download", type = "tar.gz", - sha256 = "a4693d33725773615a4c9957e4aa731af57b27dca579702d1d8ed5750760f1a9", - strip_prefix = "wasmtime-cranelift-0.33.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.33.0.bazel"), + sha256 = "032f983a46b06a4f472c0c825fcf6819489df1f2f0a268653b46d948b955aaeb", + strip_prefix = "wasmtime-cranelift-0.34.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.34.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_33_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.33.0/download", + name = "wasmtime__wasmtime_environ__0_34_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.34.0/download", type = "tar.gz", - sha256 = "5b17e47116a078b9770e6fb86cff8b9a660826623cebcfff251b047c8d8993ef", - strip_prefix = "wasmtime-environ-0.33.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.33.0.bazel"), + sha256 = "d02f9ee24c14f45c9ec988b3afeed00c756fc107c379d993248595e610d71601", + strip_prefix = "wasmtime-environ-0.34.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.34.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_33_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.33.0/download", + name = "wasmtime__wasmtime_jit__0_34_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.34.0/download", type = "tar.gz", - sha256 = "60ea5b380bdf92e32911400375aeefb900ac9d3f8e350bb6ba555a39315f2ee7", - strip_prefix = "wasmtime-jit-0.33.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.33.0.bazel"), + sha256 = "eae414b81367a4f39c688b22f3cd2127ef1452416c1d7f83862a0ba0e1faef33", + strip_prefix = "wasmtime-jit-0.34.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.34.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_33_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.33.0/download", + name = "wasmtime__wasmtime_runtime__0_34_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.34.0/download", type = "tar.gz", - sha256 = "abc7cd79937edd6e238b337608ebbcaf9c086a8457f01dfd598324f7fa56d81a", - strip_prefix = "wasmtime-runtime-0.33.0", - patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime-runtime.patch", - ], - patch_args = [ - "-p3", - ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.33.0.bazel"), + sha256 = "649e06a8c331f99e11acd72425b91dd478234bc4911bad794255bb2b95172c3e", + strip_prefix = "wasmtime-runtime-0.34.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.34.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_33_0", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.33.0/download", + name = "wasmtime__wasmtime_types__0_34_0", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.34.0/download", type = "tar.gz", - sha256 = "d9e5e51a461a2cf2b69e1fc48f325b17d78a8582816e18479e8ead58844b23f8", - strip_prefix = "wasmtime-types-0.33.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.33.0.bazel"), + sha256 = "62289c2b4917e9ca778be49e4c606346aeaccb06591ec76ace4c85562c851812", + strip_prefix = "wasmtime-types-0.34.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.34.0.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 8a23e8936..18ceb31b8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.1.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.autocfg-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.autocfg-1.1.0.bazel index 4400f5f1e..8b7d36892 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.1.0.bazel @@ -55,7 +55,7 @@ rust_library( "crate-name=autocfg", "manual", ], - version = "1.0.1", + version = "1.1.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.63.bazel rename to bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel index 6739eec44..bf605e891 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.63", + version = "0.3.64", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_72//:cc", @@ -87,13 +87,13 @@ rust_library( "crate-name=backtrace", "manual", ], - version = "0.3.63", + version = "0.3.64", # buildifier: leave-alone deps = [ ":backtrace_build_script", "@wasmtime__addr2line__0_17_0//:addr2line", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", "@wasmtime__miniz_oxide__0_4_4//:miniz_oxide", "@wasmtime__object__0_27_1//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.0.bazel index 49220f5b8..4752f4ea2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.0.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.0.bazel similarity index 83% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.0.bazel index eb10e85b3..6fe4361dc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.0.bazel @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.80.0", + version = "0.81.0", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_80_0//:cranelift_codegen_meta", + "@wasmtime__cranelift_codegen_meta__0_81_0//:cranelift_codegen_meta", ], ) @@ -87,17 +87,17 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_80_0//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_81_0//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_81_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_14//:log", - "@wasmtime__regalloc__0_0_33//:regalloc", + "@wasmtime__regalloc__0_0_34//:regalloc", "@wasmtime__smallvec__1_8_0//:smallvec", - "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.0.bazel index add48dc83..f3ee8ac96 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.0.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_80_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_81_0//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.0.bazel index 5cff4403c..1f1a62f8b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.0.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.0.bazel index 34ccb5ccf..7fb8141a0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ "@wasmtime__serde__1_0_136//:serde", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.0.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.0.bazel index 2d44a927e..3d8ded875 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.0.bazel @@ -49,12 +49,12 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", "@wasmtime__log__0_4_14//:log", "@wasmtime__smallvec__1_8_0//:smallvec", - "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.0.bazel similarity index 87% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.0.bazel index a83e17f41..6fff58d7e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.0.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", - "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", + "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.80.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.0.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.80.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.0.bazel index caeebb965..483881fb1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.80.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.0.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.80.0", + version = "0.81.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_80_0//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_81_0//:cranelift_frontend", "@wasmtime__itertools__0_10_3//:itertools", "@wasmtime__log__0_4_14//:log", "@wasmtime__smallvec__1_8_0//:smallvec", - "@wasmtime__wasmparser__0_81_0//:wasmparser", - "@wasmtime__wasmtime_types__0_33_0//:wasmtime_types", + "@wasmtime__wasmparser__0_82_0//:wasmparser", + "@wasmtime__wasmtime_types__0_34_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel index 7d2d6f5d3..128a07730 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.3.1", + version = "1.3.2", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=crc32fast", "manual", ], - version = "1.3.1", + version = "1.3.2", # buildifier: leave-alone deps = [ ":crc32fast_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index 6dcf117cf..eeb205e5b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index b98fd2b5e..2a0dacc31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel index e3d2855d9..5f6d5fa8d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index 8ccaca13f..741b259f8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel index 06e64293c..b0f1acbfd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel @@ -60,7 +60,7 @@ cargo_build_script( version = "1.8.0", visibility = ["//visibility:private"], deps = [ - "@wasmtime__autocfg__1_0_1//:autocfg", + "@wasmtime__autocfg__1_1_0//:autocfg", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.4.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.1.bazel similarity index 78% rename from bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.4.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.1.bazel index 51cd3f156..729f791e5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.4.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.1.bazel @@ -54,18 +54,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.4.4", + version = "0.5.1", visibility = ["//visibility:private"], deps = [ - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - ], - "//conditions:default": [], - }), + ], ) # Unsupported target "easy-conversions" with type "example" omitted @@ -81,8 +73,6 @@ cargo_build_script( rust_library( name = "io_lifetimes", srcs = glob(["**/*.rs"]), - aliases = { - }, crate_features = [ ], crate_root = "src/lib.rs", @@ -96,20 +86,11 @@ rust_library( "crate-name=io-lifetimes", "manual", ], - version = "0.4.4", + version = "0.5.1", # buildifier: leave-alone deps = [ ":io_lifetimes_build_script", - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), + ], ) # Unsupported target "api" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.114.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.117.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.114.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.117.bazel index 0876a0443..fd5b08fa4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.114.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.117.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.114", + version = "0.2.117", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.114", + version = "0.2.117", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.40.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.36.bazel rename to bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.40.bazel index 7a7d93642..59f9589e0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.36.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.40.bazel @@ -37,10 +37,9 @@ rust_library( crate_features = [ "errno", "general", + "ioctl", "no_std", "std", - "v5_11", - "v5_4", ], crate_root = "src/lib.rs", data = [], @@ -53,7 +52,7 @@ rust_library( "crate-name=linux-raw-sys", "manual", ], - version = "0.0.36", + version = "0.0.40", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index 278047568..6eb9b2305 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel index 6ed72c45b..0c4b891cc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel @@ -58,7 +58,7 @@ cargo_build_script( version = "0.6.5", visibility = ["//visibility:private"], deps = [ - "@wasmtime__autocfg__1_0_1//:autocfg", + "@wasmtime__autocfg__1_1_0//:autocfg", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel index e31fa207f..734d45524 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel @@ -57,7 +57,7 @@ cargo_build_script( version = "0.4.4", visibility = ["//visibility:private"], deps = [ - "@wasmtime__autocfg__1_0_1//:autocfg", + "@wasmtime__autocfg__1_1_0//:autocfg", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel index 824ecf9f6..1c37a3e1e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel @@ -62,7 +62,7 @@ rust_library( version = "0.27.1", # buildifier: leave-alone deps = [ - "@wasmtime__crc32fast__1_3_1//:crc32fast", + "@wasmtime__crc32fast__1_3_2//:crc32fast", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__memchr__2_4_1//:memchr", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel index 316dd5ee0..10ef0f765 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel @@ -108,7 +108,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.33.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.33.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel index 0b12d21ae..d76108a0a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.33.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel @@ -48,7 +48,7 @@ rust_library( "crate-name=regalloc", "manual", ], - version = "0.0.33", + version = "0.0.34", # buildifier: leave-alone deps = [ "@wasmtime__log__0_4_14//:log", diff --git a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel index 942028bac..584748d85 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.31.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.1.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.31.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.1.bazel index b3c86abdd..f6173065e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.31.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.1.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.31.3", + version = "0.33.1", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_72//:cc", @@ -70,7 +70,7 @@ cargo_build_script( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_36//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_0_40//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -108,6 +108,8 @@ cargo_build_script( # Unsupported target "mod" with type "bench" omitted +# Unsupported target "dup2_to_replace_stdio" with type "example" omitted + # Unsupported target "hello" with type "example" omitted # Unsupported target "process" with type "example" omitted @@ -138,12 +140,12 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.31.3", + version = "0.33.1", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__0_4_4//:io_lifetimes", + "@wasmtime__io_lifetimes__0_5_1//:io_lifetimes", ] + selects.with_or({ # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) ( @@ -152,7 +154,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_36//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_0_40//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -176,7 +178,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@wasmtime__errno__0_2_8//:errno", - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.3.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.3.bazel index 680849e99..c4767d0a5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.3.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.12.2", + version = "0.12.3", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=target-lexicon", "manual", ], - version = "0.12.2", + version = "0.12.3", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.82.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.82.0.bazel index 5d162ddfd..40fcaa08f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.82.0.bazel @@ -51,7 +51,7 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.81.0", + version = "0.82.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.0.bazel similarity index 82% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.0.bazel index b241c8b40..6ba3619a7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.0.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.33.0", + version = "0.34.0", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -93,30 +93,29 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.33.0", + version = "0.34.0", # buildifier: leave-alone deps = [ ":wasmtime_build_script", "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__backtrace__0_3_63//:backtrace", + "@wasmtime__backtrace__0_3_64//:backtrace", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", "@wasmtime__log__0_4_14//:log", "@wasmtime__object__0_27_1//:object", + "@wasmtime__once_cell__1_9_0//:once_cell", "@wasmtime__psm__0_1_16//:psm", "@wasmtime__region__2_2_0//:region", - "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", "@wasmtime__serde__1_0_136//:serde", - "@wasmtime__target_lexicon__0_12_2//:target_lexicon", - "@wasmtime__wasmparser__0_81_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_33_0//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_33_0//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_33_0//:wasmtime_runtime", + "@wasmtime__target_lexicon__0_12_3//:target_lexicon", + "@wasmtime__wasmparser__0_82_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__0_34_0//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_34_0//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_34_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.0.bazel similarity index 72% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.0.bazel index 5e0d0e640..d64b66109 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.0.bazel @@ -47,22 +47,22 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.33.0", + version = "0.34.0", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__cranelift_codegen__0_80_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_80_0//:cranelift_frontend", - "@wasmtime__cranelift_native__0_80_0//:cranelift_native", - "@wasmtime__cranelift_wasm__0_80_0//:cranelift_wasm", + "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_81_0//:cranelift_frontend", + "@wasmtime__cranelift_native__0_81_0//:cranelift_native", + "@wasmtime__cranelift_wasm__0_81_0//:cranelift_wasm", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_14//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_27_1//:object", - "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmparser__0_81_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", + "@wasmtime__wasmparser__0_82_0//:wasmparser", + "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.0.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.0.bazel index fea803e1a..a6696a364 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.0.bazel @@ -47,20 +47,20 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.33.0", + version = "0.34.0", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__log__0_4_14//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_27_1//:object", "@wasmtime__serde__1_0_136//:serde", - "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmparser__0_81_0//:wasmparser", - "@wasmtime__wasmtime_types__0_33_0//:wasmtime_types", + "@wasmtime__wasmparser__0_82_0//:wasmparser", + "@wasmtime__wasmtime_types__0_34_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.0.bazel similarity index 65% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.0.bazel index 620627381..9c6867cd3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.0.bazel @@ -49,23 +49,38 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.33.0", + version = "0.34.0", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", "@wasmtime__anyhow__1_0_53//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__log__0_4_14//:log", "@wasmtime__object__0_27_1//:object", "@wasmtime__region__2_2_0//:region", - "@wasmtime__rustix__0_31_3//:rustix", + "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", "@wasmtime__serde__1_0_136//:serde", - "@wasmtime__target_lexicon__0_12_2//:target_lexicon", + "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_33_0//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_34_0//:wasmtime_runtime", ] + selects.with_or({ + # cfg(target_os = "linux") + ( + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + ): [ + "@wasmtime__rustix__0_33_1//:rustix", + ], + "//conditions:default": [], + }) + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.0.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.0.bazel index 65701a486..d39a6633b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.33.0", + version = "0.34.0", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_72//:cc", @@ -120,23 +120,23 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.33.0", + version = "0.34.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__backtrace__0_3_63//:backtrace", + "@wasmtime__backtrace__0_3_64//:backtrace", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_114//:libc", + "@wasmtime__libc__0_2_117//:libc", "@wasmtime__log__0_4_14//:log", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__rand__0_8_4//:rand", "@wasmtime__region__2_2_0//:region", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_33_0//:wasmtime_environ", + "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_31_3//:rustix", + "@wasmtime__rustix__0_33_1//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.33.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.0.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.33.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.0.bazel index 216a537da..b35527c89 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.33.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.0.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.33.0", + version = "0.34.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_80_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmparser__0_81_0//:wasmparser", + "@wasmtime__wasmparser__0_82_0//:wasmparser", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel index b81b61484..55dfd5cad 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel @@ -60,7 +60,6 @@ cargo_build_script( "wincon", "winerror", "winnt", - "winsock2", "ws2ipdef", "ws2tcpip", ], @@ -101,7 +100,6 @@ rust_library( "wincon", "winerror", "winnt", - "winsock2", "ws2ipdef", "ws2tcpip", ], diff --git a/bazel/cargo/wasmtime/wasmtime-runtime.patch b/bazel/cargo/wasmtime/wasmtime-runtime.patch deleted file mode 100644 index 274043bc9..000000000 --- a/bazel/cargo/wasmtime/wasmtime-runtime.patch +++ /dev/null @@ -1,20 +0,0 @@ -# Fix build on s390x. (https://github.com/bytecodealliance/wasmtime/pull/3673) - -diff --git a/crates/runtime/src/helpers.c b/crates/runtime/src/helpers.c -index 66b87a150..b036b06a8 100644 ---- a/crates/runtime/src/helpers.c -+++ b/crates/runtime/src/helpers.c -@@ -8,10 +8,10 @@ - #define platform_longjmp(buf, arg) longjmp(buf, arg) - typedef jmp_buf platform_jmp_buf; - --#elif defined(__clang__) && defined(__aarch64__) -+#elif defined(__clang__) && (defined(__aarch64__) || defined(__s390x__)) - --// Clang on aarch64 doesn't support `__builtin_setjmp`, so use `sigsetjmp` --// from libc. -+// Clang on aarch64 and s390x doesn't support `__builtin_setjmp`, so use -+//`sigsetjmp` from libc. - // - // Note that `sigsetjmp` and `siglongjmp` are used here where possible to - // explicitly pass a 0 argument to `sigsetjmp` that we don't need to preserve diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index e81b5a484..ba8d1f922 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -163,9 +163,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "c59a2aa110b25921d370944287cd97205c73cf3dc76776c5b3551135c1e42ddc", - strip_prefix = "wasmtime-0.33.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.33.0.tar.gz", + sha256 = "bf643b1863b19ab49aa1e8cc7aec52c81e5aff12daeb4eca4c31a437046957be", + strip_prefix = "wasmtime-0.34.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.34.0.tar.gz", ) maybe( From d4912fa8f3430a1a3251237c751f6c07ab486753 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 9 Feb 2022 04:17:17 -0600 Subject: [PATCH 167/287] Update BoringSSL to 2022-02-07. (#247) Signed-off-by: Piotr Sikora --- bazel/repositories.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index ba8d1f922..376b9cba1 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -59,10 +59,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "boringssl", - # 2022-01-10 (master-with-bazel) - sha256 = "a530919e3141d00d593a0d74cd0f9f88707e35ec58bb62245968fec16cb9257f", - strip_prefix = "boringssl-9420fb54116466923afa1f34a23dd8a4a7ddb69d", - urls = ["https://github.com/google/boringssl/archive/9420fb54116466923afa1f34a23dd8a4a7ddb69d.tar.gz"], + # 2022-02-07 (master-with-bazel) + sha256 = "7dec97795a7ac7e3832228e4440ee06cceb18d3663f4580b0840e685281e28a0", + strip_prefix = "boringssl-eaa29f431f71b8121e1da76bcd3ddc2248238ade", + urls = ["https://github.com/google/boringssl/archive/eaa29f431f71b8121e1da76bcd3ddc2248238ade.tar.gz"], ) maybe( From 5a613997a91b174300a556678b39e13977cc3582 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 9 Feb 2022 16:55:24 -0600 Subject: [PATCH 168/287] build: add experimental support for Zig C/C++ compiler. (#246) This currently doesn't work with rules_rust, so Rust targets, including the test data, cannot be built when using it. See proxy-wasm/proxy-wasm-cpp-host#243 for a workaround. Signed-off-by: Piotr Sikora --- .bazelrc | 12 ++++++++++++ .github/workflows/cpp.yml | 12 ++++++++++++ bazel/dependencies.bzl | 3 +++ bazel/repositories.bzl | 8 ++++++++ 4 files changed, 35 insertions(+) diff --git a/.bazelrc b/.bazelrc index 4dd21abda..4168ef49b 100644 --- a/.bazelrc +++ b/.bazelrc @@ -8,6 +8,18 @@ build:clang --action_env=BAZEL_COMPILER=clang build:clang --action_env=CC=clang build:clang --action_env=CXX=clang++ +# Use Zig C/C++ compiler. +build:zig-cc --incompatible_enable_cc_toolchain_resolution +build:zig-cc --extra_toolchains @zig_sdk//:aarch64-linux-gnu.2.28_toolchain +build:zig-cc --extra_toolchains @zig_sdk//:x86_64-linux-gnu.2.28_toolchain +build:zig-cc --host_copt=-fno-sanitize=undefined + +# Use Zig C/C++ compiler (cross-compile to Linux/aarch64). +build:zig-cc-linux-aarch64 --config=zig-cc +build:zig-cc-linux-aarch64 --platforms @zig_sdk//:linux_aarch64_platform +build:zig-cc-linux-aarch64 --run_under=qemu-aarch64-static +build:zig-cc-linux-aarch64 --test_env=QEMU_LD_PREFIX=/usr/aarch64-linux-gnu/ + build --enable_platform_specific_config build:linux --cxxopt=-std=c++17 diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index b85d0ffdc..fbccd0c92 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -121,6 +121,14 @@ jobs: arch: x86_64 action: test flags: --config=clang --define=crypto=system + - name: 'V8 on Linux/aarch64' + runtime: 'v8' + repo: 'v8' + os: ubuntu-20.04 + arch: aarch64 + action: test + flags: --config=zig-cc-linux-aarch64 --@v8//bazel/config:v8_target_cpu=arm64 + deps: qemu-user-static libc6-arm64-cross - name: 'V8 on macOS/x86_64' runtime: 'v8' repo: 'v8' @@ -180,6 +188,10 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Install dependencies (Linux) + if: ${{ matrix.deps != '' && startsWith(matrix.os, 'ubuntu') }} + run: sudo apt-get install -y ${{ matrix.deps }} + - name: Activate Docker/QEMU if: startsWith(matrix.run_under, 'docker') run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index f484c94d5..58fb30306 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@bazel-zig-cc//toolchain:defs.bzl", zig_register_toolchains = "register_toolchains") load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign:crates.bzl", "wasmsign_fetch_remote_crates") load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime:crates.bzl", "wasmtime_fetch_remote_crates") @@ -32,6 +33,8 @@ def proxy_wasm_cpp_host_dependencies(): version = "1.58.1", ) + zig_register_toolchains() + # Core dependencies. protobuf_deps() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 376b9cba1..ffa3a22b2 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -29,6 +29,14 @@ def proxy_wasm_cpp_host_repositories(): sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", ) + maybe( + http_archive, + name = "bazel-zig-cc", + sha256 = "ad6384b4d16ebb3e5047df6548a195e598346da84e5f320250beb9198705ac81", + strip_prefix = "bazel-zig-cc-v0.4.4", + url = "https://git.sr.ht/~motiejus/bazel-zig-cc/archive/v0.4.4.tar.gz", + ) + maybe( http_archive, name = "rules_foreign_cc", From 08e23747be68f60bc8c2b5cfaf7043da0821c71d Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 16 Feb 2022 18:57:08 -0600 Subject: [PATCH 169/287] build: fix building Rust build scripts with Zig C/C++ compiler. (#257) Wasmtime builds fine now, but still no luck with the test data. Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 4 +- bazel/cargo/wasmtime/Cargo.toml | 6 ++ bazel/cargo/wasmtime/crates.bzl | 6 ++ bazel/cargo/wasmtime/psm.patch | 23 +++++++ bazel/dependencies.bzl | 26 +++++++- bazel/external/rules_rust.patch | 107 ++++++++++++++++++++++++++++++++ bazel/repositories.bzl | 4 +- 7 files changed, 171 insertions(+), 5 deletions(-) create mode 100644 bazel/cargo/wasmtime/psm.patch create mode 100644 bazel/external/rules_rust.patch diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index fbccd0c92..fa2696fad 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -161,8 +161,8 @@ jobs: os: ubuntu-20.04 arch: aarch64 action: build - flags: --config=clang - run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/arm64 piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 + flags: --config=zig-cc-linux-aarch64 + deps: qemu-user-static libc6-arm64-cross - name: 'Wasmtime on Linux/s390x' runtime: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 2eb69df64..abbd7778d 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -27,3 +27,9 @@ additional_flags = [ buildrs_additional_deps = [ "@wasmtime__cc__1_0_72//:cc", ] + +[package.metadata.raze.crates.psm.'*'] +patches = [ + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:psm.patch", +] +patch_args = ["-p2"] diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index 6170a8d5e..95c1feb7c 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -498,6 +498,12 @@ def wasmtime_fetch_remote_crates(): type = "tar.gz", sha256 = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69", strip_prefix = "psm-0.1.16", + patches = [ + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:psm.patch", + ], + patch_args = [ + "-p2", + ], build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.16.bazel"), ) diff --git a/bazel/cargo/wasmtime/psm.patch b/bazel/cargo/wasmtime/psm.patch new file mode 100644 index 000000000..895e815cf --- /dev/null +++ b/bazel/cargo/wasmtime/psm.patch @@ -0,0 +1,23 @@ +# Don't ignore CFLAGS (missing "-target" breaks cross-compilation). + +diff --git a/psm/build.rs b/psm/build.rs +index 01a13bf..c7bcb0e 100644 +--- a/psm/build.rs ++++ b/psm/build.rs +@@ -61,16 +61,6 @@ fn main() { + let os = ::std::env::var("CARGO_CFG_TARGET_OS").unwrap(); + let endian = ::std::env::var("CARGO_CFG_TARGET_ENDIAN").unwrap(); + +- // We are only assembling a single file and any flags in the environment probably +- // don't apply in this case, so we don't want to use them. Unfortunately, cc +- // doesn't provide a way to clear/ignore flags set from the environment, so +- // we manually remove them instead +- for key in +- std::env::vars().filter_map(|(k, _)| if k.contains("CFLAGS") { Some(k) } else { None }) +- { +- std::env::remove_var(key); +- } +- + let mut cfg = cc::Build::new(); + let msvc = cfg.get_compiler().is_like_msvc(); + let asm = if let Some((asm, canswitch)) = find_assembly(&arch, &endian, &os, &env, msvc) { diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 58fb30306..811c3fb9f 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -26,14 +26,36 @@ def proxy_wasm_cpp_host_dependencies(): rules_foreign_cc_dependencies() rust_repositories() + rust_repository_set( + name = "rust_linux_x86_64", + exec_triple = "x86_64-unknown-linux-gnu", + extra_target_triples = [ + "aarch64-unknown-linux-gnu", + "wasm32-unknown-unknown", + "wasm32-wasi", + ], + version = "1.58.1", + ) rust_repository_set( name = "rust_linux_s390x", exec_triple = "s390x-unknown-linux-gnu", - extra_target_triples = ["wasm32-unknown-unknown", "wasm32-wasi"], + extra_target_triples = [ + "wasm32-unknown-unknown", + "wasm32-wasi", + ], version = "1.58.1", ) - zig_register_toolchains() + zig_register_toolchains( + version = "0.9.1", + url_format = "https://ziglang.org/download/%7Bversion%7D/zig-%7Bhost_platform%7D-%7Bversion%7D.tar.xz", + host_platform_sha256 = { + "linux-aarch64": "5d99a39cded1870a3fa95d4de4ce68ac2610cca440336cfd252ffdddc2b90e66", + "linux-x86_64": "be8da632c1d3273f766b69244d80669fe4f5e27798654681d77c992f17c237d7", + "macos-aarch64": "8c473082b4f0f819f1da05de2dbd0c1e891dff7d85d2c12b6ee876887d438287", + "macos-x86_64": "2d94984972d67292b55c1eb1c00de46580e9916575d083003546e9a01166754c", + }, + ) # Core dependencies. diff --git a/bazel/external/rules_rust.patch b/bazel/external/rules_rust.patch new file mode 100644 index 000000000..7a1d0ab9b --- /dev/null +++ b/bazel/external/rules_rust.patch @@ -0,0 +1,107 @@ +# Pass CFLAGS and CXXFLAGS to build scripts (https://github.com/bazelbuild/rules_rust/pull/1081). + +diff --git a/cargo/cargo_build_script.bzl b/cargo/cargo_build_script.bzl +index 688fe3143..25e8eabc3 100644 +--- a/cargo/cargo_build_script.bzl ++++ b/cargo/cargo_build_script.bzl +@@ -1,5 +1,5 @@ + # buildifier: disable=module-docstring +-load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "C_COMPILE_ACTION_NAME") ++load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "CPP_COMPILE_ACTION_NAME", "C_COMPILE_ACTION_NAME") + load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain") + load("//rust:defs.bzl", "rust_binary", "rust_common") + +@@ -9,7 +9,7 @@ load("//rust/private:rustc.bzl", "BuildInfo", "get_compilation_mode_opts", "get_ + # buildifier: disable=bzl-visibility + load("//rust/private:utils.bzl", "expand_dict_value_locations", "find_cc_toolchain", "find_toolchain", "name_to_crate_name") + +-def get_cc_compile_env(cc_toolchain, feature_configuration): ++def get_cc_compile_args_and_env(cc_toolchain, feature_configuration): + """Gather cc environment variables from the given `cc_toolchain` + + Args: +@@ -17,17 +17,31 @@ def get_cc_compile_env(cc_toolchain, feature_configuration): + feature_configuration (FeatureConfiguration): Class used to construct command lines from CROSSTOOL features. + + Returns: +- dict: Returns environment variables to be set for given action. ++ tuple: A tuple of the following items: ++ - (sequence): A flattened C command line flags for given action. ++ - (sequence): A flattened CXX command line flags for given action. ++ - (dict): C environment variables to be set for given action. + """ + compile_variables = cc_common.create_compile_variables( + feature_configuration = feature_configuration, + cc_toolchain = cc_toolchain, + ) +- return cc_common.get_environment_variables( ++ cc_c_args = cc_common.get_memory_inefficient_command_line( + feature_configuration = feature_configuration, + action_name = C_COMPILE_ACTION_NAME, + variables = compile_variables, + ) ++ cc_cxx_args = cc_common.get_memory_inefficient_command_line( ++ feature_configuration = feature_configuration, ++ action_name = CPP_COMPILE_ACTION_NAME, ++ variables = compile_variables, ++ ) ++ cc_env = cc_common.get_environment_variables( ++ feature_configuration = feature_configuration, ++ action_name = C_COMPILE_ACTION_NAME, ++ variables = compile_variables, ++ ) ++ return cc_c_args, cc_cxx_args, cc_env + + def _build_script_impl(ctx): + """The implementation for the `_build_script_run` rule. +@@ -102,7 +116,7 @@ def _build_script_impl(ctx): + env["LDFLAGS"] = " ".join(link_args) + + # MSVC requires INCLUDE to be set +- cc_env = get_cc_compile_env(cc_toolchain, feature_configuration) ++ cc_c_args, cc_cxx_args, cc_env = get_cc_compile_args_and_env(cc_toolchain, feature_configuration) + include = cc_env.get("INCLUDE") + if include: + env["INCLUDE"] = include +@@ -120,6 +134,12 @@ def _build_script_impl(ctx): + if cc_toolchain.sysroot: + env["SYSROOT"] = cc_toolchain.sysroot + ++ # Populate CFLAGS and CXXFLAGS that cc-rs relies on when building from source, in particular ++ # to determine the deployment target when building for apple platforms (`macosx-version-min` ++ # for example, itself derived from the `macos_minimum_os` Bazel argument). ++ env["CFLAGS"] = " ".join(cc_c_args) ++ env["CXXFLAGS"] = " ".join(cc_cxx_args) ++ + for f in ctx.attr.crate_features: + env["CARGO_FEATURE_" + f.upper().replace("-", "_")] = "1" + +diff --git a/test/cargo_build_script/build.rs b/test/cargo_build_script/build.rs +index 68cef7232..4b337b48f 100644 +--- a/test/cargo_build_script/build.rs ++++ b/test/cargo_build_script/build.rs +@@ -5,12 +5,12 @@ fn main() { + std::env::var("TOOL").unwrap() + ); + +- // Assert that the CC and CXX env vars existed and were executable. ++ // Assert that the CC, CXX and LD env vars existed and were executable. + // We don't assert what happens when they're executed (in particular, we don't check for a + // non-zero exit code), but this asserts that it's an existing file which is executable. + // + // Unfortunately we need to shlex the path, because we add a `--sysroot=...` arg to the env var. +- for env_var in &["CC", "CXX"] { ++ for env_var in &["CC", "CXX", "LD"] { + let v = std::env::var(env_var) + .unwrap_or_else(|err| panic!("Error getting {}: {}", env_var, err)); + let (path, args) = if let Some(index) = v.find("--sysroot") { +@@ -24,4 +24,9 @@ fn main() { + .status() + .unwrap(); + } ++ ++ // Assert that some env variables are set. ++ for env_var in &["CFLAGS", "CXXFLAGS", "LDFLAGS"] { ++ assert!(std::env::var(env_var).is_ok()); ++ } + } diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index ffa3a22b2..057c65fb7 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -58,8 +58,10 @@ def proxy_wasm_cpp_host_repositories(): name = "rules_rust", sha256 = "6c26af1bb98276917fcf29ea942615ab375cf9d3c52f15c27fdd176ced3ee906", strip_prefix = "rules_rust-b3ddf6f096887b757ab1a661662a95d6b2699fa7", - # NOTE: Update Rust version for Linux/s390x in bazel/dependencies.bzl. + # NOTE: Update Rust version in bazel/dependencies.bzl. url = "https://github.com/bazelbuild/rules_rust/archive/b3ddf6f096887b757ab1a661662a95d6b2699fa7.tar.gz", + patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], + patch_args = ["-p1"], ) # Core. From d931dd03cb783bd3e18fbc4e174985f7a7cabc8c Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 16 Feb 2022 18:57:45 -0600 Subject: [PATCH 170/287] build: add config for GCC compiler. (#259) Signed-off-by: Piotr Sikora --- .bazelrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.bazelrc b/.bazelrc index 4168ef49b..e363d6f90 100644 --- a/.bazelrc +++ b/.bazelrc @@ -8,6 +8,11 @@ build:clang --action_env=BAZEL_COMPILER=clang build:clang --action_env=CC=clang build:clang --action_env=CXX=clang++ +# Use GCC compiler. +build:gcc --action_env=BAZEL_COMPILER=gcc +build:gcc --action_env=CC=gcc +build:gcc --action_env=CXX=g++ + # Use Zig C/C++ compiler. build:zig-cc --incompatible_enable_cc_toolchain_resolution build:zig-cc --extra_toolchains @zig_sdk//:aarch64-linux-gnu.2.28_toolchain From 80954f7e8cf9120a41dda9a28ce481be1d12a3fd Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 16 Feb 2022 21:36:41 -0600 Subject: [PATCH 171/287] ci: get Bazel's output paths from within Docker. (#250) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index fa2696fad..ce06e7f22 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -253,7 +253,9 @@ jobs: - name: Cleanup Bazel cache if: ${{ github.ref == 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }} run: | - export OUTPUT=$(bazel info output_base) + export OUTPUT=$(${{ matrix.run_under }} bazel info output_base) + echo "===== BEFORE =====" + du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 # BoringSSL's test data (90 MiB). rm -rf ${OUTPUT}/external/boringssl/crypto_test_data.cc rm -rf ${OUTPUT}/external/boringssl/src/crypto/*/test/ @@ -271,5 +273,7 @@ jobs: # Distfiles for Rust toolchains (350 MiB). rm -rf ${OUTPUT}/external/rust_*/*.tar.gz # Bazel's repository cache (650-800 MiB) and install base (155 MiB). - rm -rf $(bazel info repository_cache) - rm -rf $(bazel info install_base) + rm -rf ${OUTPUT}/../cache + rm -rf ${OUTPUT}/../install + echo "===== AFTER =====" + du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 From 93b2eeeb9a2d0fabe41ec73ab9cf92549042a9f6 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 16 Feb 2022 21:37:13 -0600 Subject: [PATCH 172/287] ci: don't cache WAMR. (#252) Following proxy-wasm/proxy-wasm-cpp-host#239, it builds fast enough. Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index ce06e7f22..376007150 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -121,6 +121,7 @@ jobs: arch: x86_64 action: test flags: --config=clang --define=crypto=system + cache: true - name: 'V8 on Linux/aarch64' runtime: 'v8' repo: 'v8' @@ -129,12 +130,14 @@ jobs: action: test flags: --config=zig-cc-linux-aarch64 --@v8//bazel/config:v8_target_cpu=arm64 deps: qemu-user-static libc6-arm64-cross + cache: true - name: 'V8 on macOS/x86_64' runtime: 'v8' repo: 'v8' os: macos-11 arch: x86_64 action: test + cache: true - name: 'WAMR on Linux/x86_64' runtime: 'wamr' repo: 'com_github_bytecodealliance_wasm_micro_runtime' @@ -171,6 +174,7 @@ jobs: action: test flags: --config=clang run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 + cache: true - name: 'Wasmtime on macOS/x86_64' runtime: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' @@ -184,6 +188,7 @@ jobs: arch: x86_64 action: test flags: --config=clang + cache: true steps: - uses: actions/checkout@v2 @@ -197,11 +202,12 @@ jobs: run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - name: Set cache key - id: cache-key + if: ${{ matrix.cache }} run: echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)" + id: cache-key - name: Bazel cache - if: ${{ matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker') }} + if: ${{ matrix.cache }} uses: PiotrSikora/cache@v2.1.7-with-skip-cache with: path: | @@ -247,11 +253,11 @@ jobs: //test:signature_util_test - name: Skip Bazel cache update - if: ${{ github.ref != 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }} + if: ${{ matrix.cache && github.ref != 'refs/heads/master' }} run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV - name: Cleanup Bazel cache - if: ${{ github.ref == 'refs/heads/master' && (matrix.runtime != 'wasmtime' || startsWith(matrix.run_under, 'docker')) }} + if: ${{ matrix.cache && github.ref == 'refs/heads/master' }} run: | export OUTPUT=$(${{ matrix.run_under }} bazel info output_base) echo "===== BEFORE =====" From e9cfbd733080cb5895cc1d81cd5b634677f3b379 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 16 Feb 2022 21:37:39 -0600 Subject: [PATCH 173/287] ci: add daily run to prevent primary cache from expiring. (#245) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 376007150..6adddf616 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -28,6 +28,9 @@ on: - 'envoy-release/**' - 'istio-release/**' + schedule: + - cron: '0 0 * * *' + jobs: format: From af6391b27d399ad46d7c6ee5fc4cbe8e2af84605 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 17 Feb 2022 00:24:45 -0600 Subject: [PATCH 174/287] Rename "runtime" to "engine". (#256) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 28 ++++++++++++------------ BUILD | 41 ++++++++++++++++++++++++------------ bazel/BUILD | 16 +++++++------- bazel/select.bzl | 16 +++++++------- include/proxy-wasm/context.h | 6 +++--- include/proxy-wasm/null_vm.h | 2 +- include/proxy-wasm/wasm_vm.h | 6 +++--- src/v8/v8.cc | 2 +- src/wamr/wamr.cc | 2 +- src/wasm.cc | 4 ++-- src/wasmtime/wasmtime.cc | 2 +- src/wavm/wavm.cc | 2 +- test/exports_test.cc | 4 ++-- test/null_vm_test.cc | 2 +- test/runtime_test.cc | 18 ++++++++-------- test/utility.cc | 16 +++++++------- test/utility.h | 39 +++++++++++++++++----------------- test/wasm_test.cc | 10 ++++----- 18 files changed, 116 insertions(+), 100 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 6adddf616..b20ea0dcd 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -118,7 +118,7 @@ jobs: matrix: include: - name: 'V8 on Linux/x86_64' - runtime: 'v8' + engine: 'v8' repo: 'v8' os: ubuntu-20.04 arch: x86_64 @@ -126,7 +126,7 @@ jobs: flags: --config=clang --define=crypto=system cache: true - name: 'V8 on Linux/aarch64' - runtime: 'v8' + engine: 'v8' repo: 'v8' os: ubuntu-20.04 arch: aarch64 @@ -135,34 +135,34 @@ jobs: deps: qemu-user-static libc6-arm64-cross cache: true - name: 'V8 on macOS/x86_64' - runtime: 'v8' + engine: 'v8' repo: 'v8' os: macos-11 arch: x86_64 action: test cache: true - name: 'WAMR on Linux/x86_64' - runtime: 'wamr' + engine: 'wamr' repo: 'com_github_bytecodealliance_wasm_micro_runtime' os: ubuntu-20.04 arch: x86_64 action: test flags: --config=clang - name: 'WAMR on macOS/x86_64' - runtime: 'wamr' + engine: 'wamr' repo: 'com_github_bytecodealliance_wasm_micro_runtime' os: macos-11 arch: x86_64 action: test - name: 'Wasmtime on Linux/x86_64' - runtime: 'wasmtime' + engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 arch: x86_64 action: test flags: --config=clang - name: 'Wasmtime on Linux/aarch64' - runtime: 'wasmtime' + engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 arch: aarch64 @@ -170,7 +170,7 @@ jobs: flags: --config=zig-cc-linux-aarch64 deps: qemu-user-static libc6-arm64-cross - name: 'Wasmtime on Linux/s390x' - runtime: 'wasmtime' + engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' os: ubuntu-20.04 arch: s390x @@ -179,13 +179,13 @@ jobs: run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 cache: true - name: 'Wasmtime on macOS/x86_64' - runtime: 'wasmtime' + engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' os: macos-11 arch: x86_64 action: test - name: 'WAVM on Linux/x86_64' - runtime: 'wavm' + engine: 'wavm' repo: 'com_github_wavm_wavm' os: ubuntu-20.04 arch: x86_64 @@ -216,9 +216,9 @@ jobs: path: | ~/.cache/bazel /private/var/tmp/_bazel_runner/ - key: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} + key: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.engine }}-${{ steps.cache-key.outputs.uniq }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} restore-keys: | - ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.runtime }}-${{ steps.cache-key.outputs.uniq }}- + ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.engine }}-${{ steps.cache-key.outputs.uniq }}- - name: Download test data uses: actions/download-artifact@v2 @@ -240,7 +240,7 @@ jobs: bazel ${{ matrix.action }} --verbose_failures --test_output=errors - --define runtime=${{ matrix.runtime }} + --define engine=${{ matrix.engine }} ${{ matrix.flags }} //test/... @@ -250,7 +250,7 @@ jobs: bazel ${{ matrix.action }} --verbose_failures --test_output=errors - --define runtime=${{ matrix.runtime }} + --define engine=${{ matrix.engine }} ${{ matrix.flags }} --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test diff --git a/BUILD b/BUILD index aa5845a6c..5beba11c1 100644 --- a/BUILD +++ b/BUILD @@ -1,10 +1,10 @@ load("@rules_cc//cc:defs.bzl", "cc_library") load( "@proxy_wasm_cpp_host//bazel:select.bzl", - "proxy_wasm_select_runtime_v8", - "proxy_wasm_select_runtime_wamr", - "proxy_wasm_select_runtime_wasmtime", - "proxy_wasm_select_runtime_wavm", + "proxy_wasm_select_engine_v8", + "proxy_wasm_select_engine_wamr", + "proxy_wasm_select_engine_wasmtime", + "proxy_wasm_select_engine_wavm", ) licenses(["notice"]) # Apache 2 @@ -82,7 +82,10 @@ cc_library( "include/proxy-wasm/null_vm_plugin.h", "include/proxy-wasm/wasm_api_impl.h", ], - defines = ["PROXY_WASM_HAS_RUNTIME_NULL"], + defines = [ + "PROXY_WASM_HAS_RUNTIME_NULL", + "PROXY_WASM_HOST_ENGINE_NULL", + ], deps = [ ":headers", "@com_google_protobuf//:protobuf_lite", @@ -96,7 +99,10 @@ cc_library( "src/v8/v8.cc", ], hdrs = ["include/proxy-wasm/v8.h"], - defines = ["PROXY_WASM_HAS_RUNTIME_V8"], + defines = [ + "PROXY_WASM_HAS_RUNTIME_V8", + "PROXY_WASM_HOST_ENGINE_V8", + ], deps = [ ":wasm_vm_headers", "//external:wee8", @@ -111,7 +117,10 @@ cc_library( "src/wamr/wamr.cc", ], hdrs = ["include/proxy-wasm/wamr.h"], - defines = ["PROXY_WASM_HAS_RUNTIME_WAMR"], + defines = [ + "PROXY_WASM_HAS_RUNTIME_WAMR", + "PROXY_WASM_HOST_ENGINE_WAMR", + ], deps = [ ":wasm_vm_headers", "//external:wamr", @@ -126,7 +135,10 @@ cc_library( "src/wasmtime/wasmtime.cc", ], hdrs = ["include/proxy-wasm/wasmtime.h"], - defines = ["PROXY_WASM_HAS_RUNTIME_WASMTIME"], + defines = [ + "PROXY_WASM_HAS_RUNTIME_WASMTIME", + "PROXY_WASM_HOST_ENGINE_WASMTIME", + ], deps = [ ":wasm_vm_headers", "//external:wasmtime", @@ -144,7 +156,10 @@ cc_library( "-Wno-non-virtual-dtor", "-Wno-old-style-cast", ], - defines = ["PROXY_WASM_HAS_RUNTIME_WAVM"], + defines = [ + "PROXY_WASM_HAS_RUNTIME_WAVM", + "PROXY_WASM_HOST_ENGINE_WAVM", + ], deps = [ ":wasm_vm_headers", "//external:wavm", @@ -156,13 +171,13 @@ cc_library( deps = [ ":base_lib", ":null_lib", - ] + proxy_wasm_select_runtime_v8( + ] + proxy_wasm_select_engine_v8( [":v8_lib"], - ) + proxy_wasm_select_runtime_wamr( + ) + proxy_wasm_select_engine_wamr( [":wamr_lib"], - ) + proxy_wasm_select_runtime_wasmtime( + ) + proxy_wasm_select_engine_wasmtime( [":wasmtime_lib"], - ) + proxy_wasm_select_runtime_wavm( + ) + proxy_wasm_select_engine_wavm( [":wavm_lib"], ), ) diff --git a/bazel/BUILD b/bazel/BUILD index e0214a55f..cb2420582 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -1,23 +1,23 @@ load("@bazel_skylib//lib:selects.bzl", "selects") config_setting( - name = "runtime_v8", - values = {"define": "runtime=v8"}, + name = "engine_v8", + values = {"define": "engine=v8"}, ) config_setting( - name = "runtime_wamr", - values = {"define": "runtime=wamr"}, + name = "engine_wamr", + values = {"define": "engine=wamr"}, ) config_setting( - name = "runtime_wasmtime", - values = {"define": "runtime=wasmtime"}, + name = "engine_wasmtime", + values = {"define": "engine=wasmtime"}, ) config_setting( - name = "runtime_wavm", - values = {"define": "runtime=wavm"}, + name = "engine_wavm", + values = {"define": "engine=wavm"}, ) config_setting( diff --git a/bazel/select.bzl b/bazel/select.bzl index 7d4a305a3..feff9ab81 100644 --- a/bazel/select.bzl +++ b/bazel/select.bzl @@ -12,26 +12,26 @@ # See the License for the specific language governing permissions and # limitations under the License. -def proxy_wasm_select_runtime_v8(xs): +def proxy_wasm_select_engine_v8(xs): return select({ - "@proxy_wasm_cpp_host//bazel:runtime_v8": xs, + "@proxy_wasm_cpp_host//bazel:engine_v8": xs, "//conditions:default": [], }) -def proxy_wasm_select_runtime_wamr(xs): +def proxy_wasm_select_engine_wamr(xs): return select({ - "@proxy_wasm_cpp_host//bazel:runtime_wamr": xs, + "@proxy_wasm_cpp_host//bazel:engine_wamr": xs, "//conditions:default": [], }) -def proxy_wasm_select_runtime_wasmtime(xs): +def proxy_wasm_select_engine_wasmtime(xs): return select({ - "@proxy_wasm_cpp_host//bazel:runtime_wasmtime": xs, + "@proxy_wasm_cpp_host//bazel:engine_wasmtime": xs, "//conditions:default": [], }) -def proxy_wasm_select_runtime_wavm(xs): +def proxy_wasm_select_engine_wavm(xs): return select({ - "@proxy_wasm_cpp_host//bazel:runtime_wavm": xs, + "@proxy_wasm_cpp_host//bazel:engine_wavm": xs, "//conditions:default": [], }) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 7f66cdbfa..578efd6e5 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -49,10 +49,10 @@ class WasmVm; */ struct PluginBase { PluginBase(std::string_view name, std::string_view root_id, std::string_view vm_id, - std::string_view runtime, std::string_view plugin_configuration, bool fail_open, + std::string_view engine, std::string_view plugin_configuration, bool fail_open, std::string_view key) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), - runtime_(std::string(runtime)), plugin_configuration_(plugin_configuration), + engine_(std::string(engine)), plugin_configuration_(plugin_configuration), fail_open_(fail_open), key_(root_id_ + "||" + plugin_configuration_ + "||" + std::string(key)), log_prefix_(makeLogPrefix()) {} @@ -60,7 +60,7 @@ struct PluginBase { const std::string name_; const std::string root_id_; const std::string vm_id_; - const std::string runtime_; + const std::string engine_; const std::string plugin_configuration_; const bool fail_open_; diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index 27e371389..4b9be47db 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -32,7 +32,7 @@ struct NullVm : public WasmVm { NullVm(const NullVm &other) : plugin_name_(other.plugin_name_) {} // WasmVm - std::string_view runtime() override { return "null"; } + std::string_view getEngineName() override { return "null"; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(std::string_view bytecode, std::string_view precompiled, diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index ff99129cd..9e0e5a815 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -180,10 +180,10 @@ class WasmVm { public: virtual ~WasmVm() = default; /** - * Identify the Wasm runtime. - * @return the name of the underlying Wasm runtime. + * Identify the Wasm engine. + * @return the name of the underlying Wasm engine. */ - virtual std::string_view runtime() = 0; + virtual std::string_view getEngineName() = 0; /** * Whether or not the VM implementation supports cloning. Cloning is VM system dependent. diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 1c0ae6932..62c5c0fa3 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -60,7 +60,7 @@ class V8 : public WasmVm { V8() {} // WasmVm - std::string_view runtime() override { return "v8"; } + std::string_view getEngineName() override { return "v8"; } bool load(std::string_view bytecode, std::string_view precompiled, const std::unordered_map function_names) override; diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 513978aa3..494c3f29c 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -55,7 +55,7 @@ class Wamr : public WasmVm { public: Wamr() {} - std::string_view runtime() override { return "wamr"; } + std::string_view getEngineName() override { return "wamr"; } std::string_view getPrecompiledSectionName() override { return ""; } Cloneable cloneable() override { return Cloneable::NotCloneable; } diff --git a/src/wasm.cc b/src/wasm.cc index 87a53ef54..d7dfd1006 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -231,7 +231,7 @@ bool WasmBase::load(const std::string &code, bool allow_precompiled) { return false; } - if (wasm_vm_->runtime() == "null") { + if (wasm_vm_->getEngineName() == "null") { auto ok = wasm_vm_->load(code, {}, {}); if (!ok) { fail(FailState::UnableToInitializeCode, "Failed to load NullVM plugin"); @@ -292,7 +292,7 @@ bool WasmBase::load(const std::string &code, bool allow_precompiled) { return false; } - // Store for future use in non-cloneable runtimes. + // Store for future use in non-cloneable Wasm engines. if (wasm_vm_->cloneable() == Cloneable::NotCloneable) { module_bytecode_ = stripped; module_precompiled_ = precompiled; diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 7a9976735..a57f778b3 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -52,7 +52,7 @@ class Wasmtime : public WasmVm { public: Wasmtime() {} - std::string_view runtime() override { return "wasmtime"; } + std::string_view getEngineName() override { return "wasmtime"; } Cloneable cloneable() override { return Cloneable::CompiledBytecode; } std::string_view getPrecompiledSectionName() override { return ""; } diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index c0ad6aa2c..5704b7b83 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -203,7 +203,7 @@ struct Wavm : public WasmVm { ~Wavm() override; // WasmVm - std::string_view runtime() override { return "wavm"; } + std::string_view getEngineName() override { return "wavm"; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(std::string_view bytecode, std::string_view precompiled, diff --git a/test/exports_test.cc b/test/exports_test.cc index cced56291..2d7fadea3 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -30,9 +30,9 @@ namespace proxy_wasm { namespace { -auto test_values = testing::ValuesIn(getRuntimes()); +auto test_values = testing::ValuesIn(getWasmEngines()); -INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, test_values); class TestContext : public ContextBase { public: diff --git a/test/null_vm_test.cc b/test/null_vm_test.cc index eeae92698..5d806e9e5 100644 --- a/test/null_vm_test.cc +++ b/test/null_vm_test.cc @@ -64,7 +64,7 @@ class BaseVmTest : public testing::Test { TEST_F(BaseVmTest, NullVmStartup) { auto wasm_vm = createNullVm(); EXPECT_TRUE(wasm_vm != nullptr); - EXPECT_TRUE(wasm_vm->runtime() == "null"); + EXPECT_TRUE(wasm_vm->getEngineName() == "null"); EXPECT_TRUE(wasm_vm->cloneable() == Cloneable::InstantiatedModule); auto wasm_vm_clone = wasm_vm->clone(); EXPECT_TRUE(wasm_vm_clone != nullptr); diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 9a8ac1202..8eb5c0617 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -29,21 +29,21 @@ namespace proxy_wasm { namespace { -auto test_values = testing::ValuesIn(getRuntimes()); +auto test_values = testing::ValuesIn(getWasmEngines()); -INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, test_values); TEST_P(TestVM, Basic) { - if (runtime_ == "wamr") { + if (engine_ == "wamr") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); - } else if (runtime_ == "wasmtime" || runtime_ == "v8") { + } else if (engine_ == "wasmtime" || engine_ == "v8") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); - } else if (runtime_ == "wavm") { + } else if (engine_ == "wavm") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::InstantiatedModule); } else { FAIL(); } - EXPECT_EQ(vm_->runtime(), runtime_); + EXPECT_EQ(vm_->getEngineName(), engine_); } TEST_P(TestVM, Memory) { @@ -97,7 +97,7 @@ TEST_P(TestVM, CloneUntilOutOfMemory) { if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { return; } - if (runtime_ == "wavm") { + if (engine_ == "wavm") { // TODO(PiotrSikora): Figure out why this fails on the CI. return; } @@ -142,7 +142,7 @@ void callback() { Word callback2(Word val) { return val + 100; } TEST_P(TestVM, StraceLogLevel) { - if (runtime_ == "wavm") { + if (engine_ == "wavm") { // TODO(mathetake): strace is yet to be implemented for WAVM. // See https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/120. return; @@ -245,7 +245,7 @@ TEST_P(TestVM, Trap) { } TEST_P(TestVM, Trap2) { - if (runtime_ == "wavm") { + if (engine_ == "wavm") { // TODO(mathetake): Somehow WAVM exits with 'munmap_chunk(): invalid pointer' on unidentified // build condition in 'libstdc++ abi::__cxa_demangle' originally from // WAVM::Runtime::describeCallStack. Needs further investigation. diff --git a/test/utility.cc b/test/utility.cc index e833f22e5..64fe38311 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -16,24 +16,24 @@ namespace proxy_wasm { -std::vector getRuntimes() { - std::vector runtimes = { -#if defined(PROXY_WASM_HAS_RUNTIME_V8) +std::vector getWasmEngines() { + std::vector engines = { +#if defined(PROXY_WASM_HOST_ENGINE_V8) "v8", #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WAVM) +#if defined(PROXY_WASM_HOST_ENGINE_WAVM) "wavm", #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WASMTIME) +#if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) "wasmtime", #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WAMR) +#if defined(PROXY_WASM_HOST_ENGINE_WAMR) "wamr", #endif "" }; - runtimes.pop_back(); - return runtimes; + engines.pop_back(); + return engines; } std::string readTestWasmFile(std::string filename) { diff --git a/test/utility.h b/test/utility.h index 9d1fb66d9..73abdfdb3 100644 --- a/test/utility.h +++ b/test/utility.h @@ -23,22 +23,22 @@ #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm.h" -#if defined(PROXY_WASM_HAS_RUNTIME_V8) +#if defined(PROXY_WASM_HOST_ENGINE_V8) #include "include/proxy-wasm/v8.h" #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WAVM) +#if defined(PROXY_WASM_HOST_ENGINE_WAVM) #include "include/proxy-wasm/wavm.h" #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WASMTIME) +#if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) #include "include/proxy-wasm/wasmtime.h" #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WAMR) +#if defined(PROXY_WASM_HOST_ENGINE_WAMR) #include "include/proxy-wasm/wamr.h" #endif namespace proxy_wasm { -std::vector getRuntimes(); +std::vector getWasmEngines(); std::string readTestWasmFile(std::string filename); struct DummyIntegration : public WasmVmIntegration { @@ -68,38 +68,39 @@ class TestVM : public testing::TestWithParam { std::unique_ptr vm_; TestVM() { - runtime_ = GetParam(); + engine_ = GetParam(); vm_ = newVm(); } std::unique_ptr newVm() { std::unique_ptr vm; - if (runtime_ == "") { - EXPECT_TRUE(false) << "runtime must not be empty"; -#if defined(PROXY_WASM_HAS_RUNTIME_V8) - } else if (runtime_ == "v8") { + if (engine_ == "") { + EXPECT_TRUE(false) << "engine must not be empty"; +#if defined(PROXY_WASM_HOST_ENGINE_V8) + } else if (engine_ == "v8") { vm = proxy_wasm::createV8Vm(); #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WAVM) - } else if (runtime_ == "wavm") { +#if defined(PROXY_WASM_HOST_ENGINE_WAVM) + } else if (engine_ == "wavm") { vm = proxy_wasm::createWavmVm(); #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WASMTIME) - } else if (runtime_ == "wasmtime") { +#if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) + } else if (engine_ == "wasmtime") { vm = proxy_wasm::createWasmtimeVm(); #endif -#if defined(PROXY_WASM_HAS_RUNTIME_WAMR) - } else if (runtime_ == "wamr") { +#if defined(PROXY_WASM_HOST_ENGINE_WAMR) + } else if (engine_ == "wamr") { vm = proxy_wasm::createWamrVm(); #endif } else { - EXPECT_TRUE(false) << "compiled without support for the requested \"" << runtime_ - << "\" runtime"; + EXPECT_TRUE(false) << "compiled without support for the requested \"" << engine_ + << "\" engine"; } vm->integration().reset(new DummyIntegration{}); return vm; }; - std::string runtime_; + std::string engine_; }; + } // namespace proxy_wasm diff --git a/test/wasm_test.cc b/test/wasm_test.cc index 5bd9011f6..2d76b82eb 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -20,11 +20,11 @@ namespace proxy_wasm { -auto test_values = testing::ValuesIn(getRuntimes()); +auto test_values = testing::ValuesIn(getWasmEngines()); -INSTANTIATE_TEST_SUITE_P(Runtimes, TestVM, test_values); +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, test_values); -// Failcallbacks only used for runtimes - not available for nullvm. +// Fail callbacks only used for WasmVMs - not available for NullVM. TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { const auto plugin_name = "plugin_name"; const auto root_id = "root_id"; @@ -34,7 +34,7 @@ TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { const auto fail_open = false; // Create a plugin. - const auto plugin = std::make_shared(plugin_name, root_id, vm_id, runtime_, + const auto plugin = std::make_shared(plugin_name, root_id, vm_id, engine_, plugin_config, fail_open, "plugin_key"); // Define callbacks. @@ -100,7 +100,7 @@ TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { // This time, create another thread local plugin with *different* plugin key for the same vm_key. // This one also should not end up using the failed VM. - const auto plugin2 = std::make_shared(plugin_name, root_id, vm_id, runtime_, + const auto plugin2 = std::make_shared(plugin_name, root_id, vm_id, engine_, plugin_config, fail_open, "another_plugin_key"); auto thread_local_plugin3 = getOrCreateThreadLocalPlugin( base_wasm_handle, plugin2, wasm_handle_clone_factory, plugin_handle_factory); From d9a93715c0532d5643ccc7717c5d753fa89386f7 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 17 Feb 2022 01:31:02 -0600 Subject: [PATCH 175/287] Introduce multi-engine franken-build. (#258) This is intended for benchmarks and development, not for production. Fixes proxy-wasm/proxy-wasm-cpp-host#139. Signed-off-by: Piotr Sikora --- BUILD | 42 ++++++++++++++++++++++++++---- bazel/BUILD | 5 ++++ bazel/external/v8.patch | 24 ++++++++++++++++-- bazel/external/wasm-c-api.BUILD | 45 +++++++++++++++++++++++++++++++++ bazel/repositories.bzl | 5 ++++ bazel/select.bzl | 4 +++ src/wasmtime/wasmtime.cc | 1 - 7 files changed, 118 insertions(+), 8 deletions(-) diff --git a/BUILD b/BUILD index 5beba11c1..98270aa5a 100644 --- a/BUILD +++ b/BUILD @@ -127,13 +127,39 @@ cc_library( ], ) -cc_library( - name = "wasmtime_lib", +genrule( + name = "prefixed_wasmtime_sources", srcs = [ - "src/common/types.h", "src/wasmtime/types.h", "src/wasmtime/wasmtime.cc", ], + outs = [ + "src/wasmtime/prefixed_types.h", + "src/wasmtime/prefixed_wasmtime.cc", + ], + cmd = """ + for file in $(SRCS); do + sed -e 's/wasm_/wasmtime_wasm_/g' \ + -e 's/wasmtime\\/types.h/wasmtime\\/prefixed_types.h/g' \ + $$file >$(@D)/$$(dirname $$file)/prefixed_$$(basename $$file) + done + """, +) + +cc_library( + name = "wasmtime_lib", + srcs = [ + "src/common/types.h", + ] + select({ + "@proxy_wasm_cpp_host//bazel:multiengine": [ + "src/wasmtime/prefixed_types.h", + "src/wasmtime/prefixed_wasmtime.cc", + ], + "//conditions:default": [ + "src/wasmtime/types.h", + "src/wasmtime/wasmtime.cc", + ], + }), hdrs = ["include/proxy-wasm/wasmtime.h"], defines = [ "PROXY_WASM_HAS_RUNTIME_WASMTIME", @@ -141,8 +167,14 @@ cc_library( ], deps = [ ":wasm_vm_headers", - "//external:wasmtime", - ], + ] + select({ + "@proxy_wasm_cpp_host//bazel:multiengine": [ + "//external:prefixed_wasmtime", + ], + "//conditions:default": [ + "//external:wasmtime", + ], + }), ) cc_library( diff --git a/bazel/BUILD b/bazel/BUILD index cb2420582..2a2f41af5 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -20,6 +20,11 @@ config_setting( values = {"define": "engine=wavm"}, ) +config_setting( + name = "multiengine", + values = {"define": "engine=multi"}, +) + config_setting( name = "requested_crypto_system", values = {"define": "crypto=system"}, diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index b13fad255..52af7b6ad 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,7 +1,8 @@ -# Disable pointer compression (limits the maximum number of WasmVMs). +# 1. Disable pointer compression (limits the maximum number of WasmVMs). +# 2. Don't expose Wasm C API (only Wasm C++ API). diff --git a/BUILD.bazel b/BUILD.bazel -index 1cc0121e60..4947c1dba2 100644 +index 5fb10d3940..a19930d36e 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -161,7 +161,7 @@ v8_int( @@ -13,3 +14,22 @@ index 1cc0121e60..4947c1dba2 100644 ) # Default setting for v8_enable_pointer_compression. +diff --git a/src/wasm/c-api.cc b/src/wasm/c-api.cc +index ce3f569fd5..dc8a4c4f6a 100644 +--- a/src/wasm/c-api.cc ++++ b/src/wasm/c-api.cc +@@ -2238,6 +2238,8 @@ auto Instance::exports() const -> ownvec { + + } // namespace wasm + ++#if 0 ++ + // BEGIN FILE wasm-c.cc + + extern "C" { +@@ -3257,3 +3259,5 @@ wasm_instance_t* wasm_frame_instance(const wasm_frame_t* frame) { + #undef WASM_DEFINE_SHARABLE_REF + + } // extern "C" ++ ++#endif diff --git a/bazel/external/wasm-c-api.BUILD b/bazel/external/wasm-c-api.BUILD index 5d4be94f5..e8fc1862c 100644 --- a/bazel/external/wasm-c-api.BUILD +++ b/bazel/external/wasm-c-api.BUILD @@ -14,3 +14,48 @@ cc_library( "@com_github_bytecodealliance_wasmtime//:rust_c_api", ], ) + +genrule( + name = "prefixed_wasmtime_c_api_headers", + srcs = [ + "include/wasm.h", + ], + outs = [ + "wasmtime/include/wasm.h", + ], + cmd = """ + sed -e 's/\\ wasm_/\\ wasmtime_wasm_/g' \ + -e 's/\\*wasm_/\\*wasmtime_wasm_/g' \ + -e 's/(wasm_/(wasmtime_wasm_/g' \ + $(<) >$@ + """, +) + +genrule( + name = "prefixed_wasmtime_c_api_lib", + srcs = [ + "@com_github_bytecodealliance_wasmtime//:rust_c_api", + ], + outs = [ + "prefixed_wasmtime_c_api.a", + ], + cmd = """ + for symbol in $$(nm -P $(<) 2>/dev/null | grep -E ^_?wasm_ | cut -d" " -f1); do + echo $$symbol | sed -r 's/^(_?)(wasm_[a-z_]+)$$/\\1\\2 \\1wasmtime_\\2/' >>prefixed + done + # This should be OBJCOPY, but bazel-zig-cc doesn't define it. + objcopy --redefine-syms=prefixed $(<) $@ + """, + toolchains = ["@bazel_tools//tools/cpp:current_cc_toolchain"], +) + +cc_library( + name = "prefixed_wasmtime_lib", + srcs = [ + ":prefixed_wasmtime_c_api_lib", + ], + hdrs = [ + ":prefixed_wasmtime_c_api_headers", + ], + linkstatic = 1, +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 057c65fb7..30f35f895 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -192,6 +192,11 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_github_webassembly_wasm_c_api//:wasmtime_lib", ) + native.bind( + name = "prefixed_wasmtime", + actual = "@com_github_webassembly_wasm_c_api//:prefixed_wasmtime_lib", + ) + # WAVM with dependencies. maybe( diff --git a/bazel/select.bzl b/bazel/select.bzl index feff9ab81..578acf8db 100644 --- a/bazel/select.bzl +++ b/bazel/select.bzl @@ -15,23 +15,27 @@ def proxy_wasm_select_engine_v8(xs): return select({ "@proxy_wasm_cpp_host//bazel:engine_v8": xs, + "@proxy_wasm_cpp_host//bazel:multiengine": xs, "//conditions:default": [], }) def proxy_wasm_select_engine_wamr(xs): return select({ "@proxy_wasm_cpp_host//bazel:engine_wamr": xs, + "@proxy_wasm_cpp_host//bazel:multiengine": xs, "//conditions:default": [], }) def proxy_wasm_select_engine_wasmtime(xs): return select({ "@proxy_wasm_cpp_host//bazel:engine_wasmtime": xs, + "@proxy_wasm_cpp_host//bazel:multiengine": xs, "//conditions:default": [], }) def proxy_wasm_select_engine_wavm(xs): return select({ "@proxy_wasm_cpp_host//bazel:engine_wavm": xs, + "@proxy_wasm_cpp_host//bazel:multiengine": xs, "//conditions:default": [], }) diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index a57f778b3..b8bba1e1e 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -24,7 +24,6 @@ #include #include -#include "include/proxy-wasm/wasm_vm.h" #include "src/wasmtime/types.h" #include "wasmtime/include/wasm.h" From a05b5b69362b2df98bc9e66c3cd0d633c5c01fa3 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 17 Feb 2022 01:32:03 -0600 Subject: [PATCH 176/287] test: print Wasm engine names in test logs. (#254) While there, sort them alphabetically. Signed-off-by: Piotr Sikora --- test/exports_test.cc | 7 ++++--- test/runtime_test.cc | 7 ++++--- test/utility.cc | 8 ++++---- test/wasm_test.cc | 7 ++++--- 4 files changed, 16 insertions(+), 13 deletions(-) diff --git a/test/exports_test.cc b/test/exports_test.cc index 2d7fadea3..223d2b80c 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -30,9 +30,10 @@ namespace proxy_wasm { namespace { -auto test_values = testing::ValuesIn(getWasmEngines()); - -INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, test_values); +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines()), + [](const testing::TestParamInfo &info) { + return info.param; + }); class TestContext : public ContextBase { public: diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 8eb5c0617..7db6f0873 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -29,9 +29,10 @@ namespace proxy_wasm { namespace { -auto test_values = testing::ValuesIn(getWasmEngines()); - -INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, test_values); +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines()), + [](const testing::TestParamInfo &info) { + return info.param; + }); TEST_P(TestVM, Basic) { if (engine_ == "wamr") { diff --git a/test/utility.cc b/test/utility.cc index 64fe38311..82fa1036f 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -21,14 +21,14 @@ std::vector getWasmEngines() { #if defined(PROXY_WASM_HOST_ENGINE_V8) "v8", #endif -#if defined(PROXY_WASM_HOST_ENGINE_WAVM) - "wavm", +#if defined(PROXY_WASM_HOST_ENGINE_WAMR) + "wamr", #endif #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) "wasmtime", #endif -#if defined(PROXY_WASM_HOST_ENGINE_WAMR) - "wamr", +#if defined(PROXY_WASM_HOST_ENGINE_WAVM) + "wavm", #endif "" }; diff --git a/test/wasm_test.cc b/test/wasm_test.cc index 2d76b82eb..dd213bdea 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -20,9 +20,10 @@ namespace proxy_wasm { -auto test_values = testing::ValuesIn(getWasmEngines()); - -INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, test_values); +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines()), + [](const testing::TestParamInfo &info) { + return info.param; + }); // Fail callbacks only used for WasmVMs - not available for NullVM. TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { From 355b26e8366dc5f7df0a63a3ab66aa6c472a7e63 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 17 Feb 2022 01:55:46 -0600 Subject: [PATCH 177/287] nullvm: don't enable NullVM by default. (#251) Signed-off-by: Piotr Sikora --- .github/workflows/cpp.yml | 7 +++++++ BUILD | 6 ++++-- bazel/BUILD | 5 +++++ bazel/dependencies.bzl | 8 +++++--- bazel/repositories.bzl | 20 ++++++++++++-------- bazel/select.bzl | 7 +++++++ test/BUILD | 3 ++- 7 files changed, 42 insertions(+), 14 deletions(-) diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index b20ea0dcd..7bc959623 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -117,6 +117,12 @@ jobs: fail-fast: false matrix: include: + - name: 'NullVM on Linux/x86_64' + engine: 'null' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=gcc - name: 'V8 on Linux/x86_64' engine: 'v8' repo: 'v8' @@ -245,6 +251,7 @@ jobs: //test/... - name: Bazel build/test (signed Wasm module) + if: ${{ matrix.engine != 'null' }} run: > ${{ matrix.run_under }} bazel ${{ matrix.action }} diff --git a/BUILD b/BUILD index 98270aa5a..f1753c5f4 100644 --- a/BUILD +++ b/BUILD @@ -1,6 +1,7 @@ load("@rules_cc//cc:defs.bzl", "cc_library") load( "@proxy_wasm_cpp_host//bazel:select.bzl", + "proxy_wasm_select_engine_null", "proxy_wasm_select_engine_v8", "proxy_wasm_select_engine_wamr", "proxy_wasm_select_engine_wasmtime", @@ -202,8 +203,9 @@ cc_library( name = "lib", deps = [ ":base_lib", - ":null_lib", - ] + proxy_wasm_select_engine_v8( + ] + proxy_wasm_select_engine_null( + [":null_lib"], + ) + proxy_wasm_select_engine_v8( [":v8_lib"], ) + proxy_wasm_select_engine_wamr( [":wamr_lib"], diff --git a/bazel/BUILD b/bazel/BUILD index 2a2f41af5..78cd55313 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -1,5 +1,10 @@ load("@bazel_skylib//lib:selects.bzl", "selects") +config_setting( + name = "engine_null", + values = {"define": "engine=null"}, +) + config_setting( name = "engine_v8", values = {"define": "engine=v8"}, diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 811c3fb9f..553352e31 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -57,12 +57,14 @@ def proxy_wasm_cpp_host_dependencies(): }, ) - # Core dependencies. - - protobuf_deps() + # Test dependencies. wasmsign_fetch_remote_crates() + # NullVM dependencies. + + protobuf_deps() + # V8 dependencies. pip_install( diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 30f35f895..1d385d609 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -75,6 +75,16 @@ def proxy_wasm_cpp_host_repositories(): urls = ["https://github.com/google/boringssl/archive/eaa29f431f71b8121e1da76bcd3ddc2248238ade.tar.gz"], ) + maybe( + http_archive, + name = "proxy_wasm_cpp_sdk", + sha256 = "c57de2425b5c61d7f630c5061e319b4557ae1f1c7526e5a51c33dc1299471b08", + strip_prefix = "proxy-wasm-cpp-sdk-fd0be8405db25de0264bdb78fae3a82668c03782", + urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/fd0be8405db25de0264bdb78fae3a82668c03782.tar.gz"], + ) + + # Test dependencies. + maybe( http_archive, name = "com_google_googletest", @@ -83,6 +93,8 @@ def proxy_wasm_cpp_host_repositories(): urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], ) + # NullVM dependencies. + maybe( http_archive, name = "com_google_protobuf", @@ -91,14 +103,6 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/protocolbuffers/protobuf/releases/download/v3.17.3/protobuf-all-3.17.3.tar.gz", ) - maybe( - http_archive, - name = "proxy_wasm_cpp_sdk", - sha256 = "c57de2425b5c61d7f630c5061e319b4557ae1f1c7526e5a51c33dc1299471b08", - strip_prefix = "proxy-wasm-cpp-sdk-fd0be8405db25de0264bdb78fae3a82668c03782", - urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/fd0be8405db25de0264bdb78fae3a82668c03782.tar.gz"], - ) - # V8 with dependencies. maybe( diff --git a/bazel/select.bzl b/bazel/select.bzl index 578acf8db..4fecfcf2e 100644 --- a/bazel/select.bzl +++ b/bazel/select.bzl @@ -12,6 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. +def proxy_wasm_select_engine_null(xs): + return select({ + "@proxy_wasm_cpp_host//bazel:engine_null": xs, + "@proxy_wasm_cpp_host//bazel:multiengine": xs, + "//conditions:default": [], + }) + def proxy_wasm_select_engine_v8(xs): return select({ "@proxy_wasm_cpp_host//bazel:engine_v8": xs, diff --git a/test/BUILD b/test/BUILD index 6f54f6b10..756a14ac6 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,3 +1,4 @@ +load("@proxy_wasm_cpp_host//bazel:select.bzl", "proxy_wasm_select_engine_null") load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") licenses(["notice"]) # Apache 2 @@ -6,7 +7,7 @@ package(default_visibility = ["//visibility:public"]) cc_test( name = "null_vm_test", - srcs = ["null_vm_test.cc"], + srcs = proxy_wasm_select_engine_null(["null_vm_test.cc"]), linkstatic = 1, deps = [ "//:lib", From d75bfa414832690244306abb4179ca467c10ae55 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 17 Feb 2022 01:56:40 -0600 Subject: [PATCH 178/287] v8: add missing namespace. (#253) Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 62c5c0fa3..c2b6ff669 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -30,14 +30,14 @@ #include "wasm-api/wasm.hh" namespace proxy_wasm { -namespace { +namespace v8 { wasm::Engine *engine() { static std::once_flag init; static wasm::own engine; std::call_once(init, []() { - v8::V8::EnableWebAssemblyTrapHandler(true); + ::v8::V8::EnableWebAssemblyTrapHandler(true); engine = wasm::Engine::make(); }); @@ -688,8 +688,8 @@ std::string V8::getFailMessage(std::string_view function_name, wasm::own createV8Vm() { return std::make_unique(); } +std::unique_ptr createV8Vm() { return std::make_unique(); } } // namespace proxy_wasm From ca2475f0530f024c96f9a6914cdc6636ea2151a5 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 18 Feb 2022 00:06:01 -0600 Subject: [PATCH 179/287] Fix build on Windows. (#260) Signed-off-by: Piotr Sikora --- .bazelrc | 4 ++-- .github/workflows/cpp.yml | 16 +++++++++++----- include/proxy-wasm/exports.h | 6 +++--- include/proxy-wasm/word.h | 15 ++++++++++----- src/exports.cc | 10 +++++----- src/signature_util.cc | 2 +- src/v8/v8.cc | 4 ++-- src/wamr/wamr.cc | 4 ++-- src/wasmtime/wasmtime.cc | 4 ++-- src/wavm/wavm.cc | 4 ++-- test/runtime_test.cc | 2 +- 11 files changed, 41 insertions(+), 30 deletions(-) diff --git a/.bazelrc b/.bazelrc index e363d6f90..f8c0c4240 100644 --- a/.bazelrc +++ b/.bazelrc @@ -35,7 +35,7 @@ build:linux --linkopt=-ldl build:macos --cxxopt=-std=c++17 -# TODO(mathetake): Windows build is not verified yet. -# build:windows --cxxopt="/std:c++17" +build:windows --enable_runfiles +build:windows --cxxopt="/std:c++17" # See https://bytecodealliance.github.io/wasmtime/c-api/ # build:windows --linkopt="ws2_32.lib advapi32.lib userenv.lib ntdll.lib shell32.lib ole32.lib" diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 7bc959623..449bde919 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -123,6 +123,11 @@ jobs: arch: x86_64 action: test flags: --config=gcc + - name: 'NullVM on Windows/x86_64' + engine: 'null' + os: windows-2019 + arch: x86_64 + action: test - name: 'V8 on Linux/x86_64' engine: 'v8' repo: 'v8' @@ -233,11 +238,12 @@ jobs: path: test/test_data/ - name: Mangle build rules to use existing test data - run: > - sed 's/\.wasm//g' test/BUILD > test/BUILD.tmp && mv test/BUILD.tmp test/BUILD; - echo "package(default_visibility = [\"//visibility:public\"])" > test/test_data/BUILD; - for i in $(cd test/test_data && ls -1 *.wasm | sed 's/\.wasm$//g'); - do echo "filegroup(name = \"$i\", srcs = [\"$i.wasm\"])" >> test/test_data/BUILD; + shell: bash + run: | + sed 's/\.wasm//g' test/BUILD > test/BUILD.tmp && mv test/BUILD.tmp test/BUILD + echo "package(default_visibility = [\"//visibility:public\"])" > test/test_data/BUILD + for i in $(cd test/test_data && ls -1 *.wasm | sed 's/\.wasm$//g'); do \ + echo "filegroup(name = \"$i\", srcs = [\"$i.wasm\"])" >> test/test_data/BUILD; \ done - name: Bazel build/test diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 7fe8a4c57..8d823fedb 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -74,12 +74,12 @@ template size_t pairsSize(const Pairs &result) { template void marshalPairs(const Pairs &result, char *buffer) { char *b = buffer; - *reinterpret_cast(b) = htole32(result.size()); + *reinterpret_cast(b) = htowasm(result.size()); b += sizeof(uint32_t); for (auto &p : result) { - *reinterpret_cast(b) = htole32(p.first.size()); + *reinterpret_cast(b) = htowasm(p.first.size()); b += sizeof(uint32_t); - *reinterpret_cast(b) = htole32(p.second.size()); + *reinterpret_cast(b) = htowasm(p.second.size()); b += sizeof(uint32_t); } for (auto &p : result) { diff --git a/include/proxy-wasm/word.h b/include/proxy-wasm/word.h index 549968342..559471eb8 100644 --- a/include/proxy-wasm/word.h +++ b/include/proxy-wasm/word.h @@ -17,15 +17,20 @@ #include -#ifdef __APPLE__ -#define htole32(x) (x) -#define le32toh(x) (x) -#endif - namespace proxy_wasm { #include "proxy_wasm_common.h" +// Use byteswap functions only when compiling for big-endian platforms. +#if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \ + __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ +#define htowasm(x) __builtin_bswap32(x) +#define wasmtoh(x) __builtin_bswap32(x) +#else +#define htowasm(x) (x) +#define wasmtoh(x) (x) +#endif + // Represents a Wasm-native word-sized datum. On 32-bit VMs, the high bits are always zero. // The Wasm/VM API treats all bits as significant. struct Word { diff --git a/src/exports.cc b/src/exports.cc index 3e4f2622f..a63e09159 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -64,16 +64,16 @@ Pairs toPairs(std::string_view buffer) { if (buffer.size() < sizeof(uint32_t)) { return {}; } - auto size = le32toh(*reinterpret_cast(b)); + auto size = wasmtoh(*reinterpret_cast(b)); b += sizeof(uint32_t); if (sizeof(uint32_t) + size * 2 * sizeof(uint32_t) > buffer.size()) { return {}; } result.resize(size); for (uint32_t i = 0; i < size; i++) { - result[i].first = std::string_view(nullptr, le32toh(*reinterpret_cast(b))); + result[i].first = std::string_view(nullptr, wasmtoh(*reinterpret_cast(b))); b += sizeof(uint32_t); - result[i].second = std::string_view(nullptr, le32toh(*reinterpret_cast(b))); + result[i].second = std::string_view(nullptr, wasmtoh(*reinterpret_cast(b))); b += sizeof(uint32_t); } for (auto &p : result) { @@ -712,8 +712,8 @@ Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { } const uint32_t *iovec = reinterpret_cast(memslice.value().data()); if (iovec[1] /* buf_len */) { - memslice = context->wasmVm()->getMemory(le32toh(iovec[0]) /* buf */, - le32toh(iovec[1]) /* buf_len */); + memslice = context->wasmVm()->getMemory(wasmtoh(iovec[0]) /* buf */, + wasmtoh(iovec[1]) /* buf_len */); if (!memslice) { return 21; // __WASI_EFAULT } diff --git a/src/signature_util.cc b/src/signature_util.cc index 9163c4661..2e63ebeb0 100644 --- a/src/signature_util.cc +++ b/src/signature_util.cc @@ -85,7 +85,7 @@ bool SignatureUtil::verifySignature(std::string_view bytecode, std::string &mess uint32_t alg_id; std::memcpy(&alg_id, payload.data(), sizeof(uint32_t)); - alg_id = le32toh(alg_id); + alg_id = wasmtoh(alg_id); if (alg_id != 2) { message = "Signature has a wrong alg_id (want: 2, is: " + std::to_string(alg_id) + ")"; diff --git a/src/v8/v8.cc b/src/v8/v8.cc index c2b6ff669..9a0f19559 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -475,7 +475,7 @@ bool V8::getWord(uint64_t pointer, Word *word) { } uint32_t word32; ::memcpy(&word32, memory_->data() + pointer, size); - word->u64_ = le32toh(word32); + word->u64_ = wasmtoh(word32); return true; } @@ -484,7 +484,7 @@ bool V8::setWord(uint64_t pointer, Word word) { if (pointer + size > memory_->data_size()) { return false; } - uint32_t word32 = htole32(word.u32()); + uint32_t word32 = htowasm(word.u32()); ::memcpy(memory_->data() + pointer, &word32, size); return true; } diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 494c3f29c..ae5cfc2f8 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -365,7 +365,7 @@ bool Wamr::getWord(uint64_t pointer, Word *word) { uint32_t word32; ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); - word->u64_ = le32toh(word32); + word->u64_ = wasmtoh(word32); return true; } @@ -374,7 +374,7 @@ bool Wamr::setWord(uint64_t pointer, Word word) { if (pointer + size > wasm_memory_data_size(memory_.get())) { return false; } - uint32_t word32 = htole32(word.u32()); + uint32_t word32 = htowasm(word.u32()); ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); return true; } diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index b8bba1e1e..b3f5dc25c 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -392,7 +392,7 @@ bool Wasmtime::getWord(uint64_t pointer, Word *word) { uint32_t word32; ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); - word->u64_ = le32toh(word32); + word->u64_ = wasmtoh(word32); return true; } @@ -401,7 +401,7 @@ bool Wasmtime::setWord(uint64_t pointer, Word word) { if (pointer + size > wasm_memory_data_size(memory_.get())) { return false; } - uint32_t word32 = htole32(word.u32()); + uint32_t word32 = htowasm(word.u32()); ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); return true; } diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 5704b7b83..6d3357de6 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -390,12 +390,12 @@ bool Wavm::getWord(uint64_t pointer, Word *data) { auto p = reinterpret_cast(memory_base_ + pointer); uint32_t data32; memcpy(&data32, p, sizeof(uint32_t)); - data->u64_ = le32toh(data32); + data->u64_ = wasmtoh(data32); return true; } bool Wavm::setWord(uint64_t pointer, Word data) { - uint32_t data32 = htole32(data.u32()); + uint32_t data32 = htowasm(data.u32()); return setMemory(pointer, sizeof(uint32_t), &data32); } diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 7db6f0873..79e672164 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -57,7 +57,7 @@ TEST_P(TestVM, Memory) { ASSERT_TRUE(vm_->getWord(0x2000, &word)); ASSERT_EQ(100, word.u64_); - uint32_t data[2] = {htole32(static_cast(-1)), htole32(200)}; + uint32_t data[2] = {htowasm(static_cast(-1)), htowasm(200)}; ASSERT_TRUE(vm_->setMemory(0x200, sizeof(int32_t) * 2, static_cast(data))); ASSERT_TRUE(vm_->getWord(0x200, &word)); ASSERT_EQ(-1, static_cast(word.u64_)); From ab637fe77c6607c8e0d9aff8460bcd831ed888a0 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 18 Feb 2022 03:27:31 -0600 Subject: [PATCH 180/287] wasmtime: fix build on Windows. (#217) Signed-off-by: Piotr Sikora --- .bazelrc | 3 ++- .github/workflows/cpp.yml | 8 +++++++- include/proxy-wasm/context.h | 24 ++---------------------- src/wasmtime/wasmtime.cc | 18 ++++++++++++++---- 4 files changed, 25 insertions(+), 28 deletions(-) diff --git a/.bazelrc b/.bazelrc index f8c0c4240..a344955a0 100644 --- a/.bazelrc +++ b/.bazelrc @@ -38,4 +38,5 @@ build:macos --cxxopt=-std=c++17 build:windows --enable_runfiles build:windows --cxxopt="/std:c++17" # See https://bytecodealliance.github.io/wasmtime/c-api/ -# build:windows --linkopt="ws2_32.lib advapi32.lib userenv.lib ntdll.lib shell32.lib ole32.lib" +build:windows --copt="/DWASM_API_EXTERN=" +build:windows --linkopt="ws2_32.lib advapi32.lib userenv.lib ntdll.lib shell32.lib ole32.lib bcrypt.lib" diff --git a/.github/workflows/cpp.yml b/.github/workflows/cpp.yml index 449bde919..c0f8e59c8 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/cpp.yml @@ -195,6 +195,12 @@ jobs: os: macos-11 arch: x86_64 action: test + - name: 'Wasmtime on Windows/x86_64' + engine: 'wasmtime' + repo: 'com_github_bytecodealliance_wasmtime' + os: windows-2019 + arch: x86_64 + action: test - name: 'WAVM on Linux/x86_64' engine: 'wavm' repo: 'com_github_wavm_wavm' @@ -257,7 +263,7 @@ jobs: //test/... - name: Bazel build/test (signed Wasm module) - if: ${{ matrix.engine != 'null' }} + if: ${{ matrix.engine != 'null' && !startsWith(matrix.os, 'windows') }} run: > ${{ matrix.run_under }} bazel ${{ matrix.action }} diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 578efd6e5..1d2c97e1c 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -239,30 +239,10 @@ class ContextBase : public RootInterface, } uint32_t getLogLevel() override { return static_cast(LogLevel::info); } uint64_t getCurrentTimeNanoseconds() override { -#if !defined(_MSC_VER) - struct timespec tpe; - clock_gettime(CLOCK_REALTIME, &tpe); - uint64_t t = tpe.tv_sec; - t *= 1000000000; - t += tpe.tv_nsec; - return t; -#else - unimplemented(); - return 0; -#endif + return std::chrono::system_clock::now().time_since_epoch().count(); } uint64_t getMonotonicTimeNanoseconds() override { -#if !defined(_MSC_VER) - struct timespec tpe; - clock_gettime(CLOCK_MONOTONIC, &tpe); - uint64_t t = tpe.tv_sec; - t *= 1000000000; - t += tpe.tv_nsec; - return t; -#else - unimplemented(); - return 0; -#endif + return std::chrono::steady_clock::now().time_since_epoch().count(); } std::string_view getConfiguration() override { unimplemented(); diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index b3f5dc25c..5825b2157 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -585,8 +585,13 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> void { - wasm_val_t params_arr[] = {makeVal(args)...}; - const wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + wasm_val_vec_t params; + if constexpr (sizeof...(args) > 0) { + wasm_val_t params_arr[] = {makeVal(args)...}; + params = WASM_ARRAY_VEC(params_arr); + } else { + params = WASM_EMPTY_VEC; + } wasm_val_vec_t results = WASM_EMPTY_VEC; const bool log = cmpLogLevel(LogLevel::trace); if (log) { @@ -633,8 +638,13 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> R { - wasm_val_t params_arr[] = {makeVal(args)...}; - const wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + wasm_val_vec_t params; + if constexpr (sizeof...(args) > 0) { + wasm_val_t params_arr[] = {makeVal(args)...}; + params = WASM_ARRAY_VEC(params_arr); + } else { + params = WASM_EMPTY_VEC; + } wasm_val_t results_arr[1]; wasm_val_vec_t results = WASM_ARRAY_VEC(results_arr); const bool log = cmpLogLevel(LogLevel::trace); From f2c162fcc61ece45cd4eff3fb41683f632df9285 Mon Sep 17 00:00:00 2001 From: Faseela K Date: Fri, 18 Feb 2022 20:33:48 +0100 Subject: [PATCH 181/287] wasmtime: update to v0.34.1. (#261) Signed-off-by: Faseela K --- bazel/cargo/wasmtime/BUILD.bazel | 2 +- bazel/cargo/wasmtime/Cargo.raze.lock | 94 ++++---- bazel/cargo/wasmtime/Cargo.toml | 13 +- bazel/cargo/wasmtime/crates.bzl | 218 ++++++++---------- bazel/cargo/wasmtime/psm.patch | 23 -- .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- .../remote/BUILD.backtrace-0.3.64.bazel | 4 +- ....cc-1.0.72.bazel => BUILD.cc-1.0.73.bazel} | 4 +- ...l => BUILD.cranelift-bforest-0.81.1.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.81.1.bazel} | 12 +- ...BUILD.cranelift-codegen-meta-0.81.1.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.81.1.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.81.1.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.81.1.bazel} | 4 +- ...el => BUILD.cranelift-native-0.81.1.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.81.1.bazel} | 10 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 4 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 4 +- .../remote/BUILD.getrandom-0.2.4.bazel | 2 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- ...1.bazel => BUILD.io-lifetimes-0.5.3.bazel} | 4 +- ...0.2.117.bazel => BUILD.libc-0.2.118.bazel} | 4 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- ...sm-0.1.16.bazel => BUILD.psm-0.1.17.bazel} | 6 +- ...and-0.8.4.bazel => BUILD.rand-0.8.5.bazel} | 33 +-- .../wasmtime/remote/BUILD.rand_hc-0.3.1.bazel | 55 ----- .../wasmtime/remote/BUILD.region-2.2.0.bazel | 2 +- ...0.33.1.bazel => BUILD.rustix-0.33.2.bazel} | 18 +- ...34.0.bazel => BUILD.wasmtime-0.34.1.bazel} | 16 +- ... => BUILD.wasmtime-cranelift-0.34.1.bazel} | 14 +- ...el => BUILD.wasmtime-environ-0.34.1.bazel} | 6 +- ....bazel => BUILD.wasmtime-jit-0.34.1.bazel} | 8 +- ...el => BUILD.wasmtime-runtime-0.34.1.bazel} | 14 +- ...azel => BUILD.wasmtime-types-0.34.1.bazel} | 4 +- bazel/repositories.bzl | 6 +- 35 files changed, 236 insertions(+), 372 deletions(-) delete mode 100644 bazel/cargo/wasmtime/psm.patch rename bazel/cargo/wasmtime/remote/{BUILD.cc-1.0.72.bazel => BUILD.cc-1.0.73.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.81.0.bazel => BUILD.cranelift-bforest-0.81.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.81.0.bazel => BUILD.cranelift-codegen-0.81.1.bazel} (87%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.81.0.bazel => BUILD.cranelift-codegen-meta-0.81.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.81.0.bazel => BUILD.cranelift-codegen-shared-0.81.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.81.0.bazel => BUILD.cranelift-entity-0.81.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.81.0.bazel => BUILD.cranelift-frontend-0.81.1.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.81.0.bazel => BUILD.cranelift-native-0.81.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.81.0.bazel => BUILD.cranelift-wasm-0.81.1.bazel} (83%) rename bazel/cargo/wasmtime/remote/{BUILD.io-lifetimes-0.5.1.bazel => BUILD.io-lifetimes-0.5.3.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.117.bazel => BUILD.libc-0.2.118.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.psm-0.1.16.bazel => BUILD.psm-0.1.17.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.rand-0.8.4.bazel => BUILD.rand-0.8.5.bazel} (60%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rand_hc-0.3.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.33.1.bazel => BUILD.rustix-0.33.2.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.34.0.bazel => BUILD.wasmtime-0.34.1.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.34.0.bazel => BUILD.wasmtime-cranelift-0.34.1.bazel} (78%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.34.0.bazel => BUILD.wasmtime-environ-0.34.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.34.0.bazel => BUILD.wasmtime-jit-0.34.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.34.0.bazel => BUILD.wasmtime-runtime-0.34.1.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.34.0.bazel => BUILD.wasmtime-types-0.34.1.bazel} (93%) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 6b1582d6c..4f8ec4034 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_34_0//:wasmtime", + actual = "@wasmtime__wasmtime__0_34_1//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 8a0bf0f99..096ab6aa1 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -79,9 +79,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "cc" -version = "1.0.72" +version = "1.0.73" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee" +checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" [[package]] name = "cfg-if" @@ -100,18 +100,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "71447555acc6c875c52c407d572fc1327dc5c34cba72b4b2e7ad048aa4e4fd19" +checksum = "32f027f29ace03752bb83c112eb4f53744bc4baadf19955e67fcde1d71d2f39d" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec9a10261891a7a919b0d4f6aa73582e88441d9a8f6173c88efbe4a5a362ea67" +checksum = "6c10af69cbf4e228c11bdc26d8f9d5276773909152a769649a160571b282f92f" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -126,33 +126,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "815755d76fcbcf6e17ab888545b28ab775f917cb12ce0797e60cd41a2288692c" +checksum = "290ac14d2cef43cbf1b53ad5c1b34216c9e32e00fa9b6ac57b5e5a2064369e02" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "23ea92f2a67335a2e4d3c9c65624c3b14ae287d595b0650822c41824febab66b" +checksum = "beb9142d134a03d01e3995e6d8dd3aecf16312261d0cb0c5dcd73d5be2528c1c" [[package]] name = "cranelift-entity" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd25847875e388c500ad3624b4d2e14067955c93185194a7222246a25b91c975" +checksum = "1268a50b7cbbfee8514d417fc031cedd9965b15fa9e5ed1d4bc16de86f76765e" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "308bcfb7eb47bdf5ff6e1ace262af4ed39ec19f204c751fffb037e0e82a0c8bf" +checksum = "97ac0d440469e19ab12183e31a9e41b4efd8a4ca5fbde2a10c78c7bb857cc2a4" dependencies = [ "cranelift-codegen", "log", @@ -162,9 +162,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12cdc799aee673be2317e631d4569a1ba0a7e77a07a7ce45557086d2e02e9514" +checksum = "794cd1a5694a01c68957f9cfdc5ac092cf8b4e9c2d1697c4a5100f90103e9e9e" dependencies = [ "cranelift-codegen", "libc", @@ -173,9 +173,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.81.0" +version = "0.81.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bf8577386bb813bc513e524f665d62b44debaddf929308d0fa2b99c030e17c7" +checksum = "f2ddd4ca6963f6e94d00e8935986411953581ac893587ab1f0eb4f0b5a40ae65" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -298,9 +298,9 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "0.5.1" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "768dbad422f45f69c8f5ce59c0802e2681aa3e751c5db8217901607bb2bc24dd" +checksum = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6" [[package]] name = "itertools" @@ -319,9 +319,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.117" +version = "0.2.118" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c" +checksum = "06e509672465a0504304aa87f9f176f2b2b716ed8fb105ebe5c02dc6dce96a94" [[package]] name = "linux-raw-sys" @@ -418,9 +418,9 @@ dependencies = [ [[package]] name = "psm" -version = "0.1.16" +version = "0.1.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69" +checksum = "6eca0fa5dd7c4c96e184cec588f0b1db1ee3165e678db21c09793105acb17e6f" dependencies = [ "cc", ] @@ -436,14 +436,13 @@ dependencies = [ [[package]] name = "rand" -version = "0.8.4" +version = "0.8.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", "rand_chacha", "rand_core", - "rand_hc", ] [[package]] @@ -465,15 +464,6 @@ dependencies = [ "getrandom", ] -[[package]] -name = "rand_hc" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7" -dependencies = [ - "rand_core", -] - [[package]] name = "regalloc" version = "0.0.34" @@ -528,9 +518,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.33.1" +version = "0.33.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feb28d25b32441b96e8649b177ed42ba61e23bb217aec574c8ffb535dc9d5a23" +checksum = "db890a96e64911e67fa84e58ce061a40a6a65c231e5fad20b190933f8991a27c" dependencies = [ "bitflags", "errno", @@ -638,9 +628,9 @@ checksum = "0559cc0f1779240d6f894933498877ea94f693d84f3ee39c9a9932c6c312bd70" [[package]] name = "wasmtime" -version = "0.34.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c794a893696a3bc8d5eb8f5fb30c5d1bace6552a2fc13eb84caffc258434502f" +checksum = "4882e78d9daceeaff656d82869f298fd472ea8d8ccf96fbd310da5c1687773ac" dependencies = [ "anyhow", "backtrace", @@ -667,7 +657,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.34.0" +version = "0.34.1" dependencies = [ "anyhow", "env_logger", @@ -679,7 +669,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.34.0#39b88e4e9e8115e4a9da2c1e3423459edf0a648e" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.34.1#44c08532721a923f86b6a365308028230c7d103c" dependencies = [ "proc-macro2", "quote", @@ -687,9 +677,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.34.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "032f983a46b06a4f472c0c825fcf6819489df1f2f0a268653b46d948b955aaeb" +checksum = "1ed6ff21d2dbfe568af483f0c508e049fc6a497c73635e2c50c9b1baf3a93ed8" dependencies = [ "anyhow", "cranelift-codegen", @@ -709,9 +699,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.34.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d02f9ee24c14f45c9ec988b3afeed00c756fc107c379d993248595e610d71601" +checksum = "860936d38df423b4291b3e31bc28d4895e2208f9daba351c2397d18a0a10e0bf" dependencies = [ "anyhow", "cranelift-entity", @@ -729,9 +719,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.34.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae414b81367a4f39c688b22f3cd2127ef1452416c1d7f83862a0ba0e1faef33" +checksum = "e794310a0df5266c7ac73e8211a024a49e3860ac0ca2af5db8527be942ad063e" dependencies = [ "addr2line", "anyhow", @@ -754,9 +744,9 @@ dependencies = [ [[package]] name = "wasmtime-runtime" -version = "0.34.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "649e06a8c331f99e11acd72425b91dd478234bc4911bad794255bb2b95172c3e" +checksum = "90ffe5cb3db705ea43fcf37475a79891a3ada754c1cbe333540879649de943d5" dependencies = [ "anyhow", "backtrace", @@ -779,9 +769,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.34.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62289c2b4917e9ca778be49e4c606346aeaccb06591ec76ace4c85562c851812" +checksum = "70a5b60d70c1927c5a403f7c751de179414b6b91da75b2312c3ae78196cf9dc3" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index abbd7778d..185f89fee 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.34.0" +version = "0.34.1" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.34.0", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.34.0"} +wasmtime = {version = "0.34.1", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.34.1"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" @@ -25,11 +25,6 @@ additional_flags = [ "--cfg=feature=\\\"cc\\\"", ] buildrs_additional_deps = [ - "@wasmtime__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_73//:cc", ] -[package.metadata.raze.crates.psm.'*'] -patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:psm.patch", -] -patch_args = ["-p2"] diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index 95c1feb7c..cb11cdb7e 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -103,12 +103,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cc__1_0_72", - url = "https://crates.io/api/v1/crates/cc/1.0.72/download", + name = "wasmtime__cc__1_0_73", + url = "https://crates.io/api/v1/crates/cc/1.0.73/download", type = "tar.gz", - sha256 = "22a9137b95ea06864e018375b72adfb7db6e6f68cfc8df5a04d00288050485ee", - strip_prefix = "cc-1.0.72", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.72.bazel"), + sha256 = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11", + strip_prefix = "cc-1.0.73", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.73.bazel"), ) maybe( @@ -133,82 +133,82 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.81.0/download", + name = "wasmtime__cranelift_bforest__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.81.1/download", type = "tar.gz", - sha256 = "71447555acc6c875c52c407d572fc1327dc5c34cba72b4b2e7ad048aa4e4fd19", - strip_prefix = "cranelift-bforest-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.81.0.bazel"), + sha256 = "32f027f29ace03752bb83c112eb4f53744bc4baadf19955e67fcde1d71d2f39d", + strip_prefix = "cranelift-bforest-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.81.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.81.0/download", + name = "wasmtime__cranelift_codegen__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.81.1/download", type = "tar.gz", - sha256 = "ec9a10261891a7a919b0d4f6aa73582e88441d9a8f6173c88efbe4a5a362ea67", - strip_prefix = "cranelift-codegen-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.81.0.bazel"), + sha256 = "6c10af69cbf4e228c11bdc26d8f9d5276773909152a769649a160571b282f92f", + strip_prefix = "cranelift-codegen-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.81.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.81.0/download", + name = "wasmtime__cranelift_codegen_meta__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.81.1/download", type = "tar.gz", - sha256 = "815755d76fcbcf6e17ab888545b28ab775f917cb12ce0797e60cd41a2288692c", - strip_prefix = "cranelift-codegen-meta-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.81.0.bazel"), + sha256 = "290ac14d2cef43cbf1b53ad5c1b34216c9e32e00fa9b6ac57b5e5a2064369e02", + strip_prefix = "cranelift-codegen-meta-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.81.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.81.0/download", + name = "wasmtime__cranelift_codegen_shared__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.81.1/download", type = "tar.gz", - sha256 = "23ea92f2a67335a2e4d3c9c65624c3b14ae287d595b0650822c41824febab66b", - strip_prefix = "cranelift-codegen-shared-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.81.0.bazel"), + sha256 = "beb9142d134a03d01e3995e6d8dd3aecf16312261d0cb0c5dcd73d5be2528c1c", + strip_prefix = "cranelift-codegen-shared-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.81.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.81.0/download", + name = "wasmtime__cranelift_entity__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.81.1/download", type = "tar.gz", - sha256 = "bd25847875e388c500ad3624b4d2e14067955c93185194a7222246a25b91c975", - strip_prefix = "cranelift-entity-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.81.0.bazel"), + sha256 = "1268a50b7cbbfee8514d417fc031cedd9965b15fa9e5ed1d4bc16de86f76765e", + strip_prefix = "cranelift-entity-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.81.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.81.0/download", + name = "wasmtime__cranelift_frontend__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.81.1/download", type = "tar.gz", - sha256 = "308bcfb7eb47bdf5ff6e1ace262af4ed39ec19f204c751fffb037e0e82a0c8bf", - strip_prefix = "cranelift-frontend-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.81.0.bazel"), + sha256 = "97ac0d440469e19ab12183e31a9e41b4efd8a4ca5fbde2a10c78c7bb857cc2a4", + strip_prefix = "cranelift-frontend-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.81.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.81.0/download", + name = "wasmtime__cranelift_native__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-native/0.81.1/download", type = "tar.gz", - sha256 = "12cdc799aee673be2317e631d4569a1ba0a7e77a07a7ce45557086d2e02e9514", - strip_prefix = "cranelift-native-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.81.0.bazel"), + sha256 = "794cd1a5694a01c68957f9cfdc5ac092cf8b4e9c2d1697c4a5100f90103e9e9e", + strip_prefix = "cranelift-native-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.81.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_81_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.81.0/download", + name = "wasmtime__cranelift_wasm__0_81_1", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.81.1/download", type = "tar.gz", - sha256 = "7bf8577386bb813bc513e524f665d62b44debaddf929308d0fa2b99c030e17c7", - strip_prefix = "cranelift-wasm-0.81.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.81.0.bazel"), + sha256 = "f2ddd4ca6963f6e94d00e8935986411953581ac893587ab1f0eb4f0b5a40ae65", + strip_prefix = "cranelift-wasm-0.81.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.81.1.bazel"), ) maybe( @@ -333,12 +333,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__io_lifetimes__0_5_1", - url = "https://crates.io/api/v1/crates/io-lifetimes/0.5.1/download", + name = "wasmtime__io_lifetimes__0_5_3", + url = "https://crates.io/api/v1/crates/io-lifetimes/0.5.3/download", type = "tar.gz", - sha256 = "768dbad422f45f69c8f5ce59c0802e2681aa3e751c5db8217901607bb2bc24dd", - strip_prefix = "io-lifetimes-0.5.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.5.1.bazel"), + sha256 = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6", + strip_prefix = "io-lifetimes-0.5.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.5.3.bazel"), ) maybe( @@ -363,12 +363,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_117", - url = "https://crates.io/api/v1/crates/libc/0.2.117/download", + name = "wasmtime__libc__0_2_118", + url = "https://crates.io/api/v1/crates/libc/0.2.118/download", type = "tar.gz", - sha256 = "e74d72e0f9b65b5b4ca49a346af3976df0f9c61d550727f349ecd559f251a26c", - strip_prefix = "libc-0.2.117", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.117.bazel"), + sha256 = "06e509672465a0504304aa87f9f176f2b2b716ed8fb105ebe5c02dc6dce96a94", + strip_prefix = "libc-0.2.118", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.118.bazel"), ) maybe( @@ -493,18 +493,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__psm__0_1_16", - url = "https://crates.io/api/v1/crates/psm/0.1.16/download", + name = "wasmtime__psm__0_1_17", + url = "https://crates.io/api/v1/crates/psm/0.1.17/download", type = "tar.gz", - sha256 = "cd136ff4382c4753fc061cb9e4712ab2af263376b95bbd5bd8cd50c020b78e69", - strip_prefix = "psm-0.1.16", - patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:psm.patch", - ], - patch_args = [ - "-p2", - ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.16.bazel"), + sha256 = "6eca0fa5dd7c4c96e184cec588f0b1db1ee3165e678db21c09793105acb17e6f", + strip_prefix = "psm-0.1.17", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.17.bazel"), ) maybe( @@ -519,12 +513,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rand__0_8_4", - url = "https://crates.io/api/v1/crates/rand/0.8.4/download", + name = "wasmtime__rand__0_8_5", + url = "https://crates.io/api/v1/crates/rand/0.8.5/download", type = "tar.gz", - sha256 = "2e7573632e6454cf6b99d7aac4ccca54be06da05aca2ef7423d22d27d4d4bcd8", - strip_prefix = "rand-0.8.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand-0.8.4.bazel"), + sha256 = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404", + strip_prefix = "rand-0.8.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand-0.8.5.bazel"), ) maybe( @@ -547,16 +541,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_core-0.6.3.bazel"), ) - maybe( - http_archive, - name = "wasmtime__rand_hc__0_3_1", - url = "https://crates.io/api/v1/crates/rand_hc/0.3.1/download", - type = "tar.gz", - sha256 = "d51e9f596de227fda2ea6c84607f5558e196eeaf43c986b724ba4fb8fdf497e7", - strip_prefix = "rand_hc-0.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_hc-0.3.1.bazel"), - ) - maybe( http_archive, name = "wasmtime__regalloc__0_0_34", @@ -619,12 +603,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_33_1", - url = "https://crates.io/api/v1/crates/rustix/0.33.1/download", + name = "wasmtime__rustix__0_33_2", + url = "https://crates.io/api/v1/crates/rustix/0.33.2/download", type = "tar.gz", - sha256 = "feb28d25b32441b96e8649b177ed42ba61e23bb217aec574c8ffb535dc9d5a23", - strip_prefix = "rustix-0.33.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.1.bazel"), + sha256 = "db890a96e64911e67fa84e58ce061a40a6a65c231e5fad20b190933f8991a27c", + strip_prefix = "rustix-0.33.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.2.bazel"), ) maybe( @@ -749,71 +733,71 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmtime__0_34_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.34.0/download", + name = "wasmtime__wasmtime__0_34_1", + url = "https://crates.io/api/v1/crates/wasmtime/0.34.1/download", type = "tar.gz", - sha256 = "c794a893696a3bc8d5eb8f5fb30c5d1bace6552a2fc13eb84caffc258434502f", - strip_prefix = "wasmtime-0.34.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.34.0.bazel"), + sha256 = "4882e78d9daceeaff656d82869f298fd472ea8d8ccf96fbd310da5c1687773ac", + strip_prefix = "wasmtime-0.34.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.34.1.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "39b88e4e9e8115e4a9da2c1e3423459edf0a648e", + commit = "44c08532721a923f86b6a365308028230c7d103c", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_34_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.34.0/download", + name = "wasmtime__wasmtime_cranelift__0_34_1", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.34.1/download", type = "tar.gz", - sha256 = "032f983a46b06a4f472c0c825fcf6819489df1f2f0a268653b46d948b955aaeb", - strip_prefix = "wasmtime-cranelift-0.34.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.34.0.bazel"), + sha256 = "1ed6ff21d2dbfe568af483f0c508e049fc6a497c73635e2c50c9b1baf3a93ed8", + strip_prefix = "wasmtime-cranelift-0.34.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.34.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_34_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.34.0/download", + name = "wasmtime__wasmtime_environ__0_34_1", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.34.1/download", type = "tar.gz", - sha256 = "d02f9ee24c14f45c9ec988b3afeed00c756fc107c379d993248595e610d71601", - strip_prefix = "wasmtime-environ-0.34.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.34.0.bazel"), + sha256 = "860936d38df423b4291b3e31bc28d4895e2208f9daba351c2397d18a0a10e0bf", + strip_prefix = "wasmtime-environ-0.34.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.34.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_34_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.34.0/download", + name = "wasmtime__wasmtime_jit__0_34_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.34.1/download", type = "tar.gz", - sha256 = "eae414b81367a4f39c688b22f3cd2127ef1452416c1d7f83862a0ba0e1faef33", - strip_prefix = "wasmtime-jit-0.34.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.34.0.bazel"), + sha256 = "e794310a0df5266c7ac73e8211a024a49e3860ac0ca2af5db8527be942ad063e", + strip_prefix = "wasmtime-jit-0.34.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.34.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_34_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.34.0/download", + name = "wasmtime__wasmtime_runtime__0_34_1", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.34.1/download", type = "tar.gz", - sha256 = "649e06a8c331f99e11acd72425b91dd478234bc4911bad794255bb2b95172c3e", - strip_prefix = "wasmtime-runtime-0.34.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.34.0.bazel"), + sha256 = "90ffe5cb3db705ea43fcf37475a79891a3ada754c1cbe333540879649de943d5", + strip_prefix = "wasmtime-runtime-0.34.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.34.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_34_0", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.34.0/download", + name = "wasmtime__wasmtime_types__0_34_1", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.34.1/download", type = "tar.gz", - sha256 = "62289c2b4917e9ca778be49e4c606346aeaccb06591ec76ace4c85562c851812", - strip_prefix = "wasmtime-types-0.34.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.34.0.bazel"), + sha256 = "70a5b60d70c1927c5a403f7c751de179414b6b91da75b2312c3ae78196cf9dc3", + strip_prefix = "wasmtime-types-0.34.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.34.1.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/psm.patch b/bazel/cargo/wasmtime/psm.patch deleted file mode 100644 index 895e815cf..000000000 --- a/bazel/cargo/wasmtime/psm.patch +++ /dev/null @@ -1,23 +0,0 @@ -# Don't ignore CFLAGS (missing "-target" breaks cross-compilation). - -diff --git a/psm/build.rs b/psm/build.rs -index 01a13bf..c7bcb0e 100644 ---- a/psm/build.rs -+++ b/psm/build.rs -@@ -61,16 +61,6 @@ fn main() { - let os = ::std::env::var("CARGO_CFG_TARGET_OS").unwrap(); - let endian = ::std::env::var("CARGO_CFG_TARGET_ENDIAN").unwrap(); - -- // We are only assembling a single file and any flags in the environment probably -- // don't apply in this case, so we don't want to use them. Unfortunately, cc -- // doesn't provide a way to clear/ignore flags set from the environment, so -- // we manually remove them instead -- for key in -- std::env::vars().filter_map(|(k, _)| if k.contains("CFLAGS") { Some(k) } else { None }) -- { -- std::env::remove_var(key); -- } -- - let mut cfg = cc::Build::new(); - let msvc = cfg.get_compiler().is_like_msvc(); - let asm = if let Some((asm, canswitch)) = find_assembly(&arch, &endian, &os, &env, msvc) { diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 18ceb31b8..5c309d478 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel index bf605e891..e8148761e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel @@ -59,7 +59,7 @@ cargo_build_script( version = "0.3.64", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_73//:cc", ], ) @@ -93,7 +93,7 @@ rust_library( ":backtrace_build_script", "@wasmtime__addr2line__0_17_0//:addr2line", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", "@wasmtime__miniz_oxide__0_4_4//:miniz_oxide", "@wasmtime__object__0_27_1//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.72.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.73.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cc-1.0.72.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cc-1.0.73.bazel index ed5c5d9b5..1fa5ec2af 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.72.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.73.bazel @@ -49,7 +49,7 @@ rust_binary( "crate-name=gcc-shim", "manual", ], - version = "1.0.72", + version = "1.0.73", # buildifier: leave-alone deps = [ ":cc", @@ -72,7 +72,7 @@ rust_library( "crate-name=cc", "manual", ], - version = "1.0.72", + version = "1.0.73", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.1.bazel index 4752f4ea2..58e61fc02 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.1.bazel similarity index 87% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.1.bazel index 6fe4361dc..a2e8e9ec6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.1.bazel @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.81.0", + version = "0.81.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_81_0//:cranelift_codegen_meta", + "@wasmtime__cranelift_codegen_meta__0_81_1//:cranelift_codegen_meta", ], ) @@ -87,13 +87,13 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_81_0//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_81_0//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_81_1//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_81_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_14//:log", "@wasmtime__regalloc__0_0_34//:regalloc", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.1.bazel index f3ee8ac96..fc1b51c00 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_81_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_81_1//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.1.bazel index 1f1a62f8b..2a2283051 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.1.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.1.bazel index 7fb8141a0..c86cfaca0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ "@wasmtime__serde__1_0_136//:serde", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.1.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.1.bazel index 3d8ded875..77147231d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.1.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", "@wasmtime__log__0_4_14//:log", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.1.bazel index 6fff58d7e..a8a4e8a43 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.1.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.1.bazel similarity index 83% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.1.bazel index 483881fb1..415f399cd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.1.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.81.0", + version = "0.81.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_81_0//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_81_1//:cranelift_frontend", "@wasmtime__itertools__0_10_3//:itertools", "@wasmtime__log__0_4_14//:log", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_types__0_34_0//:wasmtime_types", + "@wasmtime__wasmtime_types__0_34_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index eeb205e5b..fb2ccf705 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ ] + selects.with_or({ - # cfg(unix) or cfg(target_os = "wasi") + # cfg(unix) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-unknown-linux-gnu", @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index 2a0dacc31..ebeb4eb08 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -57,7 +57,7 @@ cargo_build_script( version = "0.1.2", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_73//:cc", ], ) @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel index 5f6d5fa8d..9370711d8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index 741b259f8..d6842c06a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.3.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.3.bazel index 729f791e5..711157c37 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.3.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.5.1", + version = "0.5.3", visibility = ["//visibility:private"], deps = [ ], @@ -86,7 +86,7 @@ rust_library( "crate-name=io-lifetimes", "manual", ], - version = "0.5.1", + version = "0.5.3", # buildifier: leave-alone deps = [ ":io_lifetimes_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.117.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.118.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.117.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.118.bazel index fd5b08fa4..91577f343 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.117.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.118.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.117", + version = "0.2.118", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.117", + version = "0.2.118", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index 6eb9b2305..3faa7bd0c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.16.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.17.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.psm-0.1.16.bazel rename to bazel/cargo/wasmtime/remote/BUILD.psm-0.1.17.bazel index 7fbf5690c..284f26934 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.16.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.17.bazel @@ -54,10 +54,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.16", + version = "0.1.17", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_73//:cc", ], ) @@ -89,7 +89,7 @@ rust_library( "crate-name=psm", "manual", ], - version = "0.1.16", + version = "0.1.17", # buildifier: leave-alone deps = [ ":psm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel similarity index 60% rename from bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 10ef0f765..8070748e5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -42,7 +42,6 @@ rust_library( "getrandom", "libc", "rand_chacha", - "rand_hc", "std", "std_rng", ], @@ -57,38 +56,12 @@ rust_library( "crate-name=rand", "manual", ], - version = "0.8.4", + version = "0.8.5", # buildifier: leave-alone deps = [ + "@wasmtime__rand_chacha__0_3_1//:rand_chacha", "@wasmtime__rand_core__0_6_3//:rand_core", ] + selects.with_or({ - # cfg(not(target_os = "emscripten")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__rand_chacha__0_3_1//:rand_chacha", - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(unix) ( "@rules_rust//rust/platform:i686-apple-darwin", @@ -108,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_hc-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_hc-0.3.1.bazel deleted file mode 100644 index 42c0aa1ce..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_hc-0.3.1.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rand_hc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rand_hc", - "manual", - ], - version = "0.3.1", - # buildifier: leave-alone - deps = [ - "@wasmtime__rand_core__0_6_3//:rand_core", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel index 584748d85..2b19b98a2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.2.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.2.bazel index f6173065e..9aaa9a1f8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.2.bazel @@ -58,12 +58,12 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.33.1", + version = "0.33.2", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_73//:cc", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) + # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", @@ -74,7 +74,7 @@ cargo_build_script( ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) + # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -140,14 +140,14 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.33.1", + version = "0.33.2", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__0_5_1//:io_lifetimes", + "@wasmtime__io_lifetimes__0_5_3//:io_lifetimes", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))) + # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", @@ -158,7 +158,7 @@ rust_library( ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "riscv64"))))) + # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -178,7 +178,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@wasmtime__errno__0_2_8//:errno", - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.1.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.1.bazel index 6ba3619a7..5658ade65 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.1.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.34.0", + version = "0.34.1", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -93,7 +93,7 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.34.0", + version = "0.34.1", # buildifier: leave-alone deps = [ ":wasmtime_build_script", @@ -103,19 +103,19 @@ rust_library( "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", "@wasmtime__log__0_4_14//:log", "@wasmtime__object__0_27_1//:object", "@wasmtime__once_cell__1_9_0//:once_cell", - "@wasmtime__psm__0_1_16//:psm", + "@wasmtime__psm__0_1_17//:psm", "@wasmtime__region__2_2_0//:region", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_34_0//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_34_0//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_34_0//:wasmtime_runtime", + "@wasmtime__wasmtime_cranelift__0_34_1//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_34_1//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_34_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.1.bazel similarity index 78% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.1.bazel index d64b66109..d80176bae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.1.bazel @@ -47,15 +47,15 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.34.0", + version = "0.34.1", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__cranelift_codegen__0_81_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_81_0//:cranelift_frontend", - "@wasmtime__cranelift_native__0_81_0//:cranelift_native", - "@wasmtime__cranelift_wasm__0_81_0//:cranelift_wasm", + "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_81_1//:cranelift_frontend", + "@wasmtime__cranelift_native__0_81_1//:cranelift_native", + "@wasmtime__cranelift_wasm__0_81_1//:cranelift_wasm", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_14//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", @@ -63,6 +63,6 @@ rust_library( "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", + "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.1.bazel index a6696a364..572120a9e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.1.bazel @@ -47,11 +47,11 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.34.0", + version = "0.34.1", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__log__0_4_14//:log", @@ -61,6 +61,6 @@ rust_library( "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_types__0_34_0//:wasmtime_types", + "@wasmtime__wasmtime_types__0_34_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.1.bazel index 9c6867cd3..f20b90b2e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.34.0", + version = "0.34.1", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", @@ -65,8 +65,8 @@ rust_library( "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_34_0//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_34_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -77,7 +77,7 @@ rust_library( "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__rustix__0_33_1//:rustix", + "@wasmtime__rustix__0_33_2//:rustix", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.1.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.1.bazel index d39a6633b..3a65a4e94 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.1.bazel @@ -55,10 +55,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.34.0", + version = "0.34.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_72//:cc", + "@wasmtime__cc__1_0_73//:cc", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -120,7 +120,7 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.34.0", + version = "0.34.1", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", @@ -129,14 +129,14 @@ rust_library( "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_117//:libc", + "@wasmtime__libc__0_2_118//:libc", "@wasmtime__log__0_4_14//:log", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__more_asserts__0_2_2//:more_asserts", - "@wasmtime__rand__0_8_4//:rand", + "@wasmtime__rand__0_8_5//:rand", "@wasmtime__region__2_2_0//:region", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_34_0//:wasmtime_environ", + "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_33_1//:rustix", + "@wasmtime__rustix__0_33_2//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.1.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.1.bazel index b35527c89..24d7bcd8b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.1.bazel @@ -47,10 +47,10 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.34.0", + version = "0.34.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_81_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__thiserror__1_0_30//:thiserror", "@wasmtime__wasmparser__0_82_0//:wasmparser", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 1d385d609..bde1d42c6 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -177,9 +177,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "bf643b1863b19ab49aa1e8cc7aec52c81e5aff12daeb4eca4c31a437046957be", - strip_prefix = "wasmtime-0.34.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.34.0.tar.gz", + sha256 = "dbcd392e7839ca749335dacff2efa2d3bd4eea828bd1aad0ba7cafcb36e49e23", + strip_prefix = "wasmtime-0.34.1", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.34.1.tar.gz", ) maybe( From fc084b7814545a2d6bde4138576f6529b6858de5 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 22 Feb 2022 02:00:36 -0600 Subject: [PATCH 182/287] wasmtime: split "prefixed_wasmtime" into a separate target. (#262) Signed-off-by: Piotr Sikora --- BUILD | 45 +++++++++++++++++++-------------- bazel/external/wasm-c-api.BUILD | 3 +-- bazel/select.bzl | 4 +-- src/wasmtime/types.h | 2 +- src/wasmtime/wasmtime.cc | 2 +- 5 files changed, 31 insertions(+), 25 deletions(-) diff --git a/BUILD b/BUILD index f1753c5f4..9fb360785 100644 --- a/BUILD +++ b/BUILD @@ -128,6 +128,24 @@ cc_library( ], ) +cc_library( + name = "wasmtime_lib", + srcs = [ + "src/common/types.h", + "src/wasmtime/types.h", + "src/wasmtime/wasmtime.cc", + ], + hdrs = ["include/proxy-wasm/wasmtime.h"], + defines = [ + "PROXY_WASM_HAS_RUNTIME_WASMTIME", + "PROXY_WASM_HOST_ENGINE_WASMTIME", + ], + deps = [ + ":wasm_vm_headers", + "//external:wasmtime", + ], +) + genrule( name = "prefixed_wasmtime_sources", srcs = [ @@ -141,6 +159,7 @@ genrule( cmd = """ for file in $(SRCS); do sed -e 's/wasm_/wasmtime_wasm_/g' \ + -e 's/include\\/wasm.h/include\\/prefixed_wasm.h/g' \ -e 's/wasmtime\\/types.h/wasmtime\\/prefixed_types.h/g' \ $$file >$(@D)/$$(dirname $$file)/prefixed_$$(basename $$file) done @@ -148,19 +167,12 @@ genrule( ) cc_library( - name = "wasmtime_lib", + name = "prefixed_wasmtime_lib", srcs = [ "src/common/types.h", - ] + select({ - "@proxy_wasm_cpp_host//bazel:multiengine": [ - "src/wasmtime/prefixed_types.h", - "src/wasmtime/prefixed_wasmtime.cc", - ], - "//conditions:default": [ - "src/wasmtime/types.h", - "src/wasmtime/wasmtime.cc", - ], - }), + "src/wasmtime/prefixed_types.h", + "src/wasmtime/prefixed_wasmtime.cc", + ], hdrs = ["include/proxy-wasm/wasmtime.h"], defines = [ "PROXY_WASM_HAS_RUNTIME_WASMTIME", @@ -168,14 +180,8 @@ cc_library( ], deps = [ ":wasm_vm_headers", - ] + select({ - "@proxy_wasm_cpp_host//bazel:multiengine": [ - "//external:prefixed_wasmtime", - ], - "//conditions:default": [ - "//external:wasmtime", - ], - }), + "//external:prefixed_wasmtime", + ], ) cc_library( @@ -211,6 +217,7 @@ cc_library( [":wamr_lib"], ) + proxy_wasm_select_engine_wasmtime( [":wasmtime_lib"], + [":prefixed_wasmtime_lib"], ) + proxy_wasm_select_engine_wavm( [":wavm_lib"], ), diff --git a/bazel/external/wasm-c-api.BUILD b/bazel/external/wasm-c-api.BUILD index e8fc1862c..4946da7db 100644 --- a/bazel/external/wasm-c-api.BUILD +++ b/bazel/external/wasm-c-api.BUILD @@ -9,7 +9,6 @@ cc_library( hdrs = [ "include/wasm.h", ], - include_prefix = "wasmtime", deps = [ "@com_github_bytecodealliance_wasmtime//:rust_c_api", ], @@ -21,7 +20,7 @@ genrule( "include/wasm.h", ], outs = [ - "wasmtime/include/wasm.h", + "include/prefixed_wasm.h", ], cmd = """ sed -e 's/\\ wasm_/\\ wasmtime_wasm_/g' \ diff --git a/bazel/select.bzl b/bazel/select.bzl index 4fecfcf2e..eea36c888 100644 --- a/bazel/select.bzl +++ b/bazel/select.bzl @@ -33,10 +33,10 @@ def proxy_wasm_select_engine_wamr(xs): "//conditions:default": [], }) -def proxy_wasm_select_engine_wasmtime(xs): +def proxy_wasm_select_engine_wasmtime(xs, xp): return select({ "@proxy_wasm_cpp_host//bazel:engine_wasmtime": xs, - "@proxy_wasm_cpp_host//bazel:multiengine": xs, + "@proxy_wasm_cpp_host//bazel:multiengine": xp, "//conditions:default": [], }) diff --git a/src/wasmtime/types.h b/src/wasmtime/types.h index afae66e58..ad433cfea 100644 --- a/src/wasmtime/types.h +++ b/src/wasmtime/types.h @@ -13,7 +13,7 @@ // limitations under the License. #include "src/common/types.h" -#include "wasmtime/include/wasm.h" +#include "include/wasm.h" namespace proxy_wasm { namespace wasmtime { diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 5825b2157..9e08a95e0 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -26,7 +26,7 @@ #include "src/wasmtime/types.h" -#include "wasmtime/include/wasm.h" +#include "include/wasm.h" namespace proxy_wasm { namespace wasmtime { From 4f7306add49c1408b3102ff5f7850f74a8094063 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 23 Feb 2022 02:45:45 -0600 Subject: [PATCH 183/287] ci: split format checks into separate file and jobs. (#264) Signed-off-by: Piotr Sikora --- .github/workflows/cargo.yml | 46 ---------- .github/workflows/format.yml | 107 ++++++++++++++++++++++++ .github/workflows/{cpp.yml => test.yml} | 29 +------ 3 files changed, 108 insertions(+), 74 deletions(-) delete mode 100644 .github/workflows/cargo.yml create mode 100644 .github/workflows/format.yml rename .github/workflows/{cpp.yml => test.yml} (91%) diff --git a/.github/workflows/cargo.yml b/.github/workflows/cargo.yml deleted file mode 100644 index f9cc340cf..000000000 --- a/.github/workflows/cargo.yml +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -name: Cargo - -on: - pull_request: - branches: - - master - paths: - - 'bazel/cargo/**' - - push: - branches: - - master - paths: - - 'bazel/cargo/**' - -jobs: - - format: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - - name: Format (cargo raze) - working-directory: bazel/cargo - run: | - cargo install cargo-raze --version 0.14.1 - cd wasmsign && cargo raze && cd .. - cd wasmtime && cargo raze && cd .. - # Ignore manual changes in "errno" crate until fixed in cargo-raze. - # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.2.8.bazel' diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 000000000..65e23cc0a --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,107 @@ +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +name: Format + +on: + + pull_request: + branches: + - master + - 'envoy-release/**' + - 'istio-release/**' + + push: + branches: + - master + - 'envoy-release/**' + - 'istio-release/**' + +jobs: + + addlicense: + name: verify licenses + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-go@v2 + with: + go-version: '^1.16' + + - name: Install dependencies + run: | + go install github.com/google/addlicense@latest + echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + + - name: Format (addlicense) + run: addlicense -check . + + buildifier: + name: check format with buildifier + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - uses: actions/setup-go@v2 + with: + go-version: '^1.16' + + - name: Install dependencies + run: | + go install github.com/bazelbuild/buildtools/buildifier@latest + echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" + + - name: Format (buildifier) + run: find . -name "WORKSPACE" -o -name "*BUILD*" -o -name "*.bzl" | xargs -n1 buildifier -mode=check + + cargo_raze: + name: check format with cargo-raze + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: cargo install cargo-raze --version 0.14.1 + + - name: Format (cargo raze) + working-directory: bazel/cargo + run: | + cd wasmsign && cargo raze && cd .. + cd wasmtime && cargo raze && cd .. + # Ignore manual changes in "errno" crate until fixed in cargo-raze. + # See: https://github.com/google/cargo-raze/issues/451 + git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.2.8.bazel' + + clang_format: + name: check format with clang-format + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies (Linux) + run: sudo apt-get install -y clang-format-12 + + - name: Format (clang-format) + run: | + find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-12 -i + git diff --exit-code diff --git a/.github/workflows/cpp.yml b/.github/workflows/test.yml similarity index 91% rename from .github/workflows/cpp.yml rename to .github/workflows/test.yml index c0f8e59c8..f7e43b8bb 100644 --- a/.github/workflows/cpp.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -name: C++ +name: Test on: @@ -33,33 +33,6 @@ on: jobs: - format: - runs-on: ubuntu-20.04 - - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-go@v2 - with: - go-version: '^1.16' - - - name: Format (clang-format) - run: | - sudo apt-get install clang-format-9 - find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-9 -i - git diff --exit-code - - - name: Format (buildifier) - run: | - go install github.com/bazelbuild/buildtools/buildifier@latest - export PATH=$PATH:$(go env GOPATH)/bin - find . -name "WORKSPACE" -o -name "*BUILD*" -o -name "*.bzl" | xargs -n1 buildifier -mode=check - - - name: Format (addlicense) - run: | - go install github.com/google/addlicense@latest - export PATH=$PATH:$(go env GOPATH)/bin - addlicense -check . - test_data: name: build test data From 5ac4f08950bc5d6aabb82cca7abafc0fa333bf62 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 24 Feb 2022 01:18:16 -0600 Subject: [PATCH 184/287] build: add support for Clang with Address Sanitizer. (#265) Signed-off-by: Piotr Sikora --- .bazelrc | 22 ++++++++++++++++++++++ .github/workflows/test.yml | 21 +++++++++++++++++++++ test/runtime_test.cc | 9 ++++++++- 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index a344955a0..caa7b128f 100644 --- a/.bazelrc +++ b/.bazelrc @@ -8,6 +8,28 @@ build:clang --action_env=BAZEL_COMPILER=clang build:clang --action_env=CC=clang build:clang --action_env=CXX=clang++ +# Use Clang compiler with Address and Undefined Behavior Sanitizers. +build:clang-asan --config=clang +build:clang-asan --copt -DADDRESS_SANITIZER=1 +build:clang-asan --copt -DUNDEFINED_SANITIZER=1 +build:clang-asan --copt -O1 +build:clang-asan --copt -fno-omit-frame-pointer +build:clang-asan --copt -fno-optimize-sibling-calls +build:clang-asan --copt -fsanitize=address,undefined +build:clang-asan --copt -fsanitize-address-use-after-scope +build:clang-asan --linkopt -fsanitize=address,undefined +build:clang-asan --linkopt -fsanitize-address-use-after-scope +build:clang-asan --linkopt -fsanitize-link-c++-runtime +build:clang-asan --linkopt -fuse-ld=lld +build:clang-asan --test_env=ASAN_OPTIONS=check_initialization_order=1:detect_stack_use_after_return=1:strict_init_order=1:strict_string_checks=1 +build:clang-asan --test_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 +build:clang-asan --test_env=ASAN_SYMBOLIZER_PATH + +# Use Clang compiler with Address and Undefined Behavior Sanitizers (strict version). +build:clang-asan-strict --config=clang-asan +build:clang-asan-strict --copt -fsanitize=integer +build:clang-asan-strict --linkopt -fsanitize=integer + # Use GCC compiler. build:gcc --action_env=BAZEL_COMPILER=gcc build:gcc --action_env=CC=gcc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7e43b8bb..e744b836c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -96,6 +96,12 @@ jobs: arch: x86_64 action: test flags: --config=gcc + - name: 'NullVM on Linux/x86_64 with ASan' + engine: 'null' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=clang-asan-strict --define=crypto=system - name: 'NullVM on Windows/x86_64' engine: 'null' os: windows-2019 @@ -109,6 +115,14 @@ jobs: action: test flags: --config=clang --define=crypto=system cache: true + - name: 'V8 on Linux/x86_64 with ASan' + engine: 'v8' + repo: 'v8' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=clang-asan + cache: true - name: 'V8 on Linux/aarch64' engine: 'v8' repo: 'v8' @@ -145,6 +159,13 @@ jobs: arch: x86_64 action: test flags: --config=clang + - name: 'Wasmtime on Linux/x86_64 with ASan' + engine: 'wasmtime' + repo: 'com_github_bytecodealliance_wasmtime' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=clang-asan-strict --define=crypto=system - name: 'Wasmtime on Linux/aarch64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 79e672164..061ab5ed0 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -107,8 +107,15 @@ TEST_P(TestVM, CloneUntilOutOfMemory) { ASSERT_TRUE(vm_->load(source, {}, {})); ASSERT_TRUE(vm_->link("")); + size_t max_clones = 100000; +#if defined(__has_feature) +#if __has_feature(address_sanitizer) + max_clones = 1000; +#endif +#endif + std::vector> clones; - for (;;) { + for (size_t i = 0; i < max_clones; i++) { auto clone = vm_->clone(); if (clone == nullptr) { break; From 21976e44118d815c155855f85f9a1818ec0f7941 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 24 Feb 2022 03:03:31 -0600 Subject: [PATCH 185/287] build: add support for Clang with Thread Sanitizer. (#266) Signed-off-by: Piotr Sikora --- .bazelrc | 10 ++++++++++ .github/workflows/test.yml | 14 ++++++++++++++ test/runtime_test.cc | 9 ++++++++- 3 files changed, 32 insertions(+), 1 deletion(-) diff --git a/.bazelrc b/.bazelrc index caa7b128f..733ef5e3b 100644 --- a/.bazelrc +++ b/.bazelrc @@ -30,6 +30,16 @@ build:clang-asan-strict --config=clang-asan build:clang-asan-strict --copt -fsanitize=integer build:clang-asan-strict --linkopt -fsanitize=integer +# Use Clang compiler with Thread Sanitizer. +build:clang-tsan --config=clang +build:clang-tsan --copt -DTHREAD_SANITIZER=1 +build:clang-tsan --copt -O1 +build:clang-tsan --copt -fno-omit-frame-pointer +build:clang-tsan --copt -fno-optimize-sibling-calls +build:clang-tsan --copt -fsanitize=thread +build:clang-tsan --linkopt -fsanitize=thread +build:clang-tsan --linkopt -fuse-ld=lld + # Use GCC compiler. build:gcc --action_env=BAZEL_COMPILER=gcc build:gcc --action_env=CC=gcc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e744b836c..b5b07e408 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -102,6 +102,12 @@ jobs: arch: x86_64 action: test flags: --config=clang-asan-strict --define=crypto=system + - name: 'NullVM on Linux/x86_64 with TSan' + engine: 'null' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=clang-tsan - name: 'NullVM on Windows/x86_64' engine: 'null' os: windows-2019 @@ -123,6 +129,14 @@ jobs: action: test flags: --config=clang-asan cache: true + - name: 'V8 on Linux/x86_64 with TSan' + engine: 'v8' + repo: 'v8' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=clang-tsan + cache: true - name: 'V8 on Linux/aarch64' engine: 'v8' repo: 'v8' diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 061ab5ed0..92ef4c28b 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -128,7 +128,14 @@ TEST_P(TestVM, CloneUntilOutOfMemory) { // Prevent clone from droping out of scope and freeing memory. clones.push_back(std::move(clone)); } - EXPECT_GE(clones.size(), 1000); + + size_t min_clones = 1000; +#if defined(__has_feature) +#if __has_feature(thread_sanitizer) + min_clones = 100; +#endif +#endif + EXPECT_GE(clones.size(), min_clones); } #endif From a0db71f4f326867e5d1c2a77510e1cafb3bd49a9 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 24 Feb 2022 15:48:21 -0600 Subject: [PATCH 186/287] build: add support for Clang-Tidy tool. (#263) Signed-off-by: Piotr Sikora --- .bazelrc | 5 + .clang-tidy | 23 +++ .github/workflows/format.yml | 61 ++++++++ BUILD | 7 +- bazel/external/bazel_clang_tidy.patch | 27 ++++ bazel/repositories.bzl | 10 ++ include/proxy-wasm/bytecode_util.h | 2 +- include/proxy-wasm/context.h | 14 +- include/proxy-wasm/context_interface.h | 4 +- include/proxy-wasm/exports.h | 8 +- include/proxy-wasm/null_plugin.h | 2 +- include/proxy-wasm/null_vm.h | 4 +- include/proxy-wasm/vm_id_handle.h | 2 +- include/proxy-wasm/wasm.h | 22 +-- include/proxy-wasm/wasm_vm.h | 2 +- src/bytecode_util.cc | 21 +-- src/common/types.h | 6 +- src/context.cc | 40 ++--- src/exports.cc | 201 +++++++++++++------------ src/null/null_plugin.cc | 72 ++++----- src/null/null_vm.cc | 35 +++-- src/shared_data.cc | 10 +- src/shared_data.h | 6 +- src/shared_queue.cc | 8 +- src/signature_util.cc | 22 +-- src/v8/v8.cc | 40 ++--- src/vm_id_handle.cc | 6 +- src/wamr/types.h | 7 +- src/wamr/wamr.cc | 43 +++--- src/wasm.cc | 51 ++++--- src/wasmtime/types.h | 7 +- src/wasmtime/wasmtime.cc | 45 +++--- src/wavm/wavm.cc | 79 +++++----- test/bytecode_util_test.cc | 2 +- test/exports_test.cc | 2 +- test/null_vm_test.cc | 5 +- test/runtime_test.cc | 12 +- test/shared_data_test.cc | 1 - test/shared_queue_test.cc | 7 +- test/utility.cc | 2 +- test/utility.h | 13 +- test/vm_id_handle_test.cc | 4 +- test/wasm_test.cc | 17 ++- 43 files changed, 552 insertions(+), 405 deletions(-) create mode 100644 .clang-tidy create mode 100644 bazel/external/bazel_clang_tidy.patch diff --git a/.bazelrc b/.bazelrc index 733ef5e3b..fbd7dda81 100644 --- a/.bazelrc +++ b/.bazelrc @@ -40,6 +40,11 @@ build:clang-tsan --copt -fsanitize=thread build:clang-tsan --linkopt -fsanitize=thread build:clang-tsan --linkopt -fuse-ld=lld +# Use Clang-Tidy tool. +build:clang-tidy --aspects @bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect +build:clang-tidy --@bazel_clang_tidy//:clang_tidy_config=@proxy_wasm_cpp_host//:clang_tidy_config +build:clang-tidy --output_groups=report + # Use GCC compiler. build:gcc --action_env=BAZEL_COMPILER=gcc build:gcc --action_env=CC=gcc diff --git a/.clang-tidy b/.clang-tidy new file mode 100644 index 000000000..ceab9ad4a --- /dev/null +++ b/.clang-tidy @@ -0,0 +1,23 @@ +Checks: clang-*, + -clang-analyzer-optin.portability.UnixAPI, + -clang-analyzer-unix.Malloc, + -clang-diagnostic-pragma-once-outside-header, + cppcoreguidelines-pro-type-member-init, + cppcoreguidelines-pro-type-static-cast-downcast, + misc-*, + -misc-non-private-member-variables-in-classes, + modernize-*, + -modernize-avoid-c-arrays, + -modernize-use-trailing-return-type, + llvm-include-order, + performance-*, + -performance-no-int-to-ptr, + portability-*, + readability-*, + -readability-convert-member-functions-to-static, + -readability-function-cognitive-complexity, + -readability-magic-numbers, + -readability-make-member-function-const, + -readability-simplify-boolean-expr, + +WarningsAsErrors: '*' diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 65e23cc0a..567062940 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -28,6 +28,9 @@ on: - 'envoy-release/**' - 'istio-release/**' + schedule: + - cron: '0 0 * * *' + jobs: addlicense: @@ -105,3 +108,61 @@ jobs: run: | find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-12 -i git diff --exit-code + + clang_tidy: + name: check format with clang-tidy + + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies (Linux) + run: sudo apt-get install -y clang-tidy-12 + + - name: Bazel cache + uses: PiotrSikora/cache@v2.1.7-with-skip-cache + with: + path: | + ~/.cache/bazel + key: clang_tidy-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl', 'bazel/cargo/wasmsign/crates.bzl') }} + + - name: Bazel build + run: > + bazel build + --config clang-tidy + --define engine=multi + --copt=-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" + //... + + - name: Skip Bazel cache update + if: ${{ github.ref != 'refs/heads/master' }} + run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV + + - name: Cleanup Bazel cache + if: ${{ github.ref == 'refs/heads/master' }} + run: | + export OUTPUT=$(${{ matrix.run_under }} bazel info output_base) + echo "===== BEFORE =====" + du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 + # BoringSSL's test data (90 MiB). + rm -rf ${OUTPUT}/external/boringssl/crypto_test_data.cc + rm -rf ${OUTPUT}/external/boringssl/src/crypto/*/test/ + rm -rf ${OUTPUT}/external/boringssl/src/third_party/wycheproof_testvectors/ + # LLVM's tests (500 MiB). + rm -rf ${OUTPUT}/external/llvm*/test/ + # V8's tests (100 MiB). + if [ -d "${OUTPUT}/external/v8/test/torque" ]; then + mv ${OUTPUT}/external/v8/test/torque ${OUTPUT}/external/v8/test_torque + rm -rf ${OUTPUT}/external/v8/test/* + mv ${OUTPUT}/external/v8/test_torque ${OUTPUT}/external/v8/test/torque + fi + # Unnecessary CMake tools (65 MiB). + rm -rf ${OUTPUT}/external/cmake-*/bin/{ccmake,cmake-gui,cpack,ctest} + # Distfiles for Rust toolchains (350 MiB). + rm -rf ${OUTPUT}/external/rust_*/*.tar.gz + # Bazel's repository cache (650-800 MiB) and install base (155 MiB). + rm -rf ${OUTPUT}/../cache + rm -rf ${OUTPUT}/../install + echo "===== AFTER =====" + du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 diff --git a/BUILD b/BUILD index 9fb360785..54afee1d7 100644 --- a/BUILD +++ b/BUILD @@ -14,6 +14,11 @@ package(default_visibility = ["//visibility:public"]) exports_files(["LICENSE"]) +filegroup( + name = "clang_tidy_config", + data = [".clang-tidy"], +) + cc_library( name = "wasm_vm_headers", hdrs = [ @@ -191,7 +196,7 @@ cc_library( ], hdrs = ["include/proxy-wasm/wavm.h"], copts = [ - '-DWAVM_API=""', + "-DWAVM_API=", "-Wno-non-virtual-dtor", "-Wno-old-style-cast", ], diff --git a/bazel/external/bazel_clang_tidy.patch b/bazel/external/bazel_clang_tidy.patch new file mode 100644 index 000000000..9c84b3c7f --- /dev/null +++ b/bazel/external/bazel_clang_tidy.patch @@ -0,0 +1,27 @@ +# 1. Treat .h files as C++ headers. +# 2. Hardcode clang-tidy-12. + +diff --git a/clang_tidy/clang_tidy.bzl b/clang_tidy/clang_tidy.bzl +index 3a5ed07..5db5c6c 100644 +--- a/clang_tidy/clang_tidy.bzl ++++ b/clang_tidy/clang_tidy.bzl +@@ -16,6 +16,9 @@ def _run_tidy(ctx, exe, flags, compilation_context, infile, discriminator): + # add source to check + args.add(infile.path) + ++ # treat .h files as C++ headers ++ args.add("--extra-arg-before=-xc++") ++ + # start args passed to the compiler + args.add("--") + +diff --git a/clang_tidy/run_clang_tidy.sh b/clang_tidy/run_clang_tidy.sh +index 582bab1..b9ebb94 100755 +--- a/clang_tidy/run_clang_tidy.sh ++++ b/clang_tidy/run_clang_tidy.sh +@@ -11,4 +11,4 @@ shift + touch $OUTPUT + truncate -s 0 $OUTPUT + +-clang-tidy "$@" ++clang-tidy-12 "$@" diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index bde1d42c6..b2bf5bb3c 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -29,6 +29,16 @@ def proxy_wasm_cpp_host_repositories(): sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", ) + maybe( + http_archive, + name = "bazel_clang_tidy", + sha256 = "6ed23cbff9423a30ef10becf57210a26d54fe198a211f4037d931c06f843c023", + strip_prefix = "bazel_clang_tidy-c2fe98cfec0430e78bff4169e9ca0a43123e4c99", + url = "https://github.com/erenon/bazel_clang_tidy/archive/c2fe98cfec0430e78bff4169e9ca0a43123e4c99.tar.gz", + patches = ["@proxy_wasm_cpp_host//bazel/external:bazel_clang_tidy.patch"], + patch_args = ["-p1"], + ) + maybe( http_archive, name = "bazel-zig-cc", diff --git a/include/proxy-wasm/bytecode_util.h b/include/proxy-wasm/bytecode_util.h index 1f4b600b2..f708780e7 100644 --- a/include/proxy-wasm/bytecode_util.h +++ b/include/proxy-wasm/bytecode_util.h @@ -69,7 +69,7 @@ class BytecodeUtil { static bool getStrippedSource(std::string_view bytecode, std::string &ret); private: - static bool parseVarint(const char *&begin, const char *end, uint32_t &ret); + static bool parseVarint(const char *&pos, const char *end, uint32_t &ret); }; } // namespace proxy_wasm diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 1d2c97e1c..7eaf19c52 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -143,11 +143,11 @@ class ContextBase : public RootInterface, public SharedQueueInterface, public GeneralInterface { public: - ContextBase(); // Testing. - ContextBase(WasmBase *wasm); // Vm Context. - ContextBase(WasmBase *wasm, std::shared_ptr plugin); // Root Context. + ContextBase(); // Testing. + ContextBase(WasmBase *wasm); // Vm Context. + ContextBase(WasmBase *wasm, const std::shared_ptr &plugin); // Root Context. ContextBase(WasmBase *wasm, uint32_t parent_context_id, - std::shared_ptr plugin_handle); // Stream context. + const std::shared_ptr &plugin_handle); // Stream context. virtual ~ContextBase(); WasmBase *wasm() const { return wasm_; } @@ -196,11 +196,11 @@ class ContextBase : public RootInterface, // HTTP FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) override; - FilterDataStatus onRequestBody(uint32_t body_buffer_length, bool end_of_stream) override; + FilterDataStatus onRequestBody(uint32_t body_length, bool end_of_stream) override; FilterTrailersStatus onRequestTrailers(uint32_t trailers) override; FilterMetadataStatus onRequestMetadata(uint32_t elements) override; FilterHeadersStatus onResponseHeaders(uint32_t headers, bool end_of_stream) override; - FilterDataStatus onResponseBody(uint32_t body_buffer_length, bool end_of_stream) override; + FilterDataStatus onResponseBody(uint32_t body_length, bool end_of_stream) override; FilterTrailersStatus onResponseTrailers(uint32_t trailers) override; FilterMetadataStatus onResponseMetadata(uint32_t elements) override; @@ -341,7 +341,7 @@ class ContextBase : public RootInterface, WasmResult registerSharedQueue(std::string_view queue_name, SharedQueueDequeueToken *token_ptr) override; WasmResult lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, - SharedQueueEnqueueToken *token) override; + SharedQueueEnqueueToken *token_ptr) override; WasmResult dequeueSharedQueue(uint32_t token, std::string *data) override; WasmResult enqueueSharedQueue(uint32_t token, std::string_view value) override; diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 85e251a0f..81973eed2 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -206,7 +206,7 @@ struct HttpInterface { virtual FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) = 0; // Call on a stream context to indicate that body data has arrived. - virtual FilterDataStatus onRequestBody(uint32_t body_buffer_length, bool end_of_stream) = 0; + virtual FilterDataStatus onRequestBody(uint32_t body_length, bool end_of_stream) = 0; // Call on a stream context to indicate that the request trailers have arrived. virtual FilterTrailersStatus onRequestTrailers(uint32_t trailers) = 0; @@ -218,7 +218,7 @@ struct HttpInterface { virtual FilterHeadersStatus onResponseHeaders(uint32_t trailers, bool end_of_stream) = 0; // Call on a stream context to indicate that body data has arrived. - virtual FilterDataStatus onResponseBody(uint32_t body_buffer_length, bool end_of_stream) = 0; + virtual FilterDataStatus onResponseBody(uint32_t body_length, bool end_of_stream) = 0; // Call on a stream context to indicate that the request trailers have arrived. virtual FilterTrailersStatus onResponseTrailers(uint32_t trailers) = 0; diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 8d823fedb..2b3d0db74 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -57,7 +57,7 @@ struct RegisterForeignFunction { * @param function_name is the key for this foreign function. * @param f is the function instance. */ - RegisterForeignFunction(std::string function_name, WasmForeignFunction f); + RegisterForeignFunction(const std::string &function_name, WasmForeignFunction f); }; namespace exports { @@ -94,8 +94,8 @@ template void marshalPairs(const Pairs &result, char *buffer) { // ABI functions exported from host to wasm. -Word get_configuration(Word address, Word size); -Word get_status(Word status_code, Word address, Word size); +Word get_configuration(Word value_ptr_ptr, Word value_size_ptr); +Word get_status(Word code_ptr, Word value_ptr_ptr, Word value_size_ptr); Word log(Word level, Word address, Word size); Word get_log_level(Word result_level_uint32_ptr); Word get_property(Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_size_ptr); @@ -134,7 +134,7 @@ Word get_response_body_buffer_bytes(Word start, Word length, Word ptr_ptr, Word Word http_call(Word uri_ptr, Word uri_size, Word header_pairs_ptr, Word header_pairs_size, Word body_ptr, Word body_size, Word trailer_pairs_ptr, Word trailer_pairs_size, Word timeout_milliseconds, Word token_ptr); -Word define_metric(Word metric_type, Word name_ptr, Word name_size, Word result_ptr); +Word define_metric(Word metric_type, Word name_ptr, Word name_size, Word metric_id_ptr); Word increment_metric(Word metric_id, int64_t offset); Word record_metric(Word metric_id, uint64_t value); Word get_metric(Word metric_id, Word result_uint64_ptr); diff --git a/include/proxy-wasm/null_plugin.h b/include/proxy-wasm/null_plugin.h index f059c32be..b33187ce0 100644 --- a/include/proxy-wasm/null_plugin.h +++ b/include/proxy-wasm/null_plugin.h @@ -71,7 +71,7 @@ class NullPlugin : public NullVmPlugin { void onForeignFunction(uint64_t root_context_id, uint64_t foreign_function_id, uint64_t data_size); - void onCreate(uint64_t context_id, uint64_t root_context_id); + void onCreate(uint64_t context_id, uint64_t parent_context_id); uint64_t onNewConnection(uint64_t context_id); uint64_t onDownstreamData(uint64_t context_id, uint64_t data_length, uint64_t end_of_stream); diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index 4b9be47db..494c5f80d 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -35,8 +35,8 @@ struct NullVm : public WasmVm { std::string_view getEngineName() override { return "null"; } Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; - bool load(std::string_view bytecode, std::string_view precompiled, - std::unordered_map function_names) override; + bool load(std::string_view plugin_name, std::string_view precompiled, + const std::unordered_map &function_names) override; bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; diff --git a/include/proxy-wasm/vm_id_handle.h b/include/proxy-wasm/vm_id_handle.h index b290d8f95..547eca229 100644 --- a/include/proxy-wasm/vm_id_handle.h +++ b/include/proxy-wasm/vm_id_handle.h @@ -31,6 +31,6 @@ class VmIdHandle { }; std::shared_ptr getVmIdHandle(std::string_view vm_id); -void registerVmIdHandleCallback(std::function f); +void registerVmIdHandleCallback(const std::function &f); } // namespace proxy_wasm diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index f35e6694c..fbef823ad 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -52,7 +52,7 @@ class WasmBase : public std::enable_shared_from_this { std::string_view vm_configuration, std::string_view vm_key, std::unordered_map envs, AllowedCapabilitiesMap allowed_capabilities); - WasmBase(const std::shared_ptr &other, WasmVmFactory factory); + WasmBase(const std::shared_ptr &base_wasm_handle, const WasmVmFactory &factory); virtual ~WasmBase(); bool load(const std::string &code, bool allow_precompiled = false); @@ -60,7 +60,7 @@ class WasmBase : public std::enable_shared_from_this { void startVm(ContextBase *root_context); bool configure(ContextBase *root_context, std::shared_ptr plugin); // Returns the root ContextBase or nullptr if onStart returns false. - ContextBase *start(std::shared_ptr plugin); + ContextBase *start(const std::shared_ptr &plugin); std::string_view vm_id() const { return vm_id_; } std::string_view vm_key() const { return vm_key_; } @@ -340,11 +340,13 @@ using WasmHandleCloneFactory = std::function(std::shared_ptr wasm)>; // Returns nullptr on failure (i.e. initialization of the VM fails). -std::shared_ptr -createWasm(std::string vm_key, std::string code, std::shared_ptr plugin, - WasmHandleFactory factory, WasmHandleCloneFactory clone_factory, bool allow_precompiled); -// Get an existing ThreadLocal VM matching 'vm_id' or nullptr if there isn't one. -std::shared_ptr getThreadLocalWasm(std::string_view vm_id); +std::shared_ptr createWasm(const std::string &vm_key, const std::string &code, + const std::shared_ptr &plugin, + const WasmHandleFactory &factory, + const WasmHandleCloneFactory &clone_factory, + bool allow_precompiled); +// Get an existing ThreadLocal VM matching 'vm_key' or nullptr if there isn't one. +std::shared_ptr getThreadLocalWasm(std::string_view vm_key); class PluginHandleBase : public std::enable_shared_from_this { public: @@ -371,8 +373,8 @@ using PluginHandleFactory = std::function( // Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wavm' by cloning or by // using it it as a template. std::shared_ptr getOrCreateThreadLocalPlugin( - std::shared_ptr base_wasm, std::shared_ptr plugin, - WasmHandleCloneFactory clone_factory, PluginHandleFactory plugin_factory); + const std::shared_ptr &base_handle, const std::shared_ptr &plugin, + const WasmHandleCloneFactory &clone_factory, const PluginHandleFactory &plugin_factory); // Clear Base Wasm cache and the thread-local Wasm sandbox cache for the calling thread. void clearWasmCachesForTesting(); @@ -403,7 +405,7 @@ inline uint64_t WasmBase::copyString(std::string_view s) { if (s.empty()) { return 0; // nullptr } - uint64_t pointer; + uint64_t pointer = 0; uint8_t *m = static_cast(allocMemory((s.size() + 1), &pointer)); memcpy(m, s.data(), s.size()); m[s.size()] = 0; diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 9e0e5a815..1f857951e 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -214,7 +214,7 @@ class WasmVm { * @return whether or not the load was successful. */ virtual bool load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map function_names) = 0; + const std::unordered_map &function_names) = 0; /** * Link the WASM code to the host-provided functions, e.g. the ABI. Prior to linking, the module diff --git a/src/bytecode_util.cc b/src/bytecode_util.cc index 22866c3a7..3c5f768f2 100644 --- a/src/bytecode_util.cc +++ b/src/bytecode_util.cc @@ -21,7 +21,7 @@ namespace proxy_wasm { bool BytecodeUtil::checkWasmHeader(std::string_view bytecode) { // Wasm file header is 8 bytes (magic number + version). static const uint8_t wasm_magic_number[4] = {0x00, 0x61, 0x73, 0x6d}; - return bytecode.size() < 8 || !::memcmp(bytecode.data(), wasm_magic_number, 4); + return (bytecode.size() < 8 || ::memcmp(bytecode.data(), wasm_magic_number, 4) == 0); } bool BytecodeUtil::getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersion &ret) { @@ -55,7 +55,7 @@ bool BytecodeUtil::getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersi if (!parseVarint(pos, end, export_name_size) || pos + export_name_size > end) { return false; } - const auto name_begin = pos; + const auto *const name_begin = pos; pos += export_name_size; if (pos + 1 > end) { return false; @@ -67,10 +67,12 @@ bool BytecodeUtil::getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersi if (export_name == "proxy_abi_version_0_1_0") { ret = AbiVersion::ProxyWasm_0_1_0; return true; - } else if (export_name == "proxy_abi_version_0_2_0") { + } + if (export_name == "proxy_abi_version_0_2_0") { ret = AbiVersion::ProxyWasm_0_2_0; return true; - } else if (export_name == "proxy_abi_version_0_2_1") { + } + if (export_name == "proxy_abi_version_0_2_1") { ret = AbiVersion::ProxyWasm_0_2_1; return true; } @@ -81,9 +83,8 @@ bool BytecodeUtil::getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersi } } return true; - } else { - pos += section_len; } + pos += section_len; } return true; } @@ -109,7 +110,7 @@ bool BytecodeUtil::getCustomSection(std::string_view bytecode, std::string_view } if (section_type == 0) { // Custom section. - const auto section_data_start = pos; + const auto *const section_data_start = pos; uint32_t section_name_len = 0; if (!BytecodeUtil::parseVarint(pos, end, section_name_len) || pos + section_name_len > end) { return false; @@ -149,7 +150,7 @@ bool BytecodeUtil::getFunctionNameIndex(std::string_view bytecode, pos += subsection_size; } else { // Enters function name subsection. - const auto start = pos; + const auto *const start = pos; uint32_t namemap_vector_size = 0; if (!parseVarint(pos, end, namemap_vector_size) || pos + namemap_vector_size > end) { return false; @@ -186,7 +187,7 @@ bool BytecodeUtil::getStrippedSource(std::string_view bytecode, std::string &ret const char *pos = bytecode.data() + 8; const char *end = bytecode.data() + bytecode.size(); while (pos < end) { - const auto section_start = pos; + const auto *const section_start = pos; if (pos + 1 > end) { return false; } @@ -196,7 +197,7 @@ bool BytecodeUtil::getStrippedSource(std::string_view bytecode, std::string &ret return false; } if (section_type == 0 /* custom section */) { - const auto section_data_start = pos; + const auto *const section_data_start = pos; uint32_t section_name_len = 0; if (!parseVarint(pos, end, section_name_len) || pos + section_name_len > end) { return false; diff --git a/src/common/types.h b/src/common/types.h index 82803c9dc..0ac4c13aa 100644 --- a/src/common/types.h +++ b/src/common/types.h @@ -16,8 +16,7 @@ #include -namespace proxy_wasm { -namespace common { +namespace proxy_wasm::common { template class CSmartPtr : public std::unique_ptr { @@ -36,5 +35,4 @@ template class CSma T item; }; -} // namespace common -} // namespace proxy_wasm +} // namespace proxy_wasm::common diff --git a/src/context.cc b/src/context.cc index 81633a7b3..29037ae43 100644 --- a/src/context.cc +++ b/src/context.cc @@ -29,7 +29,8 @@ if (isFailed()) { \ if (plugin_->fail_open_) { \ return _return_open; \ - } else if (!stream_failed_) { \ + } \ + if (!stream_failed_) { \ failStream(_stream_type); \ failStream(_stream_type2); \ stream_failed_ = true; \ @@ -90,7 +91,7 @@ ContextBase::ContextBase(WasmBase *wasm) : wasm_(wasm), parent_context_(this) { wasm_->contexts_[id_] = this; } -ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) +ContextBase::ContextBase(WasmBase *wasm, const std::shared_ptr &plugin) : wasm_(wasm), id_(wasm->allocContextId()), parent_context_(this), root_id_(plugin->root_id_), root_log_prefix_(makeRootLogPrefix(plugin->vm_id_)), plugin_(plugin) { wasm_->contexts_[id_] = this; @@ -98,10 +99,11 @@ ContextBase::ContextBase(WasmBase *wasm, std::shared_ptr plugin) // NB: wasm can be nullptr if it failed to be created successfully. ContextBase::ContextBase(WasmBase *wasm, uint32_t parent_context_id, - std::shared_ptr plugin_handle) - : wasm_(wasm), id_(wasm ? wasm->allocContextId() : 0), parent_context_id_(parent_context_id), - plugin_(plugin_handle->plugin()), plugin_handle_(plugin_handle) { - if (wasm_) { + const std::shared_ptr &plugin_handle) + : wasm_(wasm), id_(wasm != nullptr ? wasm->allocContextId() : 0), + parent_context_id_(parent_context_id), plugin_(plugin_handle->plugin()), + plugin_handle_(plugin_handle) { + if (wasm_ != nullptr) { wasm_->contexts_[id_] = this; parent_context_ = wasm_->contexts_[parent_context_id_]; } @@ -109,7 +111,7 @@ ContextBase::ContextBase(WasmBase *wasm, uint32_t parent_context_id, WasmVm *ContextBase::wasmVm() const { return wasm_->wasm_vm(); } -bool ContextBase::isFailed() { return !wasm_ || wasm_->isFailed(); } +bool ContextBase::isFailed() { return (wasm_ == nullptr || wasm_->isFailed()); } std::string ContextBase::makeRootLogPrefix(std::string_view vm_id) const { std::string prefix; @@ -175,7 +177,7 @@ bool ContextBase::onConfigure(std::shared_ptr plugin) { void ContextBase::onCreate() { if (!isFailed() && !in_vm_context_created_ && wasm_->on_context_create_) { DeferAfterCallActions actions(this); - wasm_->on_context_create_(this, id_, parent_context_ ? parent_context()->id() : 0); + wasm_->on_context_create_(this, id_, parent_context_ != nullptr ? parent_context()->id() : 0); } // NB: If no on_context_create function is registered the in-VM SDK is responsible for // managing any required in-VM state. @@ -204,20 +206,20 @@ WasmResult ContextBase::removeSharedDataKey(std::string_view key, uint32_t cas, // Shared Queue WasmResult ContextBase::registerSharedQueue(std::string_view queue_name, - SharedQueueDequeueToken *result) { + SharedQueueDequeueToken *token_ptr) { // Get the id of the root context if this is a stream context because onQueueReady is on the // root. - *result = getGlobalSharedQueue().registerQueue(wasm_->vm_id(), queue_name, - isRootContext() ? id_ : parent_context_id_, - wasm_->callOnThreadFunction(), wasm_->vm_key()); + *token_ptr = getGlobalSharedQueue().registerQueue(wasm_->vm_id(), queue_name, + isRootContext() ? id_ : parent_context_id_, + wasm_->callOnThreadFunction(), wasm_->vm_key()); return WasmResult::Ok; } WasmResult ContextBase::lookupSharedQueue(std::string_view vm_id, std::string_view queue_name, - uint32_t *token_ptr) { - uint32_t token = + SharedQueueDequeueToken *token_ptr) { + SharedQueueDequeueToken token = getGlobalSharedQueue().resolveQueue(vm_id.empty() ? wasm_->vm_id() : vm_id, queue_name); - if (isFailed() || !token) { + if (isFailed() || token == 0U) { return WasmResult::NotFound; } *token_ptr = token; @@ -239,7 +241,7 @@ void ContextBase::destroy() { onDone(); } -void ContextBase::onTick(uint32_t) { +void ContextBase::onTick(uint32_t /*token*/) { if (!isFailed() && wasm_->on_tick_) { DeferAfterCallActions actions(this); wasm_->on_tick_(this, id_); @@ -321,14 +323,14 @@ FilterHeadersStatus ContextBase::onRequestHeaders(uint32_t headers, bool end_of_ return convertVmCallResultToFilterHeadersStatus(result); } -FilterDataStatus ContextBase::onRequestBody(uint32_t data_length, bool end_of_stream) { +FilterDataStatus ContextBase::onRequestBody(uint32_t body_length, bool end_of_stream) { CHECK_FAIL_HTTP(FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); if (!wasm_->on_request_body_) { return FilterDataStatus::Continue; } DeferAfterCallActions actions(this); const auto result = - wasm_->on_request_body_(this, id_, data_length, static_cast(end_of_stream)); + wasm_->on_request_body_(this, id_, body_length, static_cast(end_of_stream)); CHECK_FAIL_HTTP(FilterDataStatus::Continue, FilterDataStatus::StopIterationNoBuffer); return convertVmCallResultToFilterDataStatus(result); } @@ -519,7 +521,7 @@ FilterMetadataStatus ContextBase::convertVmCallResultToFilterMetadataStatus(uint ContextBase::~ContextBase() { // Do not remove vm context which has the same lifetime as wasm_. - if (id_) { + if (id_ != 0U) { wasm_->contexts_.erase(id_); } } diff --git a/src/exports.cc b/src/exports.cc index a63e09159..aac5e0f2a 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -17,6 +17,8 @@ #include +#include + namespace proxy_wasm { // Any currently executing Wasm call context. @@ -24,20 +26,16 @@ ContextBase *contextOrEffectiveContext() { if (effective_context_id_ == 0) { return current_context_; } - auto effective_context = current_context_->wasm()->getContext(effective_context_id_); - if (effective_context) { + auto *effective_context = current_context_->wasm()->getContext(effective_context_id_); + if (effective_context != nullptr) { return effective_context; } // The effective_context_id_ no longer exists, revert to the true context. return current_context_; }; -// The id of the context which should be used for calls out of the VM in place -// of current_context_. -extern thread_local uint32_t effective_context_id_; - std::unordered_map &foreignFunctions() { - static auto ptr = new std::unordered_map; + static auto *ptr = new std::unordered_map; return *ptr; } @@ -50,8 +48,8 @@ WasmForeignFunction getForeignFunction(std::string_view function_name) { return nullptr; } -RegisterForeignFunction::RegisterForeignFunction(std::string name, WasmForeignFunction f) { - foreignFunctions()[name] = f; +RegisterForeignFunction::RegisterForeignFunction(const std::string &name, WasmForeignFunction f) { + foreignFunctions()[name] = std::move(f); } namespace exports { @@ -91,7 +89,7 @@ bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint6 return context->wasm()->copyToPointerSize("", ptr_ptr, size_ptr); } uint64_t size = pairsSize(result); - uint64_t ptr; + uint64_t ptr = 0; char *buffer = static_cast(context->wasm()->allocMemory(size, &ptr)); marshalPairs(result, buffer); if (!context->wasmVm()->setWord(ptr_ptr, Word(ptr))) { @@ -108,7 +106,7 @@ bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint6 // General ABI. Word set_property(Word key_ptr, Word key_size, Word value_ptr, Word value_size) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -119,7 +117,7 @@ Word set_property(Word key_ptr, Word key_size, Word value_ptr, Word value_size) // Generic selector Word get_property(Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_size_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto path = context->wasmVm()->getMemory(path_ptr, path_size); if (!path.has_value()) { return WasmResult::InvalidMemoryAccess; @@ -136,7 +134,7 @@ Word get_property(Word path_ptr, Word path_size, Word value_ptr_ptr, Word value_ } Word get_configuration(Word value_ptr_ptr, Word value_size_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto value = context->getConfiguration(); if (!context->wasm()->copyToPointerSize(value, value_ptr_ptr, value_size_ptr)) { return WasmResult::InvalidMemoryAccess; @@ -145,7 +143,7 @@ Word get_configuration(Word value_ptr_ptr, Word value_size_ptr) { } Word get_status(Word code_ptr, Word value_ptr_ptr, Word value_size_ptr) { - auto context = contextOrEffectiveContext()->root_context(); + auto *context = contextOrEffectiveContext()->root_context(); auto status = context->getStatus(); if (!context->wasm()->setDatatype(code_ptr, status.first)) { return WasmResult::InvalidMemoryAccess; @@ -160,17 +158,17 @@ Word get_status(Word code_ptr, Word value_ptr_ptr, Word value_size_ptr) { // Continue/Reply/Route Word continue_request() { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); return context->continueStream(WasmStreamType::Request); } Word continue_response() { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); return context->continueStream(WasmStreamType::Response); } Word continue_stream(Word type) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); if (type > static_cast(WasmStreamType::MAX)) { return WasmResult::BadArgument; } @@ -178,7 +176,7 @@ Word continue_stream(Word type) { } Word close_stream(Word type) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); if (type > static_cast(WasmStreamType::MAX)) { return WasmResult::BadArgument; } @@ -188,8 +186,8 @@ Word close_stream(Word type) { Word send_local_response(Word response_code, Word response_code_details_ptr, Word response_code_details_size, Word body_ptr, Word body_size, Word additional_response_header_pairs_ptr, - Word additional_response_header_pairs_size, Word grpc_code) { - auto context = contextOrEffectiveContext(); + Word additional_response_header_pairs_size, Word grpc_status) { + auto *context = contextOrEffectiveContext(); auto details = context->wasmVm()->getMemory(response_code_details_ptr, response_code_details_size); auto body = context->wasmVm()->getMemory(body_ptr, body_size); @@ -199,23 +197,23 @@ Word send_local_response(Word response_code, Word response_code_details_ptr, return WasmResult::InvalidMemoryAccess; } auto additional_headers = toPairs(additional_response_header_pairs.value()); - context->sendLocalResponse(response_code, body.value(), std::move(additional_headers), grpc_code, - details.value()); + context->sendLocalResponse(response_code, body.value(), std::move(additional_headers), + grpc_status, details.value()); context->wasm()->stopNextIteration(true); return WasmResult::Ok; } Word clear_route_cache() { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); context->clearRouteCache(); return WasmResult::Ok; } Word set_effective_context(Word context_id) { - auto context = contextOrEffectiveContext(); - uint32_t cid = static_cast(context_id); - auto c = context->wasm()->getContext(cid); - if (!c) { + auto *context = contextOrEffectiveContext(); + auto cid = static_cast(context_id); + auto *c = context->wasm()->getContext(cid); + if (c == nullptr) { return WasmResult::BadArgument; } effective_context_id_ = cid; @@ -223,13 +221,13 @@ Word set_effective_context(Word context_id) { } Word done() { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); return context->wasm()->done(context); } Word call_foreign_function(Word function_name, Word function_name_size, Word arguments, Word arguments_size, Word results, Word results_size) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto function = context->wasmVm()->getMemory(function_name, function_name_size); if (!function) { return WasmResult::InvalidMemoryAccess; @@ -248,7 +246,7 @@ Word call_foreign_function(Word function_name, Word function_name_size, Word arg void *result = nullptr; size_t result_size = 0; auto res = f(wasm, args, [&wasm, &address, &result, &result_size, results](size_t s) -> void * { - if (results) { + if (results != 0U) { result = wasm.allocMemory(s, &address); } else { // If the caller does not want the results, allocate a temporary buffer for them. @@ -257,13 +255,13 @@ Word call_foreign_function(Word function_name, Word function_name_size, Word arg result_size = s; return result; }); - if (results && !context->wasmVm()->setWord(results, Word(address))) { + if (results != 0U && !context->wasmVm()->setWord(results, Word(address))) { return WasmResult::InvalidMemoryAccess; } - if (results_size && !context->wasmVm()->setWord(results_size, Word(result_size))) { + if (results_size != 0U && !context->wasmVm()->setWord(results_size, Word(result_size))) { return WasmResult::InvalidMemoryAccess; } - if (!results) { + if (results == 0U) { ::free(result); } return res; @@ -272,7 +270,7 @@ Word call_foreign_function(Word function_name, Word function_name_size, Word arg // SharedData Word get_shared_data(Word key_ptr, Word key_size, Word value_ptr_ptr, Word value_size_ptr, Word cas_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); if (!key) { return WasmResult::InvalidMemoryAccess; @@ -292,7 +290,7 @@ Word get_shared_data(Word key_ptr, Word key_size, Word value_ptr_ptr, Word value } Word set_shared_data(Word key_ptr, Word key_size, Word value_ptr, Word value_size, Word cas) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -302,7 +300,7 @@ Word set_shared_data(Word key_ptr, Word key_size, Word value_ptr, Word value_siz } Word register_shared_queue(Word queue_name_ptr, Word queue_name_size, Word token_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto queue_name = context->wasmVm()->getMemory(queue_name_ptr, queue_name_size); if (!queue_name) { return WasmResult::InvalidMemoryAccess; @@ -319,7 +317,7 @@ Word register_shared_queue(Word queue_name_ptr, Word queue_name_size, Word token } Word dequeue_shared_queue(Word token, Word data_ptr_ptr, Word data_size_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); std::string data; WasmResult result = context->dequeueSharedQueue(token.u32(), &data); if (result != WasmResult::Ok) { @@ -333,7 +331,7 @@ Word dequeue_shared_queue(Word token, Word data_ptr_ptr, Word data_size_ptr) { Word resolve_shared_queue(Word vm_id_ptr, Word vm_id_size, Word queue_name_ptr, Word queue_name_size, Word token_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto vm_id = context->wasmVm()->getMemory(vm_id_ptr, vm_id_size); auto queue_name = context->wasmVm()->getMemory(queue_name_ptr, queue_name_size); if (!vm_id || !queue_name) { @@ -351,7 +349,7 @@ Word resolve_shared_queue(Word vm_id_ptr, Word vm_id_size, Word queue_name_ptr, } Word enqueue_shared_queue(Word token, Word data_ptr, Word data_size) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto data = context->wasmVm()->getMemory(data_ptr, data_size); if (!data) { return WasmResult::InvalidMemoryAccess; @@ -364,7 +362,7 @@ Word add_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -379,7 +377,7 @@ Word get_header_map_value(Word type, Word key_ptr, Word key_size, Word value_ptr if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); if (!key) { return WasmResult::InvalidMemoryAccess; @@ -401,7 +399,7 @@ Word replace_header_map_value(Word type, Word key_ptr, Word key_size, Word value if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); auto value = context->wasmVm()->getMemory(value_ptr, value_size); if (!key || !value) { @@ -415,7 +413,7 @@ Word remove_header_map_value(Word type, Word key_ptr, Word key_size) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto key = context->wasmVm()->getMemory(key_ptr, key_size); if (!key) { return WasmResult::InvalidMemoryAccess; @@ -427,7 +425,7 @@ Word get_header_map_pairs(Word type, Word ptr_ptr, Word size_ptr) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); Pairs pairs; auto result = context->getHeaderMapPairs(static_cast(type.u64_), &pairs); if (result != WasmResult::Ok) { @@ -443,7 +441,7 @@ Word set_header_map_pairs(Word type, Word ptr, Word size) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto data = context->wasmVm()->getMemory(ptr, size); if (!data) { return WasmResult::InvalidMemoryAccess; @@ -456,7 +454,7 @@ Word get_header_map_size(Word type, Word result_ptr) { if (type > static_cast(WasmHeaderMapType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); uint32_t size; auto result = context->getHeaderMapSize(static_cast(type.u64_), &size); if (result != WasmResult::Ok) { @@ -473,9 +471,9 @@ Word get_buffer_bytes(Word type, Word start, Word length, Word ptr_ptr, Word siz if (type > static_cast(WasmBufferType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); - auto buffer = context->getBuffer(static_cast(type.u64_)); - if (!buffer) { + auto *context = contextOrEffectiveContext(); + auto *buffer = context->getBuffer(static_cast(type.u64_)); + if (buffer == nullptr) { return WasmResult::NotFound; } // Check for overflow. @@ -496,9 +494,9 @@ Word get_buffer_status(Word type, Word length_ptr, Word flags_ptr) { if (type > static_cast(WasmBufferType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); - auto buffer = context->getBuffer(static_cast(type.u64_)); - if (!buffer) { + auto *context = contextOrEffectiveContext(); + auto *buffer = context->getBuffer(static_cast(type.u64_)); + if (buffer == nullptr) { return WasmResult::NotFound; } auto length = buffer->size(); @@ -516,9 +514,9 @@ Word set_buffer_bytes(Word type, Word start, Word length, Word data_ptr, Word da if (type > static_cast(WasmBufferType::MAX)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); - auto buffer = context->getBuffer(static_cast(type.u64_)); - if (!buffer) { + auto *context = contextOrEffectiveContext(); + auto *buffer = context->getBuffer(static_cast(type.u64_)); + if (buffer == nullptr) { return WasmResult::NotFound; } auto data = context->wasmVm()->getMemory(data_ptr, data_size); @@ -531,7 +529,7 @@ Word set_buffer_bytes(Word type, Word start, Word length, Word data_ptr, Word da Word http_call(Word uri_ptr, Word uri_size, Word header_pairs_ptr, Word header_pairs_size, Word body_ptr, Word body_size, Word trailer_pairs_ptr, Word trailer_pairs_size, Word timeout_milliseconds, Word token_ptr) { - auto context = contextOrEffectiveContext()->root_context(); + auto *context = contextOrEffectiveContext()->root_context(); auto uri = context->wasmVm()->getMemory(uri_ptr, uri_size); auto body = context->wasmVm()->getMemory(body_ptr, body_size); auto header_pairs = context->wasmVm()->getMemory(header_pairs_ptr, header_pairs_size); @@ -554,7 +552,7 @@ Word http_call(Word uri_ptr, Word uri_size, Word header_pairs_ptr, Word header_p } Word define_metric(Word metric_type, Word name_ptr, Word name_size, Word metric_id_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto name = context->wasmVm()->getMemory(name_ptr, name_size); if (!name) { return WasmResult::InvalidMemoryAccess; @@ -572,17 +570,17 @@ Word define_metric(Word metric_type, Word name_ptr, Word name_size, Word metric_ } Word increment_metric(Word metric_id, int64_t offset) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); return context->incrementMetric(metric_id, offset); } Word record_metric(Word metric_id, uint64_t value) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); return context->recordMetric(metric_id, value); } Word get_metric(Word metric_id, Word result_uint64_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); uint64_t value = 0; auto result = context->getMetric(metric_id, &value); if (result != WasmResult::Ok) { @@ -598,7 +596,7 @@ Word grpc_call(Word service_ptr, Word service_size, Word service_name_ptr, Word Word method_name_ptr, Word method_name_size, Word initial_metadata_ptr, Word initial_metadata_size, Word request_ptr, Word request_size, Word timeout_milliseconds, Word token_ptr) { - auto context = contextOrEffectiveContext()->root_context(); + auto *context = contextOrEffectiveContext()->root_context(); auto service = context->wasmVm()->getMemory(service_ptr, service_size); auto service_name = context->wasmVm()->getMemory(service_name_ptr, service_name_size); auto method_name = context->wasmVm()->getMemory(method_name_ptr, method_name_size); @@ -625,7 +623,7 @@ Word grpc_call(Word service_ptr, Word service_size, Word service_name_ptr, Word Word grpc_stream(Word service_ptr, Word service_size, Word service_name_ptr, Word service_name_size, Word method_name_ptr, Word method_name_size, Word initial_metadata_ptr, Word initial_metadata_size, Word token_ptr) { - auto context = contextOrEffectiveContext()->root_context(); + auto *context = contextOrEffectiveContext()->root_context(); auto service = context->wasmVm()->getMemory(service_ptr, service_size); auto service_name = context->wasmVm()->getMemory(service_name_ptr, service_name_size); auto method_name = context->wasmVm()->getMemory(method_name_ptr, method_name_size); @@ -648,47 +646,48 @@ Word grpc_stream(Word service_ptr, Word service_size, Word service_name_ptr, Wor } Word grpc_cancel(Word token) { - auto context = contextOrEffectiveContext()->root_context(); + auto *context = contextOrEffectiveContext()->root_context(); return context->grpcCancel(token); } Word grpc_close(Word token) { - auto context = contextOrEffectiveContext()->root_context(); + auto *context = contextOrEffectiveContext()->root_context(); return context->grpcClose(token); } Word grpc_send(Word token, Word message_ptr, Word message_size, Word end_stream) { - auto context = contextOrEffectiveContext()->root_context(); + auto *context = contextOrEffectiveContext()->root_context(); auto message = context->wasmVm()->getMemory(message_ptr, message_size); if (!message) { return WasmResult::InvalidMemoryAccess; } - return context->grpcSend(token, message.value(), end_stream); + return context->grpcSend(token, message.value(), end_stream != 0U); } // __wasi_errno_t path_open(__wasi_fd_t fd, __wasi_lookupflags_t dirflags, const char *path, // size_t path_len, __wasi_oflags_t oflags, __wasi_rights_t fs_rights_base, __wasi_rights_t // fs_rights_inheriting, __wasi_fdflags_t fdflags, __wasi_fd_t *retptr0) -Word wasi_unstable_path_open(Word fd, Word dir_flags, Word path, Word path_len, Word oflags, - int64_t fs_rights_base, int64_t fg_rights_inheriting, Word fd_flags, - Word nwritten_ptr) { +Word wasi_unstable_path_open(Word /*fd*/, Word /*dir_flags*/, Word /*path*/, Word /*path_len*/, + Word /*oflags*/, int64_t /*fs_rights_base*/, + int64_t /*fg_rights_inheriting*/, Word /*fd_flags*/, + Word /*nwritten_ptr*/) { return 44; // __WASI_ERRNO_NOENT } // __wasi_errno_t __wasi_fd_prestat_get(__wasi_fd_t fd, __wasi_prestat_t *retptr0) -Word wasi_unstable_fd_prestat_get(Word fd, Word buf_ptr) { +Word wasi_unstable_fd_prestat_get(Word /*fd*/, Word /*buf_ptr*/) { return 8; // __WASI_ERRNO_BADF } // __wasi_errno_t __wasi_fd_prestat_dir_name(__wasi_fd_t fd, uint8_t * path, __wasi_size_t path_len) -Word wasi_unstable_fd_prestat_dir_name(Word fd, Word path_ptr, Word path_len) { +Word wasi_unstable_fd_prestat_dir_name(Word /*fd*/, Word /*path_ptr*/, Word /*path_len*/) { return 52; // __WASI_ERRNO_ENOSYS } // Implementation of writev-like() syscall that redirects stdout/stderr to Envoy // logs. Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); // Read syscall args. uint64_t log_level; @@ -710,8 +709,8 @@ Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { if (!memslice) { return 21; // __WASI_EFAULT } - const uint32_t *iovec = reinterpret_cast(memslice.value().data()); - if (iovec[1] /* buf_len */) { + const auto *iovec = reinterpret_cast(memslice.value().data()); + if (iovec[1] != 0U /* buf_len */) { memslice = context->wasmVm()->getMemory(wasmtoh(iovec[0]) /* buf */, wasmtoh(iovec[1]) /* buf_len */); if (!memslice) { @@ -722,7 +721,7 @@ Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { } size_t written = s.size(); - if (written) { + if (written != 0U) { // Remove trailing newline from the logs, if any. if (s[written - 1] == '\n') { s.erase(written - 1); @@ -738,7 +737,7 @@ Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { // __wasi_errno_t __wasi_fd_write(_wasi_fd_t fd, const _wasi_ciovec_t *iov, // size_t iovs_len, size_t* nwritten); Word wasi_unstable_fd_write(Word fd, Word iovs, Word iovs_len, Word nwritten_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); Word nwritten(0); auto result = writevImpl(fd, iovs, iovs_len, &nwritten); @@ -753,22 +752,23 @@ Word wasi_unstable_fd_write(Word fd, Word iovs, Word iovs_len, Word nwritten_ptr // __wasi_errno_t __wasi_fd_read(_wasi_fd_t fd, const __wasi_iovec_t *iovs, // size_t iovs_len, __wasi_size_t *nread); -Word wasi_unstable_fd_read(Word, Word, Word, Word) { +Word wasi_unstable_fd_read(Word /*fd*/, Word /*iovs_ptr*/, Word /*iovs_len*/, Word /*nread_ptr*/) { // Don't support reading of any files. return 52; // __WASI_ERRNO_ENOSYS } // __wasi_errno_t __wasi_fd_seek(__wasi_fd_t fd, __wasi_filedelta_t offset, // __wasi_whence_t whence,__wasi_filesize_t *newoffset); -Word wasi_unstable_fd_seek(Word, int64_t, Word, Word) { - auto context = contextOrEffectiveContext(); +Word wasi_unstable_fd_seek(Word /*fd*/, int64_t /*offset*/, Word /*whence*/, + Word /*newoffset_ptr*/) { + auto *context = contextOrEffectiveContext(); context->error("wasi_unstable fd_seek"); return 0; } // __wasi_errno_t __wasi_fd_close(__wasi_fd_t fd); -Word wasi_unstable_fd_close(Word) { - auto context = contextOrEffectiveContext(); +Word wasi_unstable_fd_close(Word /*fd*/) { + auto *context = contextOrEffectiveContext(); context->error("wasi_unstable fd_close"); return 0; } @@ -787,7 +787,7 @@ Word wasi_unstable_fd_fdstat_get(Word fd, Word statOut) { wasi_fdstat[1] = 64; // This sets "fs_rights_base" to __WASI_RIGHTS_FD_WRITE wasi_fdstat[2] = 0; - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); context->wasmVm()->setMemory(statOut, 3 * sizeof(uint64_t), &wasi_fdstat); return 0; // __WASI_ESUCCESS @@ -795,10 +795,10 @@ Word wasi_unstable_fd_fdstat_get(Word fd, Word statOut) { // __wasi_errno_t __wasi_environ_get(char **environ, char *environ_buf); Word wasi_unstable_environ_get(Word environ_array_ptr, Word environ_buf) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto word_size = context->wasmVm()->getWordSize(); - auto &envs = context->wasm()->envs(); - for (auto e : envs) { + const auto &envs = context->wasm()->envs(); + for (const auto &e : envs) { if (!context->wasmVm()->setWord(environ_array_ptr, environ_buf)) { return 21; // __WASI_EFAULT } @@ -822,14 +822,14 @@ Word wasi_unstable_environ_get(Word environ_array_ptr, Word environ_buf) { // __wasi_errno_t __wasi_environ_sizes_get(size_t *environ_count, size_t // *environ_buf_size); Word wasi_unstable_environ_sizes_get(Word count_ptr, Word buf_size_ptr) { - auto context = contextOrEffectiveContext(); - auto &envs = context->wasm()->envs(); + auto *context = contextOrEffectiveContext(); + const auto &envs = context->wasm()->envs(); if (!context->wasmVm()->setWord(count_ptr, Word(envs.size()))) { return 21; // __WASI_EFAULT } size_t size = 0; - for (auto e : envs) { + for (const auto &e : envs) { // len(key) + len(value) + 1('=') + 1(null terminator) size += e.first.size() + e.second.size() + 2; } @@ -839,14 +839,14 @@ Word wasi_unstable_environ_sizes_get(Word count_ptr, Word buf_size_ptr) { return 0; // __WASI_ESUCCESS } -// __wasi_errno_t __wasi_args_get(size_t **argv, size_t *argv_buf); -Word wasi_unstable_args_get(Word, Word) { +// __wasi_errno_t __wasi_args_get(uint8_t **argv, uint8_t *argv_buf); +Word wasi_unstable_args_get(Word /*argv_array_ptr*/, Word /*argv_buf_ptr*/) { return 0; // __WASI_ESUCCESS } // __wasi_errno_t __wasi_args_sizes_get(size_t *argc, size_t *argv_buf_size); Word wasi_unstable_args_sizes_get(Word argc_ptr, Word argv_buf_size_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); if (!context->wasmVm()->setWord(argc_ptr, Word(0))) { return 21; // __WASI_EFAULT } @@ -857,10 +857,11 @@ Word wasi_unstable_args_sizes_get(Word argc_ptr, Word argv_buf_size_ptr) { } // __wasi_errno_t __wasi_clock_time_get(uint32_t id, uint64_t precision, uint64_t* time); -Word wasi_unstable_clock_time_get(Word clock_id, uint64_t precision, Word result_time_uint64_ptr) { +Word wasi_unstable_clock_time_get(Word clock_id, uint64_t /*precision*/, + Word result_time_uint64_ptr) { uint64_t result = 0; - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); switch (clock_id) { case 0 /* realtime */: result = context->getCurrentTimeNanoseconds(); @@ -880,7 +881,7 @@ Word wasi_unstable_clock_time_get(Word clock_id, uint64_t precision, Word result // __wasi_errno_t __wasi_random_get(uint8_t *buf, size_t buf_len); Word wasi_unstable_random_get(Word result_buf_ptr, Word buf_len) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); std::vector random(buf_len); RAND_bytes(random.data(), random.size()); if (!context->wasmVm()->setMemory(result_buf_ptr, random.size(), random.data())) { @@ -890,12 +891,12 @@ Word wasi_unstable_random_get(Word result_buf_ptr, Word buf_len) { } // void __wasi_proc_exit(__wasi_exitcode_t rval); -void wasi_unstable_proc_exit(Word) { - auto context = contextOrEffectiveContext(); +void wasi_unstable_proc_exit(Word /*exit_code*/) { + auto *context = contextOrEffectiveContext(); context->error("wasi_unstable proc_exit"); } -Word pthread_equal(Word left, Word right) { return left == right; } +Word pthread_equal(Word left, Word right) { return static_cast(left == right); } Word set_tick_period_milliseconds(Word period_milliseconds) { TimerToken token = 0; @@ -904,7 +905,7 @@ Word set_tick_period_milliseconds(Word period_milliseconds) { } Word get_current_time_nanoseconds(Word result_uint64_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); uint64_t result = context->getCurrentTimeNanoseconds(); if (!context->wasm()->setDatatype(result_uint64_ptr, result)) { return WasmResult::InvalidMemoryAccess; @@ -916,7 +917,7 @@ Word log(Word level, Word address, Word size) { if (level > static_cast(LogLevel::Max)) { return WasmResult::BadArgument; } - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); auto message = context->wasmVm()->getMemory(address, size); if (!message) { return WasmResult::InvalidMemoryAccess; @@ -925,7 +926,7 @@ Word log(Word level, Word address, Word size) { } Word get_log_level(Word result_level_uint32_ptr) { - auto context = contextOrEffectiveContext(); + auto *context = contextOrEffectiveContext(); uint32_t level = context->getLogLevel(); if (!context->wasm()->setDatatype(result_level_uint32_ptr, level)) { return WasmResult::InvalidMemoryAccess; diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index 25f575e19..0f74496a2 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -15,9 +15,9 @@ #include "include/proxy-wasm/null_plugin.h" +#include +#include #include -#include -#include #include #include @@ -44,7 +44,7 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<0> *f) } void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<1> *f) { - auto plugin = this; + auto *plugin = this; if (function_name == "proxy_on_tick") { *f = [plugin](ContextBase *context, Word context_id) { SaveRestoreContext saved_context(context); @@ -67,7 +67,7 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<1> *f) } void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<2> *f) { - auto plugin = this; + auto *plugin = this; if (function_name == "proxy_on_context_create") { *f = [plugin](ContextBase *context, Word context_id, Word parent_context_id) { SaveRestoreContext saved_context(context); @@ -95,7 +95,7 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<2> *f) } void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<3> *f) { - auto plugin = this; + auto *plugin = this; if (function_name == "proxy_on_grpc_close") { *f = [plugin](ContextBase *context, Word context_id, Word token, Word status_code) { SaveRestoreContext saved_context(context); @@ -128,7 +128,7 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<3> *f) } void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<5> *f) { - auto plugin = this; + auto *plugin = this; if (function_name == "proxy_on_http_call_response") { *f = [plugin](ContextBase *context, Word context_id, Word token, Word headers, Word body_size, Word trailers) { @@ -142,9 +142,9 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallVoid<5> *f) } void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<1> *f) { - auto plugin = this; + auto *plugin = this; if (function_name == "malloc") { - *f = [](ContextBase *, Word size) -> Word { + *f = [](ContextBase * /*context*/, Word size) -> Word { return Word(reinterpret_cast(::malloc(size))); }; } else if (function_name == "proxy_on_new_connection") { @@ -164,23 +164,24 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<1> *f) } void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<2> *f) { - auto plugin = this; + auto *plugin = this; if (function_name == "main") { *f = nullptr; } else if (function_name == "proxy_on_vm_start") { *f = [plugin](ContextBase *context, Word context_id, Word configuration_size) { SaveRestoreContext saved_context(context); - return Word(plugin->onStart(context_id, configuration_size)); + return Word(static_cast(plugin->onStart(context_id, configuration_size))); }; } else if (function_name == "proxy_on_configure") { *f = [plugin](ContextBase *context, Word context_id, Word configuration_size) { SaveRestoreContext saved_context(context); - return Word(plugin->onConfigure(context_id, configuration_size)); + return Word(static_cast(plugin->onConfigure(context_id, configuration_size))); }; } else if (function_name == "proxy_validate_configuration") { *f = [plugin](ContextBase *context, Word context_id, Word configuration_size) { SaveRestoreContext saved_context(context); - return Word(plugin->validateConfiguration(context_id, configuration_size)); + return Word( + static_cast(plugin->validateConfiguration(context_id, configuration_size))); }; } else if (function_name == "proxy_on_request_trailers") { *f = [plugin](ContextBase *context, Word context_id, Word trailers) -> Word { @@ -209,7 +210,7 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<2> *f) } void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<3> *f) { - auto plugin = this; + auto *plugin = this; if (function_name == "proxy_on_downstream_data") { *f = [plugin](ContextBase *context, Word context_id, Word body_buffer_length, Word end_of_stream) -> Word { @@ -253,9 +254,9 @@ void NullPlugin::getFunction(std::string_view function_name, WasmCallWord<3> *f) null_plugin::Context *NullPlugin::ensureContext(uint64_t context_id, uint64_t root_context_id) { auto e = context_map_.insert(std::make_pair(context_id, nullptr)); if (e.second) { - auto root_base = context_map_[root_context_id].get(); - null_plugin::RootContext *root = root_base ? root_base->asRoot() : nullptr; - std::string root_id = root ? std::string(root->root_id()) : ""; + auto *root_base = context_map_[root_context_id].get(); + null_plugin::RootContext *root = (root_base != nullptr) ? root_base->asRoot() : nullptr; + std::string root_id = (root != nullptr) ? std::string(root->root_id()) : ""; auto factory = registry_->context_factories[root_id]; if (!factory) { error("no context factory for root_id: " + root_id); @@ -297,7 +298,8 @@ null_plugin::RootContext *NullPlugin::ensureRootContext(uint64_t context_id) { null_plugin::ContextBase *NullPlugin::getContextBase(uint64_t context_id) { auto it = context_map_.find(context_id); - if (it == context_map_.end() || !(it->second->asContext() || it->second->asRoot())) { + if (it == context_map_.end() || + !(it->second->asContext() != nullptr || it->second->asRoot() != nullptr)) { error("no base context context_id: " + std::to_string(context_id)); return nullptr; } @@ -306,7 +308,7 @@ null_plugin::ContextBase *NullPlugin::getContextBase(uint64_t context_id) { null_plugin::Context *NullPlugin::getContext(uint64_t context_id) { auto it = context_map_.find(context_id); - if (it == context_map_.end() || !it->second->asContext()) { + if (it == context_map_.end() || (it->second->asContext() == nullptr)) { error("no context context_id: " + std::to_string(context_id)); return nullptr; } @@ -315,7 +317,7 @@ null_plugin::Context *NullPlugin::getContext(uint64_t context_id) { null_plugin::RootContext *NullPlugin::getRootContext(uint64_t context_id) { auto it = context_map_.find(context_id); - if (it == context_map_.end() || !it->second->asRoot()) { + if (it == context_map_.end() || (it->second->asRoot() == nullptr)) { error("no root context_id: " + std::to_string(context_id)); return nullptr; } @@ -335,32 +337,32 @@ bool NullPlugin::validateConfiguration(uint64_t root_context_id, uint64_t config } bool NullPlugin::onStart(uint64_t root_context_id, uint64_t vm_configuration_size) { - if (registry_->proxy_on_vm_start_) { - return registry_->proxy_on_vm_start_(root_context_id, vm_configuration_size); + if (registry_->proxy_on_vm_start_ != nullptr) { + return registry_->proxy_on_vm_start_(root_context_id, vm_configuration_size) != 0U; } - return getRootContext(root_context_id)->onStart(vm_configuration_size) != 0; + return getRootContext(root_context_id)->onStart(vm_configuration_size); } bool NullPlugin::onConfigure(uint64_t root_context_id, uint64_t plugin_configuration_size) { - if (registry_->proxy_on_configure_) { - return registry_->proxy_on_configure_(root_context_id, plugin_configuration_size); + if (registry_->proxy_on_configure_ != nullptr) { + return registry_->proxy_on_configure_(root_context_id, plugin_configuration_size) != 0U; } return getRootContext(root_context_id)->onConfigure(plugin_configuration_size); } void NullPlugin::onTick(uint64_t root_context_id) { - if (registry_->proxy_on_tick_) { + if (registry_->proxy_on_tick_ != nullptr) { return registry_->proxy_on_tick_(root_context_id); } getRootContext(root_context_id)->onTick(); } void NullPlugin::onCreate(uint64_t context_id, uint64_t parent_context_id) { - if (registry_->proxy_on_context_create_) { + if (registry_->proxy_on_context_create_ != nullptr) { registry_->proxy_on_context_create_(context_id, parent_context_id); return; } - if (parent_context_id) { + if (parent_context_id != 0U) { ensureContext(context_id, parent_context_id)->onCreate(); } else { ensureRootContext(context_id)->onCreate(); @@ -463,14 +465,14 @@ void NullPlugin::onQueueReady(uint64_t context_id, uint64_t token) { void NullPlugin::onForeignFunction(uint64_t context_id, uint64_t foreign_function_id, uint64_t data_size) { - if (registry_->proxy_on_foreign_function_) { + if (registry_->proxy_on_foreign_function_ != nullptr) { return registry_->proxy_on_foreign_function_(context_id, foreign_function_id, data_size); } getContextBase(context_id)->onForeignFunction(foreign_function_id, data_size); } void NullPlugin::onLog(uint64_t context_id) { - if (registry_->proxy_on_log_) { + if (registry_->proxy_on_log_ != nullptr) { registry_->proxy_on_log_(context_id); return; } @@ -478,14 +480,14 @@ void NullPlugin::onLog(uint64_t context_id) { } uint64_t NullPlugin::onDone(uint64_t context_id) { - if (registry_->proxy_on_done_) { + if (registry_->proxy_on_done_ != nullptr) { return registry_->proxy_on_done_(context_id); } return getContextBase(context_id)->onDoneBase() ? 1 : 0; } void NullPlugin::onDelete(uint64_t context_id) { - if (registry_->proxy_on_delete_) { + if (registry_->proxy_on_delete_ != nullptr) { registry_->proxy_on_delete_(context_id); return; } @@ -496,13 +498,13 @@ void NullPlugin::onDelete(uint64_t context_id) { namespace null_plugin { RootContext *nullVmGetRoot(std::string_view root_id) { - auto null_vm = static_cast(current_context_->wasmVm()); - return static_cast(null_vm->plugin_.get())->getRoot(root_id); + auto *null_vm = dynamic_cast(current_context_->wasmVm()); + return dynamic_cast(null_vm->plugin_.get())->getRoot(root_id); } Context *nullVmGetContext(uint32_t context_id) { - auto null_vm = static_cast(current_context_->wasmVm()); - return static_cast(null_vm->plugin_.get())->getContext(context_id); + auto *null_vm = dynamic_cast(current_context_->wasmVm()); + return dynamic_cast(null_vm->plugin_.get())->getContext(context_id); } RootContext *getRoot(std::string_view root_id) { return nullVmGetRoot(root_id); } diff --git a/src/null/null_vm.cc b/src/null/null_vm.cc index aab2e3231..9772b58ef 100644 --- a/src/null/null_vm.cc +++ b/src/null/null_vm.cc @@ -15,7 +15,7 @@ #include "include/proxy-wasm/null_vm.h" -#include +#include #include #include @@ -31,29 +31,33 @@ std::unordered_map *null_vm_plugin_factories_ RegisterNullVmPluginFactory::RegisterNullVmPluginFactory(std::string_view name, NullVmPluginFactory factory) { - if (!null_vm_plugin_factories_) + if (null_vm_plugin_factories_ == nullptr) { null_vm_plugin_factories_ = new std::remove_reference::type; - (*null_vm_plugin_factories_)[std::string(name)] = factory; + } + (*null_vm_plugin_factories_)[std::string(name)] = std::move(factory); } std::unique_ptr NullVm::clone() { auto cloned_null_vm = std::make_unique(*this); - if (integration()) + if (integration()) { cloned_null_vm->integration().reset(integration()->clone()); + } cloned_null_vm->load(plugin_name_, {} /* unused */, {} /* unused */); return cloned_null_vm; } // "Load" the plugin by obtaining a pointer to it from the factory. -bool NullVm::load(std::string_view name, std::string_view, - const std::unordered_map) { - if (!null_vm_plugin_factories_) +bool NullVm::load(std::string_view plugin_name, std::string_view /*precompiled*/, + const std::unordered_map & /*function_names*/) { + if (null_vm_plugin_factories_ == nullptr) { return false; - auto factory = (*null_vm_plugin_factories_)[std::string(name)]; - if (!factory) + } + auto factory = (*null_vm_plugin_factories_)[std::string(plugin_name)]; + if (!factory) { return false; - plugin_name_ = name; + } + plugin_name_ = plugin_name; plugin_ = factory(); plugin_->wasm_vm_ = this; return true; @@ -72,14 +76,13 @@ std::optional NullVm::getMemory(uint64_t pointer, uint64_t siz } bool NullVm::setMemory(uint64_t pointer, uint64_t size, const void *data) { - if ((pointer == 0 || data == nullptr)) { + if (pointer == 0 || data == nullptr) { if (size != 0) { return false; - } else { - return true; } + return true; } - auto p = reinterpret_cast(pointer); + auto *p = reinterpret_cast(pointer); memcpy(p, data, size); return true; } @@ -88,7 +91,7 @@ bool NullVm::setWord(uint64_t pointer, Word data) { if (pointer == 0) { return false; } - auto p = reinterpret_cast(pointer); + auto *p = reinterpret_cast(pointer); memcpy(p, &data.u64_, sizeof(data.u64_)); return true; } @@ -97,7 +100,7 @@ bool NullVm::getWord(uint64_t pointer, Word *data) { if (pointer == 0) { return false; } - auto p = reinterpret_cast(pointer); + auto *p = reinterpret_cast(pointer); memcpy(&data->u64_, p, sizeof(data->u64_)); return true; } diff --git a/src/shared_data.cc b/src/shared_data.cc index d4306adae..0a91da58c 100644 --- a/src/shared_data.cc +++ b/src/shared_data.cc @@ -65,7 +65,7 @@ WasmResult SharedData::keys(std::string_view vm_id, std::vector *re return WasmResult::Ok; } - for (auto kv : map->second) { + for (const auto &kv : map->second) { result->push_back(kv.first); } @@ -84,7 +84,7 @@ WasmResult SharedData::set(std::string_view vm_id, std::string_view key, std::st } auto it = map->find(std::string(key)); if (it != map->end()) { - if (cas && cas != it->second.second) { + if (cas != 0U && cas != it->second.second) { return WasmResult::CasMismatch; } it->second = std::make_pair(std::string(value), nextCas()); @@ -101,13 +101,11 @@ WasmResult SharedData::remove(std::string_view vm_id, std::string_view key, uint auto map_it = data_.find(std::string(vm_id)); if (map_it == data_.end()) { return WasmResult::NotFound; - } else { - map = &map_it->second; } - + map = &map_it->second; auto it = map->find(std::string(key)); if (it != map->end()) { - if (cas && cas != it->second.second) { + if (cas != 0U && cas != it->second.second) { return WasmResult::CasMismatch; } if (result != nullptr) { diff --git a/src/shared_data.h b/src/shared_data.h index cbc76fb12..0067afb46 100644 --- a/src/shared_data.h +++ b/src/shared_data.h @@ -23,12 +23,12 @@ namespace proxy_wasm { class SharedData { public: SharedData(bool register_vm_id_callback = true); - WasmResult get(std::string_view vm_id, const std::string_view key, + WasmResult get(std::string_view vm_id, std::string_view key, std::pair *result); WasmResult keys(std::string_view vm_id, std::vector *result); WasmResult set(std::string_view vm_id, std::string_view key, std::string_view value, uint32_t cas); - WasmResult remove(std::string_view vm_id, const std::string_view key, uint32_t cas, + WasmResult remove(std::string_view vm_id, std::string_view key, uint32_t cas, std::pair *result); void deleteByVmId(std::string_view vm_id); @@ -36,7 +36,7 @@ class SharedData { uint32_t nextCas() { auto result = cas_; cas_++; - if (!cas_) { // 0 is not a valid CAS value. + if (cas_ == 0U) { // 0 is not a valid CAS value. cas_++; } return result; diff --git a/src/shared_queue.cc b/src/shared_queue.cc index 5b0a904f3..bfb3a7023 100644 --- a/src/shared_queue.cc +++ b/src/shared_queue.cc @@ -40,7 +40,7 @@ void SharedQueue::deleteByVmId(std::string_view vm_id) { std::lock_guard lock(mutex_); auto queue_keys = vm_queue_keys_.find(std::string(vm_id)); if (queue_keys != vm_queue_keys_.end()) { - for (auto queue_key : queue_keys->second) { + for (const auto &queue_key : queue_keys->second) { auto token = queue_tokens_.find(queue_key); if (token != queue_tokens_.end()) { queues_.erase(token->second); @@ -134,7 +134,7 @@ WasmResult SharedQueue::enqueue(uint32_t token, std::string_view value) { vm_key = target_queue->vm_key; context_id = target_queue->context_id; call_on_thread = target_queue->call_on_thread; - target_queue->queue.push_back(std::string(value)); + target_queue->queue.emplace_back(value); } call_on_thread([vm_key, context_id, token] { @@ -142,8 +142,8 @@ WasmResult SharedQueue::enqueue(uint32_t token, std::string_view value) { // Make sure that the lock is no longer held here. auto wasm = getThreadLocalWasm(vm_key); if (wasm) { - auto context = wasm->wasm()->getContext(context_id); - if (context) { + auto *context = wasm->wasm()->getContext(context_id); + if (context != nullptr) { context->onQueueReady(token); } } diff --git a/src/signature_util.cc b/src/signature_util.cc index 2e63ebeb0..a8f29363b 100644 --- a/src/signature_util.cc +++ b/src/signature_util.cc @@ -28,20 +28,21 @@ namespace { #ifdef PROXY_WASM_VERIFY_WITH_ED25519_PUBKEY -static uint8_t hex2dec(const unsigned char c) { +uint8_t hex2dec(const unsigned char c) { if (c >= '0' && c <= '9') { return c - '0'; - } else if (c >= 'a' && c <= 'f') { + } + if (c >= 'a' && c <= 'f') { return c - 'a' + 10; - } else if (c >= 'A' && c <= 'F') { + } + if (c >= 'A' && c <= 'F') { return c - 'A' + 10; - } else { - throw std::logic_error{"invalid hex character"}; } + throw std::logic_error{"invalid hex character"}; } template constexpr std::array hex2pubkey(const char (&hex)[2 * N + 1]) { - std::array pubkey; + std::array pubkey{}; for (size_t i = 0; i < pubkey.size(); i++) { pubkey[i] = hex2dec(hex[2 * i]) << 4 | hex2dec(hex[2 * i + 1]); } @@ -108,20 +109,21 @@ bool SignatureUtil::verifySignature(std::string_view bytecode, std::string &mess EVP_PKEY *pubkey = EVP_PKEY_new_raw_public_key(EVP_PKEY_ED25519, nullptr, ed25519_pubkey.data(), 32 /* ED25519_PUBLIC_KEY_LEN */); - if (!pubkey) { + if (pubkey == nullptr) { message = "Failed to load the public key"; return false; } EVP_MD_CTX *mdctx = EVP_MD_CTX_new(); - if (!mdctx) { + if (mdctx == nullptr) { message = "Failed to allocate memory for EVP_MD_CTX"; EVP_PKEY_free(pubkey); return false; } - bool ok = EVP_DigestVerifyInit(mdctx, nullptr, nullptr, nullptr, pubkey) && - EVP_DigestVerify(mdctx, signature, 64 /* ED25519_SIGNATURE_LEN */, hash, sizeof(hash)); + bool ok = + (EVP_DigestVerifyInit(mdctx, nullptr, nullptr, nullptr, pubkey) != 0) && + (EVP_DigestVerify(mdctx, signature, 64 /* ED25519_SIGNATURE_LEN */, hash, sizeof(hash)) != 0); EVP_MD_CTX_free(mdctx); EVP_PKEY_free(pubkey); diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 9a0f19559..51969e82d 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -25,8 +25,8 @@ #include #include -#include "include/v8.h" #include "include/v8-version.h" +#include "include/v8.h" #include "wasm-api/wasm.hh" namespace proxy_wasm { @@ -49,21 +49,21 @@ struct FuncData { std::string name_; wasm::own callback_; - void *raw_func_; - WasmVm *vm_; + void *raw_func_{}; + WasmVm *vm_{}; }; using FuncDataPtr = std::unique_ptr; class V8 : public WasmVm { public: - V8() {} + V8() = default; // WasmVm std::string_view getEngineName() override { return "v8"; } bool load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map function_names) override; + const std::unordered_map &function_names) override; std::string_view getPrecompiledSectionName() override; bool link(std::string_view debug_name) override; @@ -147,7 +147,7 @@ static std::string printValues(const wasm::Val values[], size_t size) { std::string s; for (size_t i = 0; i < size; i++) { - if (i) { + if (i != 0U) { s.append(", "); } s.append(printValue(values[i])); @@ -182,7 +182,7 @@ static std::string printValTypes(const wasm::ownvec &types) { std::string s; s.reserve(types.size() * 8 /* max size + " " */ - 1); for (size_t i = 0; i < types.size(); i++) { - if (i) { + if (i != 0U) { s.append(" "); } s.append(printValKind(types[i]->kind())); @@ -223,7 +223,7 @@ template <> constexpr auto convertArgToValKind() { return wasm::I64; } template <> constexpr auto convertArgToValKind() { return wasm::F64; }; template -constexpr auto convertArgsTupleToValTypesImpl(std::index_sequence) { +constexpr auto convertArgsTupleToValTypesImpl(std::index_sequence /*comptime*/) { return wasm::ownvec::make( wasm::ValType::make(convertArgToValKind::type>())...); } @@ -233,7 +233,7 @@ template constexpr auto convertArgsTupleToValTypes() { } template -constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence) { +constexpr T convertValTypesToArgsTupleImpl(const U &arr, std::index_sequence /*comptime*/) { return std::make_tuple( (arr[I] .template get< @@ -248,7 +248,7 @@ template constexpr T convertValTypesToArgsTuple(const U // V8 implementation. bool V8::load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map function_names) { + const std::unordered_map &function_names) { store_ = wasm::Store::make(engine()); if (store_ == nullptr) { return false; @@ -299,7 +299,7 @@ std::unique_ptr V8::clone() { return nullptr; } - auto integration_clone = integration()->clone(); + auto *integration_clone = integration()->clone(); if (integration_clone == nullptr) { return nullptr; } @@ -326,7 +326,7 @@ std::string_view V8::getPrecompiledSectionName() { return name; } -bool V8::link(std::string_view debug_name) { +bool V8::link(std::string_view /*debug_name*/) { assert(module_ != nullptr); const auto import_types = module_.get()->imports(); @@ -335,7 +335,7 @@ bool V8::link(std::string_view debug_name) { for (size_t i = 0; i < import_types.size(); i++) { std::string_view module(import_types[i]->module().get(), import_types[i]->module().size()); std::string_view name(import_types[i]->name().get(), import_types[i]->name().size()); - auto import_type = import_types[i]->type(); + const auto *import_type = import_types[i]->type(); switch (import_type->kind()) { @@ -347,7 +347,7 @@ bool V8::link(std::string_view debug_name) { std::string(module) + "." + std::string(name)); return false; } - auto func = it->second.get()->callback_.get(); + auto *func = it->second->callback_.get(); if (!equalValTypes(import_type->func()->params(), func->type()->params()) || !equalValTypes(import_type->func()->results(), func->type()->results())) { fail(FailState::UnableToInitializeCode, @@ -416,8 +416,8 @@ bool V8::link(std::string_view debug_name) { for (size_t i = 0; i < export_types.size(); i++) { std::string_view name(export_types[i]->name().get(), export_types[i]->name().size()); - auto export_type = export_types[i]->type(); - auto export_item = exports[i].get(); + const auto *export_type = export_types[i]->type(); + auto *export_item = exports[i].get(); assert(export_type->kind() == export_item->kind()); switch (export_type->kind()) { @@ -498,8 +498,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view convertArgsTupleToValTypes>()); auto func = wasm::Func::make( store_.get(), type.get(), - [](void *data, const wasm::Val params[], wasm::Val[]) -> wasm::own { - auto func_data = reinterpret_cast(data); + [](void *data, const wasm::Val params[], wasm::Val /*results*/[]) -> wasm::own { + auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + @@ -532,7 +532,7 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view auto func = wasm::Func::make( store_.get(), type.get(), [](void *data, const wasm::Val params[], wasm::Val results[]) -> wasm::own { - auto func_data = reinterpret_cast(data); + auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + @@ -668,7 +668,7 @@ std::string V8::getFailMessage(std::string_view function_name, wasm::owntrace(); message += "\nProxy-Wasm plugin in-VM backtrace:"; for (size_t i = 0; i < trace.size(); ++i) { - auto frame = trace[i].get(); + auto *frame = trace[i].get(); std::ostringstream oss; oss << std::setw(3) << std::setfill(' ') << std::to_string(i); message += "\n" + oss.str() + ": "; diff --git a/src/vm_id_handle.cc b/src/vm_id_handle.cc index 25429d276..d4eeef8d7 100644 --- a/src/vm_id_handle.cc +++ b/src/vm_id_handle.cc @@ -16,8 +16,8 @@ #include #include -#include #include +#include #include #include @@ -57,14 +57,14 @@ std::shared_ptr getVmIdHandle(std::string_view vm_id) { return handle; }; -void registerVmIdHandleCallback(std::function f) { +void registerVmIdHandleCallback(const std::function &f) { std::lock_guard lock(getGlobalIdHandleMutex()); getVmIdHandlesCallbacks().push_back(f); } VmIdHandle::~VmIdHandle() { std::lock_guard lock(getGlobalIdHandleMutex()); - for (auto f : getVmIdHandlesCallbacks()) { + for (const auto &f : getVmIdHandlesCallbacks()) { f(vm_id_); } getVmIdHandles().erase(vm_id_); diff --git a/src/wamr/types.h b/src/wamr/types.h index 4ea9c4fb4..f6e516881 100644 --- a/src/wamr/types.h +++ b/src/wamr/types.h @@ -15,8 +15,7 @@ #include "src/common/types.h" #include "wasm_c_api.h" -namespace proxy_wasm { -namespace wamr { +namespace proxy_wasm::wamr { using WasmEnginePtr = common::CSmartPtr; using WasmFuncPtr = common::CSmartPtr; @@ -40,6 +39,4 @@ using WasmExternVec = using WasmValtypeVec = common::CSmartType; -} // namespace wamr - -} // namespace proxy_wasm +} // namespace proxy_wasm::wamr diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index ae5cfc2f8..d9b28f751 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -40,8 +40,8 @@ struct HostFuncData { std::string name_; WasmFuncPtr callback_; - void *raw_func_; - WasmVm *vm_; + void *raw_func_{}; + WasmVm *vm_{}; }; using HostFuncDataPtr = std::unique_ptr; @@ -53,7 +53,7 @@ wasm_engine_t *engine() { class Wamr : public WasmVm { public: - Wamr() {} + Wamr() = default; std::string_view getEngineName() override { return "wamr"; } std::string_view getPrecompiledSectionName() override { return ""; } @@ -62,7 +62,7 @@ class Wamr : public WasmVm { std::unique_ptr clone() override { return nullptr; } bool load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map function_names) override; + const std::unordered_map &function_names) override; bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; @@ -113,8 +113,8 @@ class Wamr : public WasmVm { std::unordered_map module_functions_; }; -bool Wamr::load(std::string_view bytecode, std::string_view, - const std::unordered_map) { +bool Wamr::load(std::string_view bytecode, std::string_view /*precompiled*/, + const std::unordered_map & /*function_names*/) { store_ = wasm_store_new(engine()); if (store_ == nullptr) { return false; @@ -167,7 +167,7 @@ static std::string printValues(const wasm_val_vec_t *values) { std::string s; for (size_t i = 0; i < values->size; i++) { - if (i) { + if (i != 0U) { s.append(", "); } s.append(printValue(values->data[i])); @@ -202,7 +202,7 @@ static std::string printValTypes(const wasm_valtype_vec_t *types) { std::string s; s.reserve(types->size * 8 /* max size + " " */ - 1); for (size_t i = 0; i < types->size; i++) { - if (i) { + if (i != 0U) { s.append(" "); } s.append(printValKind(wasm_valtype_kind(types->data[i]))); @@ -210,7 +210,7 @@ static std::string printValTypes(const wasm_valtype_vec_t *types) { return s; } -bool Wamr::link(std::string_view debug_name) { +bool Wamr::link(std::string_view /*debug_name*/) { assert(module_ != nullptr); WasmImporttypeVec import_types; @@ -235,7 +235,7 @@ bool Wamr::link(std::string_view debug_name) { return false; } - auto func = it->second->callback_.get(); + auto *func = it->second->callback_.get(); const wasm_functype_t *exp_type = wasm_externtype_as_functype_const(extern_type); WasmFunctypePtr actual_type = wasm_func_type(it->second->callback_.get()); if (!equalValTypes(wasm_functype_params(exp_type), wasm_functype_params(actual_type.get())) || @@ -429,14 +429,15 @@ template <> uint64_t convertValueTypeToArg(wasm_val_t val) { template <> double convertValueTypeToArg(wasm_val_t val) { return val.of.f64; } template -constexpr T convertValTypesToArgsTuple(const U &vec, std::index_sequence) { +constexpr T convertValTypesToArgsTuple(const U &vec, std::index_sequence /*comptime*/) { return std::make_tuple( convertValueTypeToArg>::type>( vec->data[I])...); } template -void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, std::index_sequence) { +void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, + std::index_sequence /*comptime*/) { auto size = std::tuple_size::value; auto ps = std::array::value>{ convertArgToValTypePtr::type>()...}; @@ -449,14 +450,16 @@ void convertArgsTupleToValTypes(wasm_valtype_vec_t *types) { } template WasmFunctypePtr newWasmNewFuncType() { - wasm_valtype_vec_t params, results; + wasm_valtype_vec_t params; + wasm_valtype_vec_t results; convertArgsTupleToValTypes(¶ms); convertArgsTupleToValTypes>(&results); return wasm_functype_new(¶ms, &results); } template WasmFunctypePtr newWasmNewFuncType() { - wasm_valtype_vec_t params, results; + wasm_valtype_vec_t params; + wasm_valtype_vec_t results; convertArgsTupleToValTypes(¶ms); convertArgsTupleToValTypes>(&results); return wasm_functype_new(¶ms, &results); @@ -471,8 +474,8 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_vi WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), - [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { - auto func_data = reinterpret_cast(data); + [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t * /*results*/) -> wasm_trap_t * { + auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + @@ -505,7 +508,7 @@ void Wamr::registerHostFunctionImpl(std::string_view module_name, std::string_vi WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { - auto func_data = reinterpret_cast(data); + auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + @@ -541,7 +544,8 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, return; } - WasmValtypeVec exp_args, exp_returns; + WasmValtypeVec exp_args; + WasmValtypeVec exp_returns; convertArgsTupleToValTypes>(exp_args.get()); convertArgsTupleToValTypes>(exp_returns.get()); wasm_func_t *func = it->second.get(); @@ -590,7 +594,8 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, *function = nullptr; return; } - WasmValtypeVec exp_args, exp_returns; + WasmValtypeVec exp_args; + WasmValtypeVec exp_returns; convertArgsTupleToValTypes>(exp_args.get()); convertArgsTupleToValTypes>(exp_returns.get()); wasm_func_t *func = it->second.get(); diff --git a/src/wasm.cc b/src/wasm.cc index d7dfd1006..c2dba732b 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -16,7 +16,7 @@ #include "include/proxy-wasm/wasm.h" #include -#include +#include #include #include @@ -25,6 +25,7 @@ #include #include #include +#include #include @@ -46,7 +47,7 @@ thread_local std::unordered_map> lo std::mutex base_wasms_mutex; std::unordered_map> *base_wasms = nullptr; -std::vector Sha256(const std::vector parts) { +std::vector Sha256(const std::vector &parts) { uint8_t sha256[SHA256_DIGEST_LENGTH]; SHA256_CTX sha_ctx; SHA256_Init(&sha_ctx); @@ -57,7 +58,7 @@ std::vector Sha256(const std::vector parts) { return std::vector(std::begin(sha256), std::end(sha256)); } -std::string BytesToHex(std::vector bytes) { +std::string BytesToHex(const std::vector &bytes) { static const char *const hex = "0123456789ABCDEF"; std::string result; result.reserve(bytes.size() * 2); @@ -78,7 +79,7 @@ std::string makeVmKey(std::string_view vm_id, std::string_view vm_configuration, class WasmBase::ShutdownHandle { public: ~ShutdownHandle() { wasm_->finishShutdown(); } - ShutdownHandle(std::shared_ptr wasm) : wasm_(wasm) {} + ShutdownHandle(std::shared_ptr wasm) : wasm_(std::move(wasm)) {} private: std::shared_ptr wasm_; @@ -185,7 +186,8 @@ void WasmBase::getFunctions() { #undef _GET_PROXY } -WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, WasmVmFactory factory) +WasmBase::WasmBase(const std::shared_ptr &base_wasm_handle, + const WasmVmFactory &factory) : std::enable_shared_from_this(*base_wasm_handle->wasm()), vm_id_(base_wasm_handle->wasm()->vm_id_), vm_key_(base_wasm_handle->wasm()->vm_key_), started_from_(base_wasm_handle->wasm()->wasm_vm()->cloneable()), @@ -209,7 +211,7 @@ WasmBase::WasmBase(std::unique_ptr wasm_vm, std::string_view vm_id, std::unordered_map envs, AllowedCapabilitiesMap allowed_capabilities) : vm_id_(std::string(vm_id)), vm_key_(std::string(vm_key)), wasm_vm_(std::move(wasm_vm)), - envs_(envs), allowed_capabilities_(std::move(allowed_capabilities)), + envs_(std::move(envs)), allowed_capabilities_(std::move(allowed_capabilities)), vm_configuration_(std::string(vm_configuration)), vm_id_handle_(getVmIdHandle(vm_id)) { if (!wasm_vm_) { failed_ = FailState::UnableToCreateVm; @@ -246,9 +248,8 @@ bool WasmBase::load(const std::string &code, bool allow_precompiled) { if (!SignatureUtil::verifySignature(code, message)) { fail(FailState::UnableToInitializeCode, message); return false; - } else { - wasm_vm_->integration()->trace(message); } + wasm_vm_->integration()->trace(message); // Get ABI version from the module. if (!BytecodeUtil::getAbiVersion(code, abi_version_)) { @@ -372,17 +373,17 @@ void WasmBase::startVm(ContextBase *root_context) { } bool WasmBase::configure(ContextBase *root_context, std::shared_ptr plugin) { - return root_context->onConfigure(plugin); + return root_context->onConfigure(std::move(plugin)); } -ContextBase *WasmBase::start(std::shared_ptr plugin) { +ContextBase *WasmBase::start(const std::shared_ptr &plugin) { auto it = root_contexts_.find(plugin->key()); if (it != root_contexts_.end()) { it->second->onStart(plugin); return it->second.get(); } auto context = std::unique_ptr(createRootContext(plugin)); - auto context_ptr = context.get(); + auto *context_ptr = context.get(); root_contexts_[plugin->key()] = std::move(context); if (!context_ptr->onStart(plugin)) { return nullptr; @@ -446,15 +447,15 @@ void WasmBase::finishShutdown() { } } -std::shared_ptr createWasm(std::string vm_key, std::string code, - std::shared_ptr plugin, - WasmHandleFactory factory, - WasmHandleCloneFactory clone_factory, +std::shared_ptr createWasm(const std::string &vm_key, const std::string &code, + const std::shared_ptr &plugin, + const WasmHandleFactory &factory, + const WasmHandleCloneFactory &clone_factory, bool allow_precompiled) { std::shared_ptr wasm_handle; { std::lock_guard guard(base_wasms_mutex); - if (!base_wasms) { + if (base_wasms == nullptr) { base_wasms = new std::remove_reference::type; } auto it = base_wasms->find(vm_key); @@ -491,8 +492,8 @@ std::shared_ptr createWasm(std::string vm_key, std::string code, wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } - auto root_context = configuration_canary_handle->wasm()->start(plugin); - if (!root_context) { + auto *root_context = configuration_canary_handle->wasm()->start(plugin); + if (root_context == nullptr) { configuration_canary_handle->wasm()->fail(FailState::StartFailed, "Failed to start base Wasm"); return nullptr; } @@ -518,8 +519,8 @@ std::shared_ptr getThreadLocalWasm(std::string_view vm_key) { } static std::shared_ptr -getOrCreateThreadLocalWasm(std::shared_ptr base_handle, - WasmHandleCloneFactory clone_factory) { +getOrCreateThreadLocalWasm(const std::shared_ptr &base_handle, + const WasmHandleCloneFactory &clone_factory) { std::string vm_key(base_handle->wasm()->vm_key()); // Get existing thread-local WasmVM. auto it = local_wasms.find(vm_key); @@ -555,8 +556,8 @@ getOrCreateThreadLocalWasm(std::shared_ptr base_handle, } std::shared_ptr getOrCreateThreadLocalPlugin( - std::shared_ptr base_handle, std::shared_ptr plugin, - WasmHandleCloneFactory clone_factory, PluginHandleFactory plugin_factory) { + const std::shared_ptr &base_handle, const std::shared_ptr &plugin, + const WasmHandleCloneFactory &clone_factory, const PluginHandleFactory &plugin_factory) { std::string key(std::string(base_handle->wasm()->vm_key()) + "||" + plugin->key()); // Get existing thread-local Plugin handle. auto it = local_plugins.find(key); @@ -574,8 +575,8 @@ std::shared_ptr getOrCreateThreadLocalPlugin( return nullptr; } // Create and initialize new thread-local Plugin. - auto plugin_context = wasm_handle->wasm()->start(plugin); - if (!plugin_context) { + auto *plugin_context = wasm_handle->wasm()->start(plugin); + if (plugin_context == nullptr) { base_handle->wasm()->fail(FailState::StartFailed, "Failed to start thread-local Wasm"); return nullptr; } @@ -601,7 +602,7 @@ void clearWasmCachesForTesting() { local_plugins.clear(); local_wasms.clear(); std::lock_guard guard(base_wasms_mutex); - if (base_wasms) { + if (base_wasms != nullptr) { delete base_wasms; base_wasms = nullptr; } diff --git a/src/wasmtime/types.h b/src/wasmtime/types.h index ad433cfea..4ab725c04 100644 --- a/src/wasmtime/types.h +++ b/src/wasmtime/types.h @@ -15,8 +15,7 @@ #include "src/common/types.h" #include "include/wasm.h" -namespace proxy_wasm { -namespace wasmtime { +namespace proxy_wasm::wasmtime { using WasmEnginePtr = common::CSmartPtr; using WasmFuncPtr = common::CSmartPtr; @@ -41,6 +40,4 @@ using WasmExternVec = using WasmValtypeVec = common::CSmartType; -} // namespace wasmtime - -} // namespace proxy_wasm +} // namespace proxy_wasm::wasmtime diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 9e08a95e0..44eb1b889 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -36,8 +36,8 @@ struct HostFuncData { std::string name_; WasmFuncPtr callback_; - void *raw_func_; - WasmVm *vm_; + void *raw_func_{}; + WasmVm *vm_{}; }; using HostFuncDataPtr = std::unique_ptr; @@ -49,14 +49,14 @@ wasm_engine_t *engine() { class Wasmtime : public WasmVm { public: - Wasmtime() {} + Wasmtime() = default; std::string_view getEngineName() override { return "wasmtime"; } Cloneable cloneable() override { return Cloneable::CompiledBytecode; } std::string_view getPrecompiledSectionName() override { return ""; } bool load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map function_names) override; + const std::unordered_map &function_names) override; bool link(std::string_view debug_name) override; std::unique_ptr clone() override; uint64_t getMemorySize() override; @@ -108,8 +108,8 @@ class Wasmtime : public WasmVm { std::unordered_map module_functions_; }; -bool Wasmtime::load(std::string_view bytecode, std::string_view, - const std::unordered_map) { +bool Wasmtime::load(std::string_view bytecode, std::string_view /*precompiled*/, + const std::unordered_map & /*function_names*/) { store_ = wasm_store_new(engine()); if (store_ == nullptr) { return false; @@ -149,7 +149,7 @@ std::unique_ptr Wasmtime::clone() { return nullptr; } - auto integration_clone = integration()->clone(); + auto *integration_clone = integration()->clone(); if (integration_clone == nullptr) { return nullptr; } @@ -194,7 +194,7 @@ static std::string printValues(const wasm_val_vec_t *values) { std::string s; for (size_t i = 0; i < values->size; i++) { - if (i) { + if (i != 0U) { s.append(", "); } s.append(printValue(values->data[i])); @@ -229,7 +229,7 @@ static std::string printValTypes(const wasm_valtype_vec_t *types) { std::string s; s.reserve(types->size * 8 /* max size + " " */ - 1); for (size_t i = 0; i < types->size; i++) { - if (i) { + if (i != 0U) { s.append(" "); } s.append(printValKind(wasm_valtype_kind(types->data[i]))); @@ -237,7 +237,7 @@ static std::string printValTypes(const wasm_valtype_vec_t *types) { return s; } -bool Wasmtime::link(std::string_view debug_name) { +bool Wasmtime::link(std::string_view /*debug_name*/) { assert(module_ != nullptr); WasmImporttypeVec import_types; @@ -262,7 +262,7 @@ bool Wasmtime::link(std::string_view debug_name) { return false; } - auto func = it->second->callback_.get(); + auto *func = it->second->callback_.get(); const wasm_functype_t *exp_type = wasm_externtype_as_functype_const(extern_type); WasmFunctypePtr actual_type = wasm_func_type(it->second->callback_.get()); if (!equalValTypes(wasm_functype_params(exp_type), wasm_functype_params(actual_type.get())) || @@ -456,14 +456,15 @@ template <> uint64_t convertValueTypeToArg(wasm_val_t val) { template <> double convertValueTypeToArg(wasm_val_t val) { return val.of.f64; } template -constexpr T convertValTypesToArgsTuple(const U &vec, std::index_sequence) { +constexpr T convertValTypesToArgsTuple(const U &vec, std::index_sequence /*comptime*/) { return std::make_tuple( convertValueTypeToArg>::type>( vec->data[I])...); } template -void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, std::index_sequence) { +void convertArgsTupleToValTypesImpl(wasm_valtype_vec_t *types, + std::index_sequence /*comptime*/) { auto size = std::tuple_size::value; auto ps = std::array::value>{ convertArgToValTypePtr::type>()...}; @@ -476,14 +477,16 @@ void convertArgsTupleToValTypes(wasm_valtype_vec_t *types) { } template WasmFunctypePtr newWasmNewFuncType() { - WasmValtypeVec params, results; + WasmValtypeVec params; + WasmValtypeVec results; convertArgsTupleToValTypes(params.get()); convertArgsTupleToValTypes>(results.get()); return wasm_functype_new(params.get(), results.get()); } template WasmFunctypePtr newWasmNewFuncType() { - WasmValtypeVec params, results; + WasmValtypeVec params; + WasmValtypeVec results; convertArgsTupleToValTypes(params.get()); convertArgsTupleToValTypes>(results.get()); return wasm_functype_new(params.get(), results.get()); @@ -498,8 +501,8 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, WasmFunctypePtr type = newWasmNewFuncType>(); WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), - [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { - auto func_data = reinterpret_cast(data); + [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t * /*results*/) -> wasm_trap_t * { + auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + @@ -532,7 +535,7 @@ void Wasmtime::registerHostFunctionImpl(std::string_view module_name, WasmFuncPtr func = wasm_func_new_with_env( store_.get(), type.get(), [](void *data, const wasm_val_vec_t *params, wasm_val_vec_t *results) -> wasm_trap_t * { - auto func_data = reinterpret_cast(data); + auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + @@ -568,7 +571,8 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, return; } - WasmValtypeVec exp_args, exp_returns; + WasmValtypeVec exp_args; + WasmValtypeVec exp_returns; convertArgsTupleToValTypes>(exp_args.get()); convertArgsTupleToValTypes>(exp_returns.get()); wasm_func_t *func = it->second.get(); @@ -622,7 +626,8 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, *function = nullptr; return; } - WasmValtypeVec exp_args, exp_returns; + WasmValtypeVec exp_args; + WasmValtypeVec exp_returns; convertArgsTupleToValTypes>(exp_args.get()); convertArgsTupleToValTypes>(exp_returns.get()); wasm_func_t *func = it->second.get(); diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 6d3357de6..6e53b4d81 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -61,11 +61,9 @@ using namespace WAVM; using namespace WAVM::IR; -namespace WAVM { -namespace IR { +namespace WAVM::IR { template <> constexpr ValueType inferValueType() { return ValueType::i32; } -} // namespace IR -} // namespace WAVM +} // namespace WAVM::IR namespace proxy_wasm { @@ -137,19 +135,17 @@ struct WasmUntaggedValue : public WAVM::IR::UntaggedValue { class RootResolver : public WAVM::Runtime::Resolver { public: - RootResolver(WAVM::Runtime::Compartment *, WasmVm *vm) : vm_(vm) {} + RootResolver(WAVM::Runtime::Compartment * /*compartment*/, WasmVm *vm) : vm_(vm) {} - virtual ~RootResolver() { module_name_to_instance_map_.clear(); } + ~RootResolver() override { module_name_to_instance_map_.clear(); } bool resolve(const std::string &module_name, const std::string &export_name, ExternType type, WAVM::Runtime::Object *&out_object) override { - auto named_instance = module_name_to_instance_map_.get(module_name); - if (named_instance) { + auto *named_instance = module_name_to_instance_map_.get(module_name); + if (named_instance != nullptr) { out_object = getInstanceExport(*named_instance, export_name); - if (out_object) { - if (isA(out_object, type)) { - return true; - } else { + if (out_object != nullptr) { + if (!isA(out_object, type)) { vm_->fail(FailState::UnableToInitializeCode, "Failed to load WASM module due to a type mismatch in an import: " + std::string(module_name) + "." + export_name + " " + @@ -157,9 +153,10 @@ class RootResolver : public WAVM::Runtime::Resolver { " but was expecting type: " + asString(type)); return false; } + return true; } } - for (auto r : resolvers_) { + for (auto *r : resolvers_) { if (r->resolve(module_name, export_name, type, out_object)) { return true; } @@ -178,8 +175,8 @@ class RootResolver : public WAVM::Runtime::Resolver { private: WasmVm *vm_; - HashMap module_name_to_instance_map_; - std::vector resolvers_; + HashMap module_name_to_instance_map_{}; + std::vector resolvers_{}; }; const uint64_t WasmPageSize = 1 << 16; @@ -199,7 +196,7 @@ struct PairHash { }; struct Wavm : public WasmVm { - Wavm() : WasmVm() {} + Wavm() = default; ~Wavm() override; // WasmVm @@ -207,7 +204,7 @@ struct Wavm : public WasmVm { Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; std::unique_ptr clone() override; bool load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map function_names) override; + const std::unordered_map &function_names) override; bool link(std::string_view debug_name) override; uint64_t getMemorySize() override; std::optional getMemory(uint64_t pointer, uint64_t size) override; @@ -235,13 +232,13 @@ struct Wavm : public WasmVm { IR::Module ir_module_; WAVM::Runtime::ModuleRef module_ = nullptr; WAVM::Runtime::GCPointer module_instance_; - WAVM::Runtime::Memory *memory_; + WAVM::Runtime::Memory *memory_{}; WAVM::Runtime::GCPointer compartment_; WAVM::Runtime::GCPointer context_; - std::map intrinsic_modules_; + std::map intrinsic_modules_{}; std::map> - intrinsic_module_instances_; - std::vector> host_functions_; + intrinsic_module_instances_{}; + std::vector> host_functions_{}; uint8_t *memory_base_ = nullptr; }; @@ -251,7 +248,7 @@ Wavm::~Wavm() { intrinsic_module_instances_.clear(); intrinsic_modules_.clear(); host_functions_.clear(); - if (compartment_) { + if (compartment_ != nullptr) { ASSERT(tryCollectCompartment(std::move(compartment_))); } } @@ -282,7 +279,7 @@ std::unique_ptr Wavm::clone() { p.first, WAVM::Runtime::remapToClonedCompartment(p.second, wavm->compartment_)); } - auto integration_clone = integration()->clone(); + auto *integration_clone = integration()->clone(); if (integration_clone == nullptr) { return nullptr; } @@ -292,7 +289,7 @@ std::unique_ptr Wavm::clone() { } bool Wavm::load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map) { + const std::unordered_map & /*function_names*/) { compartment_ = WAVM::Runtime::createCompartment(); if (compartment_ == nullptr) { return false; @@ -328,8 +325,8 @@ bool Wavm::load(std::string_view bytecode, std::string_view precompiled, bool Wavm::link(std::string_view debug_name) { RootResolver rootResolver(compartment_, this); for (auto &p : intrinsic_modules_) { - auto instance = Intrinsics::instantiateModule(compartment_, {&intrinsic_modules_[p.first]}, - std::string(p.first)); + auto *instance = Intrinsics::instantiateModule(compartment_, {&intrinsic_modules_[p.first]}, + std::string(p.first)); if (instance == nullptr) { return false; } @@ -377,7 +374,7 @@ bool Wavm::setMemory(uint64_t pointer, uint64_t size, const void *data) { if (pointer + size > memory_num_bytes) { return false; } - auto p = reinterpret_cast(memory_base_ + pointer); + auto *p = reinterpret_cast(memory_base_ + pointer); memcpy(p, data, size); return true; } @@ -387,7 +384,7 @@ bool Wavm::getWord(uint64_t pointer, Word *data) { if (pointer + sizeof(uint32_t) > memory_num_bytes) { return false; } - auto p = reinterpret_cast(memory_base_ + pointer); + auto *p = reinterpret_cast(memory_base_ + pointer); uint32_t data32; memcpy(&data32, p, sizeof(uint32_t)); data->u64_ = wasmtoh(data32); @@ -405,7 +402,8 @@ std::string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_ob std::unique_ptr createWavmVm() { return std::make_unique(); } -template IR::FunctionType inferHostFunctionType(R (*)(Args...)) { +template +IR::FunctionType inferHostFunctionType(R (*/*func*/)(Args...)) { return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...}), IR::CallingConvention::c); } @@ -415,14 +413,14 @@ using namespace Wavm; template void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, R (*f)(Args...)) { - auto wavm = static_cast(vm); + auto *wavm = dynamic_cast(vm); wavm->host_functions_.emplace_back(new Intrinsics::Function( &wavm->intrinsic_modules_[std::string(module_name)], function_name.data(), reinterpret_cast(f), inferHostFunctionType(f))); } template -IR::FunctionType inferStdFunctionType(std::function *) { +IR::FunctionType inferStdFunctionType(std::function * /*func*/) { return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...})); } @@ -433,11 +431,12 @@ static bool checkFunctionType(WAVM::Runtime::Function *f, IR::FunctionType t) { template void getFunctionWavm(WasmVm *vm, std::string_view function_name, std::function *function) { - auto wavm = static_cast(vm); - auto f = + auto *wavm = dynamic_cast(vm); + auto *f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); - if (!f) + if (!f) { f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); + } if (!f) { *function = nullptr; return; @@ -454,22 +453,22 @@ void getFunctionWavm(WasmVm *vm, std::string_view function_name, CALL_WITH_CONTEXT( invokeFunction(wavm->context_, f, getFunctionType(f), &values[0], &return_value), context, wavm); - if (!wavm->isFailed()) { - return static_cast(return_value.i32); - } else { + if (wavm->isFailed()) { return 0; } + return static_cast(return_value.i32); }; } template void getFunctionWavm(WasmVm *vm, std::string_view function_name, std::function *function) { - auto wavm = static_cast(vm); - auto f = + auto *wavm = dynamic_cast(vm); + auto *f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); - if (!f) + if (!f) { f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); + } if (!f) { *function = nullptr; return; diff --git a/test/bytecode_util_test.cc b/test/bytecode_util_test.cc index 4783d676d..2e1a813cb 100644 --- a/test/bytecode_util_test.cc +++ b/test/bytecode_util_test.cc @@ -60,7 +60,7 @@ TEST(TestBytecodeUtil, getFunctionNameIndex) { EXPECT_TRUE(BytecodeUtil::getFunctionNameIndex(source, actual)); EXPECT_FALSE(actual.empty()); bool abi_version_found = false; - for (auto it : actual) { + for (const auto &it : actual) { if (it.second == "proxy_abi_version_0_2_0") { abi_version_found = true; break; diff --git a/test/exports_test.cc b/test/exports_test.cc index 223d2b80c..aab95fcab 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -38,7 +38,7 @@ INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines() class TestContext : public ContextBase { public: TestContext(WasmBase *base) : ContextBase(base){}; - WasmResult log(uint32_t, std::string_view msg) override { + WasmResult log(uint32_t /*log_level*/, std::string_view msg) override { log_ += std::string(msg) + "\n"; return WasmResult::Ok; } diff --git a/test/null_vm_test.cc b/test/null_vm_test.cc index 5d806e9e5..774c685d3 100644 --- a/test/null_vm_test.cc +++ b/test/null_vm_test.cc @@ -14,10 +14,11 @@ #include "include/proxy-wasm/wasm_vm.h" -#include "gtest/gtest.h" #include "include/proxy-wasm/null.h" #include "include/proxy-wasm/null_vm_plugin.h" +#include "gtest/gtest.h" + namespace proxy_wasm { class TestNullVmPlugin : public NullVmPlugin { @@ -58,7 +59,7 @@ TEST(WasmVm, Word) { class BaseVmTest : public testing::Test { public: - BaseVmTest() {} + BaseVmTest() = default; }; TEST_F(BaseVmTest, NullVmStartup) { diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 92ef4c28b..649fb1069 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -121,7 +121,7 @@ TEST_P(TestVM, CloneUntilOutOfMemory) { break; } if (clone->cloneable() != proxy_wasm::Cloneable::InstantiatedModule) { - if (clone->link("") == false) { + if (!clone->link("")) { break; } } @@ -142,7 +142,7 @@ TEST_P(TestVM, CloneUntilOutOfMemory) { class TestContext : public ContextBase { public: - TestContext(){}; + TestContext() = default; void increment() { counter++; } int64_t counter = 0; }; @@ -150,7 +150,7 @@ class TestContext : public ContextBase { void nopCallback() {} void callback() { - TestContext *context = static_cast(contextOrEffectiveContext()); + auto *context = dynamic_cast(contextOrEffectiveContext()); context->increment(); } @@ -163,7 +163,7 @@ TEST_P(TestVM, StraceLogLevel) { return; } - auto integration = static_cast(vm_->integration().get()); + auto *integration = dynamic_cast(vm_->integration().get()); auto source = readTestWasmFile("callback.wasm"); ASSERT_TRUE(vm_->load(source, {}, {})); vm_->registerCallback("env", "callback", &nopCallback, @@ -255,7 +255,7 @@ TEST_P(TestVM, Trap) { EXPECT_TRUE(trigger != nullptr); trigger(&context); std::string exp_message = "Function: trigger failed"; - auto integration = static_cast(vm_->integration().get()); + auto *integration = dynamic_cast(vm_->integration().get()); ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); } @@ -275,7 +275,7 @@ TEST_P(TestVM, Trap2) { EXPECT_TRUE(trigger2 != nullptr); trigger2(&context, 0); std::string exp_message = "Function: trigger2 failed"; - auto integration = static_cast(vm_->integration().get()); + auto *integration = dynamic_cast(vm_->integration().get()); ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); } diff --git a/test/shared_data_test.cc b/test/shared_data_test.cc index 062625f8d..89a964c33 100644 --- a/test/shared_data_test.cc +++ b/test/shared_data_test.cc @@ -98,7 +98,6 @@ void incrementData(SharedData *shared_data, std::string_view vm_id, std::string_ break; } } - return; } TEST(SharedData, Concurrent) { diff --git a/test/shared_queue_test.cc b/test/shared_queue_test.cc index 84e6d763e..6d08316a4 100644 --- a/test/shared_queue_test.cc +++ b/test/shared_queue_test.cc @@ -105,7 +105,8 @@ TEST(SharedQueue, Concurrent) { enqueue_second.join(); EXPECT_EQ(queued_count, 200); - size_t first_cnt = 0, second_cnt = 0; + size_t first_cnt = 0; + size_t second_cnt = 0; std::thread dequeue_first(dequeueData, &shared_queue, token, &first_cnt); std::thread dequeue_second(dequeueData, &shared_queue, token, &second_cnt); dequeue_first.join(); @@ -115,8 +116,8 @@ TEST(SharedQueue, Concurrent) { TEST(SharedQueue, DeleteByVmId) { SharedQueue shared_queue(false); - auto vm_id_1 = "id_1"; - auto vm_id_2 = "id_2"; + const auto *vm_id_1 = "id_1"; + const auto *vm_id_2 = "id_2"; std::string_view vm_key = "vm_key"; uint32_t context_id = 1; auto queue_num_per_vm = 3; diff --git a/test/utility.cc b/test/utility.cc index 82fa1036f..1686a0e14 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -36,7 +36,7 @@ std::vector getWasmEngines() { return engines; } -std::string readTestWasmFile(std::string filename) { +std::string readTestWasmFile(const std::string &filename) { auto path = "test/test_data/" + filename; std::ifstream file(path, std::ios::binary); EXPECT_FALSE(file.fail()) << "failed to open: " << path; diff --git a/test/utility.h b/test/utility.h index 73abdfdb3..36dceef1f 100644 --- a/test/utility.h +++ b/test/utility.h @@ -39,10 +39,10 @@ namespace proxy_wasm { std::vector getWasmEngines(); -std::string readTestWasmFile(std::string filename); +std::string readTestWasmFile(const std::string &filename); struct DummyIntegration : public WasmVmIntegration { - ~DummyIntegration() override{}; + ~DummyIntegration() override = default; WasmVmIntegration *clone() override { return new DummyIntegration{}; } void error(std::string_view message) override { std::cout << "ERROR from integration: " << message << std::endl; @@ -52,8 +52,9 @@ struct DummyIntegration : public WasmVmIntegration { std::cout << "TRACE from integration: " << message << std::endl; trace_message_ = message; } - bool getNullVmFunction(std::string_view function_name, bool returns_word, int number_of_arguments, - NullPlugin *plugin, void *ptr_to_function_return) override { + bool getNullVmFunction(std::string_view /*function_name*/, bool /*returns_word*/, + int /*number_of_arguments*/, NullPlugin * /*plugin*/, + void * /*ptr_to_function_return*/) override { return false; }; @@ -74,7 +75,7 @@ class TestVM : public testing::TestWithParam { std::unique_ptr newVm() { std::unique_ptr vm; - if (engine_ == "") { + if (engine_.empty()) { EXPECT_TRUE(false) << "engine must not be empty"; #if defined(PROXY_WASM_HOST_ENGINE_V8) } else if (engine_ == "v8") { @@ -96,7 +97,7 @@ class TestVM : public testing::TestWithParam { EXPECT_TRUE(false) << "compiled without support for the requested \"" << engine_ << "\" engine"; } - vm->integration().reset(new DummyIntegration{}); + vm->integration() = std::make_unique(); return vm; }; diff --git a/test/vm_id_handle_test.cc b/test/vm_id_handle_test.cc index b0d5b60a8..3eee9af03 100644 --- a/test/vm_id_handle_test.cc +++ b/test/vm_id_handle_test.cc @@ -19,12 +19,12 @@ namespace proxy_wasm { TEST(VmIdHandle, Basic) { - auto vm_id = "vm_id"; + const auto *vm_id = "vm_id"; auto handle = getVmIdHandle(vm_id); EXPECT_TRUE(handle); bool called = false; - registerVmIdHandleCallback([&called](std::string_view vm_id) { called = true; }); + registerVmIdHandleCallback([&called](std::string_view /*vm_id*/) { called = true; }); handle.reset(); EXPECT_TRUE(called); diff --git a/test/wasm_test.cc b/test/wasm_test.cc index dd213bdea..4fc509c8e 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -27,11 +27,11 @@ INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines() // Fail callbacks only used for WasmVMs - not available for NullVM. TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { - const auto plugin_name = "plugin_name"; - const auto root_id = "root_id"; - const auto vm_id = "vm_id"; - const auto vm_config = "vm_config"; - const auto plugin_config = "plugin_config"; + const auto *const plugin_name = "plugin_name"; + const auto *const root_id = "root_id"; + const auto *const vm_id = "vm_id"; + const auto *const vm_config = "vm_config"; + const auto *const plugin_config = "plugin_config"; const auto fail_open = false; // Create a plugin. @@ -48,15 +48,16 @@ TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { }; WasmHandleCloneFactory wasm_handle_clone_factory = - [this](std::shared_ptr base_wasm_handle) -> std::shared_ptr { + [this](const std::shared_ptr &base_wasm_handle) + -> std::shared_ptr { auto wasm = std::make_shared(base_wasm_handle, [this]() -> std::unique_ptr { return newVm(); }); return std::make_shared(wasm); }; PluginHandleFactory plugin_handle_factory = - [](std::shared_ptr base_wasm, - std::shared_ptr plugin) -> std::shared_ptr { + [](const std::shared_ptr &base_wasm, + const std::shared_ptr &plugin) -> std::shared_ptr { return std::make_shared(base_wasm, plugin); }; From 29708be733eaf8ef2e74a5b4153e5bf0178a2a6e Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 25 Feb 2022 19:03:38 -0600 Subject: [PATCH 187/287] build: move global copts/linkopts into specific targets. (#269) Signed-off-by: Piotr Sikora --- .bazelrc | 12 +++--------- BUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 9 deletions(-) diff --git a/.bazelrc b/.bazelrc index fbd7dda81..318aecd53 100644 --- a/.bazelrc +++ b/.bazelrc @@ -64,16 +64,10 @@ build:zig-cc-linux-aarch64 --test_env=QEMU_LD_PREFIX=/usr/aarch64-linux-gnu/ build --enable_platform_specific_config +# Use C++17. build:linux --cxxopt=-std=c++17 -# See https://bytecodealliance.github.io/wasmtime/c-api/ -build:linux --linkopt=-lm -build:linux --linkopt=-lpthread -build:linux --linkopt=-ldl - build:macos --cxxopt=-std=c++17 +build:windows --cxxopt="/std:c++17" +# Enable runfiles on Windows (enabled by default on other platforms). build:windows --enable_runfiles -build:windows --cxxopt="/std:c++17" -# See https://bytecodealliance.github.io/wasmtime/c-api/ -build:windows --copt="/DWASM_API_EXTERN=" -build:windows --linkopt="ws2_32.lib advapi32.lib userenv.lib ntdll.lib shell32.lib ole32.lib bcrypt.lib" diff --git a/BUILD b/BUILD index 54afee1d7..69e04d811 100644 --- a/BUILD +++ b/BUILD @@ -141,10 +141,31 @@ cc_library( "src/wasmtime/wasmtime.cc", ], hdrs = ["include/proxy-wasm/wasmtime.h"], + copts = [ + "-DWASM_API_EXTERN=", + ], defines = [ "PROXY_WASM_HAS_RUNTIME_WASMTIME", "PROXY_WASM_HOST_ENGINE_WASMTIME", ], + # See: https://bytecodealliance.github.io/wasmtime/c-api/ + linkopts = select({ + "@platforms//os:macos": [], + "@platforms//os:windows": [ + "ws2_32.lib", + "advapi32.lib", + "userenv.lib", + "ntdll.lib", + "shell32.lib", + "ole32.lib", + "bcrypt.lib", + ], + "//conditions:default": [ + "-ldl", + "-lm", + "-lpthread", + ], + }), deps = [ ":wasm_vm_headers", "//external:wasmtime", @@ -179,10 +200,31 @@ cc_library( "src/wasmtime/prefixed_wasmtime.cc", ], hdrs = ["include/proxy-wasm/wasmtime.h"], + copts = [ + "-DWASM_API_EXTERN=", + ], defines = [ "PROXY_WASM_HAS_RUNTIME_WASMTIME", "PROXY_WASM_HOST_ENGINE_WASMTIME", ], + # See: https://bytecodealliance.github.io/wasmtime/c-api/ + linkopts = select({ + "@platforms//os:macos": [], + "@platforms//os:windows": [ + "ws2_32.lib", + "advapi32.lib", + "userenv.lib", + "ntdll.lib", + "shell32.lib", + "ole32.lib", + "bcrypt.lib", + ], + "//conditions:default": [ + "-ldl", + "-lm", + "-lpthread", + ], + }), deps = [ ":wasm_vm_headers", "//external:prefixed_wasmtime", @@ -204,6 +246,13 @@ cc_library( "PROXY_WASM_HAS_RUNTIME_WAVM", "PROXY_WASM_HOST_ENGINE_WAVM", ], + linkopts = select({ + "@platforms//os:macos": [], + "@platforms//os:windows": [], + "//conditions:default": [ + "-ldl", + ], + }), deps = [ ":wasm_vm_headers", "//external:wavm", From 9cc230f62f286cd06843062e7ca49fd25eb4ba10 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 25 Feb 2022 19:03:56 -0600 Subject: [PATCH 188/287] ci: fix caching of builds with sanitizers. (#267) Signed-off-by: Piotr Sikora --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b5b07e408..f94bca82e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -231,7 +231,7 @@ jobs: - name: Set cache key if: ${{ matrix.cache }} - run: echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)" + run: echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)-$(echo ${{ matrix.flags }} | sha256sum)" id: cache-key - name: Bazel cache From 579de9bf81a1411766b07cb99205bd644c49b465 Mon Sep 17 00:00:00 2001 From: chaoqin-li1123 <55518381+chaoqin-li1123@users.noreply.github.com> Date: Tue, 1 Mar 2022 01:55:11 -0600 Subject: [PATCH 189/287] Add terminate execution API. (#268) Signed-off-by: chaoqin-li1123 --- include/proxy-wasm/null_vm.h | 2 ++ include/proxy-wasm/wasm_vm.h | 5 +++++ src/v8/v8.cc | 14 ++++++++++++++ src/wamr/wamr.cc | 3 +++ src/wasmtime/wasmtime.cc | 2 ++ src/wavm/wavm.cc | 2 ++ test/BUILD | 1 + test/runtime_test.cc | 29 +++++++++++++++++++++++++++++ test/test_data/BUILD | 5 +++++ test/test_data/infinite_loop.rs | 21 +++++++++++++++++++++ 10 files changed, 84 insertions(+) create mode 100644 test/test_data/infinite_loop.rs diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index 494c5f80d..3a38fd990 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -60,6 +60,8 @@ struct NullVm : public WasmVm { FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK + void terminate() override {} + std::string plugin_name_; std::unique_ptr plugin_; }; diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 1f857951e..800348ac3 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -297,6 +297,11 @@ class WasmVm { FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK + /** + * Terminate execution of this WasmVM. It shouldn't be used after being terminated. + */ + virtual void terminate() = 0; + bool isFailed() { return failed_ != FailState::Ok; } void fail(FailState fail_state, std::string_view message) { integration()->error(message); diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 51969e82d..71a7483e8 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -21,12 +21,14 @@ #include #include #include +#include #include #include #include #include "include/v8-version.h" #include "include/v8.h" +#include "src/wasm/c-api.h" #include "wasm-api/wasm.hh" namespace proxy_wasm { @@ -92,6 +94,8 @@ class V8 : public WasmVm { FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) #undef _GET_MODULE_FUNCTION + void terminate() override; + private: std::string getFailMessage(std::string_view function_name, wasm::own trap); @@ -657,6 +661,16 @@ void V8::getModuleFunctionImpl(std::string_view function_name, }; } +void V8::terminate() { + auto *store_impl = reinterpret_cast(store_.get()); + auto *isolate = store_impl->isolate(); + isolate->TerminateExecution(); + while (isolate->IsExecutionTerminating()) { + std::this_thread::yield(); + } + integration()->trace("[host->vm] Terminated"); +} + std::string V8::getFailMessage(std::string_view function_name, wasm::own trap) { auto message = "Function: " + std::string(function_name) + " failed: "; message += std::string(trap->message().get(), trap->message().size()); diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index d9b28f751..93cae4d58 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -85,6 +85,9 @@ class Wamr : public WasmVm { }; FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) #undef _GET_MODULE_FUNCTION + + void terminate() override {} + private: template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 44eb1b889..4bbc32b5f 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -97,6 +97,8 @@ class Wasmtime : public WasmVm { void getModuleFunctionImpl(std::string_view function_name, std::function *function); + void terminate() override {} + WasmStorePtr store_; WasmModulePtr module_; WasmSharedModulePtr shared_module_; diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 6e53b4d81..1041b7fa7 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -229,6 +229,8 @@ struct Wavm : public WasmVm { FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) #undef _REGISTER_CALLBACK + void terminate() override {} + IR::Module ir_module_; WAVM::Runtime::ModuleRef module_ = nullptr; WAVM::Runtime::GCPointer module_instance_; diff --git a/test/BUILD b/test/BUILD index 756a14ac6..46514b982 100644 --- a/test/BUILD +++ b/test/BUILD @@ -56,6 +56,7 @@ cc_test( data = [ "//test/test_data:abi_export.wasm", "//test/test_data:callback.wasm", + "//test/test_data:infinite_loop.wasm", "//test/test_data:trap.wasm", ], linkstatic = 1, diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 649fb1069..132f8247d 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -19,6 +19,7 @@ #include #include #include +#include #include #include "include/proxy-wasm/context.h" @@ -245,6 +246,34 @@ TEST_P(TestVM, Callback) { ASSERT_EQ(res.u32(), 100100); // 10000 (global) + 100(in callback) } +TEST_P(TestVM, TerminateExecution) { + // TODO(chaoqin-li1123): implement execution termination for other runtime. + if (engine_ != "v8") { + return; + } + auto source = readTestWasmFile("infinite_loop.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); + + TestContext context; + + std::thread terminate([&]() { + std::this_thread::sleep_for(std::chrono::seconds(3)); + vm_->terminate(); + }); + + ASSERT_TRUE(vm_->link("")); + WasmCallVoid<0> infinite_loop; + vm_->getFunction("infinite_loop", &infinite_loop); + ASSERT_TRUE(infinite_loop != nullptr); + infinite_loop(&context); + + terminate.join(); + + std::string exp_message = "Function: infinite_loop failed: Uncaught Error: termination_exception"; + auto *integration = dynamic_cast(vm_->integration().get()); + ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); +} + TEST_P(TestVM, Trap) { auto source = readTestWasmFile("trap.wasm"); ASSERT_TRUE(vm_->load(source, {}, {})); diff --git a/test/test_data/BUILD b/test/test_data/BUILD index c6ed213e3..83f781f00 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -37,6 +37,11 @@ wasm_rust_binary( srcs = ["trap.rs"], ) +wasm_rust_binary( + name = "infinite_loop.wasm", + srcs = ["infinite_loop.rs"], +) + wasm_rust_binary( name = "env.wasm", srcs = ["env.rs"], diff --git a/test/test_data/infinite_loop.rs b/test/test_data/infinite_loop.rs new file mode 100644 index 000000000..c502be879 --- /dev/null +++ b/test/test_data/infinite_loop.rs @@ -0,0 +1,21 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn infinite_loop() { + let mut _count: u64 = 0; + loop { + _count += 1; + } +} From 6786024bb556edba6304d049e4cb6bfa40a988ab Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 1 Mar 2022 16:55:20 -0600 Subject: [PATCH 190/287] Avoid thread-unsafe host integration call in terminate(). (#271) Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 71a7483e8..dc9555494 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -668,7 +668,6 @@ void V8::terminate() { while (isolate->IsExecutionTerminating()) { std::this_thread::yield(); } - integration()->trace("[host->vm] Terminated"); } std::string V8::getFailMessage(std::string_view function_name, wasm::own trap) { From 0c0bcd26ec7255efa9a99b83c7d7f3dc7c8cd85c Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 2 Mar 2022 03:30:29 -0600 Subject: [PATCH 191/287] ci: fix broken dependencies. (#274) Signed-off-by: Piotr Sikora --- .github/workflows/format.yml | 4 ++-- .github/workflows/test.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 567062940..3acacb26d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -102,7 +102,7 @@ jobs: - uses: actions/checkout@v2 - name: Install dependencies (Linux) - run: sudo apt-get install -y clang-format-12 + run: sudo apt update -y && sudo apt install -y clang-format-12 - name: Format (clang-format) run: | @@ -118,7 +118,7 @@ jobs: - uses: actions/checkout@v2 - name: Install dependencies (Linux) - run: sudo apt-get install -y clang-tidy-12 + run: sudo apt update -y && sudo apt install -y clang-tidy-12 - name: Bazel cache uses: PiotrSikora/cache@v2.1.7-with-skip-cache diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f94bca82e..685c56edf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -223,7 +223,7 @@ jobs: - name: Install dependencies (Linux) if: ${{ matrix.deps != '' && startsWith(matrix.os, 'ubuntu') }} - run: sudo apt-get install -y ${{ matrix.deps }} + run: sudo apt update -y && sudo apt install -y ${{ matrix.deps }} - name: Activate Docker/QEMU if: startsWith(matrix.run_under, 'docker') From 41cb336f0192adac13339db04b272162b8a7f246 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 2 Mar 2022 04:39:38 -0600 Subject: [PATCH 192/287] wasmtime: fix params array getting out of scope. (#272) Broken in proxy-wasm/proxy-wasm-cpp-host#217. Signed-off-by: Piotr Sikora --- .github/workflows/test.yml | 2 +- src/v8/v8.cc | 6 ++++ src/wasmtime/wasmtime.cc | 60 +++++++++++++++++++++++--------------- 3 files changed, 44 insertions(+), 24 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 685c56edf..a9bf70566 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -172,7 +172,7 @@ jobs: os: ubuntu-20.04 arch: x86_64 action: test - flags: --config=clang + flags: --config=clang -c opt - name: 'Wasmtime on Linux/x86_64 with ASan' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' diff --git a/src/v8/v8.cc b/src/v8/v8.cc index dc9555494..dea883252 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -586,6 +586,8 @@ void V8::getModuleFunctionImpl(std::string_view function_name, const bool log = cmpLogLevel(LogLevel::trace); SaveRestoreContext saved_context(context); wasm::own trap = nullptr; + + // Workaround for MSVC++ not supporting zero-sized arrays. if constexpr (sizeof...(args) > 0) { wasm::Val params[] = {makeVal(args)...}; if (log) { @@ -599,6 +601,7 @@ void V8::getModuleFunctionImpl(std::string_view function_name, } trap = func->call(nullptr, nullptr); } + if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return; @@ -635,6 +638,8 @@ void V8::getModuleFunctionImpl(std::string_view function_name, SaveRestoreContext saved_context(context); wasm::Val results[1]; wasm::own trap = nullptr; + + // Workaround for MSVC++ not supporting zero-sized arrays. if constexpr (sizeof...(args) > 0) { wasm::Val params[] = {makeVal(args)...}; if (log) { @@ -648,6 +653,7 @@ void V8::getModuleFunctionImpl(std::string_view function_name, } trap = func->call(nullptr, results); } + if (trap) { fail(FailState::RuntimeError, getFailMessage(std::string(function_name), std::move(trap))); return R{}; diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 4bbc32b5f..06f4f0e3c 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -591,21 +591,28 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> void { - wasm_val_vec_t params; + const bool log = cmpLogLevel(LogLevel::trace); + SaveRestoreContext saved_context(context); + wasm_val_vec_t results = WASM_EMPTY_VEC; + WasmTrapPtr trap; + + // Workaround for MSVC++ not supporting zero-sized arrays. if constexpr (sizeof...(args) > 0) { wasm_val_t params_arr[] = {makeVal(args)...}; - params = WASM_ARRAY_VEC(params_arr); + wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(¶ms) + ")"); + } + trap.reset(wasm_func_call(func, ¶ms, &results)); } else { - params = WASM_EMPTY_VEC; - } - wasm_val_vec_t results = WASM_EMPTY_VEC; - const bool log = cmpLogLevel(LogLevel::trace); - if (log) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(¶ms) + - ")"); + wasm_val_vec_t params = WASM_EMPTY_VEC; + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "()"); + } + trap.reset(wasm_func_call(func, ¶ms, &results)); } - SaveRestoreContext saved_context(context); - WasmTrapPtr trap{wasm_func_call(func, ¶ms, &results)}; + if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); @@ -645,22 +652,29 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, } *function = [func, function_name, this](ContextBase *context, Args... args) -> R { - wasm_val_vec_t params; + const bool log = cmpLogLevel(LogLevel::trace); + SaveRestoreContext saved_context(context); + wasm_val_t results_arr[1]; + wasm_val_vec_t results = WASM_ARRAY_VEC(results_arr); + WasmTrapPtr trap; + + // Workaround for MSVC++ not supporting zero-sized arrays. if constexpr (sizeof...(args) > 0) { wasm_val_t params_arr[] = {makeVal(args)...}; - params = WASM_ARRAY_VEC(params_arr); + wasm_val_vec_t params = WASM_ARRAY_VEC(params_arr); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(¶ms) + ")"); + } + trap.reset(wasm_func_call(func, ¶ms, &results)); } else { - params = WASM_EMPTY_VEC; - } - wasm_val_t results_arr[1]; - wasm_val_vec_t results = WASM_ARRAY_VEC(results_arr); - const bool log = cmpLogLevel(LogLevel::trace); - if (log) { - integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(¶ms) + - ")"); + wasm_val_vec_t params = WASM_EMPTY_VEC; + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "()"); + } + trap.reset(wasm_func_call(func, ¶ms, &results)); } - SaveRestoreContext saved_context(context); - WasmTrapPtr trap{wasm_func_call(func, ¶ms, &results)}; + if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); From 7f63346c6d518a6d3f4447115220038df1f55782 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 2 Mar 2022 07:10:14 -0600 Subject: [PATCH 193/287] test: use a bit more realistic flow in tests. (#270) While there, change the default integration log level to trace. Signed-off-by: Piotr Sikora --- src/wasm.cc | 4 +- test/BUILD | 1 + test/exports_test.cc | 102 ++++++--------- test/runtime_test.cc | 219 +++++++++++++++++--------------- test/test_data/callback.rs | 9 +- test/test_data/clock.rs | 8 ++ test/test_data/env.rs | 18 ++- test/test_data/infinite_loop.rs | 8 ++ test/test_data/trap.rs | 8 ++ test/utility.h | 76 ++++++++--- test/wasm_test.cc | 4 +- 11 files changed, 271 insertions(+), 186 deletions(-) diff --git a/src/wasm.cc b/src/wasm.cc index c2dba732b..c7bcfcdd8 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -249,7 +249,9 @@ bool WasmBase::load(const std::string &code, bool allow_precompiled) { fail(FailState::UnableToInitializeCode, message); return false; } - wasm_vm_->integration()->trace(message); + if (!message.empty()) { + wasm_vm_->integration()->trace(message); + } // Get ABI version from the module. if (!BytecodeUtil::getAbiVersion(code, abi_version_)) { diff --git a/test/BUILD b/test/BUILD index 46514b982..ced9dbd37 100644 --- a/test/BUILD +++ b/test/BUILD @@ -56,6 +56,7 @@ cc_test( data = [ "//test/test_data:abi_export.wasm", "//test/test_data:callback.wasm", + "//test/test_data:clock.wasm", "//test/test_data:infinite_loop.wasm", "//test/test_data:trap.wasm", ], diff --git a/test/exports_test.cc b/test/exports_test.cc index aab95fcab..40e0359d1 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -30,89 +30,63 @@ namespace proxy_wasm { namespace { -INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines()), +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), [](const testing::TestParamInfo &info) { return info.param; }); -class TestContext : public ContextBase { -public: - TestContext(WasmBase *base) : ContextBase(base){}; - WasmResult log(uint32_t /*log_level*/, std::string_view msg) override { - log_ += std::string(msg) + "\n"; - return WasmResult::Ok; - } - std::string &log_msg() { return log_; } - -private: - std::string log_; -}; - -TEST_P(TestVM, Environment) { +TEST_P(TestVm, Environment) { std::unordered_map envs = {{"KEY1", "VALUE1"}, {"KEY2", "VALUE2"}}; auto source = readTestWasmFile("env.wasm"); - - auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", envs, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source, {}, {})); - - TestContext context(&wasm_base); - current_context_ = &context; - - wasm_base.registerCallbacks(); - - ASSERT_TRUE(wasm_base.wasm_vm()->link("")); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_), envs); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); WasmCallVoid<0> run; - wasm_base.wasm_vm()->getFunction("run", &run); - - run(current_context_); - - auto msg = context.log_msg(); - EXPECT_NE(std::string::npos, msg.find("KEY1: VALUE1\n")) << msg; - EXPECT_NE(std::string::npos, msg.find("KEY2: VALUE2\n")) << msg; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + run(wasm.vm_context()); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogged("KEY1: VALUE1\n")); + EXPECT_TRUE(context->isLogged("KEY2: VALUE2\n")); } -TEST_P(TestVM, WithoutEnvironment) { +TEST_P(TestVm, WithoutEnvironment) { auto source = readTestWasmFile("env.wasm"); - auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source, {}, {})); - - TestContext context(&wasm_base); - current_context_ = &context; - - wasm_base.registerCallbacks(); - - ASSERT_TRUE(wasm_base.wasm_vm()->link("")); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_), {}); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); WasmCallVoid<0> run; - wasm_base.wasm_vm()->getFunction("run", &run); - - run(current_context_); + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + run(wasm.vm_context()); - EXPECT_EQ(context.log_msg(), ""); + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogEmpty()); } -TEST_P(TestVM, Clock) { +TEST_P(TestVm, Clock) { auto source = readTestWasmFile("clock.wasm"); - auto wasm_base = WasmBase(std::move(vm_), "vm_id", "", "", {}, {}); - ASSERT_TRUE(wasm_base.wasm_vm()->load(source, {}, {})); - - TestContext context(&wasm_base); - current_context_ = &context; - - wasm_base.registerCallbacks(); - - ASSERT_TRUE(wasm_base.wasm_vm()->link("")); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); WasmCallVoid<0> run; - wasm_base.wasm_vm()->getFunction("run", &run); - ASSERT_TRUE(run); - run(current_context_); - - // Check logs. - auto msg = context.log_msg(); - EXPECT_NE(std::string::npos, msg.find("monotonic: ")) << msg; - EXPECT_NE(std::string::npos, msg.find("realtime: ")) << msg; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + run(wasm.vm_context()); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogged("monotonic: ")); + EXPECT_TRUE(context->isLogged("realtime: ")); } } // namespace diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 132f8247d..3b7effcab 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -30,12 +30,12 @@ namespace proxy_wasm { namespace { -INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines()), +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), [](const testing::TestParamInfo &info) { return info.param; }); -TEST_P(TestVM, Basic) { +TEST_P(TestVm, Basic) { if (engine_ == "wamr") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); } else if (engine_ == "wasmtime" || engine_ == "v8") { @@ -48,7 +48,7 @@ TEST_P(TestVM, Basic) { EXPECT_EQ(vm_->getEngineName(), engine_); } -TEST_P(TestVM, Memory) { +TEST_P(TestVm, Memory) { auto source = readTestWasmFile("abi_export.wasm"); ASSERT_TRUE(vm_->load(source, {}, {})); ASSERT_TRUE(vm_->link("")); @@ -66,7 +66,7 @@ TEST_P(TestVM, Memory) { ASSERT_EQ(200, static_cast(word.u64_)); } -TEST_P(TestVM, Clone) { +TEST_P(TestVm, Clone) { if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { return; } @@ -95,7 +95,7 @@ TEST_P(TestVM, Clone) { #if defined(__linux__) && defined(__x86_64__) -TEST_P(TestVM, CloneUntilOutOfMemory) { +TEST_P(TestVm, CloneUntilOutOfMemory) { if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { return; } @@ -141,154 +141,167 @@ TEST_P(TestVM, CloneUntilOutOfMemory) { #endif -class TestContext : public ContextBase { +class TestCounterContext : public TestContext { public: - TestContext() = default; + TestCounterContext(WasmBase *wasm) : TestContext(wasm) {} + void increment() { counter++; } - int64_t counter = 0; + size_t getCount() { return counter; } + +private: + size_t counter = 0; }; -void nopCallback() {} +class TestCounterWasm : public TestWasm { +public: + TestCounterWasm(std::unique_ptr wasm_vm) : TestWasm(std::move(wasm_vm)) {} + + ContextBase *createVmContext() override { return new TestCounterContext(this); }; +}; void callback() { - auto *context = dynamic_cast(contextOrEffectiveContext()); + auto *context = dynamic_cast(contextOrEffectiveContext()); context->increment(); } Word callback2(Word val) { return val + 100; } -TEST_P(TestVM, StraceLogLevel) { +TEST_P(TestVm, StraceLogLevel) { if (engine_ == "wavm") { // TODO(mathetake): strace is yet to be implemented for WAVM. // See https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/120. return; } - auto *integration = dynamic_cast(vm_->integration().get()); - auto source = readTestWasmFile("callback.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - vm_->registerCallback("env", "callback", &nopCallback, - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - vm_->registerCallback( - "env", "callback2", &callback2, - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - ASSERT_TRUE(vm_->link("")); + auto source = readTestWasmFile("clock.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); WasmCallVoid<0> run; - vm_->getFunction("run", &run); - - run(nullptr); - // no trace message found since DummyIntegration's log_level_ defaults to LogLevel::info - EXPECT_EQ(integration->trace_message_, ""); - - integration->log_level_ = LogLevel::trace; - run(nullptr); - EXPECT_NE(integration->trace_message_, ""); + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + + auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); + host->setLogLevel(LogLevel::info); + run(wasm.vm_context()); + EXPECT_TRUE(host->isTraceLogEmpty()); + + host->setLogLevel(LogLevel::trace); + run(wasm.vm_context()); + EXPECT_TRUE(host->isTraceLogged("[host->vm] run()")); + EXPECT_TRUE(host->isTraceLogged("[vm->host] wasi_snapshot_preview1.clock_time_get(1, 1, ")); + EXPECT_TRUE(host->isTraceLogged("[vm<-host] wasi_snapshot_preview1.clock_time_get return: 0")); + EXPECT_TRUE(host->isTraceLogged("[host<-vm] run return: void")); } -TEST_P(TestVM, BadExportFunction) { - auto source = readTestWasmFile("callback.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - - TestContext context; - vm_->registerCallback( - "env", "callback", &callback, - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - vm_->registerCallback( - "env", "callback2", &callback2, - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - ASSERT_TRUE(vm_->link("")); +TEST_P(TestVm, BadExportFunction) { + auto source = readTestWasmFile("clock.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); - WasmCallVoid<0> run; - vm_->getFunction("non-existent", &run); - EXPECT_TRUE(run == nullptr); + WasmCallVoid<0> non_existent; + wasm.wasm_vm()->getFunction("non_existent", &non_existent); + EXPECT_TRUE(non_existent == nullptr); WasmCallWord<2> bad_signature_run; - vm_->getFunction("run", &bad_signature_run); + wasm.wasm_vm()->getFunction("run", &bad_signature_run); EXPECT_TRUE(bad_signature_run == nullptr); - vm_->getFunction("run", &run); - EXPECT_TRUE(run != nullptr); - for (auto i = 0; i < 100; i++) { - run(&context); - } - ASSERT_EQ(context.counter, 100); + WasmCallVoid<0> run; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); } -TEST_P(TestVM, Callback) { +TEST_P(TestVm, Callback) { auto source = readTestWasmFile("callback.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); + ASSERT_FALSE(source.empty()); + auto wasm = TestCounterWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); - TestContext context; - - vm_->registerCallback( + wasm.wasm_vm()->registerCallback( "env", "callback", &callback, &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - vm_->registerCallback( + wasm.wasm_vm()->registerCallback( "env", "callback2", &callback2, &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - ASSERT_TRUE(vm_->link("")); + ASSERT_TRUE(wasm.initialize()); WasmCallVoid<0> run; - vm_->getFunction("run", &run); - EXPECT_TRUE(run != nullptr); - for (auto i = 0; i < 100; i++) { - run(&context); + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + for (auto i = 0; i < 5; i++) { + run(wasm.vm_context()); } - ASSERT_EQ(context.counter, 100); + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_EQ(context->getCount(), 5); WasmCallWord<1> run2; - vm_->getFunction("run2", &run2); - Word res = run2(&context, Word{0}); - ASSERT_EQ(res.u32(), 100100); // 10000 (global) + 100(in callback) + wasm.wasm_vm()->getFunction("run2", &run2); + ASSERT_TRUE(run2 != nullptr); + Word res = run2(wasm.vm_context(), Word{0}); + EXPECT_EQ(res.u32(), 100100); // 10000 (global) + 100 (in callback) } -TEST_P(TestVM, TerminateExecution) { +TEST_P(TestVm, TerminateExecution) { // TODO(chaoqin-li1123): implement execution termination for other runtime. if (engine_ != "v8") { return; } auto source = readTestWasmFile("infinite_loop.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - - TestContext context; + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); std::thread terminate([&]() { - std::this_thread::sleep_for(std::chrono::seconds(3)); - vm_->terminate(); + std::this_thread::sleep_for(std::chrono::seconds(1)); + wasm.wasm_vm()->terminate(); }); - ASSERT_TRUE(vm_->link("")); WasmCallVoid<0> infinite_loop; - vm_->getFunction("infinite_loop", &infinite_loop); + wasm.wasm_vm()->getFunction("infinite_loop", &infinite_loop); ASSERT_TRUE(infinite_loop != nullptr); - infinite_loop(&context); + infinite_loop(wasm.vm_context()); terminate.join(); - std::string exp_message = "Function: infinite_loop failed: Uncaught Error: termination_exception"; - auto *integration = dynamic_cast(vm_->integration().get()); - ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); + // Check integration logs. + auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); + EXPECT_TRUE(host->isErrorLogged("Function: infinite_loop failed")); + if (engine_ == "v8") { + EXPECT_TRUE(host->isErrorLogged("Uncaught Error: termination_exception")); + } } -TEST_P(TestVM, Trap) { +TEST_P(TestVm, Trap) { auto source = readTestWasmFile("trap.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - ASSERT_TRUE(vm_->link("")); - TestContext context; + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + WasmCallVoid<0> trigger; - vm_->getFunction("trigger", &trigger); - EXPECT_TRUE(trigger != nullptr); - trigger(&context); - std::string exp_message = "Function: trigger failed"; - auto *integration = dynamic_cast(vm_->integration().get()); - ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); + wasm.wasm_vm()->getFunction("trigger", &trigger); + ASSERT_TRUE(trigger != nullptr); + trigger(wasm.vm_context()); + + // Check integration logs. + auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); + EXPECT_TRUE(host->isErrorLogged("Function: trigger failed")); + if (engine_ == "v8") { + EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); + EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); + EXPECT_TRUE(host->isErrorLogged(" - trigger")); + } } -TEST_P(TestVM, Trap2) { +TEST_P(TestVm, Trap2) { if (engine_ == "wavm") { // TODO(mathetake): Somehow WAVM exits with 'munmap_chunk(): invalid pointer' on unidentified // build condition in 'libstdc++ abi::__cxa_demangle' originally from @@ -296,16 +309,24 @@ TEST_P(TestVM, Trap2) { return; } auto source = readTestWasmFile("trap.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - ASSERT_TRUE(vm_->link("")); - TestContext context; + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + WasmCallWord<1> trigger2; - vm_->getFunction("trigger2", &trigger2); - EXPECT_TRUE(trigger2 != nullptr); - trigger2(&context, 0); - std::string exp_message = "Function: trigger2 failed"; - auto *integration = dynamic_cast(vm_->integration().get()); - ASSERT_TRUE(integration->error_message_.find(exp_message) != std::string::npos); + wasm.wasm_vm()->getFunction("trigger2", &trigger2); + ASSERT_TRUE(trigger2 != nullptr); + trigger2(wasm.vm_context(), 0); + + // Check integration logs. + auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); + EXPECT_TRUE(host->isErrorLogged("Function: trigger2 failed")); + if (engine_ == "v8") { + EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); + EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); + EXPECT_TRUE(host->isErrorLogged(" - trigger2")); + } } } // namespace diff --git a/test/test_data/callback.rs b/test/test_data/callback.rs index 0c142a8ec..cab0141c4 100644 --- a/test/test_data/callback.rs +++ b/test/test_data/callback.rs @@ -12,6 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(_: usize) -> *mut u8 { + std::ptr::null_mut() +} + #[no_mangle] pub extern "C" fn run() { unsafe { @@ -32,4 +40,3 @@ extern "C" { fn callback(); fn callback2(val: i32) -> i32; } - diff --git a/test/test_data/clock.rs b/test/test_data/clock.rs index 480a2b1bd..e2697a949 100644 --- a/test/test_data/clock.rs +++ b/test/test_data/clock.rs @@ -14,6 +14,14 @@ use std::time::{Instant, SystemTime}; +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(_: usize) -> *mut u8 { + std::ptr::null_mut() +} + #[no_mangle] pub extern "C" fn run() { println!("monotonic: {:?}", Instant::now()); diff --git a/test/test_data/env.rs b/test/test_data/env.rs index 59bf2cc72..63d345ee1 100644 --- a/test/test_data/env.rs +++ b/test/test_data/env.rs @@ -13,14 +13,26 @@ // limitations under the License. extern "C" { - fn __wasilibc_initialize_environ(); + fn __wasm_call_ctors(); } #[no_mangle] -pub extern "C" fn run() { +pub extern "C" fn _initialize() { unsafe { - __wasilibc_initialize_environ(); + __wasm_call_ctors(); } +} + +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(_: usize) -> *mut u8 { + std::ptr::null_mut() +} + +#[no_mangle] +pub extern "C" fn run() { for (key, value) in std::env::vars() { println!("{}: {}\n", key, value); } diff --git a/test/test_data/infinite_loop.rs b/test/test_data/infinite_loop.rs index c502be879..371443e68 100644 --- a/test/test_data/infinite_loop.rs +++ b/test/test_data/infinite_loop.rs @@ -12,6 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(_: usize) -> *mut u8 { + std::ptr::null_mut() +} + #[no_mangle] pub extern "C" fn infinite_loop() { let mut _count: u64 = 0; diff --git a/test/test_data/trap.rs b/test/test_data/trap.rs index fe6f71f62..467397206 100644 --- a/test/test_data/trap.rs +++ b/test/test_data/trap.rs @@ -12,6 +12,14 @@ // See the License for the specific language governing permissions and // limitations under the License. +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(_: usize) -> *mut u8 { + std::ptr::null_mut() +} + #[no_mangle] pub extern "C" fn trigger() { one(); diff --git a/test/utility.h b/test/utility.h index 36dceef1f..311481021 100644 --- a/test/utility.h +++ b/test/utility.h @@ -18,6 +18,7 @@ #include #include #include +#include #include #include "include/proxy-wasm/context.h" @@ -41,34 +42,77 @@ namespace proxy_wasm { std::vector getWasmEngines(); std::string readTestWasmFile(const std::string &filename); -struct DummyIntegration : public WasmVmIntegration { - ~DummyIntegration() override = default; - WasmVmIntegration *clone() override { return new DummyIntegration{}; } +class TestIntegration : public WasmVmIntegration { +public: + ~TestIntegration() override = default; + WasmVmIntegration *clone() override { return new TestIntegration{}; } + + void setLogLevel(LogLevel level) { log_level_ = level; } + + LogLevel getLogLevel() override { return log_level_; } + void error(std::string_view message) override { std::cout << "ERROR from integration: " << message << std::endl; - error_message_ = message; + error_log_ += std::string(message) + "\n"; + } + + bool isErrorLogEmpty() { return error_log_.empty(); } + + bool isErrorLogged(std::string_view message) { + return error_log_.find(message) != std::string::npos; } + void trace(std::string_view message) override { std::cout << "TRACE from integration: " << message << std::endl; - trace_message_ = message; + trace_log_ += std::string(message) + "\n"; } + + bool isTraceLogEmpty() { return trace_log_.empty(); } + + bool isTraceLogged(std::string_view message) { + return trace_log_.find(message) != std::string::npos; + } + bool getNullVmFunction(std::string_view /*function_name*/, bool /*returns_word*/, int /*number_of_arguments*/, NullPlugin * /*plugin*/, void * /*ptr_to_function_return*/) override { return false; }; - LogLevel getLogLevel() override { return log_level_; } - std::string error_message_; - std::string trace_message_; - LogLevel log_level_ = LogLevel::info; +private: + std::string error_log_; + std::string trace_log_; + LogLevel log_level_ = LogLevel::trace; }; -class TestVM : public testing::TestWithParam { +class TestContext : public ContextBase { public: - std::unique_ptr vm_; + TestContext(WasmBase *wasm) : ContextBase(wasm) {} + + WasmResult log(uint32_t /*log_level*/, std::string_view message) override { + log_ += std::string(message) + "\n"; + return WasmResult::Ok; + } + + bool isLogEmpty() { return log_.empty(); } + + bool isLogged(std::string_view message) { return log_.find(message) != std::string::npos; } + +private: + std::string log_; +}; - TestVM() { +class TestWasm : public WasmBase { +public: + TestWasm(std::unique_ptr wasm_vm, std::unordered_map envs = {}) + : WasmBase(std::move(wasm_vm), "", "", "", std::move(envs), {}) {} + + ContextBase *createVmContext() override { return new TestContext(this); }; +}; + +class TestVm : public testing::TestWithParam { +public: + TestVm() { engine_ = GetParam(); vm_ = newVm(); } @@ -76,7 +120,7 @@ class TestVM : public testing::TestWithParam { std::unique_ptr newVm() { std::unique_ptr vm; if (engine_.empty()) { - EXPECT_TRUE(false) << "engine must not be empty"; + ADD_FAILURE() << "engine must not be empty"; #if defined(PROXY_WASM_HOST_ENGINE_V8) } else if (engine_ == "v8") { vm = proxy_wasm::createV8Vm(); @@ -94,13 +138,13 @@ class TestVM : public testing::TestWithParam { vm = proxy_wasm::createWamrVm(); #endif } else { - EXPECT_TRUE(false) << "compiled without support for the requested \"" << engine_ - << "\" engine"; + ADD_FAILURE() << "compiled without support for the requested \"" << engine_ << "\" engine"; } - vm->integration() = std::make_unique(); + vm->integration() = std::make_unique(); return vm; }; + std::unique_ptr vm_; std::string engine_; }; diff --git a/test/wasm_test.cc b/test/wasm_test.cc index 4fc509c8e..51026b559 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -20,13 +20,13 @@ namespace proxy_wasm { -INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVM, testing::ValuesIn(getWasmEngines()), +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), [](const testing::TestParamInfo &info) { return info.param; }); // Fail callbacks only used for WasmVMs - not available for NullVM. -TEST_P(TestVM, GetOrCreateThreadLocalWasmFailCallbacks) { +TEST_P(TestVm, GetOrCreateThreadLocalWasmFailCallbacks) { const auto *const plugin_name = "plugin_name"; const auto *const root_id = "root_id"; const auto *const vm_id = "vm_id"; From 06c5d4c80cb1fe4dc642e3534b65da324cb65bea Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 3 Mar 2022 02:39:55 -0600 Subject: [PATCH 194/287] test: move WasmVm tests into wasm_vm_test. (#275) Signed-off-by: Piotr Sikora --- BUILD | 1 + src/exports.cc | 3 + src/wasm.cc | 3 - test/BUILD | 16 ++- test/runtime_test.cc | 254 ++++++++++++------------------------------- test/wasm_vm_test.cc | 140 ++++++++++++++++++++++++ 6 files changed, 231 insertions(+), 186 deletions(-) create mode 100644 test/wasm_vm_test.cc diff --git a/BUILD b/BUILD index 69e04d811..5095d8cc4 100644 --- a/BUILD +++ b/BUILD @@ -72,6 +72,7 @@ cc_library( "//bazel:crypto_system": [], "//conditions:default": ["@boringssl//:crypto"], }), + alwayslink = 1, ) cc_library( diff --git a/src/exports.cc b/src/exports.cc index aac5e0f2a..c203946b8 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -21,6 +21,9 @@ namespace proxy_wasm { +thread_local ContextBase *current_context_; +thread_local uint32_t effective_context_id_ = 0; + // Any currently executing Wasm call context. ContextBase *contextOrEffectiveContext() { if (effective_context_id_ == 0) { diff --git a/src/wasm.cc b/src/wasm.cc index c7bcfcdd8..3c0473e87 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -35,9 +35,6 @@ namespace proxy_wasm { -thread_local ContextBase *current_context_; -thread_local uint32_t effective_context_id_ = 0; - namespace { // Map from Wasm Key to the local Wasm instance. diff --git a/test/BUILD b/test/BUILD index ced9dbd37..3bdd69f24 100644 --- a/test/BUILD +++ b/test/BUILD @@ -54,7 +54,6 @@ cc_test( name = "runtime_test", srcs = ["runtime_test.cc"], data = [ - "//test/test_data:abi_export.wasm", "//test/test_data:callback.wasm", "//test/test_data:clock.wasm", "//test/test_data:infinite_loop.wasm", @@ -133,6 +132,21 @@ cc_test( ], ) +cc_test( + name = "wasm_vm_test", + srcs = ["wasm_vm_test.cc"], + data = [ + "//test/test_data:abi_export.wasm", + ], + linkstatic = 1, + deps = [ + ":utility_lib", + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + cc_library( name = "utility_lib", testonly = True, diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 3b7effcab..ccce3df69 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -14,13 +14,9 @@ #include "gtest/gtest.h" -#include -#include #include -#include #include #include -#include #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm.h" @@ -35,137 +31,26 @@ INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines() return info.param; }); -TEST_P(TestVm, Basic) { - if (engine_ == "wamr") { - EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); - } else if (engine_ == "wasmtime" || engine_ == "v8") { - EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); - } else if (engine_ == "wavm") { - EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::InstantiatedModule); - } else { - FAIL(); - } - EXPECT_EQ(vm_->getEngineName(), engine_); -} - -TEST_P(TestVm, Memory) { - auto source = readTestWasmFile("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - ASSERT_TRUE(vm_->link("")); - - Word word; - ASSERT_TRUE(vm_->setWord(0x2000, Word(100))); - ASSERT_TRUE(vm_->getWord(0x2000, &word)); - ASSERT_EQ(100, word.u64_); - - uint32_t data[2] = {htowasm(static_cast(-1)), htowasm(200)}; - ASSERT_TRUE(vm_->setMemory(0x200, sizeof(int32_t) * 2, static_cast(data))); - ASSERT_TRUE(vm_->getWord(0x200, &word)); - ASSERT_EQ(-1, static_cast(word.u64_)); - ASSERT_TRUE(vm_->getWord(0x204, &word)); - ASSERT_EQ(200, static_cast(word.u64_)); -} - -TEST_P(TestVm, Clone) { - if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { - return; - } - auto source = readTestWasmFile("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - ASSERT_TRUE(vm_->link("")); - const auto address = 0x2000; - Word word; - { - auto clone = vm_->clone(); - ASSERT_TRUE(clone != nullptr); - ASSERT_NE(vm_, clone); - if (clone->cloneable() != proxy_wasm::Cloneable::InstantiatedModule) { - ASSERT_TRUE(clone->link("")); - } - - ASSERT_TRUE(clone->setWord(address, Word(100))); - ASSERT_TRUE(clone->getWord(address, &word)); - ASSERT_EQ(100, word.u64_); - } - - // check memory arrays are not overrapped - ASSERT_TRUE(vm_->getWord(address, &word)); - ASSERT_NE(100, word.u64_); -} - -#if defined(__linux__) && defined(__x86_64__) - -TEST_P(TestVm, CloneUntilOutOfMemory) { - if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { - return; - } - if (engine_ == "wavm") { - // TODO(PiotrSikora): Figure out why this fails on the CI. - return; - } - - auto source = readTestWasmFile("abi_export.wasm"); - ASSERT_TRUE(vm_->load(source, {}, {})); - ASSERT_TRUE(vm_->link("")); - - size_t max_clones = 100000; -#if defined(__has_feature) -#if __has_feature(address_sanitizer) - max_clones = 1000; -#endif -#endif - - std::vector> clones; - for (size_t i = 0; i < max_clones; i++) { - auto clone = vm_->clone(); - if (clone == nullptr) { - break; - } - if (clone->cloneable() != proxy_wasm::Cloneable::InstantiatedModule) { - if (!clone->link("")) { - break; - } - } - // Prevent clone from droping out of scope and freeing memory. - clones.push_back(std::move(clone)); - } - - size_t min_clones = 1000; -#if defined(__has_feature) -#if __has_feature(thread_sanitizer) - min_clones = 100; -#endif -#endif - EXPECT_GE(clones.size(), min_clones); -} - -#endif - -class TestCounterContext : public TestContext { -public: - TestCounterContext(WasmBase *wasm) : TestContext(wasm) {} - - void increment() { counter++; } - size_t getCount() { return counter; } - -private: - size_t counter = 0; -}; +TEST_P(TestVm, BadSignature) { + auto source = readTestWasmFile("clock.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); -class TestCounterWasm : public TestWasm { -public: - TestCounterWasm(std::unique_ptr wasm_vm) : TestWasm(std::move(wasm_vm)) {} + WasmCallVoid<0> non_existent; + wasm.wasm_vm()->getFunction("non_existent", &non_existent); + EXPECT_TRUE(non_existent == nullptr); - ContextBase *createVmContext() override { return new TestCounterContext(this); }; -}; + WasmCallWord<2> bad_signature_run; + wasm.wasm_vm()->getFunction("run", &bad_signature_run); + EXPECT_TRUE(bad_signature_run == nullptr); -void callback() { - auto *context = dynamic_cast(contextOrEffectiveContext()); - context->increment(); + WasmCallVoid<0> run; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); } -Word callback2(Word val) { return val + 100; } - TEST_P(TestVm, StraceLogLevel) { if (engine_ == "wavm") { // TODO(mathetake): strace is yet to be implemented for WAVM. @@ -196,58 +81,6 @@ TEST_P(TestVm, StraceLogLevel) { EXPECT_TRUE(host->isTraceLogged("[host<-vm] run return: void")); } -TEST_P(TestVm, BadExportFunction) { - auto source = readTestWasmFile("clock.wasm"); - ASSERT_FALSE(source.empty()); - auto wasm = TestWasm(std::move(vm_)); - ASSERT_TRUE(wasm.load(source, false)); - ASSERT_TRUE(wasm.initialize()); - - WasmCallVoid<0> non_existent; - wasm.wasm_vm()->getFunction("non_existent", &non_existent); - EXPECT_TRUE(non_existent == nullptr); - - WasmCallWord<2> bad_signature_run; - wasm.wasm_vm()->getFunction("run", &bad_signature_run); - EXPECT_TRUE(bad_signature_run == nullptr); - - WasmCallVoid<0> run; - wasm.wasm_vm()->getFunction("run", &run); - ASSERT_TRUE(run != nullptr); -} - -TEST_P(TestVm, Callback) { - auto source = readTestWasmFile("callback.wasm"); - ASSERT_FALSE(source.empty()); - auto wasm = TestCounterWasm(std::move(vm_)); - ASSERT_TRUE(wasm.load(source, false)); - - wasm.wasm_vm()->registerCallback( - "env", "callback", &callback, - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - - wasm.wasm_vm()->registerCallback( - "env", "callback2", &callback2, - &ConvertFunctionWordToUint32::convertFunctionWordToUint32); - - ASSERT_TRUE(wasm.initialize()); - - WasmCallVoid<0> run; - wasm.wasm_vm()->getFunction("run", &run); - ASSERT_TRUE(run != nullptr); - for (auto i = 0; i < 5; i++) { - run(wasm.vm_context()); - } - auto *context = dynamic_cast(wasm.vm_context()); - EXPECT_EQ(context->getCount(), 5); - - WasmCallWord<1> run2; - wasm.wasm_vm()->getFunction("run2", &run2); - ASSERT_TRUE(run2 != nullptr); - Word res = run2(wasm.vm_context(), Word{0}); - EXPECT_EQ(res.u32(), 100100); // 10000 (global) + 100 (in callback) -} - TEST_P(TestVm, TerminateExecution) { // TODO(chaoqin-li1123): implement execution termination for other runtime. if (engine_ != "v8") { @@ -329,5 +162,62 @@ TEST_P(TestVm, Trap2) { } } +class TestCounterContext : public TestContext { +public: + TestCounterContext(WasmBase *wasm) : TestContext(wasm) {} + + void increment() { counter++; } + size_t getCount() { return counter; } + +private: + size_t counter = 0; +}; + +class TestCounterWasm : public TestWasm { +public: + TestCounterWasm(std::unique_ptr wasm_vm) : TestWasm(std::move(wasm_vm)) {} + + ContextBase *createVmContext() override { return new TestCounterContext(this); }; +}; + +void callback() { + auto *context = dynamic_cast(contextOrEffectiveContext()); + context->increment(); +} + +Word callback2(Word val) { return val + 100; } + +TEST_P(TestVm, Callback) { + auto source = readTestWasmFile("callback.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestCounterWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + + wasm.wasm_vm()->registerCallback( + "env", "callback", &callback, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + + wasm.wasm_vm()->registerCallback( + "env", "callback2", &callback2, + &ConvertFunctionWordToUint32::convertFunctionWordToUint32); + + ASSERT_TRUE(wasm.initialize()); + + WasmCallVoid<0> run; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + for (auto i = 0; i < 5; i++) { + run(wasm.vm_context()); + } + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_EQ(context->getCount(), 5); + + WasmCallWord<1> run2; + wasm.wasm_vm()->getFunction("run2", &run2); + ASSERT_TRUE(run2 != nullptr); + Word res = run2(wasm.vm_context(), Word{0}); + EXPECT_EQ(res.u32(), 100100); // 10000 (global) + 100 (in callback) +} + } // namespace } // namespace proxy_wasm diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc new file mode 100644 index 000000000..d29437c9b --- /dev/null +++ b/test/wasm_vm_test.cc @@ -0,0 +1,140 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "gtest/gtest.h" + +#include +#include +#include + +#include "include/proxy-wasm/wasm_vm.h" + +#include "test/utility.h" + +namespace proxy_wasm { +namespace { + +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), + [](const testing::TestParamInfo &info) { + return info.param; + }); + +TEST_P(TestVm, Basic) { + if (engine_ == "wamr") { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); + } else if (engine_ == "wasmtime" || engine_ == "v8") { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); + } else if (engine_ == "wavm") { + EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::InstantiatedModule); + } else { + FAIL(); + } + EXPECT_EQ(vm_->getEngineName(), engine_); +} + +TEST_P(TestVm, Memory) { + auto source = readTestWasmFile("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); + ASSERT_TRUE(vm_->link("")); + + Word word; + ASSERT_TRUE(vm_->setWord(0x2000, Word(100))); + ASSERT_TRUE(vm_->getWord(0x2000, &word)); + ASSERT_EQ(100, word.u64_); + + uint32_t data[2] = {htowasm(static_cast(-1)), htowasm(200)}; + ASSERT_TRUE(vm_->setMemory(0x200, sizeof(int32_t) * 2, static_cast(data))); + ASSERT_TRUE(vm_->getWord(0x200, &word)); + ASSERT_EQ(-1, static_cast(word.u64_)); + ASSERT_TRUE(vm_->getWord(0x204, &word)); + ASSERT_EQ(200, static_cast(word.u64_)); +} + +TEST_P(TestVm, Clone) { + if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { + return; + } + auto source = readTestWasmFile("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); + ASSERT_TRUE(vm_->link("")); + const auto address = 0x2000; + Word word; + { + auto clone = vm_->clone(); + ASSERT_TRUE(clone != nullptr); + ASSERT_NE(vm_, clone); + if (clone->cloneable() != proxy_wasm::Cloneable::InstantiatedModule) { + ASSERT_TRUE(clone->link("")); + } + + ASSERT_TRUE(clone->setWord(address, Word(100))); + ASSERT_TRUE(clone->getWord(address, &word)); + ASSERT_EQ(100, word.u64_); + } + + // check memory arrays are not overrapped + ASSERT_TRUE(vm_->getWord(address, &word)); + ASSERT_NE(100, word.u64_); +} + +#if defined(__linux__) && defined(__x86_64__) + +TEST_P(TestVm, CloneUntilOutOfMemory) { + if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { + return; + } + if (engine_ == "wavm") { + // TODO(PiotrSikora): Figure out why this fails on the CI. + return; + } + + auto source = readTestWasmFile("abi_export.wasm"); + ASSERT_TRUE(vm_->load(source, {}, {})); + ASSERT_TRUE(vm_->link("")); + + size_t max_clones = 100000; +#if defined(__has_feature) +#if __has_feature(address_sanitizer) + max_clones = 1000; +#endif +#endif + + std::vector> clones; + for (size_t i = 0; i < max_clones; i++) { + auto clone = vm_->clone(); + if (clone == nullptr) { + break; + } + if (clone->cloneable() != proxy_wasm::Cloneable::InstantiatedModule) { + if (!clone->link("")) { + break; + } + } + // Prevent clone from droping out of scope and freeing memory. + clones.push_back(std::move(clone)); + } + + size_t min_clones = 1000; +#if defined(__has_feature) +#if __has_feature(thread_sanitizer) + min_clones = 100; +#endif +#endif + EXPECT_GE(clones.size(), min_clones); +} + +#endif + +} // namespace +} // namespace proxy_wasm From 35a63d4d95cbde296c7a98b6766eb71bc4f326f3 Mon Sep 17 00:00:00 2001 From: chaoqin-li1123 <55518381+chaoqin-li1123@users.noreply.github.com> Date: Thu, 3 Mar 2022 07:27:06 -0600 Subject: [PATCH 195/287] Remove default implementations from headers. (#273) Signed-off-by: chaoqin-li1123 --- include/proxy-wasm/context.h | 11 ++++++++--- test/utility.h | 11 +++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 7eaf19c52..652b86b6e 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -237,12 +237,17 @@ class ContextBase : public RootInterface, WasmResult log(uint32_t /* level */, std::string_view /* message */) override { return unimplemented(); } - uint32_t getLogLevel() override { return static_cast(LogLevel::info); } + uint32_t getLogLevel() override { + unimplemented(); + return 0; + } uint64_t getCurrentTimeNanoseconds() override { - return std::chrono::system_clock::now().time_since_epoch().count(); + unimplemented(); + return 0; } uint64_t getMonotonicTimeNanoseconds() override { - return std::chrono::steady_clock::now().time_since_epoch().count(); + unimplemented(); + return 0; } std::string_view getConfiguration() override { unimplemented(); diff --git a/test/utility.h b/test/utility.h index 311481021..d5d2d2f42 100644 --- a/test/utility.h +++ b/test/utility.h @@ -98,6 +98,17 @@ class TestContext : public ContextBase { bool isLogged(std::string_view message) { return log_.find(message) != std::string::npos; } + uint64_t getCurrentTimeNanoseconds() override { + return std::chrono::duration_cast( + std::chrono::system_clock::now().time_since_epoch()) + .count(); + } + uint64_t getMonotonicTimeNanoseconds() override { + return std::chrono::duration_cast( + std::chrono::steady_clock::now().time_since_epoch()) + .count(); + } + private: std::string log_; }; From 974a4a88a9050d7bc61f16626161dc2e352f209c Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 15 Mar 2022 03:26:04 -0500 Subject: [PATCH 196/287] v8: update to v10.0.139.6. (#277) Signed-off-by: Piotr Sikora --- bazel/external/v8.patch | 29 +++++++++++++++++++++++++++++ bazel/repositories.bzl | 10 +++++----- 2 files changed, 34 insertions(+), 5 deletions(-) diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index 52af7b6ad..219935001 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,5 +1,6 @@ # 1. Disable pointer compression (limits the maximum number of WasmVMs). # 2. Don't expose Wasm C API (only Wasm C++ API). +# 3. Fix linking on Linux (needed only for branch-heads/10.0). diff --git a/BUILD.bazel b/BUILD.bazel index 5fb10d3940..a19930d36e 100644 @@ -33,3 +34,31 @@ index ce3f569fd5..dc8a4c4f6a 100644 } // extern "C" + +#endif +diff --git a/bazel/defs.bzl b/bazel/defs.bzl +index dee5e69cc4..070fadb969 100644 +--- a/bazel/defs.bzl ++++ b/bazel/defs.bzl +@@ -159,8 +159,21 @@ def _default_args(): + "DbgHelp.lib", + "Advapi32.lib", + ], +- "@v8//bazel/config:is_macos": ["-pthread"], +- "//conditions:default": ["-Wl,--no-as-needed -ldl -pthread"], ++ "@v8//bazel/config:is_macos": [ ++ "-pthread", ++ ], ++ "@v8//bazel/config:is_android": [ ++ "-Wl,--no-as-needed", ++ "-ldl", ++ "-pthread", ++ ], ++ "@v8//bazel/config:is_linux": [ ++ "-Wl,--no-as-needed", ++ "-ldl", ++ "-lrt", ++ "-pthread", ++ ], ++ "//conditions:default": [], + }) + select({ + ":should_add_rdynamic": ["-rdynamic"], + "//conditions:default": [], diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index b2bf5bb3c..6c3ebd76f 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -118,10 +118,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( git_repository, name = "v8", - # 10.0.101 - commit = "a3377e2234a32e1a67a620a180415b40f3dadb80", + # 10.0.139.6 + commit = "1e242a567b609aa18ce46f7b04cc51fd85756b67", remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1644336206 +0000", + shallow_since = "1646671271 +0000", patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], patch_args = ["-p1"], ) @@ -149,9 +149,9 @@ def proxy_wasm_cpp_host_repositories(): new_git_repository, name = "com_googlesource_chromium_zlib", build_file = "@v8//:bazel/BUILD.zlib", - commit = "3fc79233fe8ff5cf39fec4c8b8a46272d4f11cec", + commit = "9538f4194f6e5eff1bd59f2396ed9d05b1a8d801", remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", - shallow_since = "1644209500 -0800", + shallow_since = "1644963419 -0800", ) native.bind( From e1f845f15fcaf4f27993034da5522d2969249127 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 15 Mar 2022 03:27:10 -0500 Subject: [PATCH 197/287] wasmtime: update to v0.35.1. (#278) Signed-off-by: Piotr Sikora --- .github/workflows/format.yml | 4 +- bazel/cargo/wasmtime/BUILD.bazel | 6 +- bazel/cargo/wasmtime/Cargo.raze.lock | 111 ++++---- bazel/cargo/wasmtime/Cargo.toml | 6 +- bazel/cargo/wasmtime/crates.bzl | 252 +++++++++--------- ...1.0.53.bazel => BUILD.anyhow-1.0.56.bazel} | 4 +- .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- .../remote/BUILD.backtrace-0.3.64.bazel | 2 +- ...l => BUILD.cranelift-bforest-0.82.1.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.82.1.bazel} | 12 +- ...BUILD.cranelift-codegen-meta-0.82.1.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.82.1.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.82.1.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.82.1.bazel} | 4 +- ...el => BUILD.cranelift-native-0.82.1.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.82.1.bazel} | 12 +- .../remote/BUILD.env_logger-0.8.4.bazel | 4 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 2 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- ....2.4.bazel => BUILD.getrandom-0.2.5.bazel} | 4 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- ...0.2.118.bazel => BUILD.libc-0.2.119.bazel} | 4 +- ...bazel => BUILD.linux-raw-sys-0.0.42.bazel} | 2 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- ...9.0.bazel => BUILD.once_cell-1.10.0.bazel} | 2 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 2 +- .../remote/BUILD.rand_core-0.6.3.bazel | 2 +- ...ex-1.5.4.bazel => BUILD.regex-1.5.5.bazel} | 2 +- .../wasmtime/remote/BUILD.region-2.2.0.bazel | 2 +- ...0.33.2.bazel => BUILD.rustix-0.33.4.bazel} | 20 +- .../remote/BUILD.serde_derive-1.0.136.bazel | 2 +- ...yn-1.0.86.bazel => BUILD.syn-1.0.87.bazel} | 4 +- ....1.2.bazel => BUILD.termcolor-1.1.3.bazel} | 2 +- .../remote/BUILD.thiserror-impl-1.0.30.bazel | 2 +- ....0.bazel => BUILD.wasmparser-0.83.0.bazel} | 2 +- ...34.1.bazel => BUILD.wasmtime-0.35.1.bazel} | 20 +- ... => BUILD.wasmtime-cranelift-0.35.1.bazel} | 18 +- ...el => BUILD.wasmtime-environ-0.35.1.bazel} | 10 +- ....bazel => BUILD.wasmtime-jit-0.35.1.bazel} | 10 +- .../BUILD.wasmtime-jit-debug-0.35.1.bazel | 57 ++++ ...el => BUILD.wasmtime-runtime-0.35.1.bazel} | 14 +- ...azel => BUILD.wasmtime-types-0.35.1.bazel} | 6 +- bazel/repositories.bzl | 6 +- 43 files changed, 358 insertions(+), 280 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.anyhow-1.0.53.bazel => BUILD.anyhow-1.0.56.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.81.1.bazel => BUILD.cranelift-bforest-0.82.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.81.1.bazel => BUILD.cranelift-codegen-0.82.1.bazel} (87%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.81.1.bazel => BUILD.cranelift-codegen-meta-0.82.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.81.1.bazel => BUILD.cranelift-codegen-shared-0.82.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.81.1.bazel => BUILD.cranelift-entity-0.82.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.81.1.bazel => BUILD.cranelift-frontend-0.82.1.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.81.1.bazel => BUILD.cranelift-native-0.82.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.81.1.bazel => BUILD.cranelift-wasm-0.82.1.bazel} (79%) rename bazel/cargo/wasmtime/remote/{BUILD.getrandom-0.2.4.bazel => BUILD.getrandom-0.2.5.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.118.bazel => BUILD.libc-0.2.119.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.linux-raw-sys-0.0.40.bazel => BUILD.linux-raw-sys-0.0.42.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.once_cell-1.9.0.bazel => BUILD.once_cell-1.10.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-1.5.4.bazel => BUILD.regex-1.5.5.bazel} (99%) rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.33.2.bazel => BUILD.rustix-0.33.4.bazel} (81%) rename bazel/cargo/wasmtime/remote/{BUILD.syn-1.0.86.bazel => BUILD.syn-1.0.87.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.termcolor-1.1.2.bazel => BUILD.termcolor-1.1.3.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.82.0.bazel => BUILD.wasmparser-0.83.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.34.1.bazel => BUILD.wasmtime-0.35.1.bazel} (85%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.34.1.bazel => BUILD.wasmtime-cranelift-0.35.1.bazel} (73%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.34.1.bazel => BUILD.wasmtime-environ-0.35.1.bazel} (85%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.34.1.bazel => BUILD.wasmtime-jit-0.35.1.bazel} (91%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.34.1.bazel => BUILD.wasmtime-runtime-0.35.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.34.1.bazel => BUILD.wasmtime-types-0.35.1.bazel} (89%) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 3acacb26d..2b78c0362 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -89,9 +89,9 @@ jobs: run: | cd wasmsign && cargo raze && cd .. cd wasmtime && cargo raze && cd .. - # Ignore manual changes in "errno" crate until fixed in cargo-raze. + # Ignore manual changes in "errno" and "rustix" crates until fixed in cargo-raze. # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.2.8.bazel' + git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.2.8.bazel' ':!wasmtime/remote/BUILD.rustix-0.33.4.bazel' clang_format: name: check format with clang-format diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 4f8ec4034..03b3d856f 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@wasmtime__anyhow__1_0_53//:anyhow", + actual = "@wasmtime__anyhow__1_0_56//:anyhow", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@wasmtime__once_cell__1_9_0//:once_cell", + actual = "@wasmtime__once_cell__1_10_0//:once_cell", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_34_1//:wasmtime", + actual = "@wasmtime__wasmtime__0_35_1//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 096ab6aa1..084d0dc59 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -26,9 +26,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.53" +version = "1.0.56" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0" +checksum = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27" [[package]] name = "atty" @@ -100,18 +100,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32f027f29ace03752bb83c112eb4f53744bc4baadf19955e67fcde1d71d2f39d" +checksum = "d16922317bd7dd104d509a373887822caa0242fc1def00de66abb538db221db4" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6c10af69cbf4e228c11bdc26d8f9d5276773909152a769649a160571b282f92f" +checksum = "8b80bf40380256307b68a3dcbe1b91cac92a533e212b5b635abc3e4525781a0a" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -126,33 +126,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "290ac14d2cef43cbf1b53ad5c1b34216c9e32e00fa9b6ac57b5e5a2064369e02" +checksum = "703d0ed7d3bc6c7a814ca12858175bf4e93167a3584127858c686e4b5dd6e432" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "beb9142d134a03d01e3995e6d8dd3aecf16312261d0cb0c5dcd73d5be2528c1c" +checksum = "80f52311e1c90de12dcf8c4b9999c6ebfd1ed360373e88c357160936844511f6" [[package]] name = "cranelift-entity" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1268a50b7cbbfee8514d417fc031cedd9965b15fa9e5ed1d4bc16de86f76765e" +checksum = "66bc82ef522c1f643baf7d4d40b7c52643ee4549d8960b0e6a047daacb83f897" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97ac0d440469e19ab12183e31a9e41b4efd8a4ca5fbde2a10c78c7bb857cc2a4" +checksum = "3cc35e4251864b17515845ba47447bca88fec9ca1a4186b19fe42526e36140e8" dependencies = [ "cranelift-codegen", "log", @@ -162,9 +162,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "794cd1a5694a01c68957f9cfdc5ac092cf8b4e9c2d1697c4a5100f90103e9e9e" +checksum = "b882b2251c9845d509d92aebfdb6c8bb3b3b48e207ac951f21fbd20cfe7f90b3" dependencies = [ "cranelift-codegen", "libc", @@ -173,9 +173,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.81.1" +version = "0.82.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2ddd4ca6963f6e94d00e8935986411953581ac893587ab1f0eb4f0b5a40ae65" +checksum = "f0354e819732c02acdd98ab969dd81c7670304fff4c8fc4c86bc999b55fa1f0c" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -244,9 +244,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "getrandom" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" +checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77" dependencies = [ "cfg-if", "libc", @@ -319,15 +319,15 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.118" +version = "0.2.119" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "06e509672465a0504304aa87f9f176f2b2b716ed8fb105ebe5c02dc6dce96a94" +checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" [[package]] name = "linux-raw-sys" -version = "0.0.40" +version = "0.0.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bdc16c6ce4c85d9b46b4e66f2a814be5b3f034dbd5131c268a24ca26d970db8" +checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" [[package]] name = "log" @@ -391,9 +391,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5" +checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9" [[package]] name = "paste" @@ -477,9 +477,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.5.4" +version = "1.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" +checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286" dependencies = [ "aho-corasick", "memchr", @@ -518,9 +518,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.33.2" +version = "0.33.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db890a96e64911e67fa84e58ce061a40a6a65c231e5fad20b190933f8991a27c" +checksum = "ef7ec6a44fba95d21fa522760c03c16ca5ee95cebb6e4ef579cab3e6d7ba6c06" dependencies = [ "bitflags", "errno", @@ -564,9 +564,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.86" +version = "1.0.87" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" +checksum = "1e59d925cf59d8151f25a3bedf97c9c157597c9df7324d32d68991cc399ed08b" dependencies = [ "proc-macro2", "quote", @@ -581,9 +581,9 @@ checksum = "d7fa7e55043acb85fca6b3c01485a2eeb6b69c5d21002e273c79e465f43b7ac1" [[package]] name = "termcolor" -version = "1.1.2" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4" +checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" dependencies = [ "winapi-util", ] @@ -622,15 +622,15 @@ checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" [[package]] name = "wasmparser" -version = "0.82.0" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0559cc0f1779240d6f894933498877ea94f693d84f3ee39c9a9932c6c312bd70" +checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" [[package]] name = "wasmtime" -version = "0.34.1" +version = "0.35.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4882e78d9daceeaff656d82869f298fd472ea8d8ccf96fbd310da5c1687773ac" +checksum = "07f4245f65310fb41e4bdb75b0f794798aab23e3911c34a38a11c6e15f4906dd" dependencies = [ "anyhow", "backtrace", @@ -657,7 +657,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.34.1" +version = "0.35.1" dependencies = [ "anyhow", "env_logger", @@ -669,7 +669,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.34.1#44c08532721a923f86b6a365308028230c7d103c" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.35.1#5b09b74f4c5e0fd817febd3263947ee3682759bd" dependencies = [ "proc-macro2", "quote", @@ -677,9 +677,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.34.1" +version = "0.35.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ed6ff21d2dbfe568af483f0c508e049fc6a497c73635e2c50c9b1baf3a93ed8" +checksum = "da49deb7024bbf9ee72019a30c05fa752dab8cba8b32f709b2ddf66329d46c74" dependencies = [ "anyhow", "cranelift-codegen", @@ -699,9 +699,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.34.1" +version = "0.35.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "860936d38df423b4291b3e31bc28d4895e2208f9daba351c2397d18a0a10e0bf" +checksum = "0dbf66220878adc123fe744df623eb141d4e73f03daed3f2aba3dbc7786d921e" dependencies = [ "anyhow", "cranelift-entity", @@ -719,9 +719,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.34.1" +version = "0.35.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e794310a0df5266c7ac73e8211a024a49e3860ac0ca2af5db8527be942ad063e" +checksum = "62157c76f1204c4845c2c33f6aa4472369c7d9d7deb2e6218c4fabebbae8ac1b" dependencies = [ "addr2line", "anyhow", @@ -742,18 +742,26 @@ dependencies = [ "winapi", ] +[[package]] +name = "wasmtime-jit-debug" +version = "0.35.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d314887fca993322b7ee4e08e5e2c0e79e812fbd1d6272c1781db884e3daabb" +dependencies = [ + "lazy_static", +] + [[package]] name = "wasmtime-runtime" -version = "0.34.1" +version = "0.35.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90ffe5cb3db705ea43fcf37475a79891a3ada754c1cbe333540879649de943d5" +checksum = "15c0a7901d0645bf99b1efaebf7f7e144170641c575e96eb1fb6a9218290726c" dependencies = [ "anyhow", "backtrace", "cc", "cfg-if", "indexmap", - "lazy_static", "libc", "log", "mach", @@ -764,14 +772,15 @@ dependencies = [ "rustix", "thiserror", "wasmtime-environ", + "wasmtime-jit-debug", "winapi", ] [[package]] name = "wasmtime-types" -version = "0.34.1" +version = "0.35.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70a5b60d70c1927c5a403f7c751de179414b6b91da75b2312c3ae78196cf9dc3" +checksum = "4d9841ad7624110410291d03645876474a79fcedaed729016e384308145c29eb" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 185f89fee..9bd1fc823 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.34.1" +version = "0.35.1" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.34.1", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.34.1"} +wasmtime = {version = "0.35.1", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.35.1"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index cb11cdb7e..ef6d6897d 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -43,12 +43,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__anyhow__1_0_53", - url = "https://crates.io/api/v1/crates/anyhow/1.0.53/download", + name = "wasmtime__anyhow__1_0_56", + url = "https://crates.io/api/v1/crates/anyhow/1.0.56/download", type = "tar.gz", - sha256 = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0", - strip_prefix = "anyhow-1.0.53", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.53.bazel"), + sha256 = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27", + strip_prefix = "anyhow-1.0.56", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.56.bazel"), ) maybe( @@ -133,82 +133,82 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.81.1/download", + name = "wasmtime__cranelift_bforest__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.82.1/download", type = "tar.gz", - sha256 = "32f027f29ace03752bb83c112eb4f53744bc4baadf19955e67fcde1d71d2f39d", - strip_prefix = "cranelift-bforest-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.81.1.bazel"), + sha256 = "d16922317bd7dd104d509a373887822caa0242fc1def00de66abb538db221db4", + strip_prefix = "cranelift-bforest-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.82.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.81.1/download", + name = "wasmtime__cranelift_codegen__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.82.1/download", type = "tar.gz", - sha256 = "6c10af69cbf4e228c11bdc26d8f9d5276773909152a769649a160571b282f92f", - strip_prefix = "cranelift-codegen-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.81.1.bazel"), + sha256 = "8b80bf40380256307b68a3dcbe1b91cac92a533e212b5b635abc3e4525781a0a", + strip_prefix = "cranelift-codegen-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.82.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.81.1/download", + name = "wasmtime__cranelift_codegen_meta__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.82.1/download", type = "tar.gz", - sha256 = "290ac14d2cef43cbf1b53ad5c1b34216c9e32e00fa9b6ac57b5e5a2064369e02", - strip_prefix = "cranelift-codegen-meta-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.81.1.bazel"), + sha256 = "703d0ed7d3bc6c7a814ca12858175bf4e93167a3584127858c686e4b5dd6e432", + strip_prefix = "cranelift-codegen-meta-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.82.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.81.1/download", + name = "wasmtime__cranelift_codegen_shared__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.82.1/download", type = "tar.gz", - sha256 = "beb9142d134a03d01e3995e6d8dd3aecf16312261d0cb0c5dcd73d5be2528c1c", - strip_prefix = "cranelift-codegen-shared-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.81.1.bazel"), + sha256 = "80f52311e1c90de12dcf8c4b9999c6ebfd1ed360373e88c357160936844511f6", + strip_prefix = "cranelift-codegen-shared-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.82.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.81.1/download", + name = "wasmtime__cranelift_entity__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.82.1/download", type = "tar.gz", - sha256 = "1268a50b7cbbfee8514d417fc031cedd9965b15fa9e5ed1d4bc16de86f76765e", - strip_prefix = "cranelift-entity-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.81.1.bazel"), + sha256 = "66bc82ef522c1f643baf7d4d40b7c52643ee4549d8960b0e6a047daacb83f897", + strip_prefix = "cranelift-entity-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.82.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.81.1/download", + name = "wasmtime__cranelift_frontend__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.82.1/download", type = "tar.gz", - sha256 = "97ac0d440469e19ab12183e31a9e41b4efd8a4ca5fbde2a10c78c7bb857cc2a4", - strip_prefix = "cranelift-frontend-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.81.1.bazel"), + sha256 = "3cc35e4251864b17515845ba47447bca88fec9ca1a4186b19fe42526e36140e8", + strip_prefix = "cranelift-frontend-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.82.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-native/0.81.1/download", + name = "wasmtime__cranelift_native__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-native/0.82.1/download", type = "tar.gz", - sha256 = "794cd1a5694a01c68957f9cfdc5ac092cf8b4e9c2d1697c4a5100f90103e9e9e", - strip_prefix = "cranelift-native-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.81.1.bazel"), + sha256 = "b882b2251c9845d509d92aebfdb6c8bb3b3b48e207ac951f21fbd20cfe7f90b3", + strip_prefix = "cranelift-native-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.82.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_81_1", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.81.1/download", + name = "wasmtime__cranelift_wasm__0_82_1", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.82.1/download", type = "tar.gz", - sha256 = "f2ddd4ca6963f6e94d00e8935986411953581ac893587ab1f0eb4f0b5a40ae65", - strip_prefix = "cranelift-wasm-0.81.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.81.1.bazel"), + sha256 = "f0354e819732c02acdd98ab969dd81c7670304fff4c8fc4c86bc999b55fa1f0c", + strip_prefix = "cranelift-wasm-0.82.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.82.1.bazel"), ) maybe( @@ -273,12 +273,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__getrandom__0_2_4", - url = "https://crates.io/api/v1/crates/getrandom/0.2.4/download", + name = "wasmtime__getrandom__0_2_5", + url = "https://crates.io/api/v1/crates/getrandom/0.2.5/download", type = "tar.gz", - sha256 = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c", - strip_prefix = "getrandom-0.2.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.4.bazel"), + sha256 = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77", + strip_prefix = "getrandom-0.2.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.5.bazel"), ) maybe( @@ -363,22 +363,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_118", - url = "https://crates.io/api/v1/crates/libc/0.2.118/download", + name = "wasmtime__libc__0_2_119", + url = "https://crates.io/api/v1/crates/libc/0.2.119/download", type = "tar.gz", - sha256 = "06e509672465a0504304aa87f9f176f2b2b716ed8fb105ebe5c02dc6dce96a94", - strip_prefix = "libc-0.2.118", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.118.bazel"), + sha256 = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4", + strip_prefix = "libc-0.2.119", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.119.bazel"), ) maybe( http_archive, - name = "wasmtime__linux_raw_sys__0_0_40", - url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.40/download", + name = "wasmtime__linux_raw_sys__0_0_42", + url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.42/download", type = "tar.gz", - sha256 = "5bdc16c6ce4c85d9b46b4e66f2a814be5b3f034dbd5131c268a24ca26d970db8", - strip_prefix = "linux-raw-sys-0.0.40", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.40.bazel"), + sha256 = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7", + strip_prefix = "linux-raw-sys-0.0.42", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.42.bazel"), ) maybe( @@ -453,12 +453,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__once_cell__1_9_0", - url = "https://crates.io/api/v1/crates/once_cell/1.9.0/download", + name = "wasmtime__once_cell__1_10_0", + url = "https://crates.io/api/v1/crates/once_cell/1.10.0/download", type = "tar.gz", - sha256 = "da32515d9f6e6e489d7bc9d84c71b060db7247dc035bbe44eac88cf87486d8d5", - strip_prefix = "once_cell-1.9.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.9.0.bazel"), + sha256 = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9", + strip_prefix = "once_cell-1.10.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.10.0.bazel"), ) maybe( @@ -553,12 +553,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__regex__1_5_4", - url = "https://crates.io/api/v1/crates/regex/1.5.4/download", + name = "wasmtime__regex__1_5_5", + url = "https://crates.io/api/v1/crates/regex/1.5.5/download", type = "tar.gz", - sha256 = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461", - strip_prefix = "regex-1.5.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.5.4.bazel"), + sha256 = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286", + strip_prefix = "regex-1.5.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.5.5.bazel"), ) maybe( @@ -603,12 +603,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_33_2", - url = "https://crates.io/api/v1/crates/rustix/0.33.2/download", + name = "wasmtime__rustix__0_33_4", + url = "https://crates.io/api/v1/crates/rustix/0.33.4/download", type = "tar.gz", - sha256 = "db890a96e64911e67fa84e58ce061a40a6a65c231e5fad20b190933f8991a27c", - strip_prefix = "rustix-0.33.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.2.bazel"), + sha256 = "ef7ec6a44fba95d21fa522760c03c16ca5ee95cebb6e4ef579cab3e6d7ba6c06", + strip_prefix = "rustix-0.33.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.4.bazel"), ) maybe( @@ -653,12 +653,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__syn__1_0_86", - url = "https://crates.io/api/v1/crates/syn/1.0.86/download", + name = "wasmtime__syn__1_0_87", + url = "https://crates.io/api/v1/crates/syn/1.0.87/download", type = "tar.gz", - sha256 = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b", - strip_prefix = "syn-1.0.86", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.86.bazel"), + sha256 = "1e59d925cf59d8151f25a3bedf97c9c157597c9df7324d32d68991cc399ed08b", + strip_prefix = "syn-1.0.87", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.87.bazel"), ) maybe( @@ -673,12 +673,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__termcolor__1_1_2", - url = "https://crates.io/api/v1/crates/termcolor/1.1.2/download", + name = "wasmtime__termcolor__1_1_3", + url = "https://crates.io/api/v1/crates/termcolor/1.1.3/download", type = "tar.gz", - sha256 = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4", - strip_prefix = "termcolor-1.1.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.termcolor-1.1.2.bazel"), + sha256 = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755", + strip_prefix = "termcolor-1.1.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.termcolor-1.1.3.bazel"), ) maybe( @@ -723,81 +723,91 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmparser__0_82_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.82.0/download", + name = "wasmtime__wasmparser__0_83_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.83.0/download", type = "tar.gz", - sha256 = "0559cc0f1779240d6f894933498877ea94f693d84f3ee39c9a9932c6c312bd70", - strip_prefix = "wasmparser-0.82.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.82.0.bazel"), + sha256 = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a", + strip_prefix = "wasmparser-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__0_34_1", - url = "https://crates.io/api/v1/crates/wasmtime/0.34.1/download", + name = "wasmtime__wasmtime__0_35_1", + url = "https://crates.io/api/v1/crates/wasmtime/0.35.1/download", type = "tar.gz", - sha256 = "4882e78d9daceeaff656d82869f298fd472ea8d8ccf96fbd310da5c1687773ac", - strip_prefix = "wasmtime-0.34.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.34.1.bazel"), + sha256 = "07f4245f65310fb41e4bdb75b0f794798aab23e3911c34a38a11c6e15f4906dd", + strip_prefix = "wasmtime-0.35.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.35.1.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "44c08532721a923f86b6a365308028230c7d103c", + commit = "5b09b74f4c5e0fd817febd3263947ee3682759bd", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_34_1", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.34.1/download", + name = "wasmtime__wasmtime_cranelift__0_35_1", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.35.1/download", type = "tar.gz", - sha256 = "1ed6ff21d2dbfe568af483f0c508e049fc6a497c73635e2c50c9b1baf3a93ed8", - strip_prefix = "wasmtime-cranelift-0.34.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.34.1.bazel"), + sha256 = "da49deb7024bbf9ee72019a30c05fa752dab8cba8b32f709b2ddf66329d46c74", + strip_prefix = "wasmtime-cranelift-0.35.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.35.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_34_1", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.34.1/download", + name = "wasmtime__wasmtime_environ__0_35_1", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.35.1/download", type = "tar.gz", - sha256 = "860936d38df423b4291b3e31bc28d4895e2208f9daba351c2397d18a0a10e0bf", - strip_prefix = "wasmtime-environ-0.34.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.34.1.bazel"), + sha256 = "0dbf66220878adc123fe744df623eb141d4e73f03daed3f2aba3dbc7786d921e", + strip_prefix = "wasmtime-environ-0.35.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.35.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_34_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.34.1/download", + name = "wasmtime__wasmtime_jit__0_35_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.35.1/download", type = "tar.gz", - sha256 = "e794310a0df5266c7ac73e8211a024a49e3860ac0ca2af5db8527be942ad063e", - strip_prefix = "wasmtime-jit-0.34.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.34.1.bazel"), + sha256 = "62157c76f1204c4845c2c33f6aa4472369c7d9d7deb2e6218c4fabebbae8ac1b", + strip_prefix = "wasmtime-jit-0.35.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.35.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_34_1", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.34.1/download", + name = "wasmtime__wasmtime_jit_debug__0_35_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.35.1/download", type = "tar.gz", - sha256 = "90ffe5cb3db705ea43fcf37475a79891a3ada754c1cbe333540879649de943d5", - strip_prefix = "wasmtime-runtime-0.34.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.34.1.bazel"), + sha256 = "1d314887fca993322b7ee4e08e5e2c0e79e812fbd1d6272c1781db884e3daabb", + strip_prefix = "wasmtime-jit-debug-0.35.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.35.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_34_1", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.34.1/download", + name = "wasmtime__wasmtime_runtime__0_35_1", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.35.1/download", type = "tar.gz", - sha256 = "70a5b60d70c1927c5a403f7c751de179414b6b91da75b2312c3ae78196cf9dc3", - strip_prefix = "wasmtime-types-0.34.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.34.1.bazel"), + sha256 = "15c0a7901d0645bf99b1efaebf7f7e144170641c575e96eb1fb6a9218290726c", + strip_prefix = "wasmtime-runtime-0.35.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.35.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__wasmtime_types__0_35_1", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.35.1/download", + type = "tar.gz", + sha256 = "4d9841ad7624110410291d03645876474a79fcedaed729016e384308145c29eb", + strip_prefix = "wasmtime-types-0.35.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.35.1.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.53.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.56.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.53.bazel rename to bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.56.bazel index 5a0887d66..203451dba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.53.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.56.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.53", + version = "1.0.56", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=anyhow", "manual", ], - version = "1.0.53", + version = "1.0.56", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 5c309d478..18cade6f1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel index e8148761e..110f5a9be 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel @@ -93,7 +93,7 @@ rust_library( ":backtrace_build_script", "@wasmtime__addr2line__0_17_0//:addr2line", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", "@wasmtime__miniz_oxide__0_4_4//:miniz_oxide", "@wasmtime__object__0_27_1//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.1.bazel index 58e61fc02..84eefb2d7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.1.bazel similarity index 87% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.1.bazel index a2e8e9ec6..98f3b2a42 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.1.bazel @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.81.1", + version = "0.82.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_81_1//:cranelift_codegen_meta", + "@wasmtime__cranelift_codegen_meta__0_82_1//:cranelift_codegen_meta", ], ) @@ -87,13 +87,13 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_81_1//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_81_1//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_82_1//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_82_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_14//:log", "@wasmtime__regalloc__0_0_34//:regalloc", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.1.bazel index fc1b51c00..650fee915 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_81_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_82_1//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.1.bazel index 2a2283051..7ba69253e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.1.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.1.bazel index c86cfaca0..6461eba90 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ "@wasmtime__serde__1_0_136//:serde", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.1.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.1.bazel index 77147231d..121b6a3eb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.1.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", "@wasmtime__log__0_4_14//:log", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.1.bazel index a8a4e8a43..c7ca0614c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.1.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.1.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.1.bazel index 415f399cd..61b351774 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.81.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.1.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.81.1", + version = "0.82.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_81_1//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_82_1//:cranelift_frontend", "@wasmtime__itertools__0_10_3//:itertools", "@wasmtime__log__0_4_14//:log", "@wasmtime__smallvec__1_8_0//:smallvec", - "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_types__0_34_1//:wasmtime_types", + "@wasmtime__wasmparser__0_83_0//:wasmparser", + "@wasmtime__wasmtime_types__0_35_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel index 9710c3865..ca3ce977a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel @@ -58,8 +58,8 @@ rust_library( "@wasmtime__atty__0_2_14//:atty", "@wasmtime__humantime__2_1_0//:humantime", "@wasmtime__log__0_4_14//:log", - "@wasmtime__regex__1_5_4//:regex", - "@wasmtime__termcolor__1_1_2//:termcolor", + "@wasmtime__regex__1_5_5//:regex", + "@wasmtime__termcolor__1_1_3//:termcolor", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index fb2ccf705..53d140f8c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index ebeb4eb08..7fbaaf0ee 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.5.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.5.bazel index 9370711d8..edfe9eb6c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.5.bazel @@ -52,7 +52,7 @@ rust_library( "crate-name=getrandom", "manual", ], - version = "0.2.4", + version = "0.2.5", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index d6842c06a..d0bf22754 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.118.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.119.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.118.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.119.bazel index 91577f343..778ffbcda 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.118.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.119.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.118", + version = "0.2.119", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.118", + version = "0.2.119", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.40.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.42.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.40.bazel rename to bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.42.bazel index 59f9589e0..9aa497183 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.40.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.42.bazel @@ -52,7 +52,7 @@ rust_library( "crate-name=linux-raw-sys", "manual", ], - version = "0.0.40", + version = "0.0.42", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index 3faa7bd0c..8391a5ff0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.9.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.10.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.once_cell-1.9.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.once_cell-1.10.0.bazel index eb0b4d6f5..df9306375 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.9.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.10.0.bazel @@ -65,7 +65,7 @@ rust_library( "crate-name=once_cell", "manual", ], - version = "1.9.0", + version = "1.10.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 8070748e5..993e290be 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel index d81d33f08..6447e4832 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel @@ -53,6 +53,6 @@ rust_library( version = "0.6.3", # buildifier: leave-alone deps = [ - "@wasmtime__getrandom__0_2_4//:getrandom", + "@wasmtime__getrandom__0_2_5//:getrandom", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel similarity index 99% rename from bazel/cargo/wasmtime/remote/BUILD.regex-1.5.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel index a415a2cb1..0d24833b0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel @@ -67,7 +67,7 @@ rust_library( "crate-name=regex", "manual", ], - version = "1.5.4", + version = "1.5.5", # buildifier: leave-alone deps = [ "@wasmtime__aho_corasick__0_7_18//:aho_corasick", diff --git a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel index 2b19b98a2..934a832b0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.4.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.4.bazel index 9aaa9a1f8..624ee4e22 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.4.bazel @@ -58,23 +58,23 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.33.2", + version = "0.33.4", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))) + # cfg(all(not(rustix_use_libc), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_40//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_0_42//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))))) + # cfg(any(rustix_use_libc, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -140,25 +140,25 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.33.2", + version = "0.33.4", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", "@wasmtime__io_lifetimes__0_5_3//:io_lifetimes", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))) + # cfg(all(not(rustix_use_libc), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_40//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_0_42//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, not(all(any(target_os = "linux"), any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64"))))) + # cfg(any(rustix_use_libc, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -178,7 +178,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@wasmtime__errno__0_2_8//:errno", - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -193,6 +193,8 @@ rust_library( }), ) +# Unsupported target "backends" with type "test" omitted + # Unsupported target "fs" with type "test" omitted # Unsupported target "io" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel index f84192c4a..5ee849c35 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel @@ -84,6 +84,6 @@ rust_proc_macro( ":serde_derive_build_script", "@wasmtime__proc_macro2__1_0_36//:proc_macro2", "@wasmtime__quote__1_0_15//:quote", - "@wasmtime__syn__1_0_86//:syn", + "@wasmtime__syn__1_0_87//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.87.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.syn-1.0.86.bazel rename to bazel/cargo/wasmtime/remote/BUILD.syn-1.0.87.bazel index beb2ab37c..ccb29e57a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.86.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.87.bazel @@ -61,7 +61,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.86", + version = "1.0.87", visibility = ["//visibility:private"], deps = [ ], @@ -94,7 +94,7 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.86", + version = "1.0.87", # buildifier: leave-alone deps = [ ":syn_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.3.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.3.bazel index a6e05508c..2e9f4307a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.3.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=termcolor", "manual", ], - version = "1.1.2", + version = "1.1.3", # buildifier: leave-alone deps = [ ] + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel index 7e728bdef..c9cfb24af 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -52,6 +52,6 @@ rust_proc_macro( deps = [ "@wasmtime__proc_macro2__1_0_36//:proc_macro2", "@wasmtime__quote__1_0_15//:quote", - "@wasmtime__syn__1_0_86//:syn", + "@wasmtime__syn__1_0_87//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.82.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.83.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.82.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.83.0.bazel index 40fcaa08f..7f37d9630 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.82.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.83.0.bazel @@ -51,7 +51,7 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.82.0", + version = "0.83.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.1.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.1.bazel index 5658ade65..68589c980 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.34.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.1.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.34.1", + version = "0.35.1", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -93,29 +93,29 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.34.1", + version = "0.35.1", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__anyhow__1_0_56//:anyhow", "@wasmtime__backtrace__0_3_64//:backtrace", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", "@wasmtime__log__0_4_14//:log", "@wasmtime__object__0_27_1//:object", - "@wasmtime__once_cell__1_9_0//:once_cell", + "@wasmtime__once_cell__1_10_0//:once_cell", "@wasmtime__psm__0_1_17//:psm", "@wasmtime__region__2_2_0//:region", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", - "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_34_1//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_34_1//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_34_1//:wasmtime_runtime", + "@wasmtime__wasmparser__0_83_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__0_35_1//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_35_1//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_35_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.1.bazel similarity index 73% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.1.bazel index d80176bae..564ebb738 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.34.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.1.bazel @@ -47,22 +47,22 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.34.1", + version = "0.35.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__cranelift_codegen__0_81_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_81_1//:cranelift_frontend", - "@wasmtime__cranelift_native__0_81_1//:cranelift_native", - "@wasmtime__cranelift_wasm__0_81_1//:cranelift_wasm", + "@wasmtime__anyhow__1_0_56//:anyhow", + "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_82_1//:cranelift_frontend", + "@wasmtime__cranelift_native__0_82_1//:cranelift_native", + "@wasmtime__cranelift_wasm__0_82_1//:cranelift_wasm", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_14//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_27_1//:object", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", + "@wasmtime__wasmparser__0_83_0//:wasmparser", + "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.1.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.1.bazel index 572120a9e..24b3da798 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.34.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.1.bazel @@ -47,11 +47,11 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.34.1", + version = "0.35.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_53//:anyhow", - "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", + "@wasmtime__anyhow__1_0_56//:anyhow", + "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__indexmap__1_8_0//:indexmap", "@wasmtime__log__0_4_14//:log", @@ -60,7 +60,7 @@ rust_library( "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmparser__0_82_0//:wasmparser", - "@wasmtime__wasmtime_types__0_34_1//:wasmtime_types", + "@wasmtime__wasmparser__0_83_0//:wasmparser", + "@wasmtime__wasmtime_types__0_35_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.1.bazel index f20b90b2e..13c93c6c3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.34.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.1.bazel @@ -49,11 +49,11 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.34.1", + version = "0.35.1", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", - "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__anyhow__1_0_56//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", @@ -65,8 +65,8 @@ rust_library( "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_34_1//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_35_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -77,7 +77,7 @@ rust_library( "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__rustix__0_33_2//:rustix", + "@wasmtime__rustix__0_33_4//:rustix", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.1.bazel new file mode 100644 index 000000000..dee406b57 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.1.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_jit_debug", + srcs = glob(["**/*.rs"]), + crate_features = [ + "gdb_jit_int", + "lazy_static", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=wasmtime-jit-debug", + "manual", + ], + version = "0.35.1", + # buildifier: leave-alone + deps = [ + "@wasmtime__lazy_static__1_4_0//:lazy_static", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.1.bazel index 3a65a4e94..9a72b9723 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.34.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.34.1", + version = "0.35.1", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -120,23 +120,23 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.34.1", + version = "0.35.1", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@wasmtime__anyhow__1_0_53//:anyhow", + "@wasmtime__anyhow__1_0_56//:anyhow", "@wasmtime__backtrace__0_3_64//:backtrace", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_8_0//:indexmap", - "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_118//:libc", + "@wasmtime__libc__0_2_119//:libc", "@wasmtime__log__0_4_14//:log", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__rand__0_8_5//:rand", "@wasmtime__region__2_2_0//:region", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_34_1//:wasmtime_environ", + "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__0_35_1//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_33_2//:rustix", + "@wasmtime__rustix__0_33_4//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.1.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.1.bazel index 24d7bcd8b..24d5f36d9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.34.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.1.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.34.1", + version = "0.35.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_81_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmparser__0_82_0//:wasmparser", + "@wasmtime__wasmparser__0_83_0//:wasmparser", ], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 6c3ebd76f..dd1a02758 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -187,9 +187,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "dbcd392e7839ca749335dacff2efa2d3bd4eea828bd1aad0ba7cafcb36e49e23", - strip_prefix = "wasmtime-0.34.1", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.34.1.tar.gz", + sha256 = "dd29279e18782a4ec12a504abb16c6d989af299d238acd7983429adbd3e34e08", + strip_prefix = "wasmtime-0.35.1", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.35.1.tar.gz", ) maybe( From 694a0b073912ff3bd00b6ca70d16ca43b2aebbf2 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 7 Apr 2022 01:54:35 -0500 Subject: [PATCH 198/287] wasmtime: update to v0.35.2. (#283) Signed-off-by: Piotr Sikora --- .github/workflows/format.yml | 2 +- bazel/cargo/wasmtime/BUILD.bazel | 2 +- bazel/cargo/wasmtime/Cargo.raze.lock | 104 ++++---- bazel/cargo/wasmtime/Cargo.toml | 6 +- bazel/cargo/wasmtime/crates.bzl | 252 +++++++++--------- .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- .../remote/BUILD.backtrace-0.3.64.bazel | 2 +- ...l => BUILD.cranelift-bforest-0.82.2.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.82.2.bazel} | 14 +- ...BUILD.cranelift-codegen-meta-0.82.2.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.82.2.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.82.2.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.82.2.bazel} | 6 +- ...el => BUILD.cranelift-native-0.82.2.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.82.2.bazel} | 12 +- .../remote/BUILD.env_logger-0.8.4.bazel | 2 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 2 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- ....2.5.bazel => BUILD.getrandom-0.2.6.bazel} | 4 +- .../wasmtime/remote/BUILD.gimli-0.26.1.bazel | 2 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- ...1.8.0.bazel => BUILD.indexmap-1.8.1.bazel} | 4 +- ...0.2.119.bazel => BUILD.libc-0.2.122.bazel} | 4 +- ...og-0.4.14.bazel => BUILD.log-0.4.16.bazel} | 4 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- .../wasmtime/remote/BUILD.object-0.27.1.bazel | 2 +- ...te-1.0.6.bazel => BUILD.paste-1.0.7.bazel} | 2 +- ...6.bazel => BUILD.proc-macro2-1.0.37.bazel} | 4 +- ...sm-0.1.17.bazel => BUILD.psm-0.1.18.bazel} | 4 +- ...-1.0.15.bazel => BUILD.quote-1.0.17.bazel} | 4 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 2 +- .../remote/BUILD.rand_core-0.6.3.bazel | 2 +- .../remote/BUILD.regalloc-0.0.34.bazel | 2 +- .../wasmtime/remote/BUILD.region-2.2.0.bazel | 2 +- ...0.33.4.bazel => BUILD.rustix-0.33.5.bazel} | 6 +- .../remote/BUILD.serde_derive-1.0.136.bazel | 6 +- ...yn-1.0.87.bazel => BUILD.syn-1.0.91.bazel} | 8 +- .../remote/BUILD.thiserror-impl-1.0.30.bazel | 6 +- ...35.1.bazel => BUILD.wasmtime-0.35.2.bazel} | 22 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 4 +- ... => BUILD.wasmtime-cranelift-0.35.2.bazel} | 16 +- ...el => BUILD.wasmtime-environ-0.35.2.bazel} | 10 +- ....bazel => BUILD.wasmtime-jit-0.35.2.bazel} | 10 +- ... => BUILD.wasmtime-jit-debug-0.35.2.bazel} | 2 +- ...el => BUILD.wasmtime-runtime-0.35.2.bazel} | 16 +- ...azel => BUILD.wasmtime-types-0.35.2.bazel} | 4 +- bazel/repositories.bzl | 6 +- 47 files changed, 294 insertions(+), 294 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.82.1.bazel => BUILD.cranelift-bforest-0.82.2.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.82.1.bazel => BUILD.cranelift-codegen-0.82.2.bazel} (86%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.82.1.bazel => BUILD.cranelift-codegen-meta-0.82.2.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.82.1.bazel => BUILD.cranelift-codegen-shared-0.82.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.82.1.bazel => BUILD.cranelift-entity-0.82.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.82.1.bazel => BUILD.cranelift-frontend-0.82.2.bazel} (90%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.82.1.bazel => BUILD.cranelift-native-0.82.2.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.82.1.bazel => BUILD.cranelift-wasm-0.82.2.bazel} (80%) rename bazel/cargo/wasmtime/remote/{BUILD.getrandom-0.2.5.bazel => BUILD.getrandom-0.2.6.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.indexmap-1.8.0.bazel => BUILD.indexmap-1.8.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.119.bazel => BUILD.libc-0.2.122.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.log-0.4.14.bazel => BUILD.log-0.4.16.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.paste-1.0.6.bazel => BUILD.paste-1.0.7.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.proc-macro2-1.0.36.bazel => BUILD.proc-macro2-1.0.37.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.psm-0.1.17.bazel => BUILD.psm-0.1.18.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.quote-1.0.15.bazel => BUILD.quote-1.0.17.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.33.4.bazel => BUILD.rustix-0.33.5.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.syn-1.0.87.bazel => BUILD.syn-1.0.91.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.35.1.bazel => BUILD.wasmtime-0.35.2.bazel} (85%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.35.1.bazel => BUILD.wasmtime-cranelift-0.35.2.bazel} (76%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.35.1.bazel => BUILD.wasmtime-environ-0.35.2.bazel} (85%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.35.1.bazel => BUILD.wasmtime-jit-0.35.2.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-0.35.1.bazel => BUILD.wasmtime-jit-debug-0.35.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.35.1.bazel => BUILD.wasmtime-runtime-0.35.2.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.35.1.bazel => BUILD.wasmtime-types-0.35.2.bazel} (93%) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 2b78c0362..aa685007d 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -91,7 +91,7 @@ jobs: cd wasmtime && cargo raze && cd .. # Ignore manual changes in "errno" and "rustix" crates until fixed in cargo-raze. # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.2.8.bazel' ':!wasmtime/remote/BUILD.rustix-0.33.4.bazel' + git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.*.bazel' ':!wasmtime/remote/BUILD.rustix-0.*.bazel' clang_format: name: check format with clang-format diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 03b3d856f..ba9b49dca 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_35_1//:wasmtime", + actual = "@wasmtime__wasmtime__0_35_2//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 084d0dc59..77bdb8c34 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -100,18 +100,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d16922317bd7dd104d509a373887822caa0242fc1def00de66abb538db221db4" +checksum = "5b9956ad3efeb062596e0b25a1091730080cb6483b500bd106b92c7a55e9e0b1" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b80bf40380256307b68a3dcbe1b91cac92a533e212b5b635abc3e4525781a0a" +checksum = "efc67870c31cae7d03808dfa430ee9ccda9bd82c61b49b939d925d9155cfc42d" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -126,33 +126,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "703d0ed7d3bc6c7a814ca12858175bf4e93167a3584127858c686e4b5dd6e432" +checksum = "b0f0172d25539fcc64f581d3dce0df00e2065b00e1c750e18832d2cf1e0d27e0" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80f52311e1c90de12dcf8c4b9999c6ebfd1ed360373e88c357160936844511f6" +checksum = "8f6cc5717ae2ea849e5c819eb70c95792c2843294d9503700ac55d8d159e2160" [[package]] name = "cranelift-entity" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66bc82ef522c1f643baf7d4d40b7c52643ee4549d8960b0e6a047daacb83f897" +checksum = "e822e0169d7a078cbc7ed19bca6636752c093e25d994a4febd9914d1118f3945" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3cc35e4251864b17515845ba47447bca88fec9ca1a4186b19fe42526e36140e8" +checksum = "bf3bc8bd3bb8932e70b71c0de6cba277ae112d4e51dadde2e318f60f2fbe97bc" dependencies = [ "cranelift-codegen", "log", @@ -162,9 +162,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b882b2251c9845d509d92aebfdb6c8bb3b3b48e207ac951f21fbd20cfe7f90b3" +checksum = "a8090cade0761622fcb1c805c8ce2c2f085a2467bdee7e21cd9ba399026cf7ac" dependencies = [ "cranelift-codegen", "libc", @@ -173,9 +173,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.82.1" +version = "0.82.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0354e819732c02acdd98ab969dd81c7670304fff4c8fc4c86bc999b55fa1f0c" +checksum = "be110a4560fa997ba8bc8376a459ec4d8707074f88058a17b29f43c27e983ad0" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -244,9 +244,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "getrandom" -version = "0.2.5" +version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77" +checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad" dependencies = [ "cfg-if", "libc", @@ -287,9 +287,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indexmap" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223" +checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee" dependencies = [ "autocfg", "hashbrown", @@ -319,9 +319,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.119" +version = "0.2.122" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4" +checksum = "ec647867e2bf0772e28c8bcde4f0d19a9216916e890543b5a03ed8ef27b8f259" [[package]] name = "linux-raw-sys" @@ -331,9 +331,9 @@ checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" [[package]] name = "log" -version = "0.4.14" +version = "0.4.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710" +checksum = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8" dependencies = [ "cfg-if", ] @@ -397,9 +397,9 @@ checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9" [[package]] name = "paste" -version = "1.0.6" +version = "1.0.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0744126afe1a6dd7f394cb50a716dbe086cb06e255e53d8d0185d82828358fb5" +checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc" [[package]] name = "ppv-lite86" @@ -409,27 +409,27 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "proc-macro2" -version = "1.0.36" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1" dependencies = [ "unicode-xid", ] [[package]] name = "psm" -version = "0.1.17" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6eca0fa5dd7c4c96e184cec588f0b1db1ee3165e678db21c09793105acb17e6f" +checksum = "871372391786ccec00d3c5d3d6608905b3d4db263639cfe075d3b60a736d115a" dependencies = [ "cc", ] [[package]] name = "quote" -version = "1.0.15" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +checksum = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58" dependencies = [ "proc-macro2", ] @@ -518,9 +518,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.33.4" +version = "0.33.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef7ec6a44fba95d21fa522760c03c16ca5ee95cebb6e4ef579cab3e6d7ba6c06" +checksum = "03627528abcc4a365554d32a9f3bbf67f7694c102cfeda792dc86a2d6057cc85" dependencies = [ "bitflags", "errno", @@ -564,9 +564,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.87" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e59d925cf59d8151f25a3bedf97c9c157597c9df7324d32d68991cc399ed08b" +checksum = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d" dependencies = [ "proc-macro2", "quote", @@ -628,9 +628,9 @@ checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" [[package]] name = "wasmtime" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07f4245f65310fb41e4bdb75b0f794798aab23e3911c34a38a11c6e15f4906dd" +checksum = "637f73fff13248d13882246b67a8208d466c36d7b836b783a62903cb96f11b61" dependencies = [ "anyhow", "backtrace", @@ -657,7 +657,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.35.1" +version = "0.35.2" dependencies = [ "anyhow", "env_logger", @@ -669,7 +669,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.35.1#5b09b74f4c5e0fd817febd3263947ee3682759bd" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.35.2#59bfe50acaffd69f267946d35abe9f87a3b07e29" dependencies = [ "proc-macro2", "quote", @@ -677,9 +677,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da49deb7024bbf9ee72019a30c05fa752dab8cba8b32f709b2ddf66329d46c74" +checksum = "a2d233418e5f560e8010fe13e60943df8be0685c68cbdf9f588dd846a727f2e4" dependencies = [ "anyhow", "cranelift-codegen", @@ -699,9 +699,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dbf66220878adc123fe744df623eb141d4e73f03daed3f2aba3dbc7786d921e" +checksum = "0f38f25934156bb5496b3fd30be10c8ef41936330d9c936654ebf4eac02e352e" dependencies = [ "anyhow", "cranelift-entity", @@ -719,9 +719,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62157c76f1204c4845c2c33f6aa4472369c7d9d7deb2e6218c4fabebbae8ac1b" +checksum = "bf7d3293e643c3b397012a579b025116e5818118a7982373551df8f8b0a4c524" dependencies = [ "addr2line", "anyhow", @@ -744,18 +744,18 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d314887fca993322b7ee4e08e5e2c0e79e812fbd1d6272c1781db884e3daabb" +checksum = "f8b4b40b84a96da6fcd7f2460747564091b9b8dedcc7bd66c0cb741adf451de8" dependencies = [ "lazy_static", ] [[package]] name = "wasmtime-runtime" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15c0a7901d0645bf99b1efaebf7f7e144170641c575e96eb1fb6a9218290726c" +checksum = "b60eb01e3413a54e791a397d556962876902d7481be496b4b9eb1dc68de14fce" dependencies = [ "anyhow", "backtrace", @@ -778,9 +778,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.35.1" +version = "0.35.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4d9841ad7624110410291d03645876474a79fcedaed729016e384308145c29eb" +checksum = "86cd8d51aa648f2ba5a25bd11a74c08ce2b66796a5bbd5c099ab5db672a2e68f" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 9bd1fc823..1eedb0d3a 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.35.1" +version = "0.35.2" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.35.1", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.35.1"} +wasmtime = {version = "0.35.2", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.35.2"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index ef6d6897d..c9efeb8a2 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -133,82 +133,82 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.82.1/download", + name = "wasmtime__cranelift_bforest__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.82.2/download", type = "tar.gz", - sha256 = "d16922317bd7dd104d509a373887822caa0242fc1def00de66abb538db221db4", - strip_prefix = "cranelift-bforest-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.82.1.bazel"), + sha256 = "5b9956ad3efeb062596e0b25a1091730080cb6483b500bd106b92c7a55e9e0b1", + strip_prefix = "cranelift-bforest-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.82.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.82.1/download", + name = "wasmtime__cranelift_codegen__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.82.2/download", type = "tar.gz", - sha256 = "8b80bf40380256307b68a3dcbe1b91cac92a533e212b5b635abc3e4525781a0a", - strip_prefix = "cranelift-codegen-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.82.1.bazel"), + sha256 = "efc67870c31cae7d03808dfa430ee9ccda9bd82c61b49b939d925d9155cfc42d", + strip_prefix = "cranelift-codegen-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.82.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.82.1/download", + name = "wasmtime__cranelift_codegen_meta__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.82.2/download", type = "tar.gz", - sha256 = "703d0ed7d3bc6c7a814ca12858175bf4e93167a3584127858c686e4b5dd6e432", - strip_prefix = "cranelift-codegen-meta-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.82.1.bazel"), + sha256 = "b0f0172d25539fcc64f581d3dce0df00e2065b00e1c750e18832d2cf1e0d27e0", + strip_prefix = "cranelift-codegen-meta-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.82.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.82.1/download", + name = "wasmtime__cranelift_codegen_shared__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.82.2/download", type = "tar.gz", - sha256 = "80f52311e1c90de12dcf8c4b9999c6ebfd1ed360373e88c357160936844511f6", - strip_prefix = "cranelift-codegen-shared-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.82.1.bazel"), + sha256 = "8f6cc5717ae2ea849e5c819eb70c95792c2843294d9503700ac55d8d159e2160", + strip_prefix = "cranelift-codegen-shared-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.82.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.82.1/download", + name = "wasmtime__cranelift_entity__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.82.2/download", type = "tar.gz", - sha256 = "66bc82ef522c1f643baf7d4d40b7c52643ee4549d8960b0e6a047daacb83f897", - strip_prefix = "cranelift-entity-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.82.1.bazel"), + sha256 = "e822e0169d7a078cbc7ed19bca6636752c093e25d994a4febd9914d1118f3945", + strip_prefix = "cranelift-entity-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.82.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.82.1/download", + name = "wasmtime__cranelift_frontend__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.82.2/download", type = "tar.gz", - sha256 = "3cc35e4251864b17515845ba47447bca88fec9ca1a4186b19fe42526e36140e8", - strip_prefix = "cranelift-frontend-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.82.1.bazel"), + sha256 = "bf3bc8bd3bb8932e70b71c0de6cba277ae112d4e51dadde2e318f60f2fbe97bc", + strip_prefix = "cranelift-frontend-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.82.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-native/0.82.1/download", + name = "wasmtime__cranelift_native__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-native/0.82.2/download", type = "tar.gz", - sha256 = "b882b2251c9845d509d92aebfdb6c8bb3b3b48e207ac951f21fbd20cfe7f90b3", - strip_prefix = "cranelift-native-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.82.1.bazel"), + sha256 = "a8090cade0761622fcb1c805c8ce2c2f085a2467bdee7e21cd9ba399026cf7ac", + strip_prefix = "cranelift-native-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.82.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_82_1", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.82.1/download", + name = "wasmtime__cranelift_wasm__0_82_2", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.82.2/download", type = "tar.gz", - sha256 = "f0354e819732c02acdd98ab969dd81c7670304fff4c8fc4c86bc999b55fa1f0c", - strip_prefix = "cranelift-wasm-0.82.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.82.1.bazel"), + sha256 = "be110a4560fa997ba8bc8376a459ec4d8707074f88058a17b29f43c27e983ad0", + strip_prefix = "cranelift-wasm-0.82.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.82.2.bazel"), ) maybe( @@ -273,12 +273,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__getrandom__0_2_5", - url = "https://crates.io/api/v1/crates/getrandom/0.2.5/download", + name = "wasmtime__getrandom__0_2_6", + url = "https://crates.io/api/v1/crates/getrandom/0.2.6/download", type = "tar.gz", - sha256 = "d39cd93900197114fa1fcb7ae84ca742095eed9442088988ae74fa744e930e77", - strip_prefix = "getrandom-0.2.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.5.bazel"), + sha256 = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad", + strip_prefix = "getrandom-0.2.6", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.6.bazel"), ) maybe( @@ -323,12 +323,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__indexmap__1_8_0", - url = "https://crates.io/api/v1/crates/indexmap/1.8.0/download", + name = "wasmtime__indexmap__1_8_1", + url = "https://crates.io/api/v1/crates/indexmap/1.8.1/download", type = "tar.gz", - sha256 = "282a6247722caba404c065016bbfa522806e51714c34f5dfc3e4a3a46fcb4223", - strip_prefix = "indexmap-1.8.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.8.0.bazel"), + sha256 = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee", + strip_prefix = "indexmap-1.8.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.8.1.bazel"), ) maybe( @@ -363,12 +363,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_119", - url = "https://crates.io/api/v1/crates/libc/0.2.119/download", + name = "wasmtime__libc__0_2_122", + url = "https://crates.io/api/v1/crates/libc/0.2.122/download", type = "tar.gz", - sha256 = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4", - strip_prefix = "libc-0.2.119", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.119.bazel"), + sha256 = "ec647867e2bf0772e28c8bcde4f0d19a9216916e890543b5a03ed8ef27b8f259", + strip_prefix = "libc-0.2.122", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.122.bazel"), ) maybe( @@ -383,12 +383,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__log__0_4_14", - url = "https://crates.io/api/v1/crates/log/0.4.14/download", + name = "wasmtime__log__0_4_16", + url = "https://crates.io/api/v1/crates/log/0.4.16/download", type = "tar.gz", - sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710", - strip_prefix = "log-0.4.14", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.14.bazel"), + sha256 = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8", + strip_prefix = "log-0.4.16", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.16.bazel"), ) maybe( @@ -463,12 +463,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__paste__1_0_6", - url = "https://crates.io/api/v1/crates/paste/1.0.6/download", + name = "wasmtime__paste__1_0_7", + url = "https://crates.io/api/v1/crates/paste/1.0.7/download", type = "tar.gz", - sha256 = "0744126afe1a6dd7f394cb50a716dbe086cb06e255e53d8d0185d82828358fb5", - strip_prefix = "paste-1.0.6", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.6.bazel"), + sha256 = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc", + strip_prefix = "paste-1.0.7", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.7.bazel"), ) maybe( @@ -483,32 +483,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__proc_macro2__1_0_36", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download", + name = "wasmtime__proc_macro2__1_0_37", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.37/download", type = "tar.gz", - sha256 = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029", - strip_prefix = "proc-macro2-1.0.36", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.36.bazel"), + sha256 = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1", + strip_prefix = "proc-macro2-1.0.37", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.37.bazel"), ) maybe( http_archive, - name = "wasmtime__psm__0_1_17", - url = "https://crates.io/api/v1/crates/psm/0.1.17/download", + name = "wasmtime__psm__0_1_18", + url = "https://crates.io/api/v1/crates/psm/0.1.18/download", type = "tar.gz", - sha256 = "6eca0fa5dd7c4c96e184cec588f0b1db1ee3165e678db21c09793105acb17e6f", - strip_prefix = "psm-0.1.17", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.17.bazel"), + sha256 = "871372391786ccec00d3c5d3d6608905b3d4db263639cfe075d3b60a736d115a", + strip_prefix = "psm-0.1.18", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.18.bazel"), ) maybe( http_archive, - name = "wasmtime__quote__1_0_15", - url = "https://crates.io/api/v1/crates/quote/1.0.15/download", + name = "wasmtime__quote__1_0_17", + url = "https://crates.io/api/v1/crates/quote/1.0.17/download", type = "tar.gz", - sha256 = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145", - strip_prefix = "quote-1.0.15", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.15.bazel"), + sha256 = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58", + strip_prefix = "quote-1.0.17", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.17.bazel"), ) maybe( @@ -603,12 +603,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_33_4", - url = "https://crates.io/api/v1/crates/rustix/0.33.4/download", + name = "wasmtime__rustix__0_33_5", + url = "https://crates.io/api/v1/crates/rustix/0.33.5/download", type = "tar.gz", - sha256 = "ef7ec6a44fba95d21fa522760c03c16ca5ee95cebb6e4ef579cab3e6d7ba6c06", - strip_prefix = "rustix-0.33.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.4.bazel"), + sha256 = "03627528abcc4a365554d32a9f3bbf67f7694c102cfeda792dc86a2d6057cc85", + strip_prefix = "rustix-0.33.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.5.bazel"), ) maybe( @@ -653,12 +653,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__syn__1_0_87", - url = "https://crates.io/api/v1/crates/syn/1.0.87/download", + name = "wasmtime__syn__1_0_91", + url = "https://crates.io/api/v1/crates/syn/1.0.91/download", type = "tar.gz", - sha256 = "1e59d925cf59d8151f25a3bedf97c9c157597c9df7324d32d68991cc399ed08b", - strip_prefix = "syn-1.0.87", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.87.bazel"), + sha256 = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d", + strip_prefix = "syn-1.0.91", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.91.bazel"), ) maybe( @@ -733,81 +733,81 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmtime__0_35_1", - url = "https://crates.io/api/v1/crates/wasmtime/0.35.1/download", + name = "wasmtime__wasmtime__0_35_2", + url = "https://crates.io/api/v1/crates/wasmtime/0.35.2/download", type = "tar.gz", - sha256 = "07f4245f65310fb41e4bdb75b0f794798aab23e3911c34a38a11c6e15f4906dd", - strip_prefix = "wasmtime-0.35.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.35.1.bazel"), + sha256 = "637f73fff13248d13882246b67a8208d466c36d7b836b783a62903cb96f11b61", + strip_prefix = "wasmtime-0.35.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.35.2.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "5b09b74f4c5e0fd817febd3263947ee3682759bd", + commit = "59bfe50acaffd69f267946d35abe9f87a3b07e29", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_35_1", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.35.1/download", + name = "wasmtime__wasmtime_cranelift__0_35_2", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.35.2/download", type = "tar.gz", - sha256 = "da49deb7024bbf9ee72019a30c05fa752dab8cba8b32f709b2ddf66329d46c74", - strip_prefix = "wasmtime-cranelift-0.35.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.35.1.bazel"), + sha256 = "a2d233418e5f560e8010fe13e60943df8be0685c68cbdf9f588dd846a727f2e4", + strip_prefix = "wasmtime-cranelift-0.35.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.35.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_35_1", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.35.1/download", + name = "wasmtime__wasmtime_environ__0_35_2", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.35.2/download", type = "tar.gz", - sha256 = "0dbf66220878adc123fe744df623eb141d4e73f03daed3f2aba3dbc7786d921e", - strip_prefix = "wasmtime-environ-0.35.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.35.1.bazel"), + sha256 = "0f38f25934156bb5496b3fd30be10c8ef41936330d9c936654ebf4eac02e352e", + strip_prefix = "wasmtime-environ-0.35.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.35.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_35_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.35.1/download", + name = "wasmtime__wasmtime_jit__0_35_2", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.35.2/download", type = "tar.gz", - sha256 = "62157c76f1204c4845c2c33f6aa4472369c7d9d7deb2e6218c4fabebbae8ac1b", - strip_prefix = "wasmtime-jit-0.35.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.35.1.bazel"), + sha256 = "bf7d3293e643c3b397012a579b025116e5818118a7982373551df8f8b0a4c524", + strip_prefix = "wasmtime-jit-0.35.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.35.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__0_35_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.35.1/download", + name = "wasmtime__wasmtime_jit_debug__0_35_2", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.35.2/download", type = "tar.gz", - sha256 = "1d314887fca993322b7ee4e08e5e2c0e79e812fbd1d6272c1781db884e3daabb", - strip_prefix = "wasmtime-jit-debug-0.35.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.35.1.bazel"), + sha256 = "f8b4b40b84a96da6fcd7f2460747564091b9b8dedcc7bd66c0cb741adf451de8", + strip_prefix = "wasmtime-jit-debug-0.35.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.35.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_35_1", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.35.1/download", + name = "wasmtime__wasmtime_runtime__0_35_2", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.35.2/download", type = "tar.gz", - sha256 = "15c0a7901d0645bf99b1efaebf7f7e144170641c575e96eb1fb6a9218290726c", - strip_prefix = "wasmtime-runtime-0.35.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.35.1.bazel"), + sha256 = "b60eb01e3413a54e791a397d556962876902d7481be496b4b9eb1dc68de14fce", + strip_prefix = "wasmtime-runtime-0.35.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.35.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_35_1", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.35.1/download", + name = "wasmtime__wasmtime_types__0_35_2", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.35.2/download", type = "tar.gz", - sha256 = "4d9841ad7624110410291d03645876474a79fcedaed729016e384308145c29eb", - strip_prefix = "wasmtime-types-0.35.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.35.1.bazel"), + sha256 = "86cd8d51aa648f2ba5a25bd11a74c08ce2b66796a5bbd5c099ab5db672a2e68f", + strip_prefix = "wasmtime-types-0.35.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.35.2.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 18cade6f1..908aa6a2f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel index 110f5a9be..7412548ca 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel @@ -93,7 +93,7 @@ rust_library( ":backtrace_build_script", "@wasmtime__addr2line__0_17_0//:addr2line", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", "@wasmtime__miniz_oxide__0_4_4//:miniz_oxide", "@wasmtime__object__0_27_1//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.2.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.2.bazel index 84eefb2d7..1d8a1ab4e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.2.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.2.bazel similarity index 86% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.2.bazel index 98f3b2a42..80e556ff7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.2.bazel @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.82.1", + version = "0.82.2", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_82_1//:cranelift_codegen_meta", + "@wasmtime__cranelift_codegen_meta__0_82_2//:cranelift_codegen_meta", ], ) @@ -87,15 +87,15 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_82_1//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_82_1//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_82_2//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_82_2//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__log__0_4_16//:log", "@wasmtime__regalloc__0_0_34//:regalloc", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.2.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.2.bazel index 650fee915..f60ee49f6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.2.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_82_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_82_2//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.2.bazel index 7ba69253e..d818c39b6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.2.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.2.bazel index 6461eba90..d60852dbf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.2.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ "@wasmtime__serde__1_0_136//:serde", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.2.bazel similarity index 90% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.2.bazel index 121b6a3eb..7d5323562 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.2.bazel @@ -49,11 +49,11 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", + "@wasmtime__log__0_4_16//:log", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.2.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.2.bazel index c7ca0614c..71ba717a5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.2.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.2.bazel similarity index 80% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.2.bazel index 61b351774..939b958dd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.2.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.82.1", + version = "0.82.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_82_1//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_82_2//:cranelift_frontend", "@wasmtime__itertools__0_10_3//:itertools", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__log__0_4_16//:log", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_types__0_35_1//:wasmtime_types", + "@wasmtime__wasmtime_types__0_35_2//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel index ca3ce977a..9dd434612 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel @@ -57,7 +57,7 @@ rust_library( deps = [ "@wasmtime__atty__0_2_14//:atty", "@wasmtime__humantime__2_1_0//:humantime", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__log__0_4_16//:log", "@wasmtime__regex__1_5_5//:regex", "@wasmtime__termcolor__1_1_3//:termcolor", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index 53d140f8c..4543020b2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index 7fbaaf0ee..3f14bcdae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel index edfe9eb6c..b8563f269 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel @@ -52,7 +52,7 @@ rust_library( "crate-name=getrandom", "manual", ], - version = "0.2.5", + version = "0.2.6", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel index e449bfc35..4fcd8e077 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel @@ -68,7 +68,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__fallible_iterator__0_2_0//:fallible_iterator", - "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__indexmap__1_8_1//:indexmap", "@wasmtime__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index d0bf22754..aa6f7e667 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel index b0f1acbfd..0603fefbd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.8.0", + version = "1.8.1", visibility = ["//visibility:private"], deps = [ "@wasmtime__autocfg__1_1_0//:autocfg", @@ -87,7 +87,7 @@ rust_library( "crate-name=indexmap", "manual", ], - version = "1.8.0", + version = "1.8.1", # buildifier: leave-alone deps = [ ":indexmap_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.119.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.122.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.119.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.122.bazel index 778ffbcda..74c179895 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.119.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.122.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.119", + version = "0.2.122", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.119", + version = "0.2.122", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.16.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.log-0.4.14.bazel rename to bazel/cargo/wasmtime/remote/BUILD.log-0.4.16.bazel index 38a9c611f..c4f20dc6d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.16.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.4.14", + version = "0.4.16", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=log", "manual", ], - version = "0.4.14", + version = "0.4.16", # buildifier: leave-alone deps = [ ":log_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index 8391a5ff0..cfb337a53 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel index 1c37a3e1e..767ffa3ae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel @@ -63,7 +63,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__crc32fast__1_3_2//:crc32fast", - "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__indexmap__1_8_1//:indexmap", "@wasmtime__memchr__2_4_1//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.7.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.paste-1.0.6.bazel rename to bazel/cargo/wasmtime/remote/BUILD.paste-1.0.7.bazel index 5e5c49e88..8bc62b829 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.7.bazel @@ -47,7 +47,7 @@ rust_proc_macro( "crate-name=paste", "manual", ], - version = "1.0.6", + version = "1.0.7", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.36.bazel rename to bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel index ab2480f0f..54a9631ec 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.36.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.36", + version = "1.0.37", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=proc-macro2", "manual", ], - version = "1.0.36", + version = "1.0.37", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.18.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.psm-0.1.17.bazel rename to bazel/cargo/wasmtime/remote/BUILD.psm-0.1.18.bazel index 284f26934..323fd32d9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.17.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.18.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.17", + version = "0.1.18", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -89,7 +89,7 @@ rust_library( "crate-name=psm", "manual", ], - version = "0.1.17", + version = "0.1.18", # buildifier: leave-alone deps = [ ":psm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.17.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.quote-1.0.15.bazel rename to bazel/cargo/wasmtime/remote/BUILD.quote-1.0.17.bazel index f83b9dc24..ec4eb82d1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.17.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=quote", "manual", ], - version = "1.0.15", + version = "1.0.17", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_36//:proc_macro2", + "@wasmtime__proc_macro2__1_0_37//:proc_macro2", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 993e290be..fa8ebbe9f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel index 6447e4832..79c206b2b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel @@ -53,6 +53,6 @@ rust_library( version = "0.6.3", # buildifier: leave-alone deps = [ - "@wasmtime__getrandom__0_2_5//:getrandom", + "@wasmtime__getrandom__0_2_6//:getrandom", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel index d76108a0a..8b110fdb7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel @@ -51,7 +51,7 @@ rust_library( version = "0.0.34", # buildifier: leave-alone deps = [ - "@wasmtime__log__0_4_14//:log", + "@wasmtime__log__0_4_16//:log", "@wasmtime__rustc_hash__1_1_0//:rustc_hash", "@wasmtime__smallvec__1_8_0//:smallvec", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel index 934a832b0..9c1971443 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.5.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.5.bazel index 624ee4e22..8f27532a0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.5.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.33.4", + version = "0.33.5", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -140,7 +140,7 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.33.4", + version = "0.33.5", # buildifier: leave-alone deps = [ ":rustix_build_script", @@ -178,7 +178,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@wasmtime__errno__0_2_8//:errno", - "@wasmtime__libc__0_2_119//:libc", + "@wasmtime__libc__0_2_122//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel index 5ee849c35..cc27a93d9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel @@ -82,8 +82,8 @@ rust_proc_macro( # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@wasmtime__proc_macro2__1_0_36//:proc_macro2", - "@wasmtime__quote__1_0_15//:quote", - "@wasmtime__syn__1_0_87//:syn", + "@wasmtime__proc_macro2__1_0_37//:proc_macro2", + "@wasmtime__quote__1_0_17//:quote", + "@wasmtime__syn__1_0_91//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.87.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.91.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.syn-1.0.87.bazel rename to bazel/cargo/wasmtime/remote/BUILD.syn-1.0.91.bazel index ccb29e57a..56c48d97b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.87.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.91.bazel @@ -61,7 +61,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.87", + version = "1.0.91", visibility = ["//visibility:private"], deps = [ ], @@ -94,12 +94,12 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.87", + version = "1.0.91", # buildifier: leave-alone deps = [ ":syn_build_script", - "@wasmtime__proc_macro2__1_0_36//:proc_macro2", - "@wasmtime__quote__1_0_15//:quote", + "@wasmtime__proc_macro2__1_0_37//:proc_macro2", + "@wasmtime__quote__1_0_17//:quote", "@wasmtime__unicode_xid__0_2_2//:unicode_xid", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel index c9cfb24af..2361253e2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel @@ -50,8 +50,8 @@ rust_proc_macro( version = "1.0.30", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_36//:proc_macro2", - "@wasmtime__quote__1_0_15//:quote", - "@wasmtime__syn__1_0_87//:syn", + "@wasmtime__proc_macro2__1_0_37//:proc_macro2", + "@wasmtime__quote__1_0_17//:quote", + "@wasmtime__syn__1_0_91//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.2.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.2.bazel index 68589c980..85ec89023 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.2.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.35.1", + version = "0.35.2", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -83,7 +83,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@wasmtime__paste__1_0_6//:paste", + "@wasmtime__paste__1_0_7//:paste", ], rustc_flags = [ "--cap-lints=allow", @@ -93,7 +93,7 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.35.1", + version = "0.35.2", # buildifier: leave-alone deps = [ ":wasmtime_build_script", @@ -101,21 +101,21 @@ rust_library( "@wasmtime__backtrace__0_3_64//:backtrace", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_8_0//:indexmap", + "@wasmtime__indexmap__1_8_1//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_119//:libc", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__log__0_4_16//:log", "@wasmtime__object__0_27_1//:object", "@wasmtime__once_cell__1_10_0//:once_cell", - "@wasmtime__psm__0_1_17//:psm", + "@wasmtime__psm__0_1_18//:psm", "@wasmtime__region__2_2_0//:region", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_35_1//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_35_1//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_35_1//:wasmtime_runtime", + "@wasmtime__wasmtime_cranelift__0_35_2//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_35_2//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_35_2//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index d5e19072f..9b5450c41 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -50,7 +50,7 @@ rust_proc_macro( version = "0.19.0", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_36//:proc_macro2", - "@wasmtime__quote__1_0_15//:quote", + "@wasmtime__proc_macro2__1_0_37//:proc_macro2", + "@wasmtime__quote__1_0_17//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.2.bazel similarity index 76% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.2.bazel index 564ebb738..e47bd1c5d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.2.bazel @@ -47,22 +47,22 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.35.1", + version = "0.35.2", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_56//:anyhow", - "@wasmtime__cranelift_codegen__0_82_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_82_1//:cranelift_frontend", - "@wasmtime__cranelift_native__0_82_1//:cranelift_native", - "@wasmtime__cranelift_wasm__0_82_1//:cranelift_wasm", + "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_82_2//:cranelift_frontend", + "@wasmtime__cranelift_native__0_82_2//:cranelift_native", + "@wasmtime__cranelift_wasm__0_82_2//:cranelift_wasm", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__log__0_4_16//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_27_1//:object", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", + "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.2.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.2.bazel index 24b3da798..d16edc805 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.2.bazel @@ -47,20 +47,20 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.35.1", + version = "0.35.2", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_56//:anyhow", - "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__indexmap__1_8_0//:indexmap", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__indexmap__1_8_1//:indexmap", + "@wasmtime__log__0_4_16//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_27_1//:object", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_types__0_35_1//:wasmtime_types", + "@wasmtime__wasmtime_types__0_35_2//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.2.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.2.bazel index 13c93c6c3..44da5368c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.2.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.35.1", + version = "0.35.2", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", @@ -58,15 +58,15 @@ rust_library( "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__log__0_4_16//:log", "@wasmtime__object__0_27_1//:object", "@wasmtime__region__2_2_0//:region", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_35_1//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_35_2//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -77,7 +77,7 @@ rust_library( "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__rustix__0_33_4//:rustix", + "@wasmtime__rustix__0_33_5//:rustix", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.2.bazel index dee406b57..6424a9510 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.2.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "0.35.1", + version = "0.35.2", # buildifier: leave-alone deps = [ "@wasmtime__lazy_static__1_4_0//:lazy_static", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.2.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.2.bazel index 9a72b9723..3e21db095 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.2.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.35.1", + version = "0.35.2", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -120,23 +120,23 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.35.1", + version = "0.35.2", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", "@wasmtime__anyhow__1_0_56//:anyhow", "@wasmtime__backtrace__0_3_64//:backtrace", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_8_0//:indexmap", - "@wasmtime__libc__0_2_119//:libc", - "@wasmtime__log__0_4_14//:log", + "@wasmtime__indexmap__1_8_1//:indexmap", + "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__log__0_4_16//:log", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__rand__0_8_5//:rand", "@wasmtime__region__2_2_0//:region", "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_35_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__0_35_1//:wasmtime_jit_debug", + "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__0_35_2//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_33_4//:rustix", + "@wasmtime__rustix__0_33_5//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.2.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.2.bazel index 24d5f36d9..bf5e260a0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.2.bazel @@ -47,10 +47,10 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.35.1", + version = "0.35.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_82_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", "@wasmtime__serde__1_0_136//:serde", "@wasmtime__thiserror__1_0_30//:thiserror", "@wasmtime__wasmparser__0_83_0//:wasmparser", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index dd1a02758..0267a858d 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -187,9 +187,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "dd29279e18782a4ec12a504abb16c6d989af299d238acd7983429adbd3e34e08", - strip_prefix = "wasmtime-0.35.1", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.35.1.tar.gz", + sha256 = "9dcb51313f9d6a67169f70759411cddf511000b0372e57532e638441100aac9c", + strip_prefix = "wasmtime-0.35.2", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.35.2.tar.gz", ) maybe( From eba773f1a09d1870f1e0248709b6ed566d65df50 Mon Sep 17 00:00:00 2001 From: Yi-Ying He Date: Fri, 8 Apr 2022 01:52:03 +0800 Subject: [PATCH 199/287] wasmedge: add support for WasmEdge engine. (#193) Signed-off-by: YiYing He --- .github/workflows/test.yml | 7 + BUILD | 25 ++ bazel/BUILD | 5 + bazel/external/wasmedge.BUILD | 24 ++ bazel/repositories.bzl | 16 + bazel/select.bzl | 7 + include/proxy-wasm/wasmedge.h | 26 ++ src/wasmedge/types.h | 27 ++ src/wasmedge/wasmedge.cc | 610 ++++++++++++++++++++++++++++++++++ test/utility.cc | 3 + test/utility.h | 7 + test/wasm_vm_test.cc | 2 +- 12 files changed, 758 insertions(+), 1 deletion(-) create mode 100644 bazel/external/wasmedge.BUILD create mode 100644 include/proxy-wasm/wasmedge.h create mode 100644 src/wasmedge/types.h create mode 100644 src/wasmedge/wasmedge.cc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a9bf70566..251818335 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -166,6 +166,13 @@ jobs: os: macos-11 arch: x86_64 action: test + - name: 'WasmEdge on Linux/x86_64' + engine: 'wasmedge' + repo: 'com_github_wasmedge_wasmedge' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=clang - name: 'Wasmtime on Linux/x86_64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' diff --git a/BUILD b/BUILD index 5095d8cc4..1df703bf1 100644 --- a/BUILD +++ b/BUILD @@ -4,6 +4,7 @@ load( "proxy_wasm_select_engine_null", "proxy_wasm_select_engine_v8", "proxy_wasm_select_engine_wamr", + "proxy_wasm_select_engine_wasmedge", "proxy_wasm_select_engine_wasmtime", "proxy_wasm_select_engine_wavm", ) @@ -134,6 +135,28 @@ cc_library( ], ) +cc_library( + name = "wasmedge_lib", + srcs = [ + "src/common/types.h", + "src/wasmedge/types.h", + "src/wasmedge/wasmedge.cc", + ], + hdrs = ["include/proxy-wasm/wasmedge.h"], + defines = [ + "PROXY_WASM_HAS_RUNTIME_WASMEDGE", + "PROXY_WASM_HOST_ENGINE_WASMEDGE", + ], + linkopts = [ + "-lrt", + "-ldl", + ], + deps = [ + ":wasm_vm_headers", + "//external:wasmedge", + ], +) + cc_library( name = "wasmtime_lib", srcs = [ @@ -270,6 +293,8 @@ cc_library( [":v8_lib"], ) + proxy_wasm_select_engine_wamr( [":wamr_lib"], + ) + proxy_wasm_select_engine_wasmedge( + [":wasmedge_lib"], ) + proxy_wasm_select_engine_wasmtime( [":wasmtime_lib"], [":prefixed_wasmtime_lib"], diff --git a/bazel/BUILD b/bazel/BUILD index 78cd55313..2fe0c7924 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -15,6 +15,11 @@ config_setting( values = {"define": "engine=wamr"}, ) +config_setting( + name = "engine_wasmedge", + values = {"define": "engine=wasmedge"}, +) + config_setting( name = "engine_wasmtime", values = {"define": "engine=wasmtime"}, diff --git a/bazel/external/wasmedge.BUILD b/bazel/external/wasmedge.BUILD new file mode 100644 index 000000000..9887a4280 --- /dev/null +++ b/bazel/external/wasmedge.BUILD @@ -0,0 +1,24 @@ +load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "srcs", + srcs = glob(["**"]), +) + +cmake( + name = "wasmedge_lib", + cache_entries = { + "WASMEDGE_BUILD_AOT_RUNTIME": "Off", + "WASMEDGE_BUILD_SHARED_LIB": "Off", + "WASMEDGE_BUILD_STATIC_LIB": "On", + "WASMEDGE_BUILD_TOOLS": "Off", + "WASMEDGE_FORCE_DISABLE_LTO": "On", + }, + generate_args = ["-GNinja"], + lib_source = ":srcs", + out_static_libs = ["libwasmedge_c.a"], +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 0267a858d..41726fc6a 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -181,6 +181,22 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib", ) + # WasmEdge with dependencies. + + maybe( + http_archive, + name = "com_github_wasmedge_wasmedge", + build_file = "@proxy_wasm_cpp_host//bazel/external:wasmedge.BUILD", + sha256 = "6724955a967a1457bcf5dc1787a8da95feaba45d3b498ae42768ebf48f587299", + strip_prefix = "WasmEdge-proxy-wasm-0.9.1", + url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.9.1.tar.gz", + ) + + native.bind( + name = "wasmedge", + actual = "@com_github_wasmedge_wasmedge//:wasmedge_lib", + ) + # Wasmtime with dependencies. maybe( diff --git a/bazel/select.bzl b/bazel/select.bzl index eea36c888..d79862ace 100644 --- a/bazel/select.bzl +++ b/bazel/select.bzl @@ -40,6 +40,13 @@ def proxy_wasm_select_engine_wasmtime(xs, xp): "//conditions:default": [], }) +def proxy_wasm_select_engine_wasmedge(xs): + return select({ + "@proxy_wasm_cpp_host//bazel:engine_wasmedge": xs, + "@proxy_wasm_cpp_host//bazel:multiengine": xs, + "//conditions:default": [], + }) + def proxy_wasm_select_engine_wavm(xs): return select({ "@proxy_wasm_cpp_host//bazel:engine_wavm": xs, diff --git a/include/proxy-wasm/wasmedge.h b/include/proxy-wasm/wasmedge.h new file mode 100644 index 000000000..f0b2141ce --- /dev/null +++ b/include/proxy-wasm/wasmedge.h @@ -0,0 +1,26 @@ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include + +#include "include/proxy-wasm/wasm_vm.h" + +namespace proxy_wasm { + +std::unique_ptr createWasmEdgeVm(); + +} // namespace proxy_wasm diff --git a/src/wasmedge/types.h b/src/wasmedge/types.h new file mode 100644 index 000000000..e51dede17 --- /dev/null +++ b/src/wasmedge/types.h @@ -0,0 +1,27 @@ +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/common/types.h" +#include "wasmedge/wasmedge.h" + +namespace proxy_wasm::WasmEdge { + +using WasmEdgeStorePtr = common::CSmartPtr; +using WasmEdgeVMPtr = common::CSmartPtr; +using WasmEdgeLoaderPtr = common::CSmartPtr; +using WasmEdgeValidatorPtr = common::CSmartPtr; +using WasmEdgeExecutorPtr = common::CSmartPtr; +using WasmEdgeASTModulePtr = common::CSmartPtr; + +} // namespace proxy_wasm::WasmEdge diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc new file mode 100644 index 000000000..7d3a4e408 --- /dev/null +++ b/src/wasmedge/wasmedge.cc @@ -0,0 +1,610 @@ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/wasmedge.h" +#include "include/proxy-wasm/wasm_vm.h" +#include "src/wasmedge/types.h" + +#include "wasmedge/wasmedge.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace proxy_wasm { +namespace WasmEdge { + +// Helper templates to make values. +template WasmEdge_Value makeVal(T t); +template <> WasmEdge_Value makeVal(Word t) { + return WasmEdge_ValueGenI32(static_cast(t.u64_)); +} +template <> WasmEdge_Value makeVal(uint32_t t) { + return WasmEdge_ValueGenI32(static_cast(t)); +} +template <> WasmEdge_Value makeVal(uint64_t t) { + return WasmEdge_ValueGenI64(static_cast(t)); +} +template <> WasmEdge_Value makeVal(double t) { return WasmEdge_ValueGenF64(t); } + +// Helper function to print values. +std::string printValue(const WasmEdge_Value &value) { + switch (value.Type) { + case WasmEdge_ValType_I32: + return std::to_string(WasmEdge_ValueGetI32(value)); + case WasmEdge_ValType_I64: + return std::to_string(WasmEdge_ValueGetI64(value)); + case WasmEdge_ValType_F32: + return std::to_string(WasmEdge_ValueGetF32(value)); + case WasmEdge_ValType_F64: + return std::to_string(WasmEdge_ValueGetF64(value)); + default: + return "unknown"; + } +} + +std::string printValues(const WasmEdge_Value *values, size_t size) { + if (size == 0) { + return ""; + } + + std::string s; + for (size_t i = 0; i < size; i++) { + if (i != 0U) { + s.append(", "); + } + s.append(printValue(values[i])); + } + return s; +} + +// Helper function to print valtype. +const char *printValType(WasmEdge_ValType kind) { + switch (kind) { + case WasmEdge_ValType_I32: + return "i32"; + case WasmEdge_ValType_I64: + return "i64"; + case WasmEdge_ValType_F32: + return "f32"; + case WasmEdge_ValType_F64: + return "f64"; + case WasmEdge_ValType_ExternRef: + return "anyref"; + case WasmEdge_ValType_FuncRef: + return "funcref"; + default: + return "unknown"; + } +} + +// Helper function to print valtype array. +std::string printValTypes(const WasmEdge_ValType *types, size_t size) { + if (size == 0) { + return "void"; + } + + std::string s; + s.reserve(size * 8 /* max size + " " */ - 1); + for (size_t i = 0; i < size; i++) { + if (i != 0U) { + s.append(" "); + } + s.append(printValType(types[i])); + } + return s; +} + +template struct ConvertWordType { + using type = T; // NOLINT(readability-identifier-naming) +}; +template <> struct ConvertWordType { + using type = uint32_t; // NOLINT(readability-identifier-naming) +}; + +// Helper templates to convert arg to valtype. +template enum WasmEdge_ValType convArgToValType(); +template <> enum WasmEdge_ValType convArgToValType() { return WasmEdge_ValType_I32; } +template <> enum WasmEdge_ValType convArgToValType() { return WasmEdge_ValType_I32; } +template <> enum WasmEdge_ValType convArgToValType() { return WasmEdge_ValType_I64; } +template <> enum WasmEdge_ValType convArgToValType() { return WasmEdge_ValType_I64; } +template <> enum WasmEdge_ValType convArgToValType() { return WasmEdge_ValType_F64; } + +// Helper templates to convert valtype to arg. +template T convValTypeToArg(WasmEdge_Value val); +template <> uint32_t convValTypeToArg(WasmEdge_Value val) { + return static_cast(WasmEdge_ValueGetI32(val)); +} +template <> Word convValTypeToArg(WasmEdge_Value val) { return WasmEdge_ValueGetI32(val); } +template <> int64_t convValTypeToArg(WasmEdge_Value val) { + return WasmEdge_ValueGetI64(val); +} +template <> uint64_t convValTypeToArg(WasmEdge_Value val) { + return static_cast(WasmEdge_ValueGetI64(val)); +} +template <> double convValTypeToArg(WasmEdge_Value val) { + return WasmEdge_ValueGetF64(val); +} + +// Helper templates to convert valtypes to args tuple. +template +constexpr T convValTypesToArgsTupleImpl(const WasmEdge_Value *arr, + std::index_sequence /*comptime*/) { + return std::make_tuple( + convValTypeToArg>::type>(arr[I])...); +} + +template ::value>> +constexpr T convValTypesToArgsTuple(const WasmEdge_Value *arr) { + return convValTypesToArgsTupleImpl(arr, Is()); +} + +// Helper templates to convert args tuple to valtypes. +template +uint32_t convArgsTupleToValTypesImpl(std::vector &types, + std::index_sequence /*comptime*/) { + auto size = std::tuple_size::value; + if (size > 0) { + auto ps = std::array::value>{ + convArgToValType::type>()...}; + types.resize(size); + std::copy_n(ps.data(), size, types.data()); + } + return size; +} + +template ::value>> +uint32_t convArgsTupleToValTypes(std::vector &types) { + return convArgsTupleToValTypesImpl(types, Is()); +} + +// Helper templates to create WasmEdge_FunctionTypeContext. +template WasmEdge_FunctionTypeContext *newWasmEdgeFuncType() { + std::vector params; + std::vector returns; + uint32_t param_nums = convArgsTupleToValTypes(params); + uint32_t return_nums = convArgsTupleToValTypes>(returns); + auto *ftype = WasmEdge_FunctionTypeCreate(params.data(), param_nums, returns.data(), return_nums); + return ftype; +} + +template WasmEdge_FunctionTypeContext *newWasmEdgeFuncType() { + std::vector params; + uint32_t param_nums = convArgsTupleToValTypes(params); + auto *ftype = WasmEdge_FunctionTypeCreate(params.data(), param_nums, nullptr, 0); + return ftype; +} + +struct HostFuncData { + HostFuncData(const std::string_view modname, const std::string_view name) + : modname_(modname), name_(name), callback_(nullptr), raw_func_(nullptr), vm_(nullptr) {} + ~HostFuncData() = default; + + std::string modname_, name_; + WasmEdge_HostFunc_t callback_; + void *raw_func_; + WasmVm *vm_; +}; + +using HostFuncDataPtr = std::unique_ptr; + +struct HostModuleData { + HostModuleData(const std::string_view modname) { + cxt_ = WasmEdge_ImportObjectCreate(WasmEdge_StringWrap(modname.data(), modname.length())); + } + ~HostModuleData() { WasmEdge_ImportObjectDelete(cxt_); } + + WasmEdge_ImportObjectContext *cxt_; +}; + +using HostModuleDataPtr = std::unique_ptr; + +class WasmEdge : public WasmVm { +public: + WasmEdge() { + loader_ = WasmEdge_LoaderCreate(nullptr); + validator_ = WasmEdge_ValidatorCreate(nullptr); + executor_ = WasmEdge_ExecutorCreate(nullptr, nullptr); + store_ = nullptr; + module_ = nullptr; + memory_ = nullptr; + } + + std::string_view getEngineName() override { return "wasmedge"; } + std::string_view getPrecompiledSectionName() override { return ""; } + + Cloneable cloneable() override { return Cloneable::NotCloneable; } + std::unique_ptr clone() override { return nullptr; } + + bool load(std::string_view bytecode, std::string_view precompiled, + const std::unordered_map &function_names) override; + bool link(std::string_view debug_name) override; + uint64_t getMemorySize() override; + std::optional getMemory(uint64_t pointer, uint64_t size) override; + bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; + bool getWord(uint64_t pointer, Word *word) override; + bool setWord(uint64_t pointer, Word word) override; + size_t getWordSize() override { return sizeof(uint32_t); }; + +#define _REGISTER_HOST_FUNCTION(T) \ + void registerCallback(std::string_view module_name, std::string_view function_name, T, \ + typename ConvertFunctionTypeWordToUint32::type f) override { \ + registerHostFunctionImpl(module_name, function_name, f); \ + }; + FOR_ALL_WASM_VM_IMPORTS(_REGISTER_HOST_FUNCTION) +#undef _REGISTER_HOST_FUNCTION + +#define _GET_MODULE_FUNCTION(T) \ + void getFunction(std::string_view function_name, T *f) override { \ + getModuleFunctionImpl(function_name, f); \ + }; + FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) +#undef _GET_MODULE_FUNCTION +private: + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + void (*function)(Args...)); + + template + void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, + R (*function)(Args...)); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + template + void getModuleFunctionImpl(std::string_view function_name, + std::function *function); + + void terminate() override {} + + WasmEdgeLoaderPtr loader_; + WasmEdgeValidatorPtr validator_; + WasmEdgeExecutorPtr executor_; + WasmEdgeStorePtr store_; + WasmEdgeASTModulePtr module_; + WasmEdge_MemoryInstanceContext *memory_; + + std::unordered_map host_functions_; + std::unordered_map import_objects_; + std::unordered_set module_functions_; +}; + +bool WasmEdge::load(std::string_view bytecode, std::string_view /*precompiled*/, + const std::unordered_map & /*function_names*/) { + WasmEdge_ASTModuleContext *mod = nullptr; + WasmEdge_Result res = WasmEdge_LoaderParseFromBuffer( + loader_.get(), &mod, reinterpret_cast(bytecode.data()), bytecode.size()); + if (!WasmEdge_ResultOK(res)) { + return false; + } + res = WasmEdge_ValidatorValidate(validator_.get(), mod); + if (!WasmEdge_ResultOK(res)) { + return false; + } + module_ = mod; + return true; +} + +bool WasmEdge::link(std::string_view /*debug_name*/) { + assert(module_ != nullptr); + + // Create store and register imports. + store_ = WasmEdge_StoreCreate(); + if (store_ == nullptr) { + return false; + } + WasmEdge_Result res; + for (auto &&it : import_objects_) { + res = WasmEdge_ExecutorRegisterImport(executor_.get(), store_.get(), it.second->cxt_); + if (!WasmEdge_ResultOK(res)) { + fail(FailState::UnableToInitializeCode, + std::string("Failed to link Wasm module due to import: ") + it.first); + return false; + } + } + // Instantiate module. + res = WasmEdge_ExecutorInstantiate(executor_.get(), store_.get(), module_.get()); + if (!WasmEdge_ResultOK(res)) { + fail(FailState::UnableToInitializeCode, + std::string("Failed to link Wasm module: ") + std::string(WasmEdge_ResultGetMessage(res))); + return false; + } + // Get the function and memory exports. + uint32_t memory_num = WasmEdge_StoreListMemoryLength(store_.get()); + if (memory_num > 0) { + WasmEdge_String name; + WasmEdge_StoreListMemory(store_.get(), &name, 1); + memory_ = WasmEdge_StoreFindMemory(store_.get(), name); + if (memory_ == nullptr) { + return false; + } + } + uint32_t func_num = WasmEdge_StoreListFunctionLength(store_.get()); + if (func_num > 0) { + std::vector names(func_num); + WasmEdge_StoreListFunction(store_.get(), &names[0], func_num); + for (auto i = 0; i < func_num; i++) { + module_functions_.insert(std::string(names[i].Buf, names[i].Length)); + } + } + return true; +} + +uint64_t WasmEdge::getMemorySize() { + if (memory_ != nullptr) { + return 65536ULL * WasmEdge_MemoryInstanceGetPageSize(memory_); + } + return 0; +} + +std::optional WasmEdge::getMemory(uint64_t pointer, uint64_t size) { + char *ptr = reinterpret_cast(WasmEdge_MemoryInstanceGetPointer(memory_, pointer, size)); + if (ptr == nullptr) { + return std::nullopt; + } + return std::string_view(ptr, size); +} + +bool WasmEdge::setMemory(uint64_t pointer, uint64_t size, const void *data) { + auto res = WasmEdge_MemoryInstanceSetData(memory_, reinterpret_cast(data), + pointer, size); + return WasmEdge_ResultOK(res); +} + +bool WasmEdge::getWord(uint64_t pointer, Word *word) { + constexpr auto size = sizeof(uint32_t); + uint32_t word32; + auto res = + WasmEdge_MemoryInstanceGetData(memory_, reinterpret_cast(&word32), pointer, size); + if (WasmEdge_ResultOK(res)) { + word->u64_ = word32; + return true; + } + return false; +} + +bool WasmEdge::setWord(uint64_t pointer, Word word) { + constexpr auto size = sizeof(uint32_t); + uint32_t word32 = word.u32(); + auto res = + WasmEdge_MemoryInstanceSetData(memory_, reinterpret_cast(&word32), pointer, size); + return WasmEdge_ResultOK(res); +} + +template +void WasmEdge::registerHostFunctionImpl(std::string_view module_name, + std::string_view function_name, void (*function)(Args...)) { + auto it = import_objects_.find(std::string(module_name)); + if (it == import_objects_.end()) { + import_objects_.emplace(module_name, std::make_unique(module_name)); + it = import_objects_.find(std::string(module_name)); + } + + auto data = std::make_unique(module_name, function_name); + auto *func_type = newWasmEdgeFuncType>(); + data->vm_ = this; + data->raw_func_ = reinterpret_cast(function); + data->callback_ = [](void *data, WasmEdge_MemoryInstanceContext * /*MemCxt*/, + const WasmEdge_Value *Params, + WasmEdge_Value * /*Returns*/) -> WasmEdge_Result { + auto *func_data = reinterpret_cast(data); + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->modname_ + "." + + func_data->name_ + "(" + + printValues(Params, sizeof...(Args)) + ")"); + } + auto args = convValTypesToArgsTuple>(Params); + auto fn = reinterpret_cast(func_data->raw_func_); + std::apply(fn, args); + if (log) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->modname_ + "." + + func_data->name_ + " return: void"); + } + return WasmEdge_Result_Success; + }; + + auto *hostfunc_cxt = WasmEdge_FunctionInstanceCreate(func_type, data->callback_, data.get(), 0); + WasmEdge_FunctionTypeDelete(func_type); + if (hostfunc_cxt == nullptr) { + fail(FailState::MissingFunction, "Failed to allocate host function instance"); + return; + } + + WasmEdge_ImportObjectAddFunction( + it->second->cxt_, WasmEdge_StringWrap(function_name.data(), function_name.length()), + hostfunc_cxt); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +} + +template +void WasmEdge::registerHostFunctionImpl(std::string_view module_name, + std::string_view function_name, R (*function)(Args...)) { + auto it = import_objects_.find(std::string(module_name)); + if (it == import_objects_.end()) { + import_objects_.emplace(module_name, std::make_unique(module_name)); + it = import_objects_.find(std::string(module_name)); + } + + auto data = std::make_unique(module_name, function_name); + auto *func_type = newWasmEdgeFuncType>(); + data->vm_ = this; + data->raw_func_ = reinterpret_cast(function); + data->callback_ = [](void *data, WasmEdge_MemoryInstanceContext * /*MemCxt*/, + const WasmEdge_Value *Params, WasmEdge_Value *Returns) -> WasmEdge_Result { + auto *func_data = reinterpret_cast(data); + const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); + if (log) { + func_data->vm_->integration()->trace("[vm->host] " + func_data->modname_ + "." + + func_data->name_ + "(" + + printValues(Params, sizeof...(Args)) + ")"); + } + auto args = convValTypesToArgsTuple>(Params); + auto fn = reinterpret_cast(func_data->raw_func_); + R res = std::apply(fn, args); + Returns[0] = makeVal(res); + if (log) { + func_data->vm_->integration()->trace("[vm<-host] " + func_data->modname_ + "." + + func_data->name_ + " return: " + std::to_string(res)); + } + return WasmEdge_Result_Success; + }; + + auto *hostfunc_cxt = WasmEdge_FunctionInstanceCreate(func_type, data->callback_, data.get(), 0); + WasmEdge_FunctionTypeDelete(func_type); + if (hostfunc_cxt == nullptr) { + fail(FailState::MissingFunction, "Failed to allocate host function instance"); + return; + } + + WasmEdge_ImportObjectAddFunction( + it->second->cxt_, WasmEdge_StringWrap(function_name.data(), function_name.length()), + hostfunc_cxt); + host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), + std::move(data)); +} + +template +void WasmEdge::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + auto *func_cxt = WasmEdge_StoreFindFunction( + store_.get(), WasmEdge_StringWrap(function_name.data(), function_name.length())); + if (!func_cxt) { + *function = nullptr; + return; + } + + std::vector exp_args; + std::vector exp_returns; + convArgsTupleToValTypes>(exp_args); + convArgsTupleToValTypes>(exp_returns); + const auto *functype_cxt = WasmEdge_FunctionInstanceGetFunctionType(func_cxt); + std::vector act_args( + WasmEdge_FunctionTypeGetParametersLength(functype_cxt)); + std::vector act_returns( + WasmEdge_FunctionTypeGetReturnsLength(functype_cxt)); + WasmEdge_FunctionTypeGetParameters(functype_cxt, act_args.data(), act_args.size()); + WasmEdge_FunctionTypeGetReturns(functype_cxt, act_returns.data(), act_returns.size()); + + if (exp_args != act_args || exp_returns != act_returns) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + + ", want: " + printValTypes(exp_args.data(), exp_args.size()) + " -> " + + printValTypes(exp_returns.data(), exp_returns.size()) + + ", but the module exports: " + printValTypes(act_args.data(), act_args.size()) + + " -> " + printValTypes(act_returns.data(), act_returns.size())); + return; + } + + *function = [function_name, this](ContextBase *context, Args... args) -> void { + WasmEdge_Value params[] = {makeVal(args)...}; + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + SaveRestoreContext saved_context(context); + WasmEdge_Result res = + WasmEdge_ExecutorInvoke(executor_.get(), store_.get(), + WasmEdge_StringWrap(function_name.data(), function_name.length()), + params, sizeof...(Args), nullptr, 0); + if (!WasmEdge_ResultOK(res)) { + fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed:\n" + + WasmEdge_ResultGetMessage(res)); + return; + } + if (log) { + integration()->trace("[host<-vm] " + std::string(function_name) + " return: void"); + } + }; +} + +template +void WasmEdge::getModuleFunctionImpl(std::string_view function_name, + std::function *function) { + auto *func_cxt = WasmEdge_StoreFindFunction( + store_.get(), WasmEdge_StringWrap(function_name.data(), function_name.length())); + if (!func_cxt) { + *function = nullptr; + return; + } + + std::vector exp_args; + std::vector exp_returns; + convArgsTupleToValTypes>(exp_args); + convArgsTupleToValTypes>(exp_returns); + const auto *functype_cxt = WasmEdge_FunctionInstanceGetFunctionType(func_cxt); + std::vector act_args( + WasmEdge_FunctionTypeGetParametersLength(functype_cxt)); + std::vector act_returns( + WasmEdge_FunctionTypeGetReturnsLength(functype_cxt)); + WasmEdge_FunctionTypeGetParameters(functype_cxt, act_args.data(), act_args.size()); + WasmEdge_FunctionTypeGetReturns(functype_cxt, act_returns.data(), act_returns.size()); + + if (exp_args != act_args || exp_returns != act_returns) { + fail(FailState::UnableToInitializeCode, + "Bad function signature for: " + std::string(function_name) + + ", want: " + printValTypes(exp_args.data(), exp_args.size()) + " -> " + + printValTypes(exp_returns.data(), exp_returns.size()) + + ", but the module exports: " + printValTypes(act_args.data(), act_args.size()) + + " -> " + printValTypes(act_returns.data(), act_returns.size())); + return; + } + + *function = [function_name, this](ContextBase *context, Args... args) -> R { + WasmEdge_Value params[] = {makeVal(args)...}; + WasmEdge_Value results[1]; + const bool log = cmpLogLevel(LogLevel::trace); + if (log) { + integration()->trace("[host->vm] " + std::string(function_name) + "(" + + printValues(params, sizeof...(Args)) + ")"); + } + SaveRestoreContext saved_context(context); + WasmEdge_Result res = + WasmEdge_ExecutorInvoke(executor_.get(), store_.get(), + WasmEdge_StringWrap(function_name.data(), function_name.length()), + params, sizeof...(Args), results, 1); + if (!WasmEdge_ResultOK(res)) { + fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed:\n" + + WasmEdge_ResultGetMessage(res)); + return R{}; + } + R ret = convValTypeToArg(results[0]); + if (log) { + integration()->trace("[host<-vm] " + std::string(function_name) + + " return: " + std::to_string(ret)); + } + return ret; + }; +} + +} // namespace WasmEdge + +std::unique_ptr createWasmEdgeVm() { return std::make_unique(); } + +} // namespace proxy_wasm diff --git a/test/utility.cc b/test/utility.cc index 1686a0e14..e4196f8df 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -24,6 +24,9 @@ std::vector getWasmEngines() { #if defined(PROXY_WASM_HOST_ENGINE_WAMR) "wamr", #endif +#if defined(PROXY_WASM_HOST_ENGINE_WASMEDGE) + "wasmedge", +#endif #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) "wasmtime", #endif diff --git a/test/utility.h b/test/utility.h index d5d2d2f42..3935723bd 100644 --- a/test/utility.h +++ b/test/utility.h @@ -33,6 +33,9 @@ #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) #include "include/proxy-wasm/wasmtime.h" #endif +#if defined(PROXY_WASM_HOST_ENGINE_WASMEDGE) +#include "include/proxy-wasm/wasmedge.h" +#endif #if defined(PROXY_WASM_HOST_ENGINE_WAMR) #include "include/proxy-wasm/wamr.h" #endif @@ -144,6 +147,10 @@ class TestVm : public testing::TestWithParam { } else if (engine_ == "wasmtime") { vm = proxy_wasm::createWasmtimeVm(); #endif +#if defined(PROXY_WASM_HOST_ENGINE_WASMEDGE) + } else if (engine_ == "wasmedge") { + vm = proxy_wasm::createWasmEdgeVm(); +#endif #if defined(PROXY_WASM_HOST_ENGINE_WAMR) } else if (engine_ == "wamr") { vm = proxy_wasm::createWamrVm(); diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc index d29437c9b..642ea636f 100644 --- a/test/wasm_vm_test.cc +++ b/test/wasm_vm_test.cc @@ -31,7 +31,7 @@ INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines() }); TEST_P(TestVm, Basic) { - if (engine_ == "wamr") { + if (engine_ == "wamr" || engine_ == "wasmedge") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); } else if (engine_ == "wasmtime" || engine_ == "v8") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); From 61135c5a431cd8d68d73f41025f27d26db1807ac Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 8 Apr 2022 16:10:15 -0500 Subject: [PATCH 200/287] v8: set upper limit for maximum Wasm memory size. (#281) Signed-off-by: Piotr Sikora --- BUILD | 1 + include/proxy-wasm/limits.h | 25 +++++++++++++++ src/v8/v8.cc | 8 +++++ test/BUILD | 2 +- test/runtime_test.cc | 32 ++++++++++++++++++- test/test_data/BUILD | 4 +-- .../{infinite_loop.rs => resource_limits.rs} | 8 +++++ 7 files changed, 76 insertions(+), 4 deletions(-) create mode 100644 include/proxy-wasm/limits.h rename test/test_data/{infinite_loop.rs => resource_limits.rs} (85%) diff --git a/BUILD b/BUILD index 1df703bf1..67d8d89df 100644 --- a/BUILD +++ b/BUILD @@ -23,6 +23,7 @@ filegroup( cc_library( name = "wasm_vm_headers", hdrs = [ + "include/proxy-wasm/limits.h", "include/proxy-wasm/wasm_vm.h", "include/proxy-wasm/word.h", ], diff --git a/include/proxy-wasm/limits.h b/include/proxy-wasm/limits.h new file mode 100644 index 000000000..cb3e569e8 --- /dev/null +++ b/include/proxy-wasm/limits.h @@ -0,0 +1,25 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#pragma once + +// Wasm memory page is always 64 KiB. +#define PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES (64 * 1024) + +// Maximum allowed Wasm memory size. +#ifndef PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES +#define PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES (1024 * 1024 * 1024) +#endif diff --git a/src/v8/v8.cc b/src/v8/v8.cc index dea883252..abad6d514 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -26,11 +26,17 @@ #include #include +#include "include/proxy-wasm/limits.h" + #include "include/v8-version.h" #include "include/v8.h" #include "src/wasm/c-api.h" #include "wasm-api/wasm.hh" +namespace v8::internal { +extern unsigned int FLAG_wasm_max_mem_pages; +} // namespace v8::internal + namespace proxy_wasm { namespace v8 { @@ -39,6 +45,8 @@ wasm::Engine *engine() { static wasm::own engine; std::call_once(init, []() { + ::v8::internal::FLAG_wasm_max_mem_pages = + PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES / PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES; ::v8::V8::EnableWebAssemblyTrapHandler(true); engine = wasm::Engine::make(); }); diff --git a/test/BUILD b/test/BUILD index 3bdd69f24..34481d83e 100644 --- a/test/BUILD +++ b/test/BUILD @@ -56,7 +56,7 @@ cc_test( data = [ "//test/test_data:callback.wasm", "//test/test_data:clock.wasm", - "//test/test_data:infinite_loop.wasm", + "//test/test_data:resource_limits.wasm", "//test/test_data:trap.wasm", ], linkstatic = 1, diff --git a/test/runtime_test.cc b/test/runtime_test.cc index ccce3df69..2d178466a 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -19,6 +19,7 @@ #include #include "include/proxy-wasm/context.h" +#include "include/proxy-wasm/limits.h" #include "include/proxy-wasm/wasm.h" #include "test/utility.h" @@ -86,7 +87,7 @@ TEST_P(TestVm, TerminateExecution) { if (engine_ != "v8") { return; } - auto source = readTestWasmFile("infinite_loop.wasm"); + auto source = readTestWasmFile("resource_limits.wasm"); ASSERT_FALSE(source.empty()); auto wasm = TestWasm(std::move(vm_)); ASSERT_TRUE(wasm.load(source, false)); @@ -112,6 +113,35 @@ TEST_P(TestVm, TerminateExecution) { } } +TEST_P(TestVm, WasmMemoryLimit) { + // TODO(PiotrSikora): enforce memory limits in other engines. + if (engine_ != "v8") { + return; + } + auto source = readTestWasmFile("resource_limits.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + WasmCallVoid<0> infinite_memory; + wasm.wasm_vm()->getFunction("infinite_memory", &infinite_memory); + ASSERT_TRUE(infinite_memory != nullptr); + infinite_memory(wasm.vm_context()); + + EXPECT_GE(wasm.wasm_vm()->getMemorySize(), PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES * 0.95); + EXPECT_LE(wasm.wasm_vm()->getMemorySize(), PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES); + + // Check integration logs. + auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); + EXPECT_TRUE(host->isErrorLogged("Function: infinite_memory failed")); + if (engine_ == "v8") { + EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); + EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); + EXPECT_TRUE(host->isErrorLogged(" - rust_oom")); + } +} + TEST_P(TestVm, Trap) { auto source = readTestWasmFile("trap.wasm"); ASSERT_FALSE(source.empty()); diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 83f781f00..3d09fa57e 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -38,8 +38,8 @@ wasm_rust_binary( ) wasm_rust_binary( - name = "infinite_loop.wasm", - srcs = ["infinite_loop.rs"], + name = "resource_limits.wasm", + srcs = ["resource_limits.rs"], ) wasm_rust_binary( diff --git a/test/test_data/infinite_loop.rs b/test/test_data/resource_limits.rs similarity index 85% rename from test/test_data/infinite_loop.rs rename to test/test_data/resource_limits.rs index 371443e68..4b1d2789e 100644 --- a/test/test_data/infinite_loop.rs +++ b/test/test_data/resource_limits.rs @@ -27,3 +27,11 @@ pub extern "C" fn infinite_loop() { _count += 1; } } + +#[no_mangle] +pub extern "C" fn infinite_memory() { + let mut vec = Vec::new(); + loop { + vec.push(Vec::::with_capacity(16384)); + } +} From 3c703dcc44e7fc24062215e4f3c5c16d616362e8 Mon Sep 17 00:00:00 2001 From: bryanmcquade Date: Mon, 18 Apr 2022 13:20:13 -0400 Subject: [PATCH 201/287] Bound maximum size of random_get buffer. (#284) Signed-off-by: Bryan McQuade --- include/proxy-wasm/limits.h | 7 ++++ src/exports.cc | 7 ++++ test/BUILD | 2 ++ test/exports_test.cc | 68 +++++++++++++++++++++++++++++++++++++ test/test_data/BUILD | 6 ++++ test/test_data/random.rs | 38 +++++++++++++++++++++ 6 files changed, 128 insertions(+) create mode 100644 test/test_data/random.rs diff --git a/include/proxy-wasm/limits.h b/include/proxy-wasm/limits.h index cb3e569e8..d02d4c5e3 100644 --- a/include/proxy-wasm/limits.h +++ b/include/proxy-wasm/limits.h @@ -23,3 +23,10 @@ #ifndef PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES #define PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES (1024 * 1024 * 1024) #endif + +// Maximum allowed random_get buffer size. This value is consistent with +// the JavaScript Crypto.getRandomValues() maximum buffer size. +// See: https://w3c.github.io/webcrypto/#Crypto-method-getRandomValues +#ifndef PROXY_WASM_HOST_WASI_RANDOM_GET_MAX_SIZE_BYTES +#define PROXY_WASM_HOST_WASI_RANDOM_GET_MAX_SIZE_BYTES (64 * 1024) +#endif diff --git a/src/exports.cc b/src/exports.cc index c203946b8..01aeb9623 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -13,6 +13,7 @@ // See the License for the specific language governing permissions and // limitations under the License. // +#include "include/proxy-wasm/limits.h" #include "include/proxy-wasm/wasm.h" #include @@ -884,6 +885,12 @@ Word wasi_unstable_clock_time_get(Word clock_id, uint64_t /*precision*/, // __wasi_errno_t __wasi_random_get(uint8_t *buf, size_t buf_len); Word wasi_unstable_random_get(Word result_buf_ptr, Word buf_len) { + if (buf_len > PROXY_WASM_HOST_WASI_RANDOM_GET_MAX_SIZE_BYTES) { + return 28; // __WASI_EINVAL + } + if (buf_len == 0) { + return 0; // __WASI_ESUCCESS + } auto *context = contextOrEffectiveContext(); std::vector random(buf_len); RAND_bytes(random.data(), random.size()); diff --git a/test/BUILD b/test/BUILD index 34481d83e..93373486d 100644 --- a/test/BUILD +++ b/test/BUILD @@ -74,8 +74,10 @@ cc_test( data = [ "//test/test_data:clock.wasm", "//test/test_data:env.wasm", + "//test/test_data:random.wasm", ], linkstatic = 1, + shard_count = 8, deps = [ ":utility_lib", "//:lib", diff --git a/test/exports_test.cc b/test/exports_test.cc index 40e0359d1..026019c03 100644 --- a/test/exports_test.cc +++ b/test/exports_test.cc @@ -89,5 +89,73 @@ TEST_P(TestVm, Clock) { EXPECT_TRUE(context->isLogged("realtime: ")); } +TEST_P(TestVm, RandomZero) { + auto source = readTestWasmFile("random.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + WasmCallVoid<1> run; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + run(wasm.vm_context(), Word{0}); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogged("random_get(0) succeeded.")); +} + +TEST_P(TestVm, RandomSmall) { + auto source = readTestWasmFile("random.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + WasmCallVoid<1> run; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + run(wasm.vm_context(), Word{32}); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogged("random_get(32) succeeded.")); +} + +TEST_P(TestVm, RandomLarge) { + auto source = readTestWasmFile("random.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + WasmCallVoid<1> run; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + run(wasm.vm_context(), Word{64 * 1024}); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogged("random_get(65536) succeeded.")); +} + +TEST_P(TestVm, RandomTooLarge) { + auto source = readTestWasmFile("random.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + WasmCallVoid<1> run; + wasm.wasm_vm()->getFunction("run", &run); + ASSERT_TRUE(run != nullptr); + run(wasm.vm_context(), Word{65 * 1024}); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogged("random_get(66560) failed.")); +} + } // namespace } // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 3d09fa57e..553d43b14 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -53,3 +53,9 @@ wasm_rust_binary( srcs = ["clock.rs"], wasi = True, ) + +wasm_rust_binary( + name = "random.wasm", + srcs = ["random.rs"], + wasi = True, +) diff --git a/test/test_data/random.rs b/test/test_data/random.rs new file mode 100644 index 000000000..271434bb7 --- /dev/null +++ b/test/test_data/random.rs @@ -0,0 +1,38 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(_: usize) -> *mut u8 { + std::ptr::null_mut() +} + +// TODO(PiotrSikora): switch to "getrandom" crate. +pub mod wasi_snapshot_preview1 { + #[link(wasm_import_module = "wasi_snapshot_preview1")] + extern "C" { + pub fn random_get(buf: *mut u8, buf_len: usize) -> u16; + } +} + +#[no_mangle] +pub extern "C" fn run(size: usize) { + let mut buf: Vec = Vec::with_capacity(size); + match unsafe { wasi_snapshot_preview1::random_get(buf.as_mut_ptr(), size) } { + 0 => println!("random_get({}) succeeded.", size), + _ => println!("random_get({}) failed.", size), + } +} From 828e44a3b7078a377b7a414ede356dca0c8977ff Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Wed, 4 May 2022 00:53:31 -0500 Subject: [PATCH 202/287] Update rules_rust to v0.3.1 (with Rust v1.60.0). (#286) Signed-off-by: Piotr Sikora --- .bazelrc | 3 +- bazel/dependencies.bzl | 4 +- bazel/external/rules_rust.patch | 107 -------------------------------- bazel/repositories.bzl | 8 +-- 4 files changed, 7 insertions(+), 115 deletions(-) delete mode 100644 bazel/external/rules_rust.patch diff --git a/.bazelrc b/.bazelrc index 318aecd53..00f6848f4 100644 --- a/.bazelrc +++ b/.bazelrc @@ -69,5 +69,6 @@ build:linux --cxxopt=-std=c++17 build:macos --cxxopt=-std=c++17 build:windows --cxxopt="/std:c++17" -# Enable runfiles on Windows (enabled by default on other platforms). +# Enable symlinks and runfiles on Windows (enabled by default on other platforms). +startup --windows_enable_symlinks build:windows --enable_runfiles diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 553352e31..95efe8ad0 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -34,7 +34,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.58.1", + version = "1.60.0", ) rust_repository_set( name = "rust_linux_s390x", @@ -43,7 +43,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.58.1", + version = "1.60.0", ) zig_register_toolchains( diff --git a/bazel/external/rules_rust.patch b/bazel/external/rules_rust.patch deleted file mode 100644 index 7a1d0ab9b..000000000 --- a/bazel/external/rules_rust.patch +++ /dev/null @@ -1,107 +0,0 @@ -# Pass CFLAGS and CXXFLAGS to build scripts (https://github.com/bazelbuild/rules_rust/pull/1081). - -diff --git a/cargo/cargo_build_script.bzl b/cargo/cargo_build_script.bzl -index 688fe3143..25e8eabc3 100644 ---- a/cargo/cargo_build_script.bzl -+++ b/cargo/cargo_build_script.bzl -@@ -1,5 +1,5 @@ - # buildifier: disable=module-docstring --load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "C_COMPILE_ACTION_NAME") -+load("@bazel_tools//tools/build_defs/cc:action_names.bzl", "CPP_COMPILE_ACTION_NAME", "C_COMPILE_ACTION_NAME") - load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain") - load("//rust:defs.bzl", "rust_binary", "rust_common") - -@@ -9,7 +9,7 @@ load("//rust/private:rustc.bzl", "BuildInfo", "get_compilation_mode_opts", "get_ - # buildifier: disable=bzl-visibility - load("//rust/private:utils.bzl", "expand_dict_value_locations", "find_cc_toolchain", "find_toolchain", "name_to_crate_name") - --def get_cc_compile_env(cc_toolchain, feature_configuration): -+def get_cc_compile_args_and_env(cc_toolchain, feature_configuration): - """Gather cc environment variables from the given `cc_toolchain` - - Args: -@@ -17,17 +17,31 @@ def get_cc_compile_env(cc_toolchain, feature_configuration): - feature_configuration (FeatureConfiguration): Class used to construct command lines from CROSSTOOL features. - - Returns: -- dict: Returns environment variables to be set for given action. -+ tuple: A tuple of the following items: -+ - (sequence): A flattened C command line flags for given action. -+ - (sequence): A flattened CXX command line flags for given action. -+ - (dict): C environment variables to be set for given action. - """ - compile_variables = cc_common.create_compile_variables( - feature_configuration = feature_configuration, - cc_toolchain = cc_toolchain, - ) -- return cc_common.get_environment_variables( -+ cc_c_args = cc_common.get_memory_inefficient_command_line( - feature_configuration = feature_configuration, - action_name = C_COMPILE_ACTION_NAME, - variables = compile_variables, - ) -+ cc_cxx_args = cc_common.get_memory_inefficient_command_line( -+ feature_configuration = feature_configuration, -+ action_name = CPP_COMPILE_ACTION_NAME, -+ variables = compile_variables, -+ ) -+ cc_env = cc_common.get_environment_variables( -+ feature_configuration = feature_configuration, -+ action_name = C_COMPILE_ACTION_NAME, -+ variables = compile_variables, -+ ) -+ return cc_c_args, cc_cxx_args, cc_env - - def _build_script_impl(ctx): - """The implementation for the `_build_script_run` rule. -@@ -102,7 +116,7 @@ def _build_script_impl(ctx): - env["LDFLAGS"] = " ".join(link_args) - - # MSVC requires INCLUDE to be set -- cc_env = get_cc_compile_env(cc_toolchain, feature_configuration) -+ cc_c_args, cc_cxx_args, cc_env = get_cc_compile_args_and_env(cc_toolchain, feature_configuration) - include = cc_env.get("INCLUDE") - if include: - env["INCLUDE"] = include -@@ -120,6 +134,12 @@ def _build_script_impl(ctx): - if cc_toolchain.sysroot: - env["SYSROOT"] = cc_toolchain.sysroot - -+ # Populate CFLAGS and CXXFLAGS that cc-rs relies on when building from source, in particular -+ # to determine the deployment target when building for apple platforms (`macosx-version-min` -+ # for example, itself derived from the `macos_minimum_os` Bazel argument). -+ env["CFLAGS"] = " ".join(cc_c_args) -+ env["CXXFLAGS"] = " ".join(cc_cxx_args) -+ - for f in ctx.attr.crate_features: - env["CARGO_FEATURE_" + f.upper().replace("-", "_")] = "1" - -diff --git a/test/cargo_build_script/build.rs b/test/cargo_build_script/build.rs -index 68cef7232..4b337b48f 100644 ---- a/test/cargo_build_script/build.rs -+++ b/test/cargo_build_script/build.rs -@@ -5,12 +5,12 @@ fn main() { - std::env::var("TOOL").unwrap() - ); - -- // Assert that the CC and CXX env vars existed and were executable. -+ // Assert that the CC, CXX and LD env vars existed and were executable. - // We don't assert what happens when they're executed (in particular, we don't check for a - // non-zero exit code), but this asserts that it's an existing file which is executable. - // - // Unfortunately we need to shlex the path, because we add a `--sysroot=...` arg to the env var. -- for env_var in &["CC", "CXX"] { -+ for env_var in &["CC", "CXX", "LD"] { - let v = std::env::var(env_var) - .unwrap_or_else(|err| panic!("Error getting {}: {}", env_var, err)); - let (path, args) = if let Some(index) = v.find("--sysroot") { -@@ -24,4 +24,9 @@ fn main() { - .status() - .unwrap(); - } -+ -+ // Assert that some env variables are set. -+ for env_var in &["CFLAGS", "CXXFLAGS", "LDFLAGS"] { -+ assert!(std::env::var(env_var).is_ok()); -+ } - } diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 41726fc6a..03a462ea5 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -66,12 +66,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_rust", - sha256 = "6c26af1bb98276917fcf29ea942615ab375cf9d3c52f15c27fdd176ced3ee906", - strip_prefix = "rules_rust-b3ddf6f096887b757ab1a661662a95d6b2699fa7", + sha256 = "0c57c91a20df12d2b1e5db6c58fd6df21bce0c73940eeafbcb87761c14c28878", + strip_prefix = "rules_rust-0.3.1", # NOTE: Update Rust version in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/b3ddf6f096887b757ab1a661662a95d6b2699fa7.tar.gz", - patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], - patch_args = ["-p1"], + url = "https://github.com/bazelbuild/rules_rust/archive/0.3.1.tar.gz", ) # Core. From 55c93ab1c28845b560b5b46d02ca978aa85cf9aa Mon Sep 17 00:00:00 2001 From: Faseela K Date: Wed, 4 May 2022 17:53:15 +0200 Subject: [PATCH 203/287] wasmtime: update to v0.36.0. (#285) Signed-off-by: Faseela K --- bazel/cargo/wasmtime/BUILD.bazel | 4 +- bazel/cargo/wasmtime/Cargo.raze.lock | 140 ++++---- bazel/cargo/wasmtime/Cargo.toml | 6 +- bazel/cargo/wasmtime/crates.bzl | 302 +++++++++--------- .../remote/BUILD.aho-corasick-0.7.18.bazel | 2 +- ...1.0.56.bazel => BUILD.anyhow-1.0.57.bazel} | 4 +- .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- ....64.bazel => BUILD.backtrace-0.3.65.bazel} | 10 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 2 +- ...l => BUILD.cranelift-bforest-0.83.0.bazel} | 6 +- ...l => BUILD.cranelift-codegen-0.83.0.bazel} | 18 +- ...BUILD.cranelift-codegen-meta-0.83.0.bazel} | 6 +- ...ILD.cranelift-codegen-shared-0.83.0.bazel} | 4 +- ...el => BUILD.cranelift-entity-0.83.0.bazel} | 6 +- ... => BUILD.cranelift-frontend-0.83.0.bazel} | 8 +- ...el => BUILD.cranelift-native-0.83.0.bazel} | 8 +- ...azel => BUILD.cranelift-wasm-0.83.0.bazel} | 14 +- .../remote/BUILD.env_logger-0.8.4.bazel | 2 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 2 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- .../remote/BUILD.getrandom-0.2.6.bazel | 2 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- .../remote/BUILD.indexmap-1.8.1.bazel | 2 +- ...0.2.122.bazel => BUILD.libc-0.2.125.bazel} | 4 +- ...og-0.4.16.bazel => BUILD.log-0.4.17.bazel} | 4 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- ...r-2.4.1.bazel => BUILD.memchr-2.5.0.bazel} | 4 +- .../remote/BUILD.miniz_oxide-0.4.4.bazel | 86 ----- .../remote/BUILD.miniz_oxide-0.5.1.bazel | 55 ++++ .../wasmtime/remote/BUILD.object-0.27.1.bazel | 4 +- .../wasmtime/remote/BUILD.object-0.28.3.bazel | 66 ++++ .../remote/BUILD.proc-macro2-1.0.37.bazel | 2 +- ...-1.0.17.bazel => BUILD.quote-1.0.18.bazel} | 2 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 2 +- .../remote/BUILD.regalloc-0.0.34.bazel | 2 +- .../wasmtime/remote/BUILD.regex-1.5.5.bazel | 2 +- .../wasmtime/remote/BUILD.region-2.2.0.bazel | 2 +- ...0.33.5.bazel => BUILD.rustix-0.33.7.bazel} | 22 +- ....0.136.bazel => BUILD.serde-1.0.137.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.137.bazel} | 8 +- ...yn-1.0.91.bazel => BUILD.syn-1.0.92.bazel} | 8 +- ....30.bazel => BUILD.thiserror-1.0.31.bazel} | 4 +- ...azel => BUILD.thiserror-impl-1.0.31.bazel} | 6 +- ....2.bazel => BUILD.unicode-xid-0.2.3.bazel} | 2 +- ...35.2.bazel => BUILD.wasmtime-0.36.0.bazel} | 30 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 4 +- ... => BUILD.wasmtime-cranelift-0.36.0.bazel} | 22 +- ...el => BUILD.wasmtime-environ-0.36.0.bazel} | 16 +- ....bazel => BUILD.wasmtime-jit-0.36.0.bazel} | 18 +- ... => BUILD.wasmtime-jit-debug-0.36.0.bazel} | 4 +- ...el => BUILD.wasmtime-runtime-0.36.0.bazel} | 30 +- ...azel => BUILD.wasmtime-types-0.36.0.bazel} | 10 +- bazel/repositories.bzl | 6 +- 53 files changed, 526 insertions(+), 461 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.anyhow-1.0.56.bazel => BUILD.anyhow-1.0.57.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.backtrace-0.3.64.bazel => BUILD.backtrace-0.3.65.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.82.2.bazel => BUILD.cranelift-bforest-0.83.0.bazel} (90%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.82.2.bazel => BUILD.cranelift-codegen-0.83.0.bazel} (84%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.82.2.bazel => BUILD.cranelift-codegen-meta-0.83.0.bazel} (90%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.82.2.bazel => BUILD.cranelift-codegen-shared-0.83.0.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.82.2.bazel => BUILD.cranelift-entity-0.83.0.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.82.2.bazel => BUILD.cranelift-frontend-0.83.0.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.82.2.bazel => BUILD.cranelift-native-0.83.0.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.82.2.bazel => BUILD.cranelift-wasm-0.83.0.bazel} (79%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.122.bazel => BUILD.libc-0.2.125.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.log-0.4.16.bazel => BUILD.log-0.4.17.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.memchr-2.4.1.bazel => BUILD.memchr-2.5.0.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.object-0.28.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.quote-1.0.17.bazel => BUILD.quote-1.0.18.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.33.5.bazel => BUILD.rustix-0.33.7.bazel} (80%) rename bazel/cargo/wasmtime/remote/{BUILD.serde-1.0.136.bazel => BUILD.serde-1.0.137.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.serde_derive-1.0.136.bazel => BUILD.serde_derive-1.0.137.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.syn-1.0.91.bazel => BUILD.syn-1.0.92.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.thiserror-1.0.30.bazel => BUILD.thiserror-1.0.31.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.thiserror-impl-1.0.30.bazel => BUILD.thiserror-impl-1.0.31.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.unicode-xid-0.2.2.bazel => BUILD.unicode-xid-0.2.3.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.35.2.bazel => BUILD.wasmtime-0.36.0.bazel} (81%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.35.2.bazel => BUILD.wasmtime-cranelift-0.36.0.bazel} (69%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.35.2.bazel => BUILD.wasmtime-environ-0.36.0.bazel} (79%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.35.2.bazel => BUILD.wasmtime-jit-0.36.0.bazel} (85%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-0.35.2.bazel => BUILD.wasmtime-jit-debug-0.36.0.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.35.2.bazel => BUILD.wasmtime-runtime-0.36.0.bazel} (90%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.35.2.bazel => BUILD.wasmtime-types-0.36.0.bazel} (84%) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index ba9b49dca..93e150a89 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@wasmtime__anyhow__1_0_56//:anyhow", + actual = "@wasmtime__anyhow__1_0_57//:anyhow", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_35_2//:wasmtime", + actual = "@wasmtime__wasmtime__0_36_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 77bdb8c34..666dca2b5 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -26,9 +26,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.56" +version = "1.0.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27" +checksum = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc" [[package]] name = "atty" @@ -49,16 +49,16 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.64" +version = "0.3.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e121dee8023ce33ab248d9ce1493df03c3b38a659b240096fcbd7048ff9c31f" +checksum = "11a17d453482a265fd5f8479f2a3f405566e6ca627837aaddb85af8b1ab8ef61" dependencies = [ "addr2line", "cc", "cfg-if", "libc", "miniz_oxide", - "object", + "object 0.28.3", "rustc-demangle", ] @@ -100,18 +100,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b9956ad3efeb062596e0b25a1091730080cb6483b500bd106b92c7a55e9e0b1" +checksum = "ed44413e7e2fe3260d0ed73e6956ab188b69c10ee92b892e401e0f4f6808c68b" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "efc67870c31cae7d03808dfa430ee9ccda9bd82c61b49b939d925d9155cfc42d" +checksum = "0b5d83f0f26bf213f971f45589d17e5b65e4861f9ed22392b0cbb6eaa5bd329c" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -126,33 +126,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0f0172d25539fcc64f581d3dce0df00e2065b00e1c750e18832d2cf1e0d27e0" +checksum = "6800dc386177df6ecc5a32680607ed8ba1fa0d31a2a59c8c61fbf44826b8191d" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f6cc5717ae2ea849e5c819eb70c95792c2843294d9503700ac55d8d159e2160" +checksum = "c961f85070985ebc8fcdb81b838a5cf842294d1e6ed4852446161c7e246fd455" [[package]] name = "cranelift-entity" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e822e0169d7a078cbc7ed19bca6636752c093e25d994a4febd9914d1118f3945" +checksum = "2347b2b8d1d5429213668f2a8e36c85ee3c73984a2f6a79007e365d3e575e7ed" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf3bc8bd3bb8932e70b71c0de6cba277ae112d4e51dadde2e318f60f2fbe97bc" +checksum = "4cbcdbf7bed29e363568b778649b69dabc3d727256d5d25236096ef693757654" dependencies = [ "cranelift-codegen", "log", @@ -162,9 +162,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8090cade0761622fcb1c805c8ce2c2f085a2467bdee7e21cd9ba399026cf7ac" +checksum = "8f4cdf93552e5ceb2e3c042829ebb4de4378492705f769eadc6a7c6c5251624c" dependencies = [ "cranelift-codegen", "libc", @@ -173,9 +173,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.82.2" +version = "0.83.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be110a4560fa997ba8bc8376a459ec4d8707074f88058a17b29f43c27e983ad0" +checksum = "d8b859d8cb1806f9ad0f59fdc25cbff576345abfad84c1aba483dd2f8e580e5c" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -319,9 +319,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.122" +version = "0.2.125" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec647867e2bf0772e28c8bcde4f0d19a9216916e890543b5a03ed8ef27b8f259" +checksum = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b" [[package]] name = "linux-raw-sys" @@ -331,9 +331,9 @@ checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" [[package]] name = "log" -version = "0.4.16" +version = "0.4.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8" +checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" dependencies = [ "cfg-if", ] @@ -349,9 +349,9 @@ dependencies = [ [[package]] name = "memchr" -version = "2.4.1" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" +checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memoffset" @@ -364,12 +364,11 @@ dependencies = [ [[package]] name = "miniz_oxide" -version = "0.4.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b" +checksum = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082" dependencies = [ "adler", - "autocfg", ] [[package]] @@ -389,6 +388,15 @@ dependencies = [ "memchr", ] +[[package]] +name = "object" +version = "0.28.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "40bec70ba014595f99f7aa110b84331ffe1ee9aece7fe6f387cc7e3ecda4d456" +dependencies = [ + "memchr", +] + [[package]] name = "once_cell" version = "1.10.0" @@ -427,9 +435,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58" +checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" dependencies = [ "proc-macro2", ] @@ -518,9 +526,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.33.5" +version = "0.33.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03627528abcc4a365554d32a9f3bbf67f7694c102cfeda792dc86a2d6057cc85" +checksum = "938a344304321a9da4973b9ff4f9f8db9caf4597dfd9dda6a60b523340a0fff0" dependencies = [ "bitflags", "errno", @@ -532,18 +540,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.136" +version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789" +checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.136" +version = "1.0.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9" +checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" dependencies = [ "proc-macro2", "quote", @@ -564,9 +572,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.91" +version = "1.0.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d" +checksum = "7ff7c592601f11445996a06f8ad0c27f094a58857c2f89e97974ab9235b92c52" dependencies = [ "proc-macro2", "quote", @@ -590,18 +598,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.30" +version = "1.0.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" +checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.30" +version = "1.0.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" +checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" dependencies = [ "proc-macro2", "quote", @@ -610,9 +618,9 @@ dependencies = [ [[package]] name = "unicode-xid" -version = "0.2.2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" +checksum = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04" [[package]] name = "wasi" @@ -628,9 +636,9 @@ checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" [[package]] name = "wasmtime" -version = "0.35.2" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "637f73fff13248d13882246b67a8208d466c36d7b836b783a62903cb96f11b61" +checksum = "4beb256f8514dd3eb85b03bceb422abfff5f07bf564519cbe0abf80462120bc0" dependencies = [ "anyhow", "backtrace", @@ -640,7 +648,7 @@ dependencies = [ "lazy_static", "libc", "log", - "object", + "object 0.27.1", "once_cell", "paste", "psm", @@ -657,7 +665,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.35.2" +version = "0.36.0" dependencies = [ "anyhow", "env_logger", @@ -669,7 +677,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.35.2#59bfe50acaffd69f267946d35abe9f87a3b07e29" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.36.0#c0e58a1e1c22b53e0330829057da6125da89bef1" dependencies = [ "proc-macro2", "quote", @@ -677,9 +685,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.35.2" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2d233418e5f560e8010fe13e60943df8be0685c68cbdf9f588dd846a727f2e4" +checksum = "0e8f126b9c55e9550391617049f468878cb9f4af75f33009be72f0c692e1d2ed" dependencies = [ "anyhow", "cranelift-codegen", @@ -690,7 +698,7 @@ dependencies = [ "gimli", "log", "more-asserts", - "object", + "object 0.27.1", "target-lexicon", "thiserror", "wasmparser", @@ -699,9 +707,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.35.2" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f38f25934156bb5496b3fd30be10c8ef41936330d9c936654ebf4eac02e352e" +checksum = "343cfc7e7604b063ef0429e043a06e077a39bcb1ce3e731abe0414431f2610de" dependencies = [ "anyhow", "cranelift-entity", @@ -709,7 +717,7 @@ dependencies = [ "indexmap", "log", "more-asserts", - "object", + "object 0.27.1", "serde", "target-lexicon", "thiserror", @@ -719,9 +727,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.35.2" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7d3293e643c3b397012a579b025116e5818118a7982373551df8f8b0a4c524" +checksum = "81f3a31bf04f02ec7497ddeda20e14b640b1e4d9e1c55c1ebdb268bf30800e2d" dependencies = [ "addr2line", "anyhow", @@ -730,7 +738,7 @@ dependencies = [ "cpp_demangle", "gimli", "log", - "object", + "object 0.27.1", "region", "rustc-demangle", "rustix", @@ -744,18 +752,18 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "0.35.2" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8b4b40b84a96da6fcd7f2460747564091b9b8dedcc7bd66c0cb741adf451de8" +checksum = "4e725c3a37e49bd95d2d350c9f1b6641ac6e75bc357204e857ac058d0c64b720" dependencies = [ "lazy_static", ] [[package]] name = "wasmtime-runtime" -version = "0.35.2" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b60eb01e3413a54e791a397d556962876902d7481be496b4b9eb1dc68de14fce" +checksum = "2ed30d50ffd763873f49df0c94efa20c17749f375518117d6677cc29b631a1fc" dependencies = [ "anyhow", "backtrace", @@ -778,9 +786,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.35.2" +version = "0.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86cd8d51aa648f2ba5a25bd11a74c08ce2b66796a5bbd5c099ab5db672a2e68f" +checksum = "72080d5bdd54af03de7f5ca8b67dcd8ea36f4dfec75fc89a976ebc847ee1516e" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 1eedb0d3a..9bc63310c 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.35.2" +version = "0.36.0" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.8" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.35.2", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.35.2"} +wasmtime = {version = "0.36.0", default-features = false, features = ['cranelift', 'wasm-backtrace']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.36.0"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index c9efeb8a2..f2d1c047a 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -43,12 +43,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__anyhow__1_0_56", - url = "https://crates.io/api/v1/crates/anyhow/1.0.56/download", + name = "wasmtime__anyhow__1_0_57", + url = "https://crates.io/api/v1/crates/anyhow/1.0.57/download", type = "tar.gz", - sha256 = "4361135be9122e0870de935d7c439aef945b9f9ddd4199a553b5270b49c82a27", - strip_prefix = "anyhow-1.0.56", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.56.bazel"), + sha256 = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc", + strip_prefix = "anyhow-1.0.57", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.57.bazel"), ) maybe( @@ -73,12 +73,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__backtrace__0_3_64", - url = "https://crates.io/api/v1/crates/backtrace/0.3.64/download", + name = "wasmtime__backtrace__0_3_65", + url = "https://crates.io/api/v1/crates/backtrace/0.3.65/download", type = "tar.gz", - sha256 = "5e121dee8023ce33ab248d9ce1493df03c3b38a659b240096fcbd7048ff9c31f", - strip_prefix = "backtrace-0.3.64", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.64.bazel"), + sha256 = "11a17d453482a265fd5f8479f2a3f405566e6ca627837aaddb85af8b1ab8ef61", + strip_prefix = "backtrace-0.3.65", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.65.bazel"), ) maybe( @@ -133,82 +133,82 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.82.2/download", + name = "wasmtime__cranelift_bforest__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.83.0/download", type = "tar.gz", - sha256 = "5b9956ad3efeb062596e0b25a1091730080cb6483b500bd106b92c7a55e9e0b1", - strip_prefix = "cranelift-bforest-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.82.2.bazel"), + sha256 = "ed44413e7e2fe3260d0ed73e6956ab188b69c10ee92b892e401e0f4f6808c68b", + strip_prefix = "cranelift-bforest-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.82.2/download", + name = "wasmtime__cranelift_codegen__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.83.0/download", type = "tar.gz", - sha256 = "efc67870c31cae7d03808dfa430ee9ccda9bd82c61b49b939d925d9155cfc42d", - strip_prefix = "cranelift-codegen-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.82.2.bazel"), + sha256 = "0b5d83f0f26bf213f971f45589d17e5b65e4861f9ed22392b0cbb6eaa5bd329c", + strip_prefix = "cranelift-codegen-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.82.2/download", + name = "wasmtime__cranelift_codegen_meta__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.83.0/download", type = "tar.gz", - sha256 = "b0f0172d25539fcc64f581d3dce0df00e2065b00e1c750e18832d2cf1e0d27e0", - strip_prefix = "cranelift-codegen-meta-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.82.2.bazel"), + sha256 = "6800dc386177df6ecc5a32680607ed8ba1fa0d31a2a59c8c61fbf44826b8191d", + strip_prefix = "cranelift-codegen-meta-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.82.2/download", + name = "wasmtime__cranelift_codegen_shared__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.83.0/download", type = "tar.gz", - sha256 = "8f6cc5717ae2ea849e5c819eb70c95792c2843294d9503700ac55d8d159e2160", - strip_prefix = "cranelift-codegen-shared-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.82.2.bazel"), + sha256 = "c961f85070985ebc8fcdb81b838a5cf842294d1e6ed4852446161c7e246fd455", + strip_prefix = "cranelift-codegen-shared-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.82.2/download", + name = "wasmtime__cranelift_entity__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.83.0/download", type = "tar.gz", - sha256 = "e822e0169d7a078cbc7ed19bca6636752c093e25d994a4febd9914d1118f3945", - strip_prefix = "cranelift-entity-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.82.2.bazel"), + sha256 = "2347b2b8d1d5429213668f2a8e36c85ee3c73984a2f6a79007e365d3e575e7ed", + strip_prefix = "cranelift-entity-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.82.2/download", + name = "wasmtime__cranelift_frontend__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.83.0/download", type = "tar.gz", - sha256 = "bf3bc8bd3bb8932e70b71c0de6cba277ae112d4e51dadde2e318f60f2fbe97bc", - strip_prefix = "cranelift-frontend-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.82.2.bazel"), + sha256 = "4cbcdbf7bed29e363568b778649b69dabc3d727256d5d25236096ef693757654", + strip_prefix = "cranelift-frontend-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-native/0.82.2/download", + name = "wasmtime__cranelift_native__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.83.0/download", type = "tar.gz", - sha256 = "a8090cade0761622fcb1c805c8ce2c2f085a2467bdee7e21cd9ba399026cf7ac", - strip_prefix = "cranelift-native-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.82.2.bazel"), + sha256 = "8f4cdf93552e5ceb2e3c042829ebb4de4378492705f769eadc6a7c6c5251624c", + strip_prefix = "cranelift-native-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.83.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_82_2", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.82.2/download", + name = "wasmtime__cranelift_wasm__0_83_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.83.0/download", type = "tar.gz", - sha256 = "be110a4560fa997ba8bc8376a459ec4d8707074f88058a17b29f43c27e983ad0", - strip_prefix = "cranelift-wasm-0.82.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.82.2.bazel"), + sha256 = "d8b859d8cb1806f9ad0f59fdc25cbff576345abfad84c1aba483dd2f8e580e5c", + strip_prefix = "cranelift-wasm-0.83.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.83.0.bazel"), ) maybe( @@ -363,12 +363,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_122", - url = "https://crates.io/api/v1/crates/libc/0.2.122/download", + name = "wasmtime__libc__0_2_125", + url = "https://crates.io/api/v1/crates/libc/0.2.125/download", type = "tar.gz", - sha256 = "ec647867e2bf0772e28c8bcde4f0d19a9216916e890543b5a03ed8ef27b8f259", - strip_prefix = "libc-0.2.122", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.122.bazel"), + sha256 = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b", + strip_prefix = "libc-0.2.125", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.125.bazel"), ) maybe( @@ -383,12 +383,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__log__0_4_16", - url = "https://crates.io/api/v1/crates/log/0.4.16/download", + name = "wasmtime__log__0_4_17", + url = "https://crates.io/api/v1/crates/log/0.4.17/download", type = "tar.gz", - sha256 = "6389c490849ff5bc16be905ae24bc913a9c8892e19b2341dbc175e14c341c2b8", - strip_prefix = "log-0.4.16", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.16.bazel"), + sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e", + strip_prefix = "log-0.4.17", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.17.bazel"), ) maybe( @@ -403,12 +403,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__memchr__2_4_1", - url = "https://crates.io/api/v1/crates/memchr/2.4.1/download", + name = "wasmtime__memchr__2_5_0", + url = "https://crates.io/api/v1/crates/memchr/2.5.0/download", type = "tar.gz", - sha256 = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a", - strip_prefix = "memchr-2.4.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memchr-2.4.1.bazel"), + sha256 = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d", + strip_prefix = "memchr-2.5.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memchr-2.5.0.bazel"), ) maybe( @@ -423,12 +423,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__miniz_oxide__0_4_4", - url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.4/download", + name = "wasmtime__miniz_oxide__0_5_1", + url = "https://crates.io/api/v1/crates/miniz_oxide/0.5.1/download", type = "tar.gz", - sha256 = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b", - strip_prefix = "miniz_oxide-0.4.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.miniz_oxide-0.4.4.bazel"), + sha256 = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082", + strip_prefix = "miniz_oxide-0.5.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.miniz_oxide-0.5.1.bazel"), ) maybe( @@ -451,6 +451,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.27.1.bazel"), ) + maybe( + http_archive, + name = "wasmtime__object__0_28_3", + url = "https://crates.io/api/v1/crates/object/0.28.3/download", + type = "tar.gz", + sha256 = "40bec70ba014595f99f7aa110b84331ffe1ee9aece7fe6f387cc7e3ecda4d456", + strip_prefix = "object-0.28.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.28.3.bazel"), + ) + maybe( http_archive, name = "wasmtime__once_cell__1_10_0", @@ -503,12 +513,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__quote__1_0_17", - url = "https://crates.io/api/v1/crates/quote/1.0.17/download", + name = "wasmtime__quote__1_0_18", + url = "https://crates.io/api/v1/crates/quote/1.0.18/download", type = "tar.gz", - sha256 = "632d02bff7f874a36f33ea8bb416cd484b90cc66c1194b1a1110d067a7013f58", - strip_prefix = "quote-1.0.17", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.17.bazel"), + sha256 = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1", + strip_prefix = "quote-1.0.18", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.18.bazel"), ) maybe( @@ -603,32 +613,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_33_5", - url = "https://crates.io/api/v1/crates/rustix/0.33.5/download", + name = "wasmtime__rustix__0_33_7", + url = "https://crates.io/api/v1/crates/rustix/0.33.7/download", type = "tar.gz", - sha256 = "03627528abcc4a365554d32a9f3bbf67f7694c102cfeda792dc86a2d6057cc85", - strip_prefix = "rustix-0.33.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.5.bazel"), + sha256 = "938a344304321a9da4973b9ff4f9f8db9caf4597dfd9dda6a60b523340a0fff0", + strip_prefix = "rustix-0.33.7", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.7.bazel"), ) maybe( http_archive, - name = "wasmtime__serde__1_0_136", - url = "https://crates.io/api/v1/crates/serde/1.0.136/download", + name = "wasmtime__serde__1_0_137", + url = "https://crates.io/api/v1/crates/serde/1.0.137/download", type = "tar.gz", - sha256 = "ce31e24b01e1e524df96f1c2fdd054405f8d7376249a5110886fb4b658484789", - strip_prefix = "serde-1.0.136", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.136.bazel"), + sha256 = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1", + strip_prefix = "serde-1.0.137", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.137.bazel"), ) maybe( http_archive, - name = "wasmtime__serde_derive__1_0_136", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.136/download", + name = "wasmtime__serde_derive__1_0_137", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.137/download", type = "tar.gz", - sha256 = "08597e7152fcd306f41838ed3e37be9eaeed2b61c42e2117266a554fab4662f9", - strip_prefix = "serde_derive-1.0.136", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.136.bazel"), + sha256 = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be", + strip_prefix = "serde_derive-1.0.137", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.137.bazel"), ) maybe( @@ -653,12 +663,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__syn__1_0_91", - url = "https://crates.io/api/v1/crates/syn/1.0.91/download", + name = "wasmtime__syn__1_0_92", + url = "https://crates.io/api/v1/crates/syn/1.0.92/download", type = "tar.gz", - sha256 = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d", - strip_prefix = "syn-1.0.91", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.91.bazel"), + sha256 = "7ff7c592601f11445996a06f8ad0c27f094a58857c2f89e97974ab9235b92c52", + strip_prefix = "syn-1.0.92", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.92.bazel"), ) maybe( @@ -683,32 +693,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__thiserror__1_0_30", - url = "https://crates.io/api/v1/crates/thiserror/1.0.30/download", + name = "wasmtime__thiserror__1_0_31", + url = "https://crates.io/api/v1/crates/thiserror/1.0.31/download", type = "tar.gz", - sha256 = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417", - strip_prefix = "thiserror-1.0.30", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.30.bazel"), + sha256 = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a", + strip_prefix = "thiserror-1.0.31", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.31.bazel"), ) maybe( http_archive, - name = "wasmtime__thiserror_impl__1_0_30", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.30/download", + name = "wasmtime__thiserror_impl__1_0_31", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.31/download", type = "tar.gz", - sha256 = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b", - strip_prefix = "thiserror-impl-1.0.30", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.30.bazel"), + sha256 = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a", + strip_prefix = "thiserror-impl-1.0.31", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.31.bazel"), ) maybe( http_archive, - name = "wasmtime__unicode_xid__0_2_2", - url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", + name = "wasmtime__unicode_xid__0_2_3", + url = "https://crates.io/api/v1/crates/unicode-xid/0.2.3/download", type = "tar.gz", - sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", - strip_prefix = "unicode-xid-0.2.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-xid-0.2.2.bazel"), + sha256 = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04", + strip_prefix = "unicode-xid-0.2.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-xid-0.2.3.bazel"), ) maybe( @@ -733,81 +743,81 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmtime__0_35_2", - url = "https://crates.io/api/v1/crates/wasmtime/0.35.2/download", + name = "wasmtime__wasmtime__0_36_0", + url = "https://crates.io/api/v1/crates/wasmtime/0.36.0/download", type = "tar.gz", - sha256 = "637f73fff13248d13882246b67a8208d466c36d7b836b783a62903cb96f11b61", - strip_prefix = "wasmtime-0.35.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.35.2.bazel"), + sha256 = "4beb256f8514dd3eb85b03bceb422abfff5f07bf564519cbe0abf80462120bc0", + strip_prefix = "wasmtime-0.36.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.36.0.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "59bfe50acaffd69f267946d35abe9f87a3b07e29", + commit = "c0e58a1e1c22b53e0330829057da6125da89bef1", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_35_2", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.35.2/download", + name = "wasmtime__wasmtime_cranelift__0_36_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.36.0/download", type = "tar.gz", - sha256 = "a2d233418e5f560e8010fe13e60943df8be0685c68cbdf9f588dd846a727f2e4", - strip_prefix = "wasmtime-cranelift-0.35.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.35.2.bazel"), + sha256 = "0e8f126b9c55e9550391617049f468878cb9f4af75f33009be72f0c692e1d2ed", + strip_prefix = "wasmtime-cranelift-0.36.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.36.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_35_2", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.35.2/download", + name = "wasmtime__wasmtime_environ__0_36_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.36.0/download", type = "tar.gz", - sha256 = "0f38f25934156bb5496b3fd30be10c8ef41936330d9c936654ebf4eac02e352e", - strip_prefix = "wasmtime-environ-0.35.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.35.2.bazel"), + sha256 = "343cfc7e7604b063ef0429e043a06e077a39bcb1ce3e731abe0414431f2610de", + strip_prefix = "wasmtime-environ-0.36.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.36.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_35_2", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.35.2/download", + name = "wasmtime__wasmtime_jit__0_36_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.36.0/download", type = "tar.gz", - sha256 = "bf7d3293e643c3b397012a579b025116e5818118a7982373551df8f8b0a4c524", - strip_prefix = "wasmtime-jit-0.35.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.35.2.bazel"), + sha256 = "81f3a31bf04f02ec7497ddeda20e14b640b1e4d9e1c55c1ebdb268bf30800e2d", + strip_prefix = "wasmtime-jit-0.36.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.36.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__0_35_2", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.35.2/download", + name = "wasmtime__wasmtime_jit_debug__0_36_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.36.0/download", type = "tar.gz", - sha256 = "f8b4b40b84a96da6fcd7f2460747564091b9b8dedcc7bd66c0cb741adf451de8", - strip_prefix = "wasmtime-jit-debug-0.35.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.35.2.bazel"), + sha256 = "4e725c3a37e49bd95d2d350c9f1b6641ac6e75bc357204e857ac058d0c64b720", + strip_prefix = "wasmtime-jit-debug-0.36.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.36.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_35_2", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.35.2/download", + name = "wasmtime__wasmtime_runtime__0_36_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.36.0/download", type = "tar.gz", - sha256 = "b60eb01e3413a54e791a397d556962876902d7481be496b4b9eb1dc68de14fce", - strip_prefix = "wasmtime-runtime-0.35.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.35.2.bazel"), + sha256 = "2ed30d50ffd763873f49df0c94efa20c17749f375518117d6677cc29b631a1fc", + strip_prefix = "wasmtime-runtime-0.36.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.36.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_35_2", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.35.2/download", + name = "wasmtime__wasmtime_types__0_36_0", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.36.0/download", type = "tar.gz", - sha256 = "86cd8d51aa648f2ba5a25bd11a74c08ce2b66796a5bbd5c099ab5db672a2e68f", - strip_prefix = "wasmtime-types-0.35.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.35.2.bazel"), + sha256 = "72080d5bdd54af03de7f5ca8b67dcd8ea36f4dfec75fc89a976ebc847ee1516e", + strip_prefix = "wasmtime-types-0.36.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.36.0.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel index e43497742..356e1c86d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel @@ -52,6 +52,6 @@ rust_library( version = "0.7.18", # buildifier: leave-alone deps = [ - "@wasmtime__memchr__2_4_1//:memchr", + "@wasmtime__memchr__2_5_0//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.56.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.57.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.56.bazel rename to bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.57.bazel index 203451dba..380bae889 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.56.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.57.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.56", + version = "1.0.57", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=anyhow", "manual", ], - version = "1.0.56", + version = "1.0.57", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 908aa6a2f..875bfd388 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.65.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel rename to bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.65.bazel index 7412548ca..b2bc85560 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.64.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.65.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.64", + version = "0.3.65", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -87,15 +87,15 @@ rust_library( "crate-name=backtrace", "manual", ], - version = "0.3.64", + version = "0.3.65", # buildifier: leave-alone deps = [ ":backtrace_build_script", "@wasmtime__addr2line__0_17_0//:addr2line", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__libc__0_2_122//:libc", - "@wasmtime__miniz_oxide__0_4_4//:miniz_oxide", - "@wasmtime__object__0_27_1//:object", + "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__miniz_oxide__0_5_1//:miniz_oxide", + "@wasmtime__object__0_28_3//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index e22d4cc7b..8cd35cae1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -50,7 +50,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__serde__1_0_137//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.83.0.bazel similarity index 90% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.83.0.bazel index 1d8a1ab4e..b60663dc0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.83.0.bazel @@ -38,7 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", + "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.83.0.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.83.0.bazel index 80e556ff7..7ef333759 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.83.0.bazel @@ -50,7 +50,7 @@ cargo_build_script( ], crate_root = "build.rs", data = glob(["**"]), - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -58,10 +58,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.82.2", + version = "0.83.0", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_82_2//:cranelift_codegen_meta", + "@wasmtime__cranelift_codegen_meta__0_83_0//:cranelift_codegen_meta", ], ) @@ -78,7 +78,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -87,15 +87,15 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_82_2//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_82_2//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_83_0//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_83_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__log__0_4_17//:log", "@wasmtime__regalloc__0_0_34//:regalloc", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.83.0.bazel similarity index 90% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.83.0.bazel index f60ee49f6..2f4a6997c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.83.0.bazel @@ -38,7 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_82_2//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_83_0//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.83.0.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.83.0.bazel index d818c39b6..7da881127 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.83.0.bazel @@ -38,7 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.83.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.83.0.bazel index d60852dbf..a9c7a1f44 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.83.0.bazel @@ -40,7 +40,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -49,9 +49,9 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__serde__1_0_137//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.83.0.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.83.0.bazel index 7d5323562..cf962ea34 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.83.0.bazel @@ -40,7 +40,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -49,11 +49,11 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", + "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.83.0.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.83.0.bazel index 71ba717a5..32e081f73 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.83.0.bazel @@ -42,7 +42,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.83.0.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.83.0.bazel index 939b958dd..63b92cc17 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.82.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.83.0.bazel @@ -40,7 +40,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.82.2", + version = "0.83.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_82_2//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_83_0//:cranelift_frontend", "@wasmtime__itertools__0_10_3//:itertools", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_8_0//:smallvec", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_types__0_35_2//:wasmtime_types", + "@wasmtime__wasmtime_types__0_36_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel index 9dd434612..dddda905b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel @@ -57,7 +57,7 @@ rust_library( deps = [ "@wasmtime__atty__0_2_14//:atty", "@wasmtime__humantime__2_1_0//:humantime", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__log__0_4_17//:log", "@wasmtime__regex__1_5_5//:regex", "@wasmtime__termcolor__1_1_3//:termcolor", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index 4543020b2..95685a4b2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index 3f14bcdae..ba82b8b9d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel index b8563f269..1c5a6c4ae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index aa6f7e667..6d39e6e45 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel index 0603fefbd..5cb538bda 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel @@ -92,7 +92,7 @@ rust_library( deps = [ ":indexmap_build_script", "@wasmtime__hashbrown__0_11_2//:hashbrown", - "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__serde__1_0_137//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.122.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.125.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.122.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.125.bazel index 74c179895..3aac623b6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.122.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.125.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.122", + version = "0.2.125", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.122", + version = "0.2.125", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.16.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.17.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.log-0.4.16.bazel rename to bazel/cargo/wasmtime/remote/BUILD.log-0.4.17.bazel index c4f20dc6d..ae8c3f762 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.16.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.17.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.4.16", + version = "0.4.17", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=log", "manual", ], - version = "0.4.16", + version = "0.4.17", # buildifier: leave-alone deps = [ ":log_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index cfb337a53..4d94e8232 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.4.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.5.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.memchr-2.4.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.memchr-2.5.0.bazel index eeecd0e64..383e0b4e1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.4.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.5.0.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "2.4.1", + version = "2.5.0", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=memchr", "manual", ], - version = "2.4.1", + version = "2.5.0", # buildifier: leave-alone deps = [ ":memchr_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel deleted file mode 100644 index 734d45524..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.4.4.bazel +++ /dev/null @@ -1,86 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR (Zlib OR Apache-2.0)" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "miniz_oxide_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.4", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__autocfg__1_1_0//:autocfg", - ], -) - -rust_library( - name = "miniz_oxide", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=miniz_oxide", - "manual", - ], - version = "0.4.4", - # buildifier: leave-alone - deps = [ - ":miniz_oxide_build_script", - "@wasmtime__adler__1_0_2//:adler", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.1.bazel new file mode 100644 index 000000000..59257ccba --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR (Zlib OR Apache-2.0)" +]) + +# Generated Targets + +rust_library( + name = "miniz_oxide", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=miniz_oxide", + "manual", + ], + version = "0.5.1", + # buildifier: leave-alone + deps = [ + "@wasmtime__adler__1_0_2//:adler", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel index 767ffa3ae..b6a7e2fd0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel @@ -35,7 +35,6 @@ rust_library( name = "object", srcs = glob(["**/*.rs"]), crate_features = [ - "archive", "coff", "crc32fast", "elf", @@ -44,7 +43,6 @@ rust_library( "pe", "read_core", "std", - "unaligned", "write", "write_core", ], @@ -64,7 +62,7 @@ rust_library( deps = [ "@wasmtime__crc32fast__1_3_2//:crc32fast", "@wasmtime__indexmap__1_8_1//:indexmap", - "@wasmtime__memchr__2_4_1//:memchr", + "@wasmtime__memchr__2_5_0//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.28.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.28.3.bazel new file mode 100644 index 000000000..bee587e54 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.28.3.bazel @@ -0,0 +1,66 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +rust_library( + name = "object", + srcs = glob(["**/*.rs"]), + crate_features = [ + "archive", + "coff", + "elf", + "macho", + "pe", + "read_core", + "unaligned", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=object", + "manual", + ], + version = "0.28.3", + # buildifier: leave-alone + deps = [ + "@wasmtime__memchr__2_5_0//:memchr", + ], +) + +# Unsupported target "integration" with type "test" omitted + +# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel index 54a9631ec..8cef12c89 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel @@ -84,7 +84,7 @@ rust_library( # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@wasmtime__unicode_xid__0_2_2//:unicode_xid", + "@wasmtime__unicode_xid__0_2_3//:unicode_xid", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.18.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.quote-1.0.17.bazel rename to bazel/cargo/wasmtime/remote/BUILD.quote-1.0.18.bazel index ec4eb82d1..aa26b5c2b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.17.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.18.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=quote", "manual", ], - version = "1.0.17", + version = "1.0.18", # buildifier: leave-alone deps = [ "@wasmtime__proc_macro2__1_0_37//:proc_macro2", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index fa8ebbe9f..6a8372b6e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel index 8b110fdb7..0007832d4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel @@ -51,7 +51,7 @@ rust_library( version = "0.0.34", # buildifier: leave-alone deps = [ - "@wasmtime__log__0_4_16//:log", + "@wasmtime__log__0_4_17//:log", "@wasmtime__rustc_hash__1_1_0//:rustc_hash", "@wasmtime__smallvec__1_8_0//:smallvec", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel index 0d24833b0..431260735 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel @@ -71,7 +71,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__aho_corasick__0_7_18//:aho_corasick", - "@wasmtime__memchr__2_4_1//:memchr", + "@wasmtime__memchr__2_5_0//:memchr", "@wasmtime__regex_syntax__0_6_25//:regex_syntax", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel index 9c1971443..2fbd87aba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel similarity index 80% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel index 8f27532a0..d6204a391 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel @@ -58,12 +58,12 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.33.5", + version = "0.33.7", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) + # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", @@ -74,7 +74,15 @@ cargo_build_script( ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + # cfg(all(windows, not(target_vendor = "uwp"))) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -140,14 +148,14 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.33.5", + version = "0.33.7", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", "@wasmtime__io_lifetimes__0_5_3//:io_lifetimes", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) + # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", @@ -158,7 +166,7 @@ rust_library( ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -178,7 +186,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@wasmtime__errno__0_2_8//:errno", - "@wasmtime__libc__0_2_122//:libc", + "@wasmtime__libc__0_2_125//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.136.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.137.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.serde-1.0.136.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde-1.0.137.bazel index 311d8f4c9..0af188e4e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.136.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.137.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.136", + version = "1.0.137", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@wasmtime__serde_derive__1_0_136//:serde_derive", + "@wasmtime__serde_derive__1_0_137//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -87,7 +87,7 @@ rust_library( "crate-name=serde", "manual", ], - version = "1.0.136", + version = "1.0.137", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.137.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.137.bazel index cc27a93d9..88bdabfb8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.136.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.137.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.136", + version = "1.0.137", visibility = ["//visibility:private"], deps = [ ], @@ -78,12 +78,12 @@ rust_proc_macro( "crate-name=serde_derive", "manual", ], - version = "1.0.136", + version = "1.0.137", # buildifier: leave-alone deps = [ ":serde_derive_build_script", "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_17//:quote", - "@wasmtime__syn__1_0_91//:syn", + "@wasmtime__quote__1_0_18//:quote", + "@wasmtime__syn__1_0_92//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.91.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.92.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.syn-1.0.91.bazel rename to bazel/cargo/wasmtime/remote/BUILD.syn-1.0.92.bazel index 56c48d97b..af36eb37e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.91.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.92.bazel @@ -61,7 +61,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.91", + version = "1.0.92", visibility = ["//visibility:private"], deps = [ ], @@ -94,13 +94,13 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.91", + version = "1.0.92", # buildifier: leave-alone deps = [ ":syn_build_script", "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_17//:quote", - "@wasmtime__unicode_xid__0_2_2//:unicode_xid", + "@wasmtime__quote__1_0_18//:quote", + "@wasmtime__unicode_xid__0_2_3//:unicode_xid", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.30.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.31.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.30.bazel rename to bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.31.bazel index d6c042ae0..7730827d6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.30.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.31.bazel @@ -40,7 +40,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@wasmtime__thiserror_impl__1_0_30//:thiserror_impl", + "@wasmtime__thiserror_impl__1_0_31//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", @@ -50,7 +50,7 @@ rust_library( "crate-name=thiserror", "manual", ], - version = "1.0.30", + version = "1.0.31", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel rename to bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel index 2361253e2..b5f3f74bd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.30.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel @@ -47,11 +47,11 @@ rust_proc_macro( "crate-name=thiserror-impl", "manual", ], - version = "1.0.30", + version = "1.0.31", # buildifier: leave-alone deps = [ "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_17//:quote", - "@wasmtime__syn__1_0_91//:syn", + "@wasmtime__quote__1_0_18//:quote", + "@wasmtime__syn__1_0_92//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.3.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.3.bazel index 4f3bb923c..92b0eaade 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.3.bazel @@ -50,7 +50,7 @@ rust_library( "crate-name=unicode-xid", "manual", ], - version = "0.2.2", + version = "0.2.3", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.36.0.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.36.0.bazel index 85ec89023..7154d9e2a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.35.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.36.0.bazel @@ -43,12 +43,14 @@ cargo_build_script( build_script_env = { }, crate_features = [ + "backtrace", "cranelift", + "wasm-backtrace", "wasmtime-cranelift", ], crate_root = "build.rs", data = glob(["**"]), - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -56,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.35.2", + version = "0.36.0", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -76,12 +78,14 @@ rust_library( aliases = { }, crate_features = [ + "backtrace", "cranelift", + "wasm-backtrace", "wasmtime-cranelift", ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", proc_macro_deps = [ "@wasmtime__paste__1_0_7//:paste", ], @@ -93,29 +97,29 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.35.2", + version = "0.36.0", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@wasmtime__anyhow__1_0_56//:anyhow", - "@wasmtime__backtrace__0_3_64//:backtrace", + "@wasmtime__anyhow__1_0_57//:anyhow", + "@wasmtime__backtrace__0_3_65//:backtrace", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_8_1//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_122//:libc", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_27_1//:object", "@wasmtime__once_cell__1_10_0//:once_cell", "@wasmtime__psm__0_1_18//:psm", "@wasmtime__region__2_2_0//:region", - "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__serde__1_0_137//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_35_2//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_35_2//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_35_2//:wasmtime_runtime", + "@wasmtime__wasmtime_cranelift__0_36_0//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_36_0//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_36_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index 9b5450c41..86aac72db 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -38,7 +38,7 @@ rust_proc_macro( ], crate_root = "crates/c-api/macros/src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -51,6 +51,6 @@ rust_proc_macro( # buildifier: leave-alone deps = [ "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_17//:quote", + "@wasmtime__quote__1_0_18//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.36.0.bazel similarity index 69% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.36.0.bazel index e47bd1c5d..42bb963b5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.35.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.36.0.bazel @@ -38,7 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -47,22 +47,22 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.35.2", + version = "0.36.0", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_56//:anyhow", - "@wasmtime__cranelift_codegen__0_82_2//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_82_2//:cranelift_frontend", - "@wasmtime__cranelift_native__0_82_2//:cranelift_native", - "@wasmtime__cranelift_wasm__0_82_2//:cranelift_wasm", + "@wasmtime__anyhow__1_0_57//:anyhow", + "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_83_0//:cranelift_frontend", + "@wasmtime__cranelift_native__0_83_0//:cranelift_native", + "@wasmtime__cranelift_wasm__0_83_0//:cranelift_wasm", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__log__0_4_17//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_27_1//:object", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", - "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__thiserror__1_0_31//:thiserror", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", + "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.36.0.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.36.0.bazel index d16edc805..8a28da88b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.35.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.36.0.bazel @@ -38,7 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -47,20 +47,20 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.35.2", + version = "0.36.0", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_56//:anyhow", - "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", + "@wasmtime__anyhow__1_0_57//:anyhow", + "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__indexmap__1_8_1//:indexmap", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__log__0_4_17//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_27_1//:object", - "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__serde__1_0_137//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", - "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__thiserror__1_0_31//:thiserror", "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_types__0_35_2//:wasmtime_types", + "@wasmtime__wasmtime_types__0_36_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.36.0.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.36.0.bazel index 44da5368c..46736df69 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.35.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.36.0.bazel @@ -40,7 +40,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -49,24 +49,24 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.35.2", + version = "0.36.0", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", - "@wasmtime__anyhow__1_0_56//:anyhow", + "@wasmtime__anyhow__1_0_57//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_27_1//:object", "@wasmtime__region__2_2_0//:region", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", - "@wasmtime__serde__1_0_136//:serde", + "@wasmtime__serde__1_0_137//:serde", "@wasmtime__target_lexicon__0_12_3//:target_lexicon", - "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_35_2//:wasmtime_runtime", + "@wasmtime__thiserror__1_0_31//:thiserror", + "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_36_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -77,7 +77,7 @@ rust_library( "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__rustix__0_33_5//:rustix", + "@wasmtime__rustix__0_33_7//:rustix", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.36.0.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.36.0.bazel index 6424a9510..3533af15e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.35.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.36.0.bazel @@ -40,7 +40,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "0.35.2", + version = "0.36.0", # buildifier: leave-alone deps = [ "@wasmtime__lazy_static__1_4_0//:lazy_static", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.36.0.bazel similarity index 90% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.36.0.bazel index 3e21db095..e91c2b127 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.35.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.36.0.bazel @@ -43,11 +43,12 @@ cargo_build_script( build_script_env = { }, crate_features = [ - "default", + "backtrace", + "wasm-backtrace", ], crate_root = "build.rs", data = glob(["**"]), - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -55,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.35.2", + version = "0.36.0", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -107,11 +108,12 @@ rust_library( aliases = { }, crate_features = [ - "default", + "backtrace", + "wasm-backtrace", ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -120,23 +122,23 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.35.2", + version = "0.36.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@wasmtime__anyhow__1_0_56//:anyhow", - "@wasmtime__backtrace__0_3_64//:backtrace", + "@wasmtime__anyhow__1_0_57//:anyhow", + "@wasmtime__backtrace__0_3_65//:backtrace", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_8_1//:indexmap", - "@wasmtime__libc__0_2_122//:libc", - "@wasmtime__log__0_4_16//:log", + "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__log__0_4_17//:log", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__rand__0_8_5//:rand", "@wasmtime__region__2_2_0//:region", - "@wasmtime__thiserror__1_0_30//:thiserror", - "@wasmtime__wasmtime_environ__0_35_2//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__0_35_2//:wasmtime_jit_debug", + "@wasmtime__thiserror__1_0_31//:thiserror", + "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__0_36_0//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -176,7 +178,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_33_5//:rustix", + "@wasmtime__rustix__0_33_7//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.36.0.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.36.0.bazel index bf5e260a0..8bb566916 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.35.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.36.0.bazel @@ -38,7 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.35.2", + version = "0.36.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_82_2//:cranelift_entity", - "@wasmtime__serde__1_0_136//:serde", - "@wasmtime__thiserror__1_0_30//:thiserror", + "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", + "@wasmtime__serde__1_0_137//:serde", + "@wasmtime__thiserror__1_0_31//:thiserror", "@wasmtime__wasmparser__0_83_0//:wasmparser", ], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 03a462ea5..8b9751af3 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -201,9 +201,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "9dcb51313f9d6a67169f70759411cddf511000b0372e57532e638441100aac9c", - strip_prefix = "wasmtime-0.35.2", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.35.2.tar.gz", + sha256 = "6e10746bd5141eebb1ba235b91cc042b743d7240f636be163a2c01bc0444ba68", + strip_prefix = "wasmtime-0.36.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.36.0.tar.gz", ) maybe( From 0b75c21e0d629ec3df8e782b83d98e12b31fc5b6 Mon Sep 17 00:00:00 2001 From: Yi-Ying He Date: Wed, 15 Jun 2022 06:51:49 +0800 Subject: [PATCH 204/287] WasmEdge: update to 0.10.0. (#290) Signed-off-by: YiYing He --- bazel/repositories.bzl | 6 ++-- src/wasmedge/types.h | 2 ++ src/wasmedge/wasmedge.cc | 78 +++++++++++++++++++++------------------- 3 files changed, 46 insertions(+), 40 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 8b9751af3..0fc2da6ea 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -185,9 +185,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_wasmedge_wasmedge", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmedge.BUILD", - sha256 = "6724955a967a1457bcf5dc1787a8da95feaba45d3b498ae42768ebf48f587299", - strip_prefix = "WasmEdge-proxy-wasm-0.9.1", - url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.9.1.tar.gz", + sha256 = "4cff44e8c805ed4364d326ff1dd40e3aeb21ba1a11388372386eea1ccc7f93dd", + strip_prefix = "WasmEdge-proxy-wasm-0.10.0", + url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.10.0.tar.gz", ) native.bind( diff --git a/src/wasmedge/types.h b/src/wasmedge/types.h index e51dede17..b6cd21952 100644 --- a/src/wasmedge/types.h +++ b/src/wasmedge/types.h @@ -23,5 +23,7 @@ using WasmEdgeLoaderPtr = common::CSmartPtr; using WasmEdgeExecutorPtr = common::CSmartPtr; using WasmEdgeASTModulePtr = common::CSmartPtr; +using WasmEdgeModulePtr = + common::CSmartPtr; } // namespace proxy_wasm::WasmEdge diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc index 7d3a4e408..0a0a10d45 100644 --- a/src/wasmedge/wasmedge.cc +++ b/src/wasmedge/wasmedge.cc @@ -212,11 +212,11 @@ using HostFuncDataPtr = std::unique_ptr; struct HostModuleData { HostModuleData(const std::string_view modname) { - cxt_ = WasmEdge_ImportObjectCreate(WasmEdge_StringWrap(modname.data(), modname.length())); + cxt_ = WasmEdge_ModuleInstanceCreate(WasmEdge_StringWrap(modname.data(), modname.length())); } - ~HostModuleData() { WasmEdge_ImportObjectDelete(cxt_); } + ~HostModuleData() { WasmEdge_ModuleInstanceDelete(cxt_); } - WasmEdge_ImportObjectContext *cxt_; + WasmEdge_ModuleInstanceContext *cxt_; }; using HostModuleDataPtr = std::unique_ptr; @@ -228,6 +228,7 @@ class WasmEdge : public WasmVm { validator_ = WasmEdge_ValidatorCreate(nullptr); executor_ = WasmEdge_ExecutorCreate(nullptr, nullptr); store_ = nullptr; + ast_module_ = nullptr; module_ = nullptr; memory_ = nullptr; } @@ -285,11 +286,12 @@ class WasmEdge : public WasmVm { WasmEdgeValidatorPtr validator_; WasmEdgeExecutorPtr executor_; WasmEdgeStorePtr store_; - WasmEdgeASTModulePtr module_; + WasmEdgeASTModulePtr ast_module_; + WasmEdgeModulePtr module_; WasmEdge_MemoryInstanceContext *memory_; std::unordered_map host_functions_; - std::unordered_map import_objects_; + std::unordered_map host_modules_; std::unordered_set module_functions_; }; @@ -303,22 +305,25 @@ bool WasmEdge::load(std::string_view bytecode, std::string_view /*precompiled*/, } res = WasmEdge_ValidatorValidate(validator_.get(), mod); if (!WasmEdge_ResultOK(res)) { + WasmEdge_ASTModuleDelete(mod); return false; } - module_ = mod; + ast_module_ = mod; return true; } bool WasmEdge::link(std::string_view /*debug_name*/) { - assert(module_ != nullptr); + assert(ast_module_ != nullptr); // Create store and register imports. - store_ = WasmEdge_StoreCreate(); + if (store_ == nullptr) { + store_ = WasmEdge_StoreCreate(); + } if (store_ == nullptr) { return false; } WasmEdge_Result res; - for (auto &&it : import_objects_) { + for (auto &&it : host_modules_) { res = WasmEdge_ExecutorRegisterImport(executor_.get(), store_.get(), it.second->cxt_); if (!WasmEdge_ResultOK(res)) { fail(FailState::UnableToInitializeCode, @@ -327,30 +332,33 @@ bool WasmEdge::link(std::string_view /*debug_name*/) { } } // Instantiate module. - res = WasmEdge_ExecutorInstantiate(executor_.get(), store_.get(), module_.get()); + WasmEdge_ModuleInstanceContext *mod = nullptr; + res = WasmEdge_ExecutorInstantiate(executor_.get(), &mod, store_.get(), ast_module_.get()); if (!WasmEdge_ResultOK(res)) { fail(FailState::UnableToInitializeCode, std::string("Failed to link Wasm module: ") + std::string(WasmEdge_ResultGetMessage(res))); return false; } // Get the function and memory exports. - uint32_t memory_num = WasmEdge_StoreListMemoryLength(store_.get()); + uint32_t memory_num = WasmEdge_ModuleInstanceListMemoryLength(mod); if (memory_num > 0) { WasmEdge_String name; - WasmEdge_StoreListMemory(store_.get(), &name, 1); - memory_ = WasmEdge_StoreFindMemory(store_.get(), name); + WasmEdge_ModuleInstanceListMemory(mod, &name, 1); + memory_ = WasmEdge_ModuleInstanceFindMemory(mod, name); if (memory_ == nullptr) { + WasmEdge_ModuleInstanceDelete(mod); return false; } } - uint32_t func_num = WasmEdge_StoreListFunctionLength(store_.get()); + uint32_t func_num = WasmEdge_ModuleInstanceListFunctionLength(mod); if (func_num > 0) { std::vector names(func_num); - WasmEdge_StoreListFunction(store_.get(), &names[0], func_num); + WasmEdge_ModuleInstanceListFunction(mod, &names[0], func_num); for (auto i = 0; i < func_num; i++) { module_functions_.insert(std::string(names[i].Buf, names[i].Length)); } } + module_ = mod; return true; } @@ -398,10 +406,10 @@ bool WasmEdge::setWord(uint64_t pointer, Word word) { template void WasmEdge::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, void (*function)(Args...)) { - auto it = import_objects_.find(std::string(module_name)); - if (it == import_objects_.end()) { - import_objects_.emplace(module_name, std::make_unique(module_name)); - it = import_objects_.find(std::string(module_name)); + auto it = host_modules_.find(std::string(module_name)); + if (it == host_modules_.end()) { + host_modules_.emplace(module_name, std::make_unique(module_name)); + it = host_modules_.find(std::string(module_name)); } auto data = std::make_unique(module_name, function_name); @@ -435,7 +443,7 @@ void WasmEdge::registerHostFunctionImpl(std::string_view module_name, return; } - WasmEdge_ImportObjectAddFunction( + WasmEdge_ModuleInstanceAddFunction( it->second->cxt_, WasmEdge_StringWrap(function_name.data(), function_name.length()), hostfunc_cxt); host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), @@ -445,10 +453,10 @@ void WasmEdge::registerHostFunctionImpl(std::string_view module_name, template void WasmEdge::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, R (*function)(Args...)) { - auto it = import_objects_.find(std::string(module_name)); - if (it == import_objects_.end()) { - import_objects_.emplace(module_name, std::make_unique(module_name)); - it = import_objects_.find(std::string(module_name)); + auto it = host_modules_.find(std::string(module_name)); + if (it == host_modules_.end()) { + host_modules_.emplace(module_name, std::make_unique(module_name)); + it = host_modules_.find(std::string(module_name)); } auto data = std::make_unique(module_name, function_name); @@ -482,7 +490,7 @@ void WasmEdge::registerHostFunctionImpl(std::string_view module_name, return; } - WasmEdge_ImportObjectAddFunction( + WasmEdge_ModuleInstanceAddFunction( it->second->cxt_, WasmEdge_StringWrap(function_name.data(), function_name.length()), hostfunc_cxt); host_functions_.insert_or_assign(std::string(module_name) + "." + std::string(function_name), @@ -492,8 +500,8 @@ void WasmEdge::registerHostFunctionImpl(std::string_view module_name, template void WasmEdge::getModuleFunctionImpl(std::string_view function_name, std::function *function) { - auto *func_cxt = WasmEdge_StoreFindFunction( - store_.get(), WasmEdge_StringWrap(function_name.data(), function_name.length())); + auto *func_cxt = WasmEdge_ModuleInstanceFindFunction( + module_.get(), WasmEdge_StringWrap(function_name.data(), function_name.length())); if (!func_cxt) { *function = nullptr; return; @@ -521,7 +529,7 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, return; } - *function = [function_name, this](ContextBase *context, Args... args) -> void { + *function = [function_name, func_cxt, this](ContextBase *context, Args... args) -> void { WasmEdge_Value params[] = {makeVal(args)...}; const bool log = cmpLogLevel(LogLevel::trace); if (log) { @@ -530,9 +538,7 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, } SaveRestoreContext saved_context(context); WasmEdge_Result res = - WasmEdge_ExecutorInvoke(executor_.get(), store_.get(), - WasmEdge_StringWrap(function_name.data(), function_name.length()), - params, sizeof...(Args), nullptr, 0); + WasmEdge_ExecutorInvoke(executor_.get(), func_cxt, params, sizeof...(Args), nullptr, 0); if (!WasmEdge_ResultOK(res)) { fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed:\n" + WasmEdge_ResultGetMessage(res)); @@ -547,8 +553,8 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, template void WasmEdge::getModuleFunctionImpl(std::string_view function_name, std::function *function) { - auto *func_cxt = WasmEdge_StoreFindFunction( - store_.get(), WasmEdge_StringWrap(function_name.data(), function_name.length())); + auto *func_cxt = WasmEdge_ModuleInstanceFindFunction( + module_.get(), WasmEdge_StringWrap(function_name.data(), function_name.length())); if (!func_cxt) { *function = nullptr; return; @@ -576,7 +582,7 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, return; } - *function = [function_name, this](ContextBase *context, Args... args) -> R { + *function = [function_name, func_cxt, this](ContextBase *context, Args... args) -> R { WasmEdge_Value params[] = {makeVal(args)...}; WasmEdge_Value results[1]; const bool log = cmpLogLevel(LogLevel::trace); @@ -586,9 +592,7 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, } SaveRestoreContext saved_context(context); WasmEdge_Result res = - WasmEdge_ExecutorInvoke(executor_.get(), store_.get(), - WasmEdge_StringWrap(function_name.data(), function_name.length()), - params, sizeof...(Args), results, 1); + WasmEdge_ExecutorInvoke(executor_.get(), func_cxt, params, sizeof...(Args), results, 1); if (!WasmEdge_ResultOK(res)) { fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed:\n" + WasmEdge_ResultGetMessage(res)); From 73fe589869a0effb0b6e2ed5d018ce8d7768a265 Mon Sep 17 00:00:00 2001 From: chaoqin-li1123 <55518381+chaoqin-li1123@users.noreply.github.com> Date: Wed, 15 Jun 2022 14:34:39 -0400 Subject: [PATCH 205/287] Export emscripten_notify_memory_growth(). (#288) Signed-off-by: chaoqin-li1123 --- include/proxy-wasm/exports.h | 1 + src/exports.cc | 2 ++ src/wasm.cc | 1 + 3 files changed, 4 insertions(+) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 2b3d0db74..325d28ff3 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -177,6 +177,7 @@ void wasi_unstable_proc_exit(Word); Word wasi_unstable_clock_time_get(Word, uint64_t, Word); Word wasi_unstable_random_get(Word, Word); Word pthread_equal(Word left, Word right); +void emscripten_notify_memory_growth(Word); // Support for embedders, not exported to Wasm. diff --git a/src/exports.cc b/src/exports.cc index 01aeb9623..bdefddeb6 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -908,6 +908,8 @@ void wasi_unstable_proc_exit(Word /*exit_code*/) { Word pthread_equal(Word left, Word right) { return static_cast(left == right); } +void emscripten_notify_memory_growth(Word /*memory_index*/) {} + Word set_tick_period_milliseconds(Word period_milliseconds) { TimerToken token = 0; return contextOrEffectiveContext()->setTimerPeriod(std::chrono::milliseconds(period_milliseconds), diff --git a/src/wasm.cc b/src/wasm.cc index 3c0473e87..2295e9880 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -89,6 +89,7 @@ void WasmBase::registerCallbacks() { &ConvertFunctionWordToUint32::convertFunctionWordToUint32) _REGISTER(pthread_equal); + _REGISTER(emscripten_notify_memory_growth); #undef _REGISTER // Register the capability with the VM if it has been allowed, otherwise register a stub. From 0746300de0c645f6a87a5fc51954c6fdb86bb7e6 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 12 Jul 2022 02:40:59 -0500 Subject: [PATCH 206/287] wasmtime: update to v0.38.1. (#292) Signed-off-by: Piotr Sikora --- bazel/cargo/wasmtime/BUILD.bazel | 8 +- bazel/cargo/wasmtime/Cargo.raze.lock | 253 +++++---- bazel/cargo/wasmtime/Cargo.toml | 15 +- bazel/cargo/wasmtime/cranelift-isle.patch | 9 + bazel/cargo/wasmtime/crates.bzl | 488 ++++++++++-------- .../wasmtime/remote/BUILD.ahash-0.7.6.bazel | 201 ++++++++ ...1.0.57.bazel => BUILD.anyhow-1.0.58.bazel} | 4 +- .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- ....65.bazel => BUILD.backtrace-0.3.66.bazel} | 10 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 2 +- .../remote/BUILD.byteorder-1.4.3.bazel | 58 +++ ...l => BUILD.cranelift-bforest-0.85.1.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.85.1.bazel} | 19 +- ...BUILD.cranelift-codegen-meta-0.85.1.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.85.1.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.85.1.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.85.1.bazel} | 8 +- .../remote/BUILD.cranelift-isle-0.85.1.bazel | 88 ++++ ...el => BUILD.cranelift-native-0.85.1.bazel} | 8 +- ...azel => BUILD.cranelift-wasm-0.85.1.bazel} | 14 +- .../remote/BUILD.crc32fast-1.3.2.bazel | 2 - ...r-1.6.1.bazel => BUILD.either-1.7.0.bazel} | 4 +- ...8.4.bazel => BUILD.env_logger-0.9.0.bazel} | 4 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 2 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- .../wasmtime/remote/BUILD.fxhash-0.2.1.bazel | 57 ++ ....2.6.bazel => BUILD.getrandom-0.2.7.bazel} | 6 +- .../wasmtime/remote/BUILD.gimli-0.26.1.bazel | 2 +- .../remote/BUILD.hashbrown-0.11.2.bazel | 3 +- ....18.bazel => BUILD.hashbrown-0.12.2.bazel} | 24 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- ...1.8.1.bazel => BUILD.indexmap-1.9.1.bazel} | 12 +- .../remote/BUILD.itertools-0.10.3.bazel | 2 +- ...0.2.125.bazel => BUILD.libc-0.2.126.bazel} | 4 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- ....1.bazel => BUILD.miniz_oxide-0.5.3.bazel} | 2 +- ...0.27.1.bazel => BUILD.object-0.28.4.bazel} | 7 +- ...0.28.3.bazel => BUILD.object-0.29.0.bazel} | 2 +- ...0.0.bazel => BUILD.once_cell-1.13.0.bazel} | 2 +- ...7.bazel => BUILD.proc-macro2-1.0.40.bazel} | 6 +- ...sm-0.1.18.bazel => BUILD.psm-0.1.19.bazel} | 4 +- .../wasmtime/remote/BUILD.quote-1.0.20.bazel | 93 ++++ .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 2 +- .../remote/BUILD.rand_core-0.6.3.bazel | 2 +- ...0.34.bazel => BUILD.regalloc2-0.2.3.bazel} | 12 +- ...ex-1.5.5.bazel => BUILD.regex-1.6.0.bazel} | 4 +- ....bazel => BUILD.regex-syntax-0.6.27.bazel} | 2 +- .../wasmtime/remote/BUILD.region-2.2.0.bazel | 2 +- .../wasmtime/remote/BUILD.rustix-0.33.7.bazel | 2 +- ....0.137.bazel => BUILD.serde-1.0.139.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.139.bazel} | 10 +- ...bazel => BUILD.slice-group-by-0.3.0.bazel} | 10 +- ...1.8.0.bazel => BUILD.smallvec-1.9.0.bazel} | 2 +- ...yn-1.0.92.bazel => BUILD.syn-1.0.98.bazel} | 10 +- ...azel => BUILD.target-lexicon-0.12.4.bazel} | 4 +- .../remote/BUILD.thiserror-impl-1.0.31.bazel | 6 +- ....bazel => BUILD.unicode-ident-1.0.1.bazel} | 13 +- .../remote/BUILD.version_check-0.9.4.bazel | 54 ++ ....wasi-0.11.0+wasi-snapshot-preview1.bazel} | 2 +- ....0.bazel => BUILD.wasmparser-0.85.0.bazel} | 5 +- ...36.0.bazel => BUILD.wasmtime-0.38.1.bazel} | 36 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 4 +- ... => BUILD.wasmtime-cranelift-0.38.1.bazel} | 22 +- ...el => BUILD.wasmtime-environ-0.38.1.bazel} | 18 +- ....bazel => BUILD.wasmtime-jit-0.38.1.bazel} | 14 +- ... => BUILD.wasmtime-jit-debug-0.38.1.bazel} | 2 +- ...el => BUILD.wasmtime-runtime-0.38.1.bazel} | 20 +- ...azel => BUILD.wasmtime-types-0.38.1.bazel} | 8 +- bazel/repositories.bzl | 6 +- 69 files changed, 1206 insertions(+), 517 deletions(-) create mode 100644 bazel/cargo/wasmtime/cranelift-isle.patch create mode 100644 bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel rename bazel/cargo/wasmtime/remote/{BUILD.anyhow-1.0.57.bazel => BUILD.anyhow-1.0.58.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.backtrace-0.3.65.bazel => BUILD.backtrace-0.3.66.bazel} (92%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.83.0.bazel => BUILD.cranelift-bforest-0.85.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.83.0.bazel => BUILD.cranelift-codegen-0.85.1.bazel} (79%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.83.0.bazel => BUILD.cranelift-codegen-meta-0.85.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.83.0.bazel => BUILD.cranelift-codegen-shared-0.85.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.83.0.bazel => BUILD.cranelift-entity-0.85.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.83.0.bazel => BUILD.cranelift-frontend-0.85.1.bazel} (85%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.85.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.83.0.bazel => BUILD.cranelift-native-0.85.1.bazel} (87%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.83.0.bazel => BUILD.cranelift-wasm-0.85.1.bazel} (76%) rename bazel/cargo/wasmtime/remote/{BUILD.either-1.6.1.bazel => BUILD.either-1.7.0.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.env_logger-0.8.4.bazel => BUILD.env_logger-0.9.0.bazel} (96%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.getrandom-0.2.6.bazel => BUILD.getrandom-0.2.7.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.quote-1.0.18.bazel => BUILD.hashbrown-0.12.2.bazel} (67%) rename bazel/cargo/wasmtime/remote/{BUILD.indexmap-1.8.1.bazel => BUILD.indexmap-1.9.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.125.bazel => BUILD.libc-0.2.126.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.miniz_oxide-0.5.1.bazel => BUILD.miniz_oxide-0.5.3.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.object-0.27.1.bazel => BUILD.object-0.28.4.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.object-0.28.3.bazel => BUILD.object-0.29.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.once_cell-1.10.0.bazel => BUILD.once_cell-1.13.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.proc-macro2-1.0.37.bazel => BUILD.proc-macro2-1.0.40.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.psm-0.1.18.bazel => BUILD.psm-0.1.19.bazel} (97%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel rename bazel/cargo/wasmtime/remote/{BUILD.regalloc-0.0.34.bazel => BUILD.regalloc2-0.2.3.bazel} (80%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-1.5.5.bazel => BUILD.regex-1.6.0.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-syntax-0.6.25.bazel => BUILD.regex-syntax-0.6.27.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.serde-1.0.137.bazel => BUILD.serde-1.0.139.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.serde_derive-1.0.137.bazel => BUILD.serde_derive-1.0.139.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.rustc-hash-1.1.0.bazel => BUILD.slice-group-by-0.3.0.bazel} (84%) rename bazel/cargo/wasmtime/remote/{BUILD.smallvec-1.8.0.bazel => BUILD.smallvec-1.9.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.syn-1.0.92.bazel => BUILD.syn-1.0.98.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.target-lexicon-0.12.3.bazel => BUILD.target-lexicon-0.12.4.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.unicode-xid-0.2.3.bazel => BUILD.unicode-ident-1.0.1.bazel} (81%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel => BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.83.0.bazel => BUILD.wasmparser-0.85.0.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.36.0.bazel => BUILD.wasmtime-0.38.1.bazel} (75%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.36.0.bazel => BUILD.wasmtime-cranelift-0.38.1.bazel} (67%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.36.0.bazel => BUILD.wasmtime-environ-0.38.1.bazel} (73%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.36.0.bazel => BUILD.wasmtime-jit-0.38.1.bazel} (87%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-0.36.0.bazel => BUILD.wasmtime-jit-debug-0.38.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.36.0.bazel => BUILD.wasmtime-runtime-0.38.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.36.0.bazel => BUILD.wasmtime-types-0.38.1.bazel} (85%) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 93e150a89..2f60511c9 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@wasmtime__anyhow__1_0_57//:anyhow", + actual = "@wasmtime__anyhow__1_0_58//:anyhow", tags = [ "cargo-raze", "manual", @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@wasmtime__env_logger__0_8_4//:env_logger", + actual = "@wasmtime__env_logger__0_9_0//:env_logger", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@wasmtime__once_cell__1_10_0//:once_cell", + actual = "@wasmtime__once_cell__1_13_0//:once_cell", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_36_0//:wasmtime", + actual = "@wasmtime__wasmtime__0_38_1//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 666dca2b5..8f2838985 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -15,6 +15,17 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" +[[package]] +name = "ahash" +version = "0.7.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +dependencies = [ + "getrandom", + "once_cell", + "version_check", +] + [[package]] name = "aho-corasick" version = "0.7.18" @@ -26,9 +37,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.57" +version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc" +checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704" [[package]] name = "atty" @@ -49,16 +60,16 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.65" +version = "0.3.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11a17d453482a265fd5f8479f2a3f405566e6ca627837aaddb85af8b1ab8ef61" +checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7" dependencies = [ "addr2line", "cc", "cfg-if", "libc", "miniz_oxide", - "object 0.28.3", + "object 0.29.0", "rustc-demangle", ] @@ -77,6 +88,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "byteorder" +version = "1.4.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" + [[package]] name = "cc" version = "1.0.73" @@ -100,59 +117,60 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed44413e7e2fe3260d0ed73e6956ab188b69c10ee92b892e401e0f4f6808c68b" +checksum = "7901fbba05decc537080b07cb3f1cadf53be7b7602ca8255786288a8692ae29a" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b5d83f0f26bf213f971f45589d17e5b65e4861f9ed22392b0cbb6eaa5bd329c" +checksum = "37ba1b45d243a4a28e12d26cd5f2507da74e77c45927d40de8b6ffbf088b46b5" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-entity", + "cranelift-isle", "gimli", "log", - "regalloc", + "regalloc2", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6800dc386177df6ecc5a32680607ed8ba1fa0d31a2a59c8c61fbf44826b8191d" +checksum = "54cc30032171bf230ce22b99c07c3a1de1221cb5375bd6dbe6dbe77d0eed743c" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c961f85070985ebc8fcdb81b838a5cf842294d1e6ed4852446161c7e246fd455" +checksum = "a23f2672426d2bb4c9c3ef53e023076cfc4d8922f0eeaebaf372c92fae8b5c69" [[package]] name = "cranelift-entity" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2347b2b8d1d5429213668f2a8e36c85ee3c73984a2f6a79007e365d3e575e7ed" +checksum = "886c59a5e0de1f06dbb7da80db149c75de10d5e2caca07cdd9fef8a5918a6336" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cbcdbf7bed29e363568b778649b69dabc3d727256d5d25236096ef693757654" +checksum = "ace74eeca11c439a9d4ed1a5cb9df31a54cd0f7fbddf82c8ce4ea8e9ad2a8fe0" dependencies = [ "cranelift-codegen", "log", @@ -160,11 +178,17 @@ dependencies = [ "target-lexicon", ] +[[package]] +name = "cranelift-isle" +version = "0.85.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "db1ae52a5cc2cad0d86fdd3dcb16b7217d2f1e65ab4f5814aa4f014ad335fa43" + [[package]] name = "cranelift-native" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f4cdf93552e5ceb2e3c042829ebb4de4378492705f769eadc6a7c6c5251624c" +checksum = "dadcfb7852900780d37102bce5698bcd401736403f07b52e714ff7a180e0e22f" dependencies = [ "cranelift-codegen", "libc", @@ -173,9 +197,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.83.0" +version = "0.85.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8b859d8cb1806f9ad0f59fdc25cbff576345abfad84c1aba483dd2f8e580e5c" +checksum = "c84e3410960389110b88f97776f39f6d2c8becdaa4cd59e390e6b76d9d0e7190" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -198,15 +222,15 @@ dependencies = [ [[package]] name = "either" -version = "1.6.1" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" +checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be" [[package]] name = "env_logger" -version = "0.8.4" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3" +checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" dependencies = [ "atty", "humantime", @@ -242,11 +266,20 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +[[package]] +name = "fxhash" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" +dependencies = [ + "byteorder", +] + [[package]] name = "getrandom" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad" +checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" dependencies = [ "cfg-if", "libc", @@ -269,6 +302,15 @@ name = "hashbrown" version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +dependencies = [ + "ahash", +] + +[[package]] +name = "hashbrown" +version = "0.12.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "607c8a29735385251a339424dd462993c0fed8fa09d378f259377df08c126022" [[package]] name = "hermit-abi" @@ -287,12 +329,12 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indexmap" -version = "1.8.1" +version = "1.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee" +checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", - "hashbrown", + "hashbrown 0.12.2", "serde", ] @@ -319,9 +361,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.125" +version = "0.2.126" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b" +checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "linux-raw-sys" @@ -364,9 +406,9 @@ dependencies = [ [[package]] name = "miniz_oxide" -version = "0.5.1" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082" +checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc" dependencies = [ "adler", ] @@ -379,29 +421,30 @@ checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" [[package]] name = "object" -version = "0.27.1" +version = "0.28.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9" +checksum = "e42c982f2d955fac81dd7e1d0e1426a7d702acd9c98d19ab01083a6a0328c424" dependencies = [ "crc32fast", + "hashbrown 0.11.2", "indexmap", "memchr", ] [[package]] name = "object" -version = "0.28.3" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "40bec70ba014595f99f7aa110b84331ffe1ee9aece7fe6f387cc7e3ecda4d456" +checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.10.0" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9" +checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1" [[package]] name = "paste" @@ -417,27 +460,27 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "proc-macro2" -version = "1.0.37" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1" +checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7" dependencies = [ - "unicode-xid", + "unicode-ident", ] [[package]] name = "psm" -version = "0.1.18" +version = "0.1.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "871372391786ccec00d3c5d3d6608905b3d4db263639cfe075d3b60a736d115a" +checksum = "accd89aa18fbf9533a581355a22438101fe9c2ed8c9e2f0dcf520552a3afddf2" dependencies = [ "cc", ] [[package]] name = "quote" -version = "1.0.18" +version = "1.0.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1" +checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" dependencies = [ "proc-macro2", ] @@ -473,21 +516,22 @@ dependencies = [ ] [[package]] -name = "regalloc" -version = "0.0.34" +name = "regalloc2" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62446b1d3ebf980bdc68837700af1d77b37bc430e524bf95319c6eada2a4cc02" +checksum = "4a8d23b35d7177df3b9d31ed8a9ab4bf625c668be77a319d4f5efd4a5257701c" dependencies = [ + "fxhash", "log", - "rustc-hash", + "slice-group-by", "smallvec", ] [[package]] name = "regex" -version = "1.5.5" +version = "1.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286" +checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" dependencies = [ "aho-corasick", "memchr", @@ -496,9 +540,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.25" +version = "0.6.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" +checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" [[package]] name = "region" @@ -518,12 +562,6 @@ version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" -[[package]] -name = "rustc-hash" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" - [[package]] name = "rustix" version = "0.33.7" @@ -540,29 +578,35 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.137" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1" +checksum = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.137" +version = "1.0.139" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be" +checksum = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb" dependencies = [ "proc-macro2", "quote", "syn", ] +[[package]] +name = "slice-group-by" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" + [[package]] name = "smallvec" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83" +checksum = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1" [[package]] name = "stable_deref_trait" @@ -572,20 +616,20 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.92" +version = "1.0.98" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ff7c592601f11445996a06f8ad0c27f094a58857c2f89e97974ab9235b92c52" +checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" dependencies = [ "proc-macro2", "quote", - "unicode-xid", + "unicode-ident", ] [[package]] name = "target-lexicon" -version = "0.12.3" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7fa7e55043acb85fca6b3c01485a2eeb6b69c5d21002e273c79e465f43b7ac1" +checksum = "c02424087780c9b71cc96799eaeddff35af2bc513278cda5c99fc1f5d026d3c1" [[package]] name = "termcolor" @@ -617,28 +661,37 @@ dependencies = [ ] [[package]] -name = "unicode-xid" -version = "0.2.3" +name = "unicode-ident" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" + +[[package]] +name = "version_check" +version = "0.9.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04" +checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" [[package]] name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasmparser" -version = "0.83.0" +version = "0.85.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a" +checksum = "570460c58b21e9150d2df0eaaedbb7816c34bcec009ae0dcc976e40ba81463e7" +dependencies = [ + "indexmap", +] [[package]] name = "wasmtime" -version = "0.36.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4beb256f8514dd3eb85b03bceb422abfff5f07bf564519cbe0abf80462120bc0" +checksum = "e76e2b2833bb0ece666ccdbed7b71b617d447da11f1bb61f4f2bab2648f745ee" dependencies = [ "anyhow", "backtrace", @@ -648,7 +701,7 @@ dependencies = [ "lazy_static", "libc", "log", - "object 0.27.1", + "object 0.28.4", "once_cell", "paste", "psm", @@ -665,7 +718,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-bazel" -version = "0.36.0" +version = "0.38.1" dependencies = [ "anyhow", "env_logger", @@ -677,7 +730,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.36.0#c0e58a1e1c22b53e0330829057da6125da89bef1" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.38.1#9e2adfb34531610d691f74dd3f559bc5b800eb02" dependencies = [ "proc-macro2", "quote", @@ -685,9 +738,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.36.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e8f126b9c55e9550391617049f468878cb9f4af75f33009be72f0c692e1d2ed" +checksum = "5dc0f80afa1ce97083a7168e6b6948d015d6237369e9f4a511d38c9c4ac8fbb9" dependencies = [ "anyhow", "cranelift-codegen", @@ -698,7 +751,7 @@ dependencies = [ "gimli", "log", "more-asserts", - "object 0.27.1", + "object 0.28.4", "target-lexicon", "thiserror", "wasmparser", @@ -707,9 +760,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.36.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "343cfc7e7604b063ef0429e043a06e077a39bcb1ce3e731abe0414431f2610de" +checksum = "0816d9365196f1f447060087e0f87239ccded830bd54970a1168b0c9c8e824c9" dependencies = [ "anyhow", "cranelift-entity", @@ -717,7 +770,7 @@ dependencies = [ "indexmap", "log", "more-asserts", - "object 0.27.1", + "object 0.28.4", "serde", "target-lexicon", "thiserror", @@ -727,9 +780,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.36.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81f3a31bf04f02ec7497ddeda20e14b640b1e4d9e1c55c1ebdb268bf30800e2d" +checksum = "5c687f33cfa0f89ec1646929d0ff102087052cf9f0d15533de56526b0da0d1b3" dependencies = [ "addr2line", "anyhow", @@ -738,7 +791,7 @@ dependencies = [ "cpp_demangle", "gimli", "log", - "object 0.27.1", + "object 0.28.4", "region", "rustc-demangle", "rustix", @@ -752,18 +805,18 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "0.36.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e725c3a37e49bd95d2d350c9f1b6641ac6e75bc357204e857ac058d0c64b720" +checksum = "b252d1d025f94f3954ba2111f12f3a22826a0764a11c150c2d46623115a69e27" dependencies = [ "lazy_static", ] [[package]] name = "wasmtime-runtime" -version = "0.36.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2ed30d50ffd763873f49df0c94efa20c17749f375518117d6677cc29b631a1fc" +checksum = "ace251693103c9facbbd7df87a29a75e68016e48bc83c09133f2fda6b575e0ab" dependencies = [ "anyhow", "backtrace", @@ -786,9 +839,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.36.0" +version = "0.38.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72080d5bdd54af03de7f5ca8b67dcd8ea36f4dfec75fc89a976ebc847ee1516e" +checksum = "d129b0487a95986692af8708ffde9c50b0568dcefd79200941d475713b4f40bb" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 9bc63310c..94080d0ab 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,17 +1,17 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.36.0" +version = "0.38.1" [lib] path = "fake_lib.rs" [dependencies] -env_logger = "0.8" +env_logger = "0.9" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.36.0", default-features = false, features = ['cranelift', 'wasm-backtrace']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.36.0"} +wasmtime = {version = "0.38.1", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.38.1"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" @@ -20,6 +20,12 @@ genmode = "Remote" package_aliases_dir = "." workspace_path = "//bazel/cargo/wasmtime" +[package.metadata.raze.crates.cranelift-isle.'*'] +patches = [ + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", +] +patch_args = ["-p4"] + [package.metadata.raze.crates.rustix.'*'] additional_flags = [ "--cfg=feature=\\\"cc\\\"", @@ -27,4 +33,3 @@ additional_flags = [ buildrs_additional_deps = [ "@wasmtime__cc__1_0_73//:cc", ] - diff --git a/bazel/cargo/wasmtime/cranelift-isle.patch b/bazel/cargo/wasmtime/cranelift-isle.patch new file mode 100644 index 000000000..5fca1d9d0 --- /dev/null +++ b/bazel/cargo/wasmtime/cranelift-isle.patch @@ -0,0 +1,9 @@ +diff --git a/cranelift/isle/isle/src/lib.rs b/cranelift/isle/isle/src/lib.rs +index 1164dafc3..4a9ad01ad 100644 +--- a/cranelift/isle/isle/src/lib.rs ++++ b/cranelift/isle/isle/src/lib.rs +@@ -1,4 +1,3 @@ +-#![doc = include_str!("../README.md")] + #![deny(missing_docs)] + + use std::collections::hash_map::Entry; diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index f2d1c047a..13e205e57 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -31,6 +31,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.adler-1.0.2.bazel"), ) + maybe( + http_archive, + name = "wasmtime__ahash__0_7_6", + url = "https://crates.io/api/v1/crates/ahash/0.7.6/download", + type = "tar.gz", + sha256 = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47", + strip_prefix = "ahash-0.7.6", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ahash-0.7.6.bazel"), + ) + maybe( http_archive, name = "wasmtime__aho_corasick__0_7_18", @@ -43,12 +53,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__anyhow__1_0_57", - url = "https://crates.io/api/v1/crates/anyhow/1.0.57/download", + name = "wasmtime__anyhow__1_0_58", + url = "https://crates.io/api/v1/crates/anyhow/1.0.58/download", type = "tar.gz", - sha256 = "08f9b8508dccb7687a1d6c4ce66b2b0ecef467c94667de27d8d7fe1f8d2a9cdc", - strip_prefix = "anyhow-1.0.57", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.57.bazel"), + sha256 = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704", + strip_prefix = "anyhow-1.0.58", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.58.bazel"), ) maybe( @@ -73,12 +83,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__backtrace__0_3_65", - url = "https://crates.io/api/v1/crates/backtrace/0.3.65/download", + name = "wasmtime__backtrace__0_3_66", + url = "https://crates.io/api/v1/crates/backtrace/0.3.66/download", type = "tar.gz", - sha256 = "11a17d453482a265fd5f8479f2a3f405566e6ca627837aaddb85af8b1ab8ef61", - strip_prefix = "backtrace-0.3.65", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.65.bazel"), + sha256 = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7", + strip_prefix = "backtrace-0.3.66", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.66.bazel"), ) maybe( @@ -101,6 +111,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bitflags-1.3.2.bazel"), ) + maybe( + http_archive, + name = "wasmtime__byteorder__1_4_3", + url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", + type = "tar.gz", + sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", + strip_prefix = "byteorder-1.4.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.byteorder-1.4.3.bazel"), + ) + maybe( http_archive, name = "wasmtime__cc__1_0_73", @@ -133,82 +153,98 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.83.0/download", + name = "wasmtime__cranelift_bforest__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.85.1/download", type = "tar.gz", - sha256 = "ed44413e7e2fe3260d0ed73e6956ab188b69c10ee92b892e401e0f4f6808c68b", - strip_prefix = "cranelift-bforest-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.83.0.bazel"), + sha256 = "7901fbba05decc537080b07cb3f1cadf53be7b7602ca8255786288a8692ae29a", + strip_prefix = "cranelift-bforest-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.85.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.83.0/download", + name = "wasmtime__cranelift_codegen__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.85.1/download", type = "tar.gz", - sha256 = "0b5d83f0f26bf213f971f45589d17e5b65e4861f9ed22392b0cbb6eaa5bd329c", - strip_prefix = "cranelift-codegen-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.83.0.bazel"), + sha256 = "37ba1b45d243a4a28e12d26cd5f2507da74e77c45927d40de8b6ffbf088b46b5", + strip_prefix = "cranelift-codegen-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.85.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.83.0/download", + name = "wasmtime__cranelift_codegen_meta__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.85.1/download", type = "tar.gz", - sha256 = "6800dc386177df6ecc5a32680607ed8ba1fa0d31a2a59c8c61fbf44826b8191d", - strip_prefix = "cranelift-codegen-meta-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.83.0.bazel"), + sha256 = "54cc30032171bf230ce22b99c07c3a1de1221cb5375bd6dbe6dbe77d0eed743c", + strip_prefix = "cranelift-codegen-meta-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.85.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.83.0/download", + name = "wasmtime__cranelift_codegen_shared__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.85.1/download", type = "tar.gz", - sha256 = "c961f85070985ebc8fcdb81b838a5cf842294d1e6ed4852446161c7e246fd455", - strip_prefix = "cranelift-codegen-shared-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.83.0.bazel"), + sha256 = "a23f2672426d2bb4c9c3ef53e023076cfc4d8922f0eeaebaf372c92fae8b5c69", + strip_prefix = "cranelift-codegen-shared-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.85.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.83.0/download", + name = "wasmtime__cranelift_entity__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.85.1/download", type = "tar.gz", - sha256 = "2347b2b8d1d5429213668f2a8e36c85ee3c73984a2f6a79007e365d3e575e7ed", - strip_prefix = "cranelift-entity-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.83.0.bazel"), + sha256 = "886c59a5e0de1f06dbb7da80db149c75de10d5e2caca07cdd9fef8a5918a6336", + strip_prefix = "cranelift-entity-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.85.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.83.0/download", + name = "wasmtime__cranelift_frontend__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.85.1/download", type = "tar.gz", - sha256 = "4cbcdbf7bed29e363568b778649b69dabc3d727256d5d25236096ef693757654", - strip_prefix = "cranelift-frontend-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.83.0.bazel"), + sha256 = "ace74eeca11c439a9d4ed1a5cb9df31a54cd0f7fbddf82c8ce4ea8e9ad2a8fe0", + strip_prefix = "cranelift-frontend-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.85.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.83.0/download", + name = "wasmtime__cranelift_isle__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-isle/0.85.1/download", type = "tar.gz", - sha256 = "8f4cdf93552e5ceb2e3c042829ebb4de4378492705f769eadc6a7c6c5251624c", - strip_prefix = "cranelift-native-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.83.0.bazel"), + sha256 = "db1ae52a5cc2cad0d86fdd3dcb16b7217d2f1e65ab4f5814aa4f014ad335fa43", + strip_prefix = "cranelift-isle-0.85.1", + patches = [ + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", + ], + patch_args = [ + "-p4", + ], + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.85.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_83_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.83.0/download", + name = "wasmtime__cranelift_native__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-native/0.85.1/download", type = "tar.gz", - sha256 = "d8b859d8cb1806f9ad0f59fdc25cbff576345abfad84c1aba483dd2f8e580e5c", - strip_prefix = "cranelift-wasm-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.83.0.bazel"), + sha256 = "dadcfb7852900780d37102bce5698bcd401736403f07b52e714ff7a180e0e22f", + strip_prefix = "cranelift-native-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.85.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__cranelift_wasm__0_85_1", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.85.1/download", + type = "tar.gz", + sha256 = "c84e3410960389110b88f97776f39f6d2c8becdaa4cd59e390e6b76d9d0e7190", + strip_prefix = "cranelift-wasm-0.85.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.85.1.bazel"), ) maybe( @@ -223,22 +259,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__either__1_6_1", - url = "https://crates.io/api/v1/crates/either/1.6.1/download", + name = "wasmtime__either__1_7_0", + url = "https://crates.io/api/v1/crates/either/1.7.0/download", type = "tar.gz", - sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", - strip_prefix = "either-1.6.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.6.1.bazel"), + sha256 = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be", + strip_prefix = "either-1.7.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.7.0.bazel"), ) maybe( http_archive, - name = "wasmtime__env_logger__0_8_4", - url = "https://crates.io/api/v1/crates/env_logger/0.8.4/download", + name = "wasmtime__env_logger__0_9_0", + url = "https://crates.io/api/v1/crates/env_logger/0.9.0/download", type = "tar.gz", - sha256 = "a19187fea3ac7e84da7dacf48de0c45d63c6a76f9490dae389aead16c243fce3", - strip_prefix = "env_logger-0.8.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.8.4.bazel"), + sha256 = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3", + strip_prefix = "env_logger-0.9.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.9.0.bazel"), ) maybe( @@ -273,12 +309,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__getrandom__0_2_6", - url = "https://crates.io/api/v1/crates/getrandom/0.2.6/download", + name = "wasmtime__fxhash__0_2_1", + url = "https://crates.io/api/v1/crates/fxhash/0.2.1/download", + type = "tar.gz", + sha256 = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c", + strip_prefix = "fxhash-0.2.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.fxhash-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__getrandom__0_2_7", + url = "https://crates.io/api/v1/crates/getrandom/0.2.7/download", type = "tar.gz", - sha256 = "9be70c98951c83b8d2f8f60d7065fa6d5146873094452a1008da8c2f1e4205ad", - strip_prefix = "getrandom-0.2.6", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.6.bazel"), + sha256 = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6", + strip_prefix = "getrandom-0.2.7", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.7.bazel"), ) maybe( @@ -301,6 +347,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.11.2.bazel"), ) + maybe( + http_archive, + name = "wasmtime__hashbrown__0_12_2", + url = "https://crates.io/api/v1/crates/hashbrown/0.12.2/download", + type = "tar.gz", + sha256 = "607c8a29735385251a339424dd462993c0fed8fa09d378f259377df08c126022", + strip_prefix = "hashbrown-0.12.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.12.2.bazel"), + ) + maybe( http_archive, name = "wasmtime__hermit_abi__0_1_19", @@ -323,12 +379,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__indexmap__1_8_1", - url = "https://crates.io/api/v1/crates/indexmap/1.8.1/download", + name = "wasmtime__indexmap__1_9_1", + url = "https://crates.io/api/v1/crates/indexmap/1.9.1/download", type = "tar.gz", - sha256 = "0f647032dfaa1f8b6dc29bd3edb7bbef4861b8b8007ebb118d6db284fd59f6ee", - strip_prefix = "indexmap-1.8.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.8.1.bazel"), + sha256 = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e", + strip_prefix = "indexmap-1.9.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.1.bazel"), ) maybe( @@ -363,12 +419,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_125", - url = "https://crates.io/api/v1/crates/libc/0.2.125/download", + name = "wasmtime__libc__0_2_126", + url = "https://crates.io/api/v1/crates/libc/0.2.126/download", type = "tar.gz", - sha256 = "5916d2ae698f6de9bfb891ad7a8d65c09d232dc58cc4ac433c7da3b2fd84bc2b", - strip_prefix = "libc-0.2.125", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.125.bazel"), + sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", + strip_prefix = "libc-0.2.126", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.126.bazel"), ) maybe( @@ -423,12 +479,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__miniz_oxide__0_5_1", - url = "https://crates.io/api/v1/crates/miniz_oxide/0.5.1/download", + name = "wasmtime__miniz_oxide__0_5_3", + url = "https://crates.io/api/v1/crates/miniz_oxide/0.5.3/download", type = "tar.gz", - sha256 = "d2b29bd4bc3f33391105ebee3589c19197c4271e3e5a9ec9bfe8127eeff8f082", - strip_prefix = "miniz_oxide-0.5.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.miniz_oxide-0.5.1.bazel"), + sha256 = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc", + strip_prefix = "miniz_oxide-0.5.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.miniz_oxide-0.5.3.bazel"), ) maybe( @@ -443,32 +499,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__object__0_27_1", - url = "https://crates.io/api/v1/crates/object/0.27.1/download", + name = "wasmtime__object__0_28_4", + url = "https://crates.io/api/v1/crates/object/0.28.4/download", type = "tar.gz", - sha256 = "67ac1d3f9a1d3616fd9a60c8d74296f22406a238b6a72f5cc1e6f314df4ffbf9", - strip_prefix = "object-0.27.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.27.1.bazel"), + sha256 = "e42c982f2d955fac81dd7e1d0e1426a7d702acd9c98d19ab01083a6a0328c424", + strip_prefix = "object-0.28.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.28.4.bazel"), ) maybe( http_archive, - name = "wasmtime__object__0_28_3", - url = "https://crates.io/api/v1/crates/object/0.28.3/download", + name = "wasmtime__object__0_29_0", + url = "https://crates.io/api/v1/crates/object/0.29.0/download", type = "tar.gz", - sha256 = "40bec70ba014595f99f7aa110b84331ffe1ee9aece7fe6f387cc7e3ecda4d456", - strip_prefix = "object-0.28.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.28.3.bazel"), + sha256 = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53", + strip_prefix = "object-0.29.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.29.0.bazel"), ) maybe( http_archive, - name = "wasmtime__once_cell__1_10_0", - url = "https://crates.io/api/v1/crates/once_cell/1.10.0/download", + name = "wasmtime__once_cell__1_13_0", + url = "https://crates.io/api/v1/crates/once_cell/1.13.0/download", type = "tar.gz", - sha256 = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9", - strip_prefix = "once_cell-1.10.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.10.0.bazel"), + sha256 = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1", + strip_prefix = "once_cell-1.13.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.13.0.bazel"), ) maybe( @@ -493,32 +549,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__proc_macro2__1_0_37", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.37/download", + name = "wasmtime__proc_macro2__1_0_40", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.40/download", type = "tar.gz", - sha256 = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1", - strip_prefix = "proc-macro2-1.0.37", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.37.bazel"), + sha256 = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7", + strip_prefix = "proc-macro2-1.0.40", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.40.bazel"), ) maybe( http_archive, - name = "wasmtime__psm__0_1_18", - url = "https://crates.io/api/v1/crates/psm/0.1.18/download", + name = "wasmtime__psm__0_1_19", + url = "https://crates.io/api/v1/crates/psm/0.1.19/download", type = "tar.gz", - sha256 = "871372391786ccec00d3c5d3d6608905b3d4db263639cfe075d3b60a736d115a", - strip_prefix = "psm-0.1.18", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.18.bazel"), + sha256 = "accd89aa18fbf9533a581355a22438101fe9c2ed8c9e2f0dcf520552a3afddf2", + strip_prefix = "psm-0.1.19", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.19.bazel"), ) maybe( http_archive, - name = "wasmtime__quote__1_0_18", - url = "https://crates.io/api/v1/crates/quote/1.0.18/download", + name = "wasmtime__quote__1_0_20", + url = "https://crates.io/api/v1/crates/quote/1.0.20/download", type = "tar.gz", - sha256 = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1", - strip_prefix = "quote-1.0.18", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.18.bazel"), + sha256 = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804", + strip_prefix = "quote-1.0.20", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.20.bazel"), ) maybe( @@ -553,32 +609,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__regalloc__0_0_34", - url = "https://crates.io/api/v1/crates/regalloc/0.0.34/download", + name = "wasmtime__regalloc2__0_2_3", + url = "https://crates.io/api/v1/crates/regalloc2/0.2.3/download", type = "tar.gz", - sha256 = "62446b1d3ebf980bdc68837700af1d77b37bc430e524bf95319c6eada2a4cc02", - strip_prefix = "regalloc-0.0.34", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc-0.0.34.bazel"), + sha256 = "4a8d23b35d7177df3b9d31ed8a9ab4bf625c668be77a319d4f5efd4a5257701c", + strip_prefix = "regalloc2-0.2.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.2.3.bazel"), ) maybe( http_archive, - name = "wasmtime__regex__1_5_5", - url = "https://crates.io/api/v1/crates/regex/1.5.5/download", + name = "wasmtime__regex__1_6_0", + url = "https://crates.io/api/v1/crates/regex/1.6.0/download", type = "tar.gz", - sha256 = "1a11647b6b25ff05a515cb92c365cec08801e83423a235b51e231e1808747286", - strip_prefix = "regex-1.5.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.5.5.bazel"), + sha256 = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b", + strip_prefix = "regex-1.6.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.6.0.bazel"), ) maybe( http_archive, - name = "wasmtime__regex_syntax__0_6_25", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.25/download", + name = "wasmtime__regex_syntax__0_6_27", + url = "https://crates.io/api/v1/crates/regex-syntax/0.6.27/download", type = "tar.gz", - sha256 = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b", - strip_prefix = "regex-syntax-0.6.25", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.6.25.bazel"), + sha256 = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244", + strip_prefix = "regex-syntax-0.6.27", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.6.27.bazel"), ) maybe( @@ -601,16 +657,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-demangle-0.1.21.bazel"), ) - maybe( - http_archive, - name = "wasmtime__rustc_hash__1_1_0", - url = "https://crates.io/api/v1/crates/rustc-hash/1.1.0/download", - type = "tar.gz", - sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", - strip_prefix = "rustc-hash-1.1.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-hash-1.1.0.bazel"), - ) - maybe( http_archive, name = "wasmtime__rustix__0_33_7", @@ -623,32 +669,42 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__serde__1_0_137", - url = "https://crates.io/api/v1/crates/serde/1.0.137/download", + name = "wasmtime__serde__1_0_139", + url = "https://crates.io/api/v1/crates/serde/1.0.139/download", type = "tar.gz", - sha256 = "61ea8d54c77f8315140a05f4c7237403bf38b72704d031543aa1d16abbf517d1", - strip_prefix = "serde-1.0.137", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.137.bazel"), + sha256 = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6", + strip_prefix = "serde-1.0.139", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.139.bazel"), ) maybe( http_archive, - name = "wasmtime__serde_derive__1_0_137", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.137/download", + name = "wasmtime__serde_derive__1_0_139", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.139/download", type = "tar.gz", - sha256 = "1f26faba0c3959972377d3b2d306ee9f71faee9714294e41bb777f83f88578be", - strip_prefix = "serde_derive-1.0.137", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.137.bazel"), + sha256 = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb", + strip_prefix = "serde_derive-1.0.139", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.139.bazel"), ) maybe( http_archive, - name = "wasmtime__smallvec__1_8_0", - url = "https://crates.io/api/v1/crates/smallvec/1.8.0/download", + name = "wasmtime__slice_group_by__0_3_0", + url = "https://crates.io/api/v1/crates/slice-group-by/0.3.0/download", type = "tar.gz", - sha256 = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83", - strip_prefix = "smallvec-1.8.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.8.0.bazel"), + sha256 = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec", + strip_prefix = "slice-group-by-0.3.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.slice-group-by-0.3.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__smallvec__1_9_0", + url = "https://crates.io/api/v1/crates/smallvec/1.9.0/download", + type = "tar.gz", + sha256 = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1", + strip_prefix = "smallvec-1.9.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.9.0.bazel"), ) maybe( @@ -663,22 +719,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__syn__1_0_92", - url = "https://crates.io/api/v1/crates/syn/1.0.92/download", + name = "wasmtime__syn__1_0_98", + url = "https://crates.io/api/v1/crates/syn/1.0.98/download", type = "tar.gz", - sha256 = "7ff7c592601f11445996a06f8ad0c27f094a58857c2f89e97974ab9235b92c52", - strip_prefix = "syn-1.0.92", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.92.bazel"), + sha256 = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd", + strip_prefix = "syn-1.0.98", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.98.bazel"), ) maybe( http_archive, - name = "wasmtime__target_lexicon__0_12_3", - url = "https://crates.io/api/v1/crates/target-lexicon/0.12.3/download", + name = "wasmtime__target_lexicon__0_12_4", + url = "https://crates.io/api/v1/crates/target-lexicon/0.12.4/download", type = "tar.gz", - sha256 = "d7fa7e55043acb85fca6b3c01485a2eeb6b69c5d21002e273c79e465f43b7ac1", - strip_prefix = "target-lexicon-0.12.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.3.bazel"), + sha256 = "c02424087780c9b71cc96799eaeddff35af2bc513278cda5c99fc1f5d026d3c1", + strip_prefix = "target-lexicon-0.12.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.4.bazel"), ) maybe( @@ -713,111 +769,121 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__unicode_xid__0_2_3", - url = "https://crates.io/api/v1/crates/unicode-xid/0.2.3/download", + name = "wasmtime__unicode_ident__1_0_1", + url = "https://crates.io/api/v1/crates/unicode-ident/1.0.1/download", + type = "tar.gz", + sha256 = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c", + strip_prefix = "unicode-ident-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__version_check__0_9_4", + url = "https://crates.io/api/v1/crates/version_check/0.9.4/download", type = "tar.gz", - sha256 = "957e51f3646910546462e67d5f7599b9e4fb8acdd304b087a6494730f9eebf04", - strip_prefix = "unicode-xid-0.2.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-xid-0.2.3.bazel"), + sha256 = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f", + strip_prefix = "version_check-0.9.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.version_check-0.9.4.bazel"), ) maybe( http_archive, - name = "wasmtime__wasi__0_10_2_wasi_snapshot_preview1", - url = "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download", + name = "wasmtime__wasi__0_11_0_wasi_snapshot_preview1", + url = "https://crates.io/api/v1/crates/wasi/0.11.0+wasi-snapshot-preview1/download", type = "tar.gz", - sha256 = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6", - strip_prefix = "wasi-0.10.2+wasi-snapshot-preview1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), + sha256 = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423", + strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmparser__0_83_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.83.0/download", + name = "wasmtime__wasmparser__0_85_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.85.0/download", type = "tar.gz", - sha256 = "718ed7c55c2add6548cca3ddd6383d738cd73b892df400e96b9aa876f0141d7a", - strip_prefix = "wasmparser-0.83.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.83.0.bazel"), + sha256 = "570460c58b21e9150d2df0eaaedbb7816c34bcec009ae0dcc976e40ba81463e7", + strip_prefix = "wasmparser-0.85.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.85.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__0_36_0", - url = "https://crates.io/api/v1/crates/wasmtime/0.36.0/download", + name = "wasmtime__wasmtime__0_38_1", + url = "https://crates.io/api/v1/crates/wasmtime/0.38.1/download", type = "tar.gz", - sha256 = "4beb256f8514dd3eb85b03bceb422abfff5f07bf564519cbe0abf80462120bc0", - strip_prefix = "wasmtime-0.36.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.36.0.bazel"), + sha256 = "e76e2b2833bb0ece666ccdbed7b71b617d447da11f1bb61f4f2bab2648f745ee", + strip_prefix = "wasmtime-0.38.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.38.1.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "c0e58a1e1c22b53e0330829057da6125da89bef1", + commit = "9e2adfb34531610d691f74dd3f559bc5b800eb02", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_36_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.36.0/download", + name = "wasmtime__wasmtime_cranelift__0_38_1", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.38.1/download", type = "tar.gz", - sha256 = "0e8f126b9c55e9550391617049f468878cb9f4af75f33009be72f0c692e1d2ed", - strip_prefix = "wasmtime-cranelift-0.36.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.36.0.bazel"), + sha256 = "5dc0f80afa1ce97083a7168e6b6948d015d6237369e9f4a511d38c9c4ac8fbb9", + strip_prefix = "wasmtime-cranelift-0.38.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.38.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_36_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.36.0/download", + name = "wasmtime__wasmtime_environ__0_38_1", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.38.1/download", type = "tar.gz", - sha256 = "343cfc7e7604b063ef0429e043a06e077a39bcb1ce3e731abe0414431f2610de", - strip_prefix = "wasmtime-environ-0.36.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.36.0.bazel"), + sha256 = "0816d9365196f1f447060087e0f87239ccded830bd54970a1168b0c9c8e824c9", + strip_prefix = "wasmtime-environ-0.38.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.38.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_36_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.36.0/download", + name = "wasmtime__wasmtime_jit__0_38_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.38.1/download", type = "tar.gz", - sha256 = "81f3a31bf04f02ec7497ddeda20e14b640b1e4d9e1c55c1ebdb268bf30800e2d", - strip_prefix = "wasmtime-jit-0.36.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.36.0.bazel"), + sha256 = "5c687f33cfa0f89ec1646929d0ff102087052cf9f0d15533de56526b0da0d1b3", + strip_prefix = "wasmtime-jit-0.38.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.38.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__0_36_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.36.0/download", + name = "wasmtime__wasmtime_jit_debug__0_38_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.38.1/download", type = "tar.gz", - sha256 = "4e725c3a37e49bd95d2d350c9f1b6641ac6e75bc357204e857ac058d0c64b720", - strip_prefix = "wasmtime-jit-debug-0.36.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.36.0.bazel"), + sha256 = "b252d1d025f94f3954ba2111f12f3a22826a0764a11c150c2d46623115a69e27", + strip_prefix = "wasmtime-jit-debug-0.38.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.38.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_36_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.36.0/download", + name = "wasmtime__wasmtime_runtime__0_38_1", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.38.1/download", type = "tar.gz", - sha256 = "2ed30d50ffd763873f49df0c94efa20c17749f375518117d6677cc29b631a1fc", - strip_prefix = "wasmtime-runtime-0.36.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.36.0.bazel"), + sha256 = "ace251693103c9facbbd7df87a29a75e68016e48bc83c09133f2fda6b575e0ab", + strip_prefix = "wasmtime-runtime-0.38.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.38.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_36_0", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.36.0/download", + name = "wasmtime__wasmtime_types__0_38_1", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.38.1/download", type = "tar.gz", - sha256 = "72080d5bdd54af03de7f5ca8b67dcd8ea36f4dfec75fc89a976ebc847ee1516e", - strip_prefix = "wasmtime-types-0.36.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.36.0.bazel"), + sha256 = "d129b0487a95986692af8708ffde9c50b0568dcefd79200941d475713b4f40bb", + strip_prefix = "wasmtime-types-0.38.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.38.1.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel new file mode 100644 index 000000000..6b159da44 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel @@ -0,0 +1,201 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "ahash_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.6", + visibility = ["//visibility:private"], + deps = [ + "@wasmtime__version_check__0_9_4//:version_check", + ] + selects.with_or({ + # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(not(all(target_arch = "arm", target_os = "none"))) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + ], + "//conditions:default": [], + }), +) + +# Unsupported target "ahash" with type "bench" omitted + +# Unsupported target "map" with type "bench" omitted + +rust_library( + name = "ahash", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=ahash", + "manual", + ], + version = "0.7.6", + # buildifier: leave-alone + deps = [ + ":ahash_build_script", + ] + selects.with_or({ + # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@wasmtime__getrandom__0_2_7//:getrandom", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(not(all(target_arch = "arm", target_os = "none"))) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@wasmtime__once_cell__1_13_0//:once_cell", + ], + "//conditions:default": [], + }), +) + +# Unsupported target "bench" with type "test" omitted + +# Unsupported target "map_tests" with type "test" omitted + +# Unsupported target "nopanic" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.57.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.58.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.57.bazel rename to bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.58.bazel index 380bae889..7e9d3543d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.57.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.58.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.57", + version = "1.0.58", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=anyhow", "manual", ], - version = "1.0.57", + version = "1.0.58", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 875bfd388..84025f552 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.65.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.66.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.65.bazel rename to bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.66.bazel index b2bc85560..711f7230c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.65.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.66.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.3.65", + version = "0.3.66", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -87,15 +87,15 @@ rust_library( "crate-name=backtrace", "manual", ], - version = "0.3.65", + version = "0.3.66", # buildifier: leave-alone deps = [ ":backtrace_build_script", "@wasmtime__addr2line__0_17_0//:addr2line", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__libc__0_2_125//:libc", - "@wasmtime__miniz_oxide__0_5_1//:miniz_oxide", - "@wasmtime__object__0_28_3//:object", + "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__miniz_oxide__0_5_3//:miniz_oxide", + "@wasmtime__object__0_29_0//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index 8cd35cae1..06661a195 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -50,7 +50,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_137//:serde", + "@wasmtime__serde__1_0_139//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel new file mode 100644 index 000000000..044c9cd0f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "unencumbered", # Unlicense from expression "Unlicense OR MIT" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "byteorder", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=byteorder", + "manual", + ], + version = "1.4.3", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.85.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.85.1.bazel index b60663dc0..b230628a1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.85.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.85.1.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.85.1.bazel index 7ef333759..f7b7ccd75 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.85.1.bazel @@ -58,10 +58,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.83.0", + version = "0.85.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_83_0//:cranelift_codegen_meta", + "@wasmtime__cranelift_codegen_meta__0_85_1//:cranelift_codegen_meta", + "@wasmtime__cranelift_isle__0_85_1//:cranelift_isle", ], ) @@ -87,17 +88,17 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_83_0//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_83_0//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_85_1//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_85_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regalloc__0_0_34//:regalloc", - "@wasmtime__smallvec__1_8_0//:smallvec", - "@wasmtime__target_lexicon__0_12_3//:target_lexicon", + "@wasmtime__regalloc2__0_2_3//:regalloc2", + "@wasmtime__smallvec__1_9_0//:smallvec", + "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.85.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.85.1.bazel index 2f4a6997c..13e23bb6e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.85.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_83_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_85_1//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.85.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.85.1.bazel index 7da881127..83f167723 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.85.1.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.85.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.85.1.bazel index a9c7a1f44..08cbb9d0f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.85.1.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_137//:serde", + "@wasmtime__serde__1_0_139//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.85.1.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.85.1.bazel index cf962ea34..0e47a1821 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.85.1.bazel @@ -49,12 +49,12 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", "@wasmtime__log__0_4_17//:log", - "@wasmtime__smallvec__1_8_0//:smallvec", - "@wasmtime__target_lexicon__0_12_3//:target_lexicon", + "@wasmtime__smallvec__1_9_0//:smallvec", + "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.85.1.bazel new file mode 100644 index 000000000..a05626249 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.85.1.bazel @@ -0,0 +1,88 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "cranelift_isle_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.85.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "cranelift_isle", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=cranelift-isle", + "manual", + ], + version = "0.85.1", + # buildifier: leave-alone + deps = [ + ":cranelift_isle_build_script", + ], +) + +# Unsupported target "run_tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.85.1.bazel similarity index 87% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.85.1.bazel index 32e081f73..dc39f77a2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.85.1.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", - "@wasmtime__target_lexicon__0_12_3//:target_lexicon", + "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", + "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.85.1.bazel similarity index 76% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.85.1.bazel index 63b92cc17..f0d7b4d85 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.85.1.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.83.0", + version = "0.85.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_83_0//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_85_1//:cranelift_frontend", "@wasmtime__itertools__0_10_3//:itertools", "@wasmtime__log__0_4_17//:log", - "@wasmtime__smallvec__1_8_0//:smallvec", - "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_types__0_36_0//:wasmtime_types", + "@wasmtime__smallvec__1_9_0//:smallvec", + "@wasmtime__wasmparser__0_85_0//:wasmparser", + "@wasmtime__wasmtime_types__0_38_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel index 128a07730..4ae93d10d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel @@ -43,7 +43,6 @@ cargo_build_script( build_script_env = { }, crate_features = [ - "default", "std", ], crate_root = "build.rs", @@ -68,7 +67,6 @@ rust_library( name = "crc32fast", srcs = glob(["**/*.rs"]), crate_features = [ - "default", "std", ], crate_root = "src/lib.rs", diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.6.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.7.0.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.either-1.6.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.either-1.7.0.bazel index 051360647..6a666ae8c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.either-1.6.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.7.0.bazel @@ -38,7 +38,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -47,7 +47,7 @@ rust_library( "crate-name=either", "manual", ], - version = "1.6.1", + version = "1.7.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.0.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.0.bazel index dddda905b..6e7c24eae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.0.bazel @@ -52,13 +52,13 @@ rust_library( "crate-name=env_logger", "manual", ], - version = "0.8.4", + version = "0.9.0", # buildifier: leave-alone deps = [ "@wasmtime__atty__0_2_14//:atty", "@wasmtime__humantime__2_1_0//:humantime", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regex__1_5_5//:regex", + "@wasmtime__regex__1_6_0//:regex", "@wasmtime__termcolor__1_1_3//:termcolor", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index 95685a4b2..ba4303b75 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -73,7 +73,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index ba82b8b9d..8acac1400 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel new file mode 100644 index 000000000..3608f3063 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel @@ -0,0 +1,57 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "fxhash" with type "bench" omitted + +rust_library( + name = "fxhash", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=fxhash", + "manual", + ], + version = "0.2.1", + # buildifier: leave-alone + deps = [ + "@wasmtime__byteorder__1_4_3//:byteorder", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.7.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel rename to bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.7.bazel index 1c5a6c4ae..059b638c1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.7.bazel @@ -52,7 +52,7 @@ rust_library( "crate-name=getrandom", "manual", ], - version = "0.2.6", + version = "0.2.7", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", @@ -61,7 +61,7 @@ rust_library( ( "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__wasi__0_10_2_wasi_snapshot_preview1//:wasi", + "@wasmtime__wasi__0_11_0_wasi_snapshot_preview1//:wasi", ], "//conditions:default": [], }) + selects.with_or({ @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel index 4fcd8e077..b726bd804 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel @@ -68,7 +68,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__fallible_iterator__0_2_0//:fallible_iterator", - "@wasmtime__indexmap__1_8_1//:indexmap", + "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel index 1cc30e2cf..e5de01424 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel @@ -37,7 +37,7 @@ rust_library( name = "hashbrown", srcs = glob(["**/*.rs"]), crate_features = [ - "raw", + "ahash", ], crate_root = "src/lib.rs", data = [], @@ -53,6 +53,7 @@ rust_library( version = "0.11.2", # buildifier: leave-alone deps = [ + "@wasmtime__ahash__0_7_6//:ahash", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.2.bazel similarity index 67% rename from bazel/cargo/wasmtime/remote/BUILD.quote-1.0.18.bazel rename to bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.2.bazel index aa26b5c2b..df6b301ae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.2.bazel @@ -31,31 +31,37 @@ licenses([ # Generated Targets +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "insert_unique_unchecked" with type "bench" omitted + rust_library( - name = "quote", + name = "hashbrown", srcs = glob(["**/*.rs"]), crate_features = [ - "default", - "proc-macro", + "raw", ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-raze", - "crate-name=quote", + "crate-name=hashbrown", "manual", ], - version = "1.0.18", + version = "0.12.2", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_37//:proc_macro2", ], ) -# Unsupported target "compiletest" with type "test" omitted +# Unsupported target "hasher" with type "test" omitted + +# Unsupported target "rayon" with type "test" omitted + +# Unsupported target "serde" with type "test" omitted -# Unsupported target "test" with type "test" omitted +# Unsupported target "set" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index 6d39e6e45..a66aeb652 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel index 5cb538bda..9c2d17f57 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.8.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel @@ -49,7 +49,7 @@ cargo_build_script( ], crate_root = "build.rs", data = glob(["**"]), - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.8.1", + version = "1.9.1", visibility = ["//visibility:private"], deps = [ "@wasmtime__autocfg__1_1_0//:autocfg", @@ -78,7 +78,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -87,12 +87,12 @@ rust_library( "crate-name=indexmap", "manual", ], - version = "1.8.1", + version = "1.9.1", # buildifier: leave-alone deps = [ ":indexmap_build_script", - "@wasmtime__hashbrown__0_11_2//:hashbrown", - "@wasmtime__serde__1_0_137//:serde", + "@wasmtime__hashbrown__0_12_2//:hashbrown", + "@wasmtime__serde__1_0_139//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel index cf8c4ca3e..863cb6e51 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel @@ -71,7 +71,7 @@ rust_library( version = "0.10.3", # buildifier: leave-alone deps = [ - "@wasmtime__either__1_6_1//:either", + "@wasmtime__either__1_7_0//:either", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.125.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.126.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.125.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.126.bazel index 3aac623b6..1702fdb42 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.125.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.126.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.125", + version = "0.2.126", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.125", + version = "0.2.126", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index 4d94e8232..a09f1a1c9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.3.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.3.bazel index 59257ccba..ba23d2620 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.3.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=miniz_oxide", "manual", ], - version = "0.5.1", + version = "0.5.3", # buildifier: leave-alone deps = [ "@wasmtime__adler__1_0_2//:adler", diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.28.4.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.object-0.28.4.bazel index b6a7e2fd0..c43b06732 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.27.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.28.4.bazel @@ -38,6 +38,7 @@ rust_library( "coff", "crc32fast", "elf", + "hashbrown", "indexmap", "macho", "pe", @@ -45,6 +46,7 @@ rust_library( "std", "write", "write_core", + "write_std", ], crate_root = "src/lib.rs", data = [], @@ -57,11 +59,12 @@ rust_library( "crate-name=object", "manual", ], - version = "0.27.1", + version = "0.28.4", # buildifier: leave-alone deps = [ "@wasmtime__crc32fast__1_3_2//:crc32fast", - "@wasmtime__indexmap__1_8_1//:indexmap", + "@wasmtime__hashbrown__0_11_2//:hashbrown", + "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__memchr__2_5_0//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.28.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.object-0.28.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel index bee587e54..be97d2801 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.28.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel @@ -54,7 +54,7 @@ rust_library( "crate-name=object", "manual", ], - version = "0.28.3", + version = "0.29.0", # buildifier: leave-alone deps = [ "@wasmtime__memchr__2_5_0//:memchr", diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.13.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.once_cell-1.10.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.once_cell-1.13.0.bazel index df9306375..50c8e47be 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.10.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.13.0.bazel @@ -65,7 +65,7 @@ rust_library( "crate-name=once_cell", "manual", ], - version = "1.10.0", + version = "1.13.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.40.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel rename to bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.40.bazel index 8cef12c89..298ea3764 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.37.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.40.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.37", + version = "1.0.40", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=proc-macro2", "manual", ], - version = "1.0.37", + version = "1.0.40", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@wasmtime__unicode_xid__0_2_3//:unicode_xid", + "@wasmtime__unicode_ident__1_0_1//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.19.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.psm-0.1.18.bazel rename to bazel/cargo/wasmtime/remote/BUILD.psm-0.1.19.bazel index 323fd32d9..697f08fae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.19.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.18", + version = "0.1.19", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -89,7 +89,7 @@ rust_library( "crate-name=psm", "manual", ], - version = "0.1.18", + version = "0.1.19", # buildifier: leave-alone deps = [ ":psm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel new file mode 100644 index 000000000..41f48600f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel @@ -0,0 +1,93 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "quote_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.20", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "quote", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=quote", + "manual", + ], + version = "1.0.20", + # buildifier: leave-alone + deps = [ + ":quote_build_script", + "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 6a8372b6e..35812478e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel index 79c206b2b..f5886d18a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel @@ -53,6 +53,6 @@ rust_library( version = "0.6.3", # buildifier: leave-alone deps = [ - "@wasmtime__getrandom__0_2_6//:getrandom", + "@wasmtime__getrandom__0_2_7//:getrandom", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.2.3.bazel similarity index 80% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.2.3.bazel index 0007832d4..0d5655bc0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc-0.0.34.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.2.3.bazel @@ -32,9 +32,10 @@ licenses([ # Generated Targets rust_library( - name = "regalloc", + name = "regalloc2", srcs = glob(["**/*.rs"]), crate_features = [ + "checker", "default", ], crate_root = "src/lib.rs", @@ -45,14 +46,15 @@ rust_library( ], tags = [ "cargo-raze", - "crate-name=regalloc", + "crate-name=regalloc2", "manual", ], - version = "0.0.34", + version = "0.2.3", # buildifier: leave-alone deps = [ + "@wasmtime__fxhash__0_2_1//:fxhash", "@wasmtime__log__0_4_17//:log", - "@wasmtime__rustc_hash__1_1_0//:rustc_hash", - "@wasmtime__smallvec__1_8_0//:smallvec", + "@wasmtime__slice_group_by__0_3_0//:slice_group_by", + "@wasmtime__smallvec__1_9_0//:smallvec", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel index 431260735..9a9d27bb2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.5.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel @@ -67,12 +67,12 @@ rust_library( "crate-name=regex", "manual", ], - version = "1.5.5", + version = "1.6.0", # buildifier: leave-alone deps = [ "@wasmtime__aho_corasick__0_7_18//:aho_corasick", "@wasmtime__memchr__2_5_0//:memchr", - "@wasmtime__regex_syntax__0_6_25//:regex_syntax", + "@wasmtime__regex_syntax__0_6_27//:regex_syntax", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.25.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.27.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.25.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.27.bazel index b04c80e3c..b885fca3f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.25.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.27.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=regex-syntax", "manual", ], - version = "0.6.25", + version = "0.6.27", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel index 2fbd87aba..91805a666 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel @@ -53,7 +53,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ] + selects.with_or({ # cfg(any(target_os = "macos", target_os = "ios")) ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel index d6204a391..cefd75200 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel @@ -186,7 +186,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ "@wasmtime__errno__0_2_8//:errno", - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.137.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.139.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.serde-1.0.137.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde-1.0.139.bazel index 0af188e4e..7aa7b9944 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.137.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.139.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.137", + version = "1.0.139", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@wasmtime__serde_derive__1_0_137//:serde_derive", + "@wasmtime__serde_derive__1_0_139//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -87,7 +87,7 @@ rust_library( "crate-name=serde", "manual", ], - version = "1.0.137", + version = "1.0.139", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.137.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.139.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.137.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.139.bazel index 88bdabfb8..4cff57740 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.137.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.139.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.137", + version = "1.0.139", visibility = ["//visibility:private"], deps = [ ], @@ -78,12 +78,12 @@ rust_proc_macro( "crate-name=serde_derive", "manual", ], - version = "1.0.137", + version = "1.0.139", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_18//:quote", - "@wasmtime__syn__1_0_92//:syn", + "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__quote__1_0_20//:quote", + "@wasmtime__syn__1_0_98//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.0.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.0.bazel index 0f07a4bc7..6e370df41 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.0.bazel @@ -26,13 +26,13 @@ package(default_visibility = [ ]) licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" + "notice", # MIT from expression "MIT" ]) # Generated Targets rust_library( - name = "rustc_hash", + name = "slice_group_by", srcs = glob(["**/*.rs"]), crate_features = [ "default", @@ -40,16 +40,16 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-raze", - "crate-name=rustc-hash", + "crate-name=slice-group-by", "manual", ], - version = "1.1.0", + version = "0.3.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.9.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.smallvec-1.8.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.smallvec-1.9.0.bazel index 734404e4a..9600167e2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.9.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=smallvec", "manual", ], - version = "1.8.0", + version = "1.9.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.92.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.syn-1.0.92.bazel rename to bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel index af36eb37e..47eda55de 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.92.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel @@ -61,7 +61,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.92", + version = "1.0.98", visibility = ["//visibility:private"], deps = [ ], @@ -94,13 +94,13 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.92", + version = "1.0.98", # buildifier: leave-alone deps = [ ":syn_build_script", - "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_18//:quote", - "@wasmtime__unicode_xid__0_2_3//:unicode_xid", + "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__quote__1_0_20//:quote", + "@wasmtime__unicode_ident__1_0_1//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel index c4767d0a5..e617fce82 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.12.3", + version = "0.12.4", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=target-lexicon", "manual", ], - version = "0.12.3", + version = "0.12.4", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel index b5f3f74bd..eb959b04e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel @@ -50,8 +50,8 @@ rust_proc_macro( version = "1.0.31", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_18//:quote", - "@wasmtime__syn__1_0_92//:syn", + "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__quote__1_0_20//:quote", + "@wasmtime__syn__1_0_98//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.1.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.1.bazel index 92b0eaade..665e53f28 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.1.bazel @@ -34,26 +34,27 @@ licenses([ # Unsupported target "xid" with type "bench" omitted rust_library( - name = "unicode_xid", + name = "unicode_ident", srcs = glob(["**/*.rs"]), crate_features = [ - "default", ], crate_root = "src/lib.rs", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-raze", - "crate-name=unicode-xid", + "crate-name=unicode-ident", "manual", ], - version = "0.2.3", + version = "1.0.1", # buildifier: leave-alone deps = [ ], ) -# Unsupported target "exhaustive_tests" with type "test" omitted +# Unsupported target "compare" with type "test" omitted + +# Unsupported target "static_size" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel new file mode 100644 index 000000000..12fff826e --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "version_check", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=version_check", + "manual", + ], + version = "0.9.4", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 1c0bde1e7..ff55f34da 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasi", "manual", ], - version = "0.10.2+wasi-snapshot-preview1", + version = "0.11.0+wasi-snapshot-preview1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.83.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.85.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.83.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.85.0.bazel index 7f37d9630..4a2f051c4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.83.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.85.0.bazel @@ -42,7 +42,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -51,8 +51,9 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.83.0", + version = "0.85.0", # buildifier: leave-alone deps = [ + "@wasmtime__indexmap__1_9_1//:indexmap", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.36.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.38.1.bazel similarity index 75% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.36.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.38.1.bazel index 7154d9e2a..573c8ebe9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.36.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.38.1.bazel @@ -43,9 +43,7 @@ cargo_build_script( build_script_env = { }, crate_features = [ - "backtrace", "cranelift", - "wasm-backtrace", "wasmtime-cranelift", ], crate_root = "build.rs", @@ -58,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.0", + version = "0.38.1", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -78,9 +76,7 @@ rust_library( aliases = { }, crate_features = [ - "backtrace", "cranelift", - "wasm-backtrace", "wasmtime-cranelift", ], crate_root = "src/lib.rs", @@ -97,29 +93,29 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.36.0", + version = "0.38.1", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@wasmtime__anyhow__1_0_57//:anyhow", - "@wasmtime__backtrace__0_3_65//:backtrace", + "@wasmtime__anyhow__1_0_58//:anyhow", + "@wasmtime__backtrace__0_3_66//:backtrace", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_8_1//:indexmap", + "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__libc__0_2_126//:libc", "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_27_1//:object", - "@wasmtime__once_cell__1_10_0//:once_cell", - "@wasmtime__psm__0_1_18//:psm", + "@wasmtime__object__0_28_4//:object", + "@wasmtime__once_cell__1_13_0//:once_cell", + "@wasmtime__psm__0_1_19//:psm", "@wasmtime__region__2_2_0//:region", - "@wasmtime__serde__1_0_137//:serde", - "@wasmtime__target_lexicon__0_12_3//:target_lexicon", - "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_36_0//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_36_0//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_36_0//:wasmtime_runtime", + "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__wasmparser__0_85_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__0_38_1//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_38_1//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_38_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index 86aac72db..c84ee1df4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -50,7 +50,7 @@ rust_proc_macro( version = "0.19.0", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_37//:proc_macro2", - "@wasmtime__quote__1_0_18//:quote", + "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__quote__1_0_20//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.36.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.38.1.bazel similarity index 67% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.36.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.38.1.bazel index 42bb963b5..5860328cd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.36.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.38.1.bazel @@ -47,22 +47,22 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.36.0", + version = "0.38.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_57//:anyhow", - "@wasmtime__cranelift_codegen__0_83_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_83_0//:cranelift_frontend", - "@wasmtime__cranelift_native__0_83_0//:cranelift_native", - "@wasmtime__cranelift_wasm__0_83_0//:cranelift_wasm", + "@wasmtime__anyhow__1_0_58//:anyhow", + "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_85_1//:cranelift_frontend", + "@wasmtime__cranelift_native__0_85_1//:cranelift_native", + "@wasmtime__cranelift_wasm__0_85_1//:cranelift_wasm", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_17//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", - "@wasmtime__object__0_27_1//:object", - "@wasmtime__target_lexicon__0_12_3//:target_lexicon", + "@wasmtime__object__0_28_4//:object", + "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", + "@wasmtime__wasmparser__0_85_0//:wasmparser", + "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.36.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.38.1.bazel similarity index 73% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.36.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.38.1.bazel index 8a28da88b..0ab887ee1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.36.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.38.1.bazel @@ -47,20 +47,20 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.36.0", + version = "0.38.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_57//:anyhow", - "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", + "@wasmtime__anyhow__1_0_58//:anyhow", + "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", "@wasmtime__gimli__0_26_1//:gimli", - "@wasmtime__indexmap__1_8_1//:indexmap", + "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__log__0_4_17//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", - "@wasmtime__object__0_27_1//:object", - "@wasmtime__serde__1_0_137//:serde", - "@wasmtime__target_lexicon__0_12_3//:target_lexicon", + "@wasmtime__object__0_28_4//:object", + "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_83_0//:wasmparser", - "@wasmtime__wasmtime_types__0_36_0//:wasmtime_types", + "@wasmtime__wasmparser__0_85_0//:wasmparser", + "@wasmtime__wasmtime_types__0_38_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.36.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.38.1.bazel similarity index 87% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.36.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.38.1.bazel index 46736df69..cb158a7cf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.36.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.38.1.bazel @@ -49,24 +49,24 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.36.0", + version = "0.38.1", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", - "@wasmtime__anyhow__1_0_57//:anyhow", + "@wasmtime__anyhow__1_0_58//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", "@wasmtime__gimli__0_26_1//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_27_1//:object", + "@wasmtime__object__0_28_4//:object", "@wasmtime__region__2_2_0//:region", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", - "@wasmtime__serde__1_0_137//:serde", - "@wasmtime__target_lexicon__0_12_3//:target_lexicon", + "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_36_0//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_38_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.36.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.38.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.36.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.38.1.bazel index 3533af15e..8ddfe20ad 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.36.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.38.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "0.36.0", + version = "0.38.1", # buildifier: leave-alone deps = [ "@wasmtime__lazy_static__1_4_0//:lazy_static", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.36.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.38.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.36.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.38.1.bazel index e91c2b127..501a0625b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.36.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.38.1.bazel @@ -43,8 +43,6 @@ cargo_build_script( build_script_env = { }, crate_features = [ - "backtrace", - "wasm-backtrace", ], crate_root = "build.rs", data = glob(["**"]), @@ -56,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.0", + version = "0.38.1", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -108,8 +106,6 @@ rust_library( aliases = { }, crate_features = [ - "backtrace", - "wasm-backtrace", ], crate_root = "src/lib.rs", data = [], @@ -122,23 +118,23 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.36.0", + version = "0.38.1", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@wasmtime__anyhow__1_0_57//:anyhow", - "@wasmtime__backtrace__0_3_65//:backtrace", + "@wasmtime__anyhow__1_0_58//:anyhow", + "@wasmtime__backtrace__0_3_66//:backtrace", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_8_1//:indexmap", - "@wasmtime__libc__0_2_125//:libc", + "@wasmtime__indexmap__1_9_1//:indexmap", + "@wasmtime__libc__0_2_126//:libc", "@wasmtime__log__0_4_17//:log", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__rand__0_8_5//:rand", "@wasmtime__region__2_2_0//:region", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmtime_environ__0_36_0//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__0_36_0//:wasmtime_jit_debug", + "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__0_38_1//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.36.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.38.1.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.36.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.38.1.bazel index 8bb566916..dca2d0441 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.36.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.38.1.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.36.0", + version = "0.38.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_83_0//:cranelift_entity", - "@wasmtime__serde__1_0_137//:serde", + "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", + "@wasmtime__serde__1_0_139//:serde", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_83_0//:wasmparser", + "@wasmtime__wasmparser__0_85_0//:wasmparser", ], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 0fc2da6ea..3851027d7 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -201,9 +201,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "6e10746bd5141eebb1ba235b91cc042b743d7240f636be163a2c01bc0444ba68", - strip_prefix = "wasmtime-0.36.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.36.0.tar.gz", + sha256 = "8cb4ed3f14a1b054ff36e7017c056f10a28b57673f21d7548354fd40f2f02b3b", + strip_prefix = "wasmtime-0.38.1", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.38.1.tar.gz", ) maybe( From bcd1c4a698ca2cee79959e150ba3b02ffa790eea Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Tue, 12 Jul 2022 13:01:11 -0500 Subject: [PATCH 207/287] v8: update to v10.4.132.18. (#293) Signed-off-by: Piotr Sikora --- bazel/external/v8.patch | 292 ++++++++++++++++++++++++++++++++++++---- bazel/repositories.bzl | 10 +- src/v8/v8.cc | 2 + 3 files changed, 270 insertions(+), 34 deletions(-) diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index 219935001..7748793d0 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,6 +1,7 @@ # 1. Disable pointer compression (limits the maximum number of WasmVMs). # 2. Don't expose Wasm C API (only Wasm C++ API). -# 3. Fix linking on Linux (needed only for branch-heads/10.0). +# 3. Fix cross-compilation (https://crrev.com/c/3735165). +# 4. Fix build errors in SIMD IndexOf/includes (https://crrev.com/c/3749192). diff --git a/BUILD.bazel b/BUILD.bazel index 5fb10d3940..a19930d36e 100644 @@ -34,31 +35,264 @@ index ce3f569fd5..dc8a4c4f6a 100644 } // extern "C" + +#endif -diff --git a/bazel/defs.bzl b/bazel/defs.bzl -index dee5e69cc4..070fadb969 100644 ---- a/bazel/defs.bzl -+++ b/bazel/defs.bzl -@@ -159,8 +159,21 @@ def _default_args(): - "DbgHelp.lib", - "Advapi32.lib", - ], -- "@v8//bazel/config:is_macos": ["-pthread"], -- "//conditions:default": ["-Wl,--no-as-needed -ldl -pthread"], -+ "@v8//bazel/config:is_macos": [ -+ "-pthread", -+ ], -+ "@v8//bazel/config:is_android": [ -+ "-Wl,--no-as-needed", -+ "-ldl", -+ "-pthread", -+ ], -+ "@v8//bazel/config:is_linux": [ -+ "-Wl,--no-as-needed", -+ "-ldl", -+ "-lrt", -+ "-pthread", -+ ], -+ "//conditions:default": [], - }) + select({ - ":should_add_rdynamic": ["-rdynamic"], - "//conditions:default": [], +diff --git a/src/execution/clobber-registers.cc b/src/execution/clobber-registers.cc +index 8f7fba765f..a7f5bf80cf 100644 +--- a/src/execution/clobber-registers.cc ++++ b/src/execution/clobber-registers.cc +@@ -5,19 +5,22 @@ + + #include "src/base/build_config.h" + +-#if V8_HOST_ARCH_ARM ++// Check both {HOST_ARCH} and {TARGET_ARCH} to disable the functionality of this ++// file for cross-compilation. The reason is that the inline assembly code below ++// does not work for cross-compilation. ++#if V8_HOST_ARCH_ARM && V8_TARGET_ARCH_ARM + #include "src/codegen/arm/register-arm.h" +-#elif V8_HOST_ARCH_ARM64 ++#elif V8_HOST_ARCH_ARM64 && V8_TARGET_ARCH_ARM64 + #include "src/codegen/arm64/register-arm64.h" +-#elif V8_HOST_ARCH_IA32 ++#elif V8_HOST_ARCH_IA32 && V8_TARGET_ARCH_IA32 + #include "src/codegen/ia32/register-ia32.h" +-#elif V8_HOST_ARCH_X64 ++#elif V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 + #include "src/codegen/x64/register-x64.h" +-#elif V8_HOST_ARCH_LOONG64 ++#elif V8_HOST_ARCH_LOONG64 && V8_TARGET_ARCH_LOONG64 + #include "src/codegen/loong64/register-loong64.h" +-#elif V8_HOST_ARCH_MIPS ++#elif V8_HOST_ARCH_MIPS && V8_TARGET_ARCH_MIPS + #include "src/codegen/mips/register-mips.h" +-#elif V8_HOST_ARCH_MIPS64 ++#elif V8_HOST_ARCH_MIPS64 && V8_TARGET_ARCH_MIPS64 + #include "src/codegen/mips64/register-mips64.h" + #endif + +@@ -26,14 +29,15 @@ namespace internal { + + #if V8_CC_MSVC + // msvc only support inline assembly on x86 +-#if V8_HOST_ARCH_IA32 ++#if V8_HOST_ARCH_IA32 && V8_TARGET_ARCH_IA32 + #define CLOBBER_REGISTER(R) __asm xorps R, R + + #endif + + #else // !V8_CC_MSVC + +-#if V8_HOST_ARCH_X64 || V8_HOST_ARCH_IA32 ++#if (V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64) || \ ++ (V8_HOST_ARCH_IA32 && V8_TARGET_ARCH_IA32) + #define CLOBBER_REGISTER(R) \ + __asm__ volatile( \ + "xorps " \ +@@ -42,20 +46,19 @@ namespace internal { + "%%" #R :: \ + :); + +-#elif V8_HOST_ARCH_ARM64 ++#elif V8_HOST_ARCH_ARM64 && V8_TARGET_ARCH_ARM64 + #define CLOBBER_REGISTER(R) __asm__ volatile("fmov " #R ",xzr" :::); + +-#elif V8_HOST_ARCH_LOONG64 ++#elif V8_HOST_ARCH_LOONG64 && V8_TARGET_ARCH_LOONG64 + #define CLOBBER_REGISTER(R) __asm__ volatile("movgr2fr.d $" #R ",$zero" :::); + +-#elif V8_HOST_ARCH_MIPS ++#elif V8_HOST_ARCH_MIPS && V8_TARGET_ARCH_MIPS + #define CLOBBER_USE_REGISTER(R) __asm__ volatile("mtc1 $zero,$" #R :::); + +-#elif V8_HOST_ARCH_MIPS64 ++#elif V8_HOST_ARCH_MIPS64 && V8_TARGET_ARCH_MIPS64 + #define CLOBBER_USE_REGISTER(R) __asm__ volatile("dmtc1 $zero,$" #R :::); + +-#endif // V8_HOST_ARCH_X64 || V8_HOST_ARCH_IA32 || V8_HOST_ARCH_ARM64 || +- // V8_HOST_ARCH_LOONG64 || V8_HOST_ARCH_MIPS || V8_HOST_ARCH_MIPS64 ++#endif // V8_HOST_ARCH_XXX && V8_TARGET_ARCH_XXX + + #endif // V8_CC_MSVC + +diff --git a/src/objects/simd.cc b/src/objects/simd.cc +index 0a73b9c686..be6b72d157 100644 +--- a/src/objects/simd.cc ++++ b/src/objects/simd.cc +@@ -354,8 +354,13 @@ Address ArrayIndexOfIncludes(Address array_start, uintptr_t array_len, + if (reinterpret_cast(array) % sizeof(double) != 0) { + // Slow scalar search for unaligned double array. + for (; from_index < array_len; from_index++) { +- if (fixed_array.get_representation(static_cast(from_index)) == +- *reinterpret_cast(&search_num)) { ++ if (fixed_array.is_the_hole(static_cast(from_index))) { ++ // |search_num| cannot be NaN, so there is no need to check against ++ // holes. ++ continue; ++ } ++ if (fixed_array.get_scalar(static_cast(from_index)) == ++ search_num) { + return from_index; + } + } +diff --git a/src/objects/simd.cc b/src/objects/simd.cc +index d3cedfe330..0a73b9c686 100644 +--- a/src/objects/simd.cc ++++ b/src/objects/simd.cc +@@ -95,24 +95,21 @@ inline int extract_first_nonzero_index(T v) { + } + + template <> +-inline int extract_first_nonzero_index(int32x4_t v) { +- int32x4_t mask = {4, 3, 2, 1}; ++inline int extract_first_nonzero_index(uint32x4_t v) { ++ uint32x4_t mask = {4, 3, 2, 1}; + mask = vandq_u32(mask, v); + return 4 - vmaxvq_u32(mask); + } + + template <> +-inline int extract_first_nonzero_index(int64x2_t v) { +- int32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} +- mask = vandq_u32(mask, vreinterpretq_s32_s64(v)); ++inline int extract_first_nonzero_index(uint64x2_t v) { ++ uint32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} ++ mask = vandq_u32(mask, vreinterpretq_u32_u64(v)); + return 2 - vmaxvq_u32(mask); + } + +-template <> +-inline int extract_first_nonzero_index(float64x2_t v) { +- int32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} +- mask = vandq_u32(mask, vreinterpretq_s32_f64(v)); +- return 2 - vmaxvq_u32(mask); ++inline int32_t reinterpret_vmaxvq_u64(uint64x2_t v) { ++ return vmaxvq_u32(vreinterpretq_u32_u64(v)); + } + #endif + +@@ -204,14 +201,14 @@ inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, + } + #elif defined(NEON64) + if constexpr (std::is_same::value) { +- VECTORIZED_LOOP_Neon(int32x4_t, int32x4_t, vdupq_n_u32, vceqq_u32, ++ VECTORIZED_LOOP_Neon(uint32x4_t, uint32x4_t, vdupq_n_u32, vceqq_u32, + vmaxvq_u32) + } else if constexpr (std::is_same::value) { +- VECTORIZED_LOOP_Neon(int64x2_t, int64x2_t, vdupq_n_u64, vceqq_u64, +- vmaxvq_u32) ++ VECTORIZED_LOOP_Neon(uint64x2_t, uint64x2_t, vdupq_n_u64, vceqq_u64, ++ reinterpret_vmaxvq_u64) + } else if constexpr (std::is_same::value) { +- VECTORIZED_LOOP_Neon(float64x2_t, float64x2_t, vdupq_n_f64, vceqq_f64, +- vmaxvq_f64) ++ VECTORIZED_LOOP_Neon(float64x2_t, uint64x2_t, vdupq_n_f64, vceqq_f64, ++ reinterpret_vmaxvq_u64) + } + #else + UNREACHABLE(); +diff --git a/src/objects/simd.cc b/src/objects/simd.cc +index be6b72d157..a71968fd10 100644 +--- a/src/objects/simd.cc ++++ b/src/objects/simd.cc +@@ -148,9 +148,14 @@ inline int32_t reinterpret_vmaxvq_u64(uint64x2_t v) { + template + inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, + uintptr_t index, T search_element) { +- static_assert(std::is_same::value || +- std::is_same::value || +- std::is_same::value); ++ static constexpr bool is_uint32 = ++ sizeof(T) == sizeof(uint32_t) && std::is_integral::value; ++ static constexpr bool is_uint64 = ++ sizeof(T) == sizeof(uint64_t) && std::is_integral::value; ++ static constexpr bool is_double = ++ sizeof(T) == sizeof(double) && std::is_floating_point::value; ++ ++ static_assert(is_uint32 || is_uint64 || is_double); + + #if !(defined(__SSE3__) || defined(NEON64)) + // No SIMD available. +@@ -178,14 +183,14 @@ inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, + + // Inserting one of the vectorized loop + #ifdef __SSE3__ +- if constexpr (std::is_same::value) { ++ if constexpr (is_uint32) { + #define MOVEMASK(x) _mm_movemask_ps(_mm_castsi128_ps(x)) + #define EXTRACT(x) base::bits::CountTrailingZeros32(x) + VECTORIZED_LOOP_x86(__m128i, __m128i, _mm_set1_epi32, _mm_cmpeq_epi32, + MOVEMASK, EXTRACT) + #undef MOVEMASK + #undef EXTRACT +- } else if constexpr (std::is_same::value) { ++ } else if constexpr (is_uint64) { + #define SET1(x) _mm_castsi128_ps(_mm_set1_epi64x(x)) + #define CMP(a, b) _mm_cmpeq_pd(_mm_castps_pd(a), _mm_castps_pd(b)) + #define EXTRACT(x) base::bits::CountTrailingZeros32(x) +@@ -193,20 +198,20 @@ inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, + #undef SET1 + #undef CMP + #undef EXTRACT +- } else if constexpr (std::is_same::value) { ++ } else if constexpr (is_double) { + #define EXTRACT(x) base::bits::CountTrailingZeros32(x) + VECTORIZED_LOOP_x86(__m128d, __m128d, _mm_set1_pd, _mm_cmpeq_pd, + _mm_movemask_pd, EXTRACT) + #undef EXTRACT + } + #elif defined(NEON64) +- if constexpr (std::is_same::value) { ++ if constexpr (is_uint32) { + VECTORIZED_LOOP_Neon(uint32x4_t, uint32x4_t, vdupq_n_u32, vceqq_u32, + vmaxvq_u32) +- } else if constexpr (std::is_same::value) { ++ } else if constexpr (is_uint64) { + VECTORIZED_LOOP_Neon(uint64x2_t, uint64x2_t, vdupq_n_u64, vceqq_u64, + reinterpret_vmaxvq_u64) +- } else if constexpr (std::is_same::value) { ++ } else if constexpr (is_double) { + VECTORIZED_LOOP_Neon(float64x2_t, uint64x2_t, vdupq_n_f64, vceqq_f64, + reinterpret_vmaxvq_u64) + } +@@ -240,9 +245,14 @@ template + TARGET_AVX2 inline uintptr_t fast_search_avx(T* array, uintptr_t array_len, + uintptr_t index, + T search_element) { +- static_assert(std::is_same::value || +- std::is_same::value || +- std::is_same::value); ++ static constexpr bool is_uint32 = ++ sizeof(T) == sizeof(uint32_t) && std::is_integral::value; ++ static constexpr bool is_uint64 = ++ sizeof(T) == sizeof(uint64_t) && std::is_integral::value; ++ static constexpr bool is_double = ++ sizeof(T) == sizeof(double) && std::is_floating_point::value; ++ ++ static_assert(is_uint32 || is_uint64 || is_double); + + const int target_align = 32; + // Scalar loop to reach desired alignment +@@ -256,21 +266,21 @@ TARGET_AVX2 inline uintptr_t fast_search_avx(T* array, uintptr_t array_len, + } + + // Generating vectorized loop +- if constexpr (std::is_same::value) { ++ if constexpr (is_uint32) { + #define MOVEMASK(x) _mm256_movemask_ps(_mm256_castsi256_ps(x)) + #define EXTRACT(x) base::bits::CountTrailingZeros32(x) + VECTORIZED_LOOP_x86(__m256i, __m256i, _mm256_set1_epi32, _mm256_cmpeq_epi32, + MOVEMASK, EXTRACT) + #undef MOVEMASK + #undef EXTRACT +- } else if constexpr (std::is_same::value) { ++ } else if constexpr (is_uint64) { + #define MOVEMASK(x) _mm256_movemask_pd(_mm256_castsi256_pd(x)) + #define EXTRACT(x) base::bits::CountTrailingZeros32(x) + VECTORIZED_LOOP_x86(__m256i, __m256i, _mm256_set1_epi64x, + _mm256_cmpeq_epi64, MOVEMASK, EXTRACT) + #undef MOVEMASK + #undef EXTRACT +- } else if constexpr (std::is_same::value) { ++ } else if constexpr (is_double) { + #define CMP(a, b) _mm256_cmp_pd(a, b, _CMP_EQ_OQ) + #define EXTRACT(x) base::bits::CountTrailingZeros32(x) + VECTORIZED_LOOP_x86(__m256d, __m256d, _mm256_set1_pd, CMP, diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 3851027d7..3cc0e1856 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -116,10 +116,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( git_repository, name = "v8", - # 10.0.139.6 - commit = "1e242a567b609aa18ce46f7b04cc51fd85756b67", + # 10.4.132.18 + commit = "ce33dd2c08521fbe7f616bcd5941f2f388338030", remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1646671271 +0000", + shallow_since = "1657561920 +0000", patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], patch_args = ["-p1"], ) @@ -147,9 +147,9 @@ def proxy_wasm_cpp_host_repositories(): new_git_repository, name = "com_googlesource_chromium_zlib", build_file = "@v8//:bazel/BUILD.zlib", - commit = "9538f4194f6e5eff1bd59f2396ed9d05b1a8d801", + commit = "64bbf988543996eb8df9a86877b32917187eba8f", remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", - shallow_since = "1644963419 -0800", + shallow_since = "1653988038 -0700", ) native.bind( diff --git a/src/v8/v8.cc b/src/v8/v8.cc index abad6d514..7603ea671 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -34,6 +34,7 @@ #include "wasm-api/wasm.hh" namespace v8::internal { +extern bool FLAG_liftoff; extern unsigned int FLAG_wasm_max_mem_pages; } // namespace v8::internal @@ -45,6 +46,7 @@ wasm::Engine *engine() { static wasm::own engine; std::call_once(init, []() { + ::v8::internal::FLAG_liftoff = false; ::v8::internal::FLAG_wasm_max_mem_pages = PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES / PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES; ::v8::V8::EnableWebAssemblyTrapHandler(true); From 2cf68d6c00b4141ecf2afb5e5d51ebd21a27ed43 Mon Sep 17 00:00:00 2001 From: Le Yao Date: Wed, 13 Jul 2022 10:34:51 +0800 Subject: [PATCH 208/287] wamr: update to WAMR-05-18-2022. (#291) Signed-off-by: Le Yao --- bazel/repositories.bzl | 8 ++++---- src/wamr/wamr.cc | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 3cc0e1856..6faef655c 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -168,10 +168,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - # WAMR-01-18-2022 - sha256 = "af88da144bcb5ecac417af7fd34130487f5e4792e79670f07530474b2ef43912", - strip_prefix = "wasm-micro-runtime-d856af6c33591815ab4c890f0606bc99ee8135ad", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/d856af6c33591815ab4c890f0606bc99ee8135ad.tar.gz", + # WAMR-05-18-2022 + sha256 = "350736fffdc49533f5f372221d01e3b570ecd7b85f4429b22f5d89594eb99d9c", + strip_prefix = "wasm-micro-runtime-d7a2888b18c478d87ce8094e1419b4e061db289f", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/d7a2888b18c478d87ce8094e1419b4e061db289f.tar.gz", ) native.bind( diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 93cae4d58..6e97ebfb0 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -296,7 +296,7 @@ bool Wamr::link(std::string_view /*debug_name*/) { return false; } - wasm_extern_vec_t imports_vec = {imports.size(), imports.data()}; + wasm_extern_vec_t imports_vec = {imports.size(), imports.data(), imports.size()}; instance_ = wasm_instance_new(store_.get(), module_.get(), &imports_vec, nullptr); if (instance_ == nullptr) { fail(FailState::UnableToInitializeCode, "Failed to create new Wasm instance"); From 4ddbed3c8c8c1aa76db8157e22ae3be676e76ac1 Mon Sep 17 00:00:00 2001 From: Ingwon Song <102102227+ingwonsong@users.noreply.github.com> Date: Sat, 30 Jul 2022 22:31:42 -0700 Subject: [PATCH 209/287] Configuration canary for the second or further plugins. (#289) Fixes #175. Signed-off-by: Ingwon Song --- .github/workflows/test.yml | 14 +++- WORKSPACE | 12 ++++ bazel/repositories.bzl | 6 +- include/proxy-wasm/wasm.h | 11 +-- src/wasm.cc | 78 ++++++++++++--------- test/BUILD | 1 + test/test_data/BUILD | 6 ++ test/test_data/canary_check.cc | 52 ++++++++++++++ test/utility.cc | 2 + test/utility.h | 34 ++++++++- test/wasm_test.cc | 122 +++++++++++++++++++++++++++++++++ 11 files changed, 295 insertions(+), 43 deletions(-) create mode 100644 test/test_data/canary_check.cc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 251818335..9aea8357f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,6 +56,18 @@ jobs: --config=clang -c opt $(bazel query 'kind(was.*_rust_binary, //test/test_data/...)') + $(bazel query 'kind(_optimized_wasm_cc_binary, //test/test_data/...)') + + # Currently, in Github Action, "Bazel build step" creates `wasm_canary_check.wasm` directory as a temporal directory. + # Since the name of this directory has "*.wasm" pattern, the step "Mangle build rules to use existing test data" fails. + # So, here, we clear out the directories in test_data. + - name: Clean up test data + shell: bash + run: | + # Remove temporal directories + for i in $(find bazel-bin/test/test_data/ -mindepth 1 -maxdepth 1 -type d); do \ + rm -rf $i; \ + done - name: Upload test data uses: actions/upload-artifact@v2 @@ -201,7 +213,7 @@ jobs: os: ubuntu-20.04 arch: s390x action: test - flags: --config=clang + flags: --config=clang --test_timeout=1800 run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 cache: true - name: 'Wasmtime on macOS/x86_64' diff --git a/WORKSPACE b/WORKSPACE index 77ecd3a0b..478a58dea 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -7,3 +7,15 @@ proxy_wasm_cpp_host_repositories() load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "proxy_wasm_cpp_host_dependencies") proxy_wasm_cpp_host_dependencies() + +load("@proxy_wasm_cpp_sdk//bazel:repositories.bzl", "proxy_wasm_cpp_sdk_repositories") + +proxy_wasm_cpp_sdk_repositories() + +load("@proxy_wasm_cpp_sdk//bazel:dependencies.bzl", "proxy_wasm_cpp_sdk_dependencies") + +proxy_wasm_cpp_sdk_dependencies() + +load("@proxy_wasm_cpp_sdk//bazel:dependencies_extra.bzl", "proxy_wasm_cpp_sdk_dependencies_extra") + +proxy_wasm_cpp_sdk_dependencies_extra() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 6faef655c..29fec2483 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -86,9 +86,9 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "proxy_wasm_cpp_sdk", - sha256 = "c57de2425b5c61d7f630c5061e319b4557ae1f1c7526e5a51c33dc1299471b08", - strip_prefix = "proxy-wasm-cpp-sdk-fd0be8405db25de0264bdb78fae3a82668c03782", - urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/fd0be8405db25de0264bdb78fae3a82668c03782.tar.gz"], + sha256 = "89792fc1abca331f29f99870476a04146de5e82ff903bdffca90e6729c1f2470", + strip_prefix = "proxy-wasm-cpp-sdk-95bb82ce45c41d9100fd1ec15d2ffc67f7f3ceee", + urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/95bb82ce45c41d9100fd1ec15d2ffc67f7f3ceee.tar.gz"], ) # Test dependencies. diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index fbef823ad..873531afd 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -314,6 +314,10 @@ class WasmBase : public std::enable_shared_from_this { std::shared_ptr vm_id_handle_; }; +using WasmHandleFactory = std::function(std::string_view vm_id)>; +using WasmHandleCloneFactory = + std::function(std::shared_ptr wasm)>; + // Handle which enables shutdown operations to run post deletion (e.g. post listener drain). class WasmHandleBase : public std::enable_shared_from_this { public: @@ -324,6 +328,9 @@ class WasmHandleBase : public std::enable_shared_from_this { } } + bool canary(const std::shared_ptr &plugin, + const WasmHandleCloneFactory &clone_factory); + void kill() { wasm_base_ = nullptr; } std::shared_ptr &wasm() { return wasm_base_; } @@ -335,10 +342,6 @@ class WasmHandleBase : public std::enable_shared_from_this { std::string makeVmKey(std::string_view vm_id, std::string_view configuration, std::string_view code); -using WasmHandleFactory = std::function(std::string_view vm_id)>; -using WasmHandleCloneFactory = - std::function(std::shared_ptr wasm)>; - // Returns nullptr on failure (i.e. initialization of the VM fails). std::shared_ptr createWasm(const std::string &vm_key, const std::string &code, const std::shared_ptr &plugin, diff --git a/src/wasm.cc b/src/wasm.cc index 2295e9880..fe21d7925 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -447,6 +447,35 @@ void WasmBase::finishShutdown() { } } +bool WasmHandleBase::canary(const std::shared_ptr &plugin, + const WasmHandleCloneFactory &clone_factory) { + if (this->wasm() == nullptr) { + return false; + } + auto configuration_canary_handle = clone_factory(shared_from_this()); + if (!configuration_canary_handle) { + this->wasm()->fail(FailState::UnableToCloneVm, "Failed to clone Base Wasm"); + return false; + } + if (!configuration_canary_handle->wasm()->initialize()) { + configuration_canary_handle->wasm()->fail(FailState::UnableToInitializeCode, + "Failed to initialize Wasm code"); + return false; + } + auto *root_context = configuration_canary_handle->wasm()->start(plugin); + if (root_context == nullptr) { + configuration_canary_handle->wasm()->fail(FailState::StartFailed, "Failed to start base Wasm"); + return false; + } + if (!configuration_canary_handle->wasm()->configure(root_context, plugin)) { + configuration_canary_handle->wasm()->fail(FailState::ConfigureFailed, + "Failed to configure base Wasm plugin"); + return false; + } + configuration_canary_handle->kill(); + return true; +} + std::shared_ptr createWasm(const std::string &vm_key, const std::string &code, const std::shared_ptr &plugin, const WasmHandleFactory &factory, @@ -465,44 +494,29 @@ std::shared_ptr createWasm(const std::string &vm_key, const std: base_wasms->erase(it); } } - if (wasm_handle) { - return wasm_handle; - } - wasm_handle = factory(vm_key); if (!wasm_handle) { - return nullptr; + // If no cached base_wasm, creates a new base_wasm, loads the code and initializes it. + wasm_handle = factory(vm_key); + if (!wasm_handle) { + return nullptr; + } + if (!wasm_handle->wasm()->load(code, allow_precompiled)) { + wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to load Wasm code"); + return nullptr; + } + if (!wasm_handle->wasm()->initialize()) { + wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, + "Failed to initialize Wasm code"); + return nullptr; + } + (*base_wasms)[vm_key] = wasm_handle; } - (*base_wasms)[vm_key] = wasm_handle; } - if (!wasm_handle->wasm()->load(code, allow_precompiled)) { - wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to load Wasm code"); - return nullptr; - } - if (!wasm_handle->wasm()->initialize()) { - wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); - return nullptr; - } - auto configuration_canary_handle = clone_factory(wasm_handle); - if (!configuration_canary_handle) { - wasm_handle->wasm()->fail(FailState::UnableToCloneVm, "Failed to clone Base Wasm"); - return nullptr; - } - if (!configuration_canary_handle->wasm()->initialize()) { - wasm_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); - return nullptr; - } - auto *root_context = configuration_canary_handle->wasm()->start(plugin); - if (root_context == nullptr) { - configuration_canary_handle->wasm()->fail(FailState::StartFailed, "Failed to start base Wasm"); + // Either creating new one or reusing the existing one, apply canary for each plugin. + if (!wasm_handle->canary(plugin, clone_factory)) { return nullptr; } - if (!configuration_canary_handle->wasm()->configure(root_context, plugin)) { - configuration_canary_handle->wasm()->fail(FailState::ConfigureFailed, - "Failed to configure base Wasm plugin"); - return nullptr; - } - configuration_canary_handle->kill(); return wasm_handle; }; diff --git a/test/BUILD b/test/BUILD index 93373486d..196cbc590 100644 --- a/test/BUILD +++ b/test/BUILD @@ -91,6 +91,7 @@ cc_test( srcs = ["wasm_test.cc"], data = [ "//test/test_data:abi_export.wasm", + "//test/test_data:canary_check.wasm", ], linkstatic = 1, deps = [ diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 553d43b14..c6892954e 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -1,4 +1,5 @@ load("@proxy_wasm_cpp_host//bazel:wasm.bzl", "wasm_rust_binary") +load("@proxy_wasm_cpp_sdk//bazel:defs.bzl", "proxy_wasm_cc_binary") licenses(["notice"]) # Apache 2 @@ -59,3 +60,8 @@ wasm_rust_binary( srcs = ["random.rs"], wasi = True, ) + +proxy_wasm_cc_binary( + name = "canary_check.wasm", + srcs = ["canary_check.cc"], +) diff --git a/test/test_data/canary_check.cc b/test/test_data/canary_check.cc new file mode 100644 index 000000000..38cf8b410 --- /dev/null +++ b/test/test_data/canary_check.cc @@ -0,0 +1,52 @@ +// Copyright 2021 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include +#include +#include + +#include "proxy_wasm_intrinsics.h" + +class CanaryCheckRootContext1 : public RootContext { +public: + explicit CanaryCheckRootContext1(uint32_t id, std::string_view root_id) + : RootContext(id, root_id) {} + bool onConfigure(size_t s) override { + LOG_TRACE("onConfigure: root_id_1"); + return s != 0; + } +}; + +class CanaryCheckContext : public Context { +public: + explicit CanaryCheckContext(uint32_t id, RootContext *root) : Context(id, root) {} +}; + +class CanaryCheckRootContext2 : public RootContext { +public: + explicit CanaryCheckRootContext2(uint32_t id, std::string_view root_id) + : RootContext(id, root_id) {} + bool onConfigure(size_t s) override { + LOG_TRACE("onConfigure: root_id_2"); + return s != 0; + } +}; + +static RegisterContextFactory register_CanaryCheckContext1(CONTEXT_FACTORY(CanaryCheckContext), + ROOT_FACTORY(CanaryCheckRootContext1), + "root_id_1"); + +static RegisterContextFactory register_CanaryCheckContext2(CONTEXT_FACTORY(CanaryCheckContext), + ROOT_FACTORY(CanaryCheckRootContext2), + "root_id_2"); diff --git a/test/utility.cc b/test/utility.cc index e4196f8df..ee6f2b951 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -16,6 +16,8 @@ namespace proxy_wasm { +std::string TestContext::global_log_; + std::vector getWasmEngines() { std::vector engines = { #if defined(PROXY_WASM_HOST_ENGINE_V8) diff --git a/test/utility.h b/test/utility.h index 3935723bd..06114e2c3 100644 --- a/test/utility.h +++ b/test/utility.h @@ -91,16 +91,34 @@ class TestIntegration : public WasmVmIntegration { class TestContext : public ContextBase { public: TestContext(WasmBase *wasm) : ContextBase(wasm) {} + TestContext(WasmBase *wasm, const std::shared_ptr &plugin) + : ContextBase(wasm, plugin) {} WasmResult log(uint32_t /*log_level*/, std::string_view message) override { - log_ += std::string(message) + "\n"; + auto new_log = std::string(message) + "\n"; + log_ += new_log; + global_log_ += new_log; return WasmResult::Ok; } + WasmResult getProperty(std::string_view path, std::string *result) override { + if (path == "plugin_root_id") { + *result = root_id_; + return WasmResult::Ok; + } + return unimplemented(); + } + bool isLogEmpty() { return log_.empty(); } bool isLogged(std::string_view message) { return log_.find(message) != std::string::npos; } + static bool isGlobalLogged(std::string_view message) { + return global_log_.find(message) != std::string::npos; + } + + static void resetGlobalLog() { global_log_ = ""; } + uint64_t getCurrentTimeNanoseconds() override { return std::chrono::duration_cast( std::chrono::system_clock::now().time_since_epoch()) @@ -114,14 +132,24 @@ class TestContext : public ContextBase { private: std::string log_; + static std::string global_log_; }; class TestWasm : public WasmBase { public: - TestWasm(std::unique_ptr wasm_vm, std::unordered_map envs = {}) - : WasmBase(std::move(wasm_vm), "", "", "", std::move(envs), {}) {} + TestWasm(std::unique_ptr wasm_vm, std::unordered_map envs = {}, + std::string_view vm_id = "", std::string_view vm_configuration = "", + std::string_view vm_key = "") + : WasmBase(std::move(wasm_vm), vm_id, vm_configuration, vm_key, std::move(envs), {}) {} + + TestWasm(const std::shared_ptr &base_wasm_handle, const WasmVmFactory &factory) + : WasmBase(base_wasm_handle, factory) {} ContextBase *createVmContext() override { return new TestContext(this); }; + + ContextBase *createRootContext(const std::shared_ptr &plugin) override { + return new TestContext(this, plugin); + } }; class TestVm : public testing::TestWithParam { diff --git a/test/wasm_test.cc b/test/wasm_test.cc index 51026b559..387348e8d 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -14,6 +14,8 @@ #include "include/proxy-wasm/wasm.h" +#include + #include "gtest/gtest.h" #include "test/utility.h" @@ -113,4 +115,124 @@ TEST_P(TestVm, GetOrCreateThreadLocalWasmFailCallbacks) { ASSERT_NE(thread_local_plugin3->wasm(), thread_local_plugin2->wasm()); } +// Tests the canary is always applied when making a call `createWasm` +TEST_P(TestVm, AlwaysApplyCanary) { + // Use different root_id, but the others are the same + const auto *const plugin_name = "plugin_name"; + + const std::string root_ids[2] = {"root_id_1", "root_id_2"}; + const std::string vm_ids[2] = {"vm_id_1", "vm_id_2"}; + const std::string vm_configs[2] = {"vm_config_1", "vm_config_2"}; + const std::string plugin_configs[3] = {"plugin_config_1", "plugin_config_2", + /* raising the error */ ""}; + const std::string plugin_keys[2] = {"plugin_key_1", "plugin_key_2"}; + const auto fail_open = false; + + // Define common callbacks + auto canary_count = 0; + WasmHandleCloneFactory wasm_handle_clone_factory_for_canary = + [&canary_count, this](const std::shared_ptr &base_wasm_handle) + -> std::shared_ptr { + auto wasm = std::make_shared(base_wasm_handle, + [this]() -> std::unique_ptr { return newVm(); }); + canary_count++; + return std::make_shared(wasm); + }; + + PluginHandleFactory plugin_handle_factory = + [](const std::shared_ptr &base_wasm, + const std::shared_ptr &plugin) -> std::shared_ptr { + return std::make_shared(base_wasm, plugin); + }; + + // Read the minimal loadable binary. + auto source = readTestWasmFile("canary_check.wasm"); + + WasmHandleFactory wasm_handle_factory_baseline = + [this, vm_ids, vm_configs](std::string_view vm_key) -> std::shared_ptr { + auto base_wasm = std::make_shared( + newVm(), std::unordered_map(), vm_ids[0], vm_configs[0], vm_key); + return std::make_shared(base_wasm); + }; + + // Create a baseline plugin. + const auto plugin_baseline = std::make_shared( + plugin_name, root_ids[0], vm_ids[0], engine_, plugin_configs[0], fail_open, plugin_keys[0]); + + const auto vm_key_baseline = makeVmKey(vm_ids[0], vm_configs[0], "common_code"); + // Create a base Wasm by createWasm. + auto wasm_handle_baseline = + createWasm(vm_key_baseline, source, plugin_baseline, wasm_handle_factory_baseline, + wasm_handle_clone_factory_for_canary, false); + ASSERT_TRUE(wasm_handle_baseline && wasm_handle_baseline->wasm()); + + // Check if it ran for baseline root context + EXPECT_TRUE(TestContext::isGlobalLogged("onConfigure: " + root_ids[0])); + // For each create Wasm, canary should be done. + EXPECT_EQ(canary_count, 1); + + std::unordered_set> reference_holder; + + for (const auto &root_id : root_ids) { + for (const auto &vm_id : vm_ids) { + for (const auto &vm_config : vm_configs) { + for (const auto &plugin_key : plugin_keys) { + for (const auto &plugin_config : plugin_configs) { + canary_count = 0; + TestContext::resetGlobalLog(); + WasmHandleFactory wasm_handle_factory_comp = + [this, vm_id, + vm_config](std::string_view vm_key) -> std::shared_ptr { + auto base_wasm = std::make_shared( + newVm(), std::unordered_map(), vm_id, vm_config, + vm_key); + return std::make_shared(base_wasm); + }; + const auto plugin_comp = std::make_shared( + plugin_name, root_id, vm_id, engine_, plugin_config, fail_open, plugin_key); + const auto vm_key = makeVmKey(vm_id, vm_config, "common_code"); + // Create a base Wasm by createWasm. + auto wasm_handle_comp = + createWasm(vm_key, source, plugin_comp, wasm_handle_factory_comp, + wasm_handle_clone_factory_for_canary, false); + // For each create Wasm, canary should be done. + EXPECT_EQ(canary_count, 1); + + if (plugin_config.empty()) { + // canary_check.wasm should raise the error at `onConfigure` in canary when the + // `plugin_config` is empty string. + EXPECT_EQ(wasm_handle_comp, nullptr); + continue; + } + + ASSERT_TRUE(wasm_handle_comp && wasm_handle_comp->wasm()); + // Keep the reference of wasm_handle_comp in order to utilize the WasmHandleBase + // cache of createWasm. If we don't keep the reference, WasmHandleBase and VM will be + // destroyed for each iteration. + reference_holder.insert(wasm_handle_comp); + + EXPECT_TRUE(TestContext::isGlobalLogged("onConfigure: " + root_id)); + + // Wasm VM is unique for vm_key. + if (vm_key == vm_key_baseline) { + EXPECT_EQ(wasm_handle_baseline->wasm(), wasm_handle_comp->wasm()); + } else { + EXPECT_NE(wasm_handle_baseline->wasm(), wasm_handle_comp->wasm()); + } + + // plugin->key() is unique for root_id + plugin_config + plugin_key. + // plugin->key() is used as an identifier of local-specific plugins as well. + if (root_id == root_ids[0] && plugin_config == plugin_configs[0] && + plugin_key == plugin_keys[0]) { + EXPECT_EQ(plugin_baseline->key(), plugin_comp->key()); + } else { + EXPECT_NE(plugin_baseline->key(), plugin_comp->key()); + } + } + } + } + } + } +} + } // namespace proxy_wasm From 9219629fca0a4f2d110c101c7cb87c921a84c5a6 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 1 Aug 2022 12:09:25 -0500 Subject: [PATCH 210/287] Update Bazel to v5.2.0. (#298) Signed-off-by: Piotr Sikora --- .bazelversion | 2 +- .github/workflows/test.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bazelversion b/.bazelversion index 0062ac971..91ff57278 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -5.0.0 +5.2.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9aea8357f..55c9822eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -214,7 +214,7 @@ jobs: arch: s390x action: test flags: --config=clang --test_timeout=1800 - run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.0.0-clang-13-gcc-11 + run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.2.0-clang-14-gcc-12 cache: true - name: 'Wasmtime on macOS/x86_64' engine: 'wasmtime' From 0208b079575bb57549e1a7444974941c81d6a55a Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 1 Aug 2022 15:11:45 -0500 Subject: [PATCH 211/287] Update rules_rust to v0.8.1 (with Rust v1.62.1). (#297) Signed-off-by: Piotr Sikora --- bazel/dependencies.bzl | 4 ++-- bazel/external/rules_rust.patch | 15 +++++++++++++++ bazel/repositories.bzl | 8 +++++--- 3 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 bazel/external/rules_rust.patch diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 95efe8ad0..8e0cfe91d 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -34,7 +34,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.60.0", + version = "1.62.1", ) rust_repository_set( name = "rust_linux_s390x", @@ -43,7 +43,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.60.0", + version = "1.62.1", ) zig_register_toolchains( diff --git a/bazel/external/rules_rust.patch b/bazel/external/rules_rust.patch new file mode 100644 index 000000000..67689bec2 --- /dev/null +++ b/bazel/external/rules_rust.patch @@ -0,0 +1,15 @@ +# https://github.com/bazelbuild/rules_rust/pull/1315 + +diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl +index 6cdbefeb..284d4afa 100644 +--- a/rust/private/rustc.bzl ++++ b/rust/private/rustc.bzl +@@ -1024,7 +1024,7 @@ def rustc_compile_action( + ), + ] + +- if crate_info.type in ["staticlib", "cdylib"]: ++ if crate_info.type in ["staticlib", "cdylib"] and not out_binary: + # These rules are not supposed to be depended on by other rust targets, and + # as such they shouldn't provide a CrateInfo. However, one may still want to + # write a rust_test for them, so we provide the CrateInfo wrapped in a provider diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 29fec2483..0732d8886 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -66,10 +66,12 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_rust", - sha256 = "0c57c91a20df12d2b1e5db6c58fd6df21bce0c73940eeafbcb87761c14c28878", - strip_prefix = "rules_rust-0.3.1", + sha256 = "f3d443e9ad1eca99fbcade1c649adbd8200753cf22e47846b3105a43a550273b", + strip_prefix = "rules_rust-0.8.1", # NOTE: Update Rust version in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/0.3.1.tar.gz", + url = "https://github.com/bazelbuild/rules_rust/archive/0.8.1.tar.gz", + patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], + patch_args = ["-p1"], ) # Core. From 9387a5b77418e41bbf2b0909c68c14db42a1e743 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 1 Aug 2022 16:34:05 -0500 Subject: [PATCH 212/287] wasmtime: update to v0.39.1. (#296) While there, add a format check to verify presence of manual fixes to workaround google/cargo-raze#451. Signed-off-by: Piotr Sikora --- .github/workflows/format.yml | 4 + bazel/cargo/wasmtime/BUILD.bazel | 2 +- bazel/cargo/wasmtime/Cargo.raze.lock | 169 +++++---- bazel/cargo/wasmtime/Cargo.toml | 6 +- bazel/cargo/wasmtime/crates.bzl | 342 ++++++++++-------- .../remote/BUILD.addr2line-0.17.0.bazel | 2 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 2 +- ...l => BUILD.cranelift-bforest-0.86.1.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.86.1.bazel} | 18 +- ...BUILD.cranelift-codegen-meta-0.86.1.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.86.1.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.86.1.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.86.1.bazel} | 4 +- ...azel => BUILD.cranelift-isle-0.86.1.bazel} | 4 +- ...el => BUILD.cranelift-native-0.86.1.bazel} | 4 +- ...azel => BUILD.cranelift-wasm-0.86.1.bazel} | 12 +- ...-0.26.1.bazel => BUILD.gimli-0.26.2.bazel} | 4 +- ...2.2.bazel => BUILD.hashbrown-0.12.3.bazel} | 2 +- .../remote/BUILD.indexmap-1.9.1.bazel | 4 +- ...3.bazel => BUILD.io-lifetimes-0.7.2.bazel} | 4 +- ...bazel => BUILD.linux-raw-sys-0.0.46.bazel} | 3 +- ...0.bazel => BUILD.proc-macro2-1.0.42.bazel} | 6 +- ...sm-0.1.19.bazel => BUILD.psm-0.1.20.bazel} | 4 +- .../wasmtime/remote/BUILD.quote-1.0.20.bazel | 2 +- ....2.3.bazel => BUILD.regalloc2-0.3.1.bazel} | 2 +- ...0.33.7.bazel => BUILD.rustix-0.35.7.bazel} | 52 ++- ....0.139.bazel => BUILD.serde-1.0.140.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.140.bazel} | 6 +- .../wasmtime/remote/BUILD.syn-1.0.98.bazel | 4 +- .../remote/BUILD.thiserror-impl-1.0.31.bazel | 2 +- ....bazel => BUILD.unicode-ident-1.0.2.bazel} | 4 +- ....0.bazel => BUILD.wasmparser-0.86.0.bazel} | 2 +- ...38.1.bazel => BUILD.wasmtime-0.39.1.bazel} | 23 +- .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 2 +- ... => BUILD.wasmtime-cranelift-0.39.1.bazel} | 18 +- ...el => BUILD.wasmtime-environ-0.39.1.bazel} | 12 +- ....bazel => BUILD.wasmtime-jit-0.39.1.bazel} | 14 +- ... => BUILD.wasmtime-jit-debug-0.39.1.bazel} | 2 +- ...el => BUILD.wasmtime-runtime-0.39.1.bazel} | 13 +- ...azel => BUILD.wasmtime-types-0.39.1.bazel} | 8 +- .../wasmtime/remote/BUILD.winapi-0.3.9.bazel | 8 - .../remote/BUILD.windows-sys-0.36.1.bazel | 88 +++++ .../BUILD.windows_aarch64_msvc-0.36.1.bazel | 84 +++++ .../BUILD.windows_i686_gnu-0.36.1.bazel | 84 +++++ .../BUILD.windows_i686_msvc-0.36.1.bazel | 84 +++++ .../BUILD.windows_x86_64_gnu-0.36.1.bazel | 84 +++++ .../BUILD.windows_x86_64_msvc-0.36.1.bazel | 84 +++++ bazel/repositories.bzl | 6 +- 48 files changed, 963 insertions(+), 341 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.85.1.bazel => BUILD.cranelift-bforest-0.86.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.85.1.bazel => BUILD.cranelift-codegen-0.86.1.bazel} (81%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.85.1.bazel => BUILD.cranelift-codegen-meta-0.86.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.85.1.bazel => BUILD.cranelift-codegen-shared-0.86.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.85.1.bazel => BUILD.cranelift-entity-0.86.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.85.1.bazel => BUILD.cranelift-frontend-0.86.1.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-isle-0.85.1.bazel => BUILD.cranelift-isle-0.86.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.85.1.bazel => BUILD.cranelift-native-0.86.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.85.1.bazel => BUILD.cranelift-wasm-0.86.1.bazel} (79%) rename bazel/cargo/wasmtime/remote/{BUILD.gimli-0.26.1.bazel => BUILD.gimli-0.26.2.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.hashbrown-0.12.2.bazel => BUILD.hashbrown-0.12.3.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.io-lifetimes-0.5.3.bazel => BUILD.io-lifetimes-0.7.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.linux-raw-sys-0.0.42.bazel => BUILD.linux-raw-sys-0.0.46.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.proc-macro2-1.0.40.bazel => BUILD.proc-macro2-1.0.42.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.psm-0.1.19.bazel => BUILD.psm-0.1.20.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.regalloc2-0.2.3.bazel => BUILD.regalloc2-0.3.1.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.33.7.bazel => BUILD.rustix-0.35.7.bazel} (69%) rename bazel/cargo/wasmtime/remote/{BUILD.serde-1.0.139.bazel => BUILD.serde-1.0.140.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.serde_derive-1.0.139.bazel => BUILD.serde_derive-1.0.140.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.unicode-ident-1.0.1.bazel => BUILD.unicode-ident-1.0.2.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.85.0.bazel => BUILD.wasmparser-0.86.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.38.1.bazel => BUILD.wasmtime-0.39.1.bazel} (83%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.38.1.bazel => BUILD.wasmtime-cranelift-0.39.1.bazel} (73%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.38.1.bazel => BUILD.wasmtime-environ-0.39.1.bazel} (82%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.38.1.bazel => BUILD.wasmtime-jit-0.39.1.bazel} (87%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-0.38.1.bazel => BUILD.wasmtime-jit-debug-0.39.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.38.1.bazel => BUILD.wasmtime-runtime-0.39.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.38.1.bazel => BUILD.wasmtime-types-0.39.1.bazel} (85%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.36.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.36.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.36.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.36.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.36.1.bazel diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index aa685007d..1f0f44628 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -84,6 +84,10 @@ jobs: - name: Install dependencies run: cargo install cargo-raze --version 0.14.1 + - name: Format (bazel query) + run: | + bazel query 'deps(//bazel/cargo/...)' + - name: Format (cargo raze) working-directory: bazel/cargo run: | diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 2f60511c9..a6e9ee996 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_38_1//:wasmtime", + actual = "@wasmtime__wasmtime__0_39_1//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 8f2838985..cb561715e 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -117,18 +117,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7901fbba05decc537080b07cb3f1cadf53be7b7602ca8255786288a8692ae29a" +checksum = "529ffacce2249ac60edba2941672dfedf3d96558b415d0d8083cd007456e0f55" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ba1b45d243a4a28e12d26cd5f2507da74e77c45927d40de8b6ffbf088b46b5" +checksum = "427d105f617efc8cb55f8d036a7fded2e227892d8780b4985e5551f8d27c4a92" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -144,33 +144,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54cc30032171bf230ce22b99c07c3a1de1221cb5375bd6dbe6dbe77d0eed743c" +checksum = "551674bed85b838d45358e3eab4f0ffaa6790c70dc08184204b9a54b41cdb7d1" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a23f2672426d2bb4c9c3ef53e023076cfc4d8922f0eeaebaf372c92fae8b5c69" +checksum = "2b3a63ae57498c3eb495360944a33571754241e15e47e3bcae6082f40fec5866" [[package]] name = "cranelift-entity" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "886c59a5e0de1f06dbb7da80db149c75de10d5e2caca07cdd9fef8a5918a6336" +checksum = "11aa8aa624c72cc1c94ea3d0739fa61248260b5b14d3646f51593a88d67f3e6e" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace74eeca11c439a9d4ed1a5cb9df31a54cd0f7fbddf82c8ce4ea8e9ad2a8fe0" +checksum = "544ee8f4d1c9559c9aa6d46e7aaeac4a13856d620561094f35527356c7d21bd0" dependencies = [ "cranelift-codegen", "log", @@ -180,15 +180,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db1ae52a5cc2cad0d86fdd3dcb16b7217d2f1e65ab4f5814aa4f014ad335fa43" +checksum = "ed16b14363d929b8c37e3c557d0a7396791b383ecc302141643c054343170aad" [[package]] name = "cranelift-native" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dadcfb7852900780d37102bce5698bcd401736403f07b52e714ff7a180e0e22f" +checksum = "51617cf8744634f2ed3c989c3c40cd6444f63377c6d994adab0d85807f3eb682" dependencies = [ "cranelift-codegen", "libc", @@ -197,9 +197,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.85.1" +version = "0.86.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c84e3410960389110b88f97776f39f6d2c8becdaa4cd59e390e6b76d9d0e7190" +checksum = "e5a8073a41efc173fd19bad3f725c170c705df6da999fc47a738ff310225dd63" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -288,9 +288,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.26.1" +version = "0.26.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4" +checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" dependencies = [ "fallible-iterator", "indexmap", @@ -308,9 +308,9 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.12.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "607c8a29735385251a339424dd462993c0fed8fa09d378f259377df08c126022" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" [[package]] name = "hermit-abi" @@ -334,15 +334,15 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", - "hashbrown 0.12.2", + "hashbrown 0.12.3", "serde", ] [[package]] name = "io-lifetimes" -version = "0.5.3" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6" +checksum = "24c3f4eff5495aee4c0399d7b6a0dc2b6e81be84242ffbfcf253ebacccc1d0cb" [[package]] name = "itertools" @@ -367,9 +367,9 @@ checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" [[package]] name = "linux-raw-sys" -version = "0.0.42" +version = "0.0.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7" +checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" [[package]] name = "log" @@ -460,18 +460,18 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "proc-macro2" -version = "1.0.40" +version = "1.0.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7" +checksum = "c278e965f1d8cf32d6e0e96de3d3e79712178ae67986d9cf9151f51e95aac89b" dependencies = [ "unicode-ident", ] [[package]] name = "psm" -version = "0.1.19" +version = "0.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "accd89aa18fbf9533a581355a22438101fe9c2ed8c9e2f0dcf520552a3afddf2" +checksum = "f446d0a6efba22928558c4fb4ce0b3fd6c89b0061343e390bf01a703742b8125" dependencies = [ "cc", ] @@ -517,9 +517,9 @@ dependencies = [ [[package]] name = "regalloc2" -version = "0.2.3" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a8d23b35d7177df3b9d31ed8a9ab4bf625c668be77a319d4f5efd4a5257701c" +checksum = "76ff2e57a7d050308b3fde0f707aa240b491b190e3855f212860f11bb3af4205" dependencies = [ "fxhash", "log", @@ -564,32 +564,32 @@ checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" [[package]] name = "rustix" -version = "0.33.7" +version = "0.35.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "938a344304321a9da4973b9ff4f9f8db9caf4597dfd9dda6a60b523340a0fff0" +checksum = "d51cc38aa10f6bbb377ed28197aa052aa4e2b762c22be9d3153d01822587e787" dependencies = [ "bitflags", "errno", "io-lifetimes", "libc", "linux-raw-sys", - "winapi", + "windows-sys", ] [[package]] name = "serde" -version = "1.0.139" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6" +checksum = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.139" +version = "1.0.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb" +checksum = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da" dependencies = [ "proc-macro2", "quote", @@ -662,9 +662,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.1" +version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c" +checksum = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7" [[package]] name = "version_check" @@ -680,18 +680,18 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasmparser" -version = "0.85.0" +version = "0.86.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "570460c58b21e9150d2df0eaaedbb7816c34bcec009ae0dcc976e40ba81463e7" +checksum = "4bcbfe95447da2aa7ff171857fc8427513eb57c75a729bb190e974dc695e8f5c" dependencies = [ "indexmap", ] [[package]] name = "wasmtime" -version = "0.38.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e76e2b2833bb0ece666ccdbed7b71b617d447da11f1bb61f4f2bab2648f745ee" +checksum = "0d10a6853d64e99fffdae80f93a45080475c9267f87743060814dc1186d74618" dependencies = [ "anyhow", "backtrace", @@ -713,12 +713,12 @@ dependencies = [ "wasmtime-environ", "wasmtime-jit", "wasmtime-runtime", - "winapi", + "windows-sys", ] [[package]] name = "wasmtime-c-api-bazel" -version = "0.38.1" +version = "0.39.1" dependencies = [ "anyhow", "env_logger", @@ -730,7 +730,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.38.1#9e2adfb34531610d691f74dd3f559bc5b800eb02" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.39.1#19b5436ac346b8e61230baeaf18e802db6f0b858" dependencies = [ "proc-macro2", "quote", @@ -738,9 +738,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.38.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dc0f80afa1ce97083a7168e6b6948d015d6237369e9f4a511d38c9c4ac8fbb9" +checksum = "3302b33d919e8e33f1717d592c10c3cddccb318d0e1e0bef75178f579686ba94" dependencies = [ "anyhow", "cranelift-codegen", @@ -760,9 +760,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.38.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0816d9365196f1f447060087e0f87239ccded830bd54970a1168b0c9c8e824c9" +checksum = "7c50fb925e8eaa9f8431f9b784ea89a13c703cb445ddfe51cb437596fc34e734" dependencies = [ "anyhow", "cranelift-entity", @@ -780,9 +780,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.38.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c687f33cfa0f89ec1646929d0ff102087052cf9f0d15533de56526b0da0d1b3" +checksum = "cad81635f33ab69aa04b386c9d954aef9f6230059f66caf67e55fb65bfd2f3e0" dependencies = [ "addr2line", "anyhow", @@ -800,23 +800,23 @@ dependencies = [ "thiserror", "wasmtime-environ", "wasmtime-runtime", - "winapi", + "windows-sys", ] [[package]] name = "wasmtime-jit-debug" -version = "0.38.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b252d1d025f94f3954ba2111f12f3a22826a0764a11c150c2d46623115a69e27" +checksum = "55e23273fddce8cab149a0743c46932bf4910268641397ed86b46854b089f38f" dependencies = [ "lazy_static", ] [[package]] name = "wasmtime-runtime" -version = "0.38.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ace251693103c9facbbd7df87a29a75e68016e48bc83c09133f2fda6b575e0ab" +checksum = "36b8aafb292502d28dc2d25f44d4a81e229bb2e0cc14ca847dde4448a1a62ae4" dependencies = [ "anyhow", "backtrace", @@ -834,14 +834,14 @@ dependencies = [ "thiserror", "wasmtime-environ", "wasmtime-jit-debug", - "winapi", + "windows-sys", ] [[package]] name = "wasmtime-types" -version = "0.38.1" +version = "0.39.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d129b0487a95986692af8708ffde9c50b0568dcefd79200941d475713b4f40bb" +checksum = "dd7edc34f358fc290d12e326de81884422cb94cf74cc305b27979569875332d6" dependencies = [ "cranelift-entity", "serde", @@ -879,3 +879,46 @@ name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" + +[[package]] +name = "windows-sys" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +dependencies = [ + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_msvc", +] + +[[package]] +name = "windows_aarch64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" + +[[package]] +name = "windows_i686_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" + +[[package]] +name = "windows_i686_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.36.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 94080d0ab..f78765cca 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.38.1" +version = "0.39.1" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.9" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.38.1", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.38.1"} +wasmtime = {version = "0.39.1", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.39.1"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index 13e205e57..100e2321c 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -153,98 +153,98 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.85.1/download", + name = "wasmtime__cranelift_bforest__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.86.1/download", type = "tar.gz", - sha256 = "7901fbba05decc537080b07cb3f1cadf53be7b7602ca8255786288a8692ae29a", - strip_prefix = "cranelift-bforest-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.85.1.bazel"), + sha256 = "529ffacce2249ac60edba2941672dfedf3d96558b415d0d8083cd007456e0f55", + strip_prefix = "cranelift-bforest-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.85.1/download", + name = "wasmtime__cranelift_codegen__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.86.1/download", type = "tar.gz", - sha256 = "37ba1b45d243a4a28e12d26cd5f2507da74e77c45927d40de8b6ffbf088b46b5", - strip_prefix = "cranelift-codegen-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.85.1.bazel"), + sha256 = "427d105f617efc8cb55f8d036a7fded2e227892d8780b4985e5551f8d27c4a92", + strip_prefix = "cranelift-codegen-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.85.1/download", + name = "wasmtime__cranelift_codegen_meta__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.86.1/download", type = "tar.gz", - sha256 = "54cc30032171bf230ce22b99c07c3a1de1221cb5375bd6dbe6dbe77d0eed743c", - strip_prefix = "cranelift-codegen-meta-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.85.1.bazel"), + sha256 = "551674bed85b838d45358e3eab4f0ffaa6790c70dc08184204b9a54b41cdb7d1", + strip_prefix = "cranelift-codegen-meta-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.85.1/download", + name = "wasmtime__cranelift_codegen_shared__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.86.1/download", type = "tar.gz", - sha256 = "a23f2672426d2bb4c9c3ef53e023076cfc4d8922f0eeaebaf372c92fae8b5c69", - strip_prefix = "cranelift-codegen-shared-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.85.1.bazel"), + sha256 = "2b3a63ae57498c3eb495360944a33571754241e15e47e3bcae6082f40fec5866", + strip_prefix = "cranelift-codegen-shared-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.85.1/download", + name = "wasmtime__cranelift_entity__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.86.1/download", type = "tar.gz", - sha256 = "886c59a5e0de1f06dbb7da80db149c75de10d5e2caca07cdd9fef8a5918a6336", - strip_prefix = "cranelift-entity-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.85.1.bazel"), + sha256 = "11aa8aa624c72cc1c94ea3d0739fa61248260b5b14d3646f51593a88d67f3e6e", + strip_prefix = "cranelift-entity-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.85.1/download", + name = "wasmtime__cranelift_frontend__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.86.1/download", type = "tar.gz", - sha256 = "ace74eeca11c439a9d4ed1a5cb9df31a54cd0f7fbddf82c8ce4ea8e9ad2a8fe0", - strip_prefix = "cranelift-frontend-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.85.1.bazel"), + sha256 = "544ee8f4d1c9559c9aa6d46e7aaeac4a13856d620561094f35527356c7d21bd0", + strip_prefix = "cranelift-frontend-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_isle__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-isle/0.85.1/download", + name = "wasmtime__cranelift_isle__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-isle/0.86.1/download", type = "tar.gz", - sha256 = "db1ae52a5cc2cad0d86fdd3dcb16b7217d2f1e65ab4f5814aa4f014ad335fa43", - strip_prefix = "cranelift-isle-0.85.1", + sha256 = "ed16b14363d929b8c37e3c557d0a7396791b383ecc302141643c054343170aad", + strip_prefix = "cranelift-isle-0.86.1", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", ], patch_args = [ "-p4", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.85.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-native/0.85.1/download", + name = "wasmtime__cranelift_native__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-native/0.86.1/download", type = "tar.gz", - sha256 = "dadcfb7852900780d37102bce5698bcd401736403f07b52e714ff7a180e0e22f", - strip_prefix = "cranelift-native-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.85.1.bazel"), + sha256 = "51617cf8744634f2ed3c989c3c40cd6444f63377c6d994adab0d85807f3eb682", + strip_prefix = "cranelift-native-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.86.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_85_1", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.85.1/download", + name = "wasmtime__cranelift_wasm__0_86_1", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.86.1/download", type = "tar.gz", - sha256 = "c84e3410960389110b88f97776f39f6d2c8becdaa4cd59e390e6b76d9d0e7190", - strip_prefix = "cranelift-wasm-0.85.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.85.1.bazel"), + sha256 = "e5a8073a41efc173fd19bad3f725c170c705df6da999fc47a738ff310225dd63", + strip_prefix = "cranelift-wasm-0.86.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.86.1.bazel"), ) maybe( @@ -329,12 +329,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__gimli__0_26_1", - url = "https://crates.io/api/v1/crates/gimli/0.26.1/download", + name = "wasmtime__gimli__0_26_2", + url = "https://crates.io/api/v1/crates/gimli/0.26.2/download", type = "tar.gz", - sha256 = "78cc372d058dcf6d5ecd98510e7fbc9e5aec4d21de70f65fea8fecebcd881bd4", - strip_prefix = "gimli-0.26.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.gimli-0.26.1.bazel"), + sha256 = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d", + strip_prefix = "gimli-0.26.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.gimli-0.26.2.bazel"), ) maybe( @@ -349,12 +349,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__hashbrown__0_12_2", - url = "https://crates.io/api/v1/crates/hashbrown/0.12.2/download", + name = "wasmtime__hashbrown__0_12_3", + url = "https://crates.io/api/v1/crates/hashbrown/0.12.3/download", type = "tar.gz", - sha256 = "607c8a29735385251a339424dd462993c0fed8fa09d378f259377df08c126022", - strip_prefix = "hashbrown-0.12.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.12.2.bazel"), + sha256 = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888", + strip_prefix = "hashbrown-0.12.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.12.3.bazel"), ) maybe( @@ -389,12 +389,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__io_lifetimes__0_5_3", - url = "https://crates.io/api/v1/crates/io-lifetimes/0.5.3/download", + name = "wasmtime__io_lifetimes__0_7_2", + url = "https://crates.io/api/v1/crates/io-lifetimes/0.7.2/download", type = "tar.gz", - sha256 = "ec58677acfea8a15352d42fc87d11d63596ade9239e0a7c9352914417515dbe6", - strip_prefix = "io-lifetimes-0.5.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.5.3.bazel"), + sha256 = "24c3f4eff5495aee4c0399d7b6a0dc2b6e81be84242ffbfcf253ebacccc1d0cb", + strip_prefix = "io-lifetimes-0.7.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.7.2.bazel"), ) maybe( @@ -429,12 +429,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__linux_raw_sys__0_0_42", - url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.42/download", + name = "wasmtime__linux_raw_sys__0_0_46", + url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.46/download", type = "tar.gz", - sha256 = "5284f00d480e1c39af34e72f8ad60b94f47007e3481cd3b731c1d67190ddc7b7", - strip_prefix = "linux-raw-sys-0.0.42", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.42.bazel"), + sha256 = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d", + strip_prefix = "linux-raw-sys-0.0.46", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.46.bazel"), ) maybe( @@ -549,22 +549,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__proc_macro2__1_0_40", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.40/download", + name = "wasmtime__proc_macro2__1_0_42", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.42/download", type = "tar.gz", - sha256 = "dd96a1e8ed2596c337f8eae5f24924ec83f5ad5ab21ea8e455d3566c69fbcaf7", - strip_prefix = "proc-macro2-1.0.40", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.40.bazel"), + sha256 = "c278e965f1d8cf32d6e0e96de3d3e79712178ae67986d9cf9151f51e95aac89b", + strip_prefix = "proc-macro2-1.0.42", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.42.bazel"), ) maybe( http_archive, - name = "wasmtime__psm__0_1_19", - url = "https://crates.io/api/v1/crates/psm/0.1.19/download", + name = "wasmtime__psm__0_1_20", + url = "https://crates.io/api/v1/crates/psm/0.1.20/download", type = "tar.gz", - sha256 = "accd89aa18fbf9533a581355a22438101fe9c2ed8c9e2f0dcf520552a3afddf2", - strip_prefix = "psm-0.1.19", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.19.bazel"), + sha256 = "f446d0a6efba22928558c4fb4ce0b3fd6c89b0061343e390bf01a703742b8125", + strip_prefix = "psm-0.1.20", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.20.bazel"), ) maybe( @@ -609,12 +609,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__regalloc2__0_2_3", - url = "https://crates.io/api/v1/crates/regalloc2/0.2.3/download", + name = "wasmtime__regalloc2__0_3_1", + url = "https://crates.io/api/v1/crates/regalloc2/0.3.1/download", type = "tar.gz", - sha256 = "4a8d23b35d7177df3b9d31ed8a9ab4bf625c668be77a319d4f5efd4a5257701c", - strip_prefix = "regalloc2-0.2.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.2.3.bazel"), + sha256 = "76ff2e57a7d050308b3fde0f707aa240b491b190e3855f212860f11bb3af4205", + strip_prefix = "regalloc2-0.3.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.3.1.bazel"), ) maybe( @@ -659,32 +659,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_33_7", - url = "https://crates.io/api/v1/crates/rustix/0.33.7/download", + name = "wasmtime__rustix__0_35_7", + url = "https://crates.io/api/v1/crates/rustix/0.35.7/download", type = "tar.gz", - sha256 = "938a344304321a9da4973b9ff4f9f8db9caf4597dfd9dda6a60b523340a0fff0", - strip_prefix = "rustix-0.33.7", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.33.7.bazel"), + sha256 = "d51cc38aa10f6bbb377ed28197aa052aa4e2b762c22be9d3153d01822587e787", + strip_prefix = "rustix-0.35.7", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.35.7.bazel"), ) maybe( http_archive, - name = "wasmtime__serde__1_0_139", - url = "https://crates.io/api/v1/crates/serde/1.0.139/download", + name = "wasmtime__serde__1_0_140", + url = "https://crates.io/api/v1/crates/serde/1.0.140/download", type = "tar.gz", - sha256 = "0171ebb889e45aa68b44aee0859b3eede84c6f5f5c228e6f140c0b2a0a46cad6", - strip_prefix = "serde-1.0.139", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.139.bazel"), + sha256 = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03", + strip_prefix = "serde-1.0.140", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.140.bazel"), ) maybe( http_archive, - name = "wasmtime__serde_derive__1_0_139", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.139/download", + name = "wasmtime__serde_derive__1_0_140", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.140/download", type = "tar.gz", - sha256 = "dc1d3230c1de7932af58ad8ffbe1d784bd55efd5a9d84ac24f69c72d83543dfb", - strip_prefix = "serde_derive-1.0.139", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.139.bazel"), + sha256 = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da", + strip_prefix = "serde_derive-1.0.140", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.140.bazel"), ) maybe( @@ -769,12 +769,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__unicode_ident__1_0_1", - url = "https://crates.io/api/v1/crates/unicode-ident/1.0.1/download", + name = "wasmtime__unicode_ident__1_0_2", + url = "https://crates.io/api/v1/crates/unicode-ident/1.0.2/download", type = "tar.gz", - sha256 = "5bd2fe26506023ed7b5e1e315add59d6f584c621d037f9368fea9cfb988f368c", - strip_prefix = "unicode-ident-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.1.bazel"), + sha256 = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7", + strip_prefix = "unicode-ident-1.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.2.bazel"), ) maybe( @@ -799,91 +799,91 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmparser__0_85_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.85.0/download", + name = "wasmtime__wasmparser__0_86_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.86.0/download", type = "tar.gz", - sha256 = "570460c58b21e9150d2df0eaaedbb7816c34bcec009ae0dcc976e40ba81463e7", - strip_prefix = "wasmparser-0.85.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.85.0.bazel"), + sha256 = "4bcbfe95447da2aa7ff171857fc8427513eb57c75a729bb190e974dc695e8f5c", + strip_prefix = "wasmparser-0.86.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.86.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__0_38_1", - url = "https://crates.io/api/v1/crates/wasmtime/0.38.1/download", + name = "wasmtime__wasmtime__0_39_1", + url = "https://crates.io/api/v1/crates/wasmtime/0.39.1/download", type = "tar.gz", - sha256 = "e76e2b2833bb0ece666ccdbed7b71b617d447da11f1bb61f4f2bab2648f745ee", - strip_prefix = "wasmtime-0.38.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.38.1.bazel"), + sha256 = "0d10a6853d64e99fffdae80f93a45080475c9267f87743060814dc1186d74618", + strip_prefix = "wasmtime-0.39.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.39.1.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "9e2adfb34531610d691f74dd3f559bc5b800eb02", + commit = "19b5436ac346b8e61230baeaf18e802db6f0b858", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_38_1", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.38.1/download", + name = "wasmtime__wasmtime_cranelift__0_39_1", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.39.1/download", type = "tar.gz", - sha256 = "5dc0f80afa1ce97083a7168e6b6948d015d6237369e9f4a511d38c9c4ac8fbb9", - strip_prefix = "wasmtime-cranelift-0.38.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.38.1.bazel"), + sha256 = "3302b33d919e8e33f1717d592c10c3cddccb318d0e1e0bef75178f579686ba94", + strip_prefix = "wasmtime-cranelift-0.39.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.39.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_38_1", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.38.1/download", + name = "wasmtime__wasmtime_environ__0_39_1", + url = "https://crates.io/api/v1/crates/wasmtime-environ/0.39.1/download", type = "tar.gz", - sha256 = "0816d9365196f1f447060087e0f87239ccded830bd54970a1168b0c9c8e824c9", - strip_prefix = "wasmtime-environ-0.38.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.38.1.bazel"), + sha256 = "7c50fb925e8eaa9f8431f9b784ea89a13c703cb445ddfe51cb437596fc34e734", + strip_prefix = "wasmtime-environ-0.39.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.39.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_38_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.38.1/download", + name = "wasmtime__wasmtime_jit__0_39_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit/0.39.1/download", type = "tar.gz", - sha256 = "5c687f33cfa0f89ec1646929d0ff102087052cf9f0d15533de56526b0da0d1b3", - strip_prefix = "wasmtime-jit-0.38.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.38.1.bazel"), + sha256 = "cad81635f33ab69aa04b386c9d954aef9f6230059f66caf67e55fb65bfd2f3e0", + strip_prefix = "wasmtime-jit-0.39.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.39.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__0_38_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.38.1/download", + name = "wasmtime__wasmtime_jit_debug__0_39_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.39.1/download", type = "tar.gz", - sha256 = "b252d1d025f94f3954ba2111f12f3a22826a0764a11c150c2d46623115a69e27", - strip_prefix = "wasmtime-jit-debug-0.38.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.38.1.bazel"), + sha256 = "55e23273fddce8cab149a0743c46932bf4910268641397ed86b46854b089f38f", + strip_prefix = "wasmtime-jit-debug-0.39.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.39.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_38_1", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.38.1/download", + name = "wasmtime__wasmtime_runtime__0_39_1", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.39.1/download", type = "tar.gz", - sha256 = "ace251693103c9facbbd7df87a29a75e68016e48bc83c09133f2fda6b575e0ab", - strip_prefix = "wasmtime-runtime-0.38.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.38.1.bazel"), + sha256 = "36b8aafb292502d28dc2d25f44d4a81e229bb2e0cc14ca847dde4448a1a62ae4", + strip_prefix = "wasmtime-runtime-0.39.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.39.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_38_1", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.38.1/download", + name = "wasmtime__wasmtime_types__0_39_1", + url = "https://crates.io/api/v1/crates/wasmtime-types/0.39.1/download", type = "tar.gz", - sha256 = "d129b0487a95986692af8708ffde9c50b0568dcefd79200941d475713b4f40bb", - strip_prefix = "wasmtime-types-0.38.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.38.1.bazel"), + sha256 = "dd7edc34f358fc290d12e326de81884422cb94cf74cc305b27979569875332d6", + strip_prefix = "wasmtime-types-0.39.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.39.1.bazel"), ) maybe( @@ -925,3 +925,63 @@ def wasmtime_fetch_remote_crates(): strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) + + maybe( + http_archive, + name = "wasmtime__windows_sys__0_36_1", + url = "https://crates.io/api/v1/crates/windows-sys/0.36.1/download", + type = "tar.gz", + sha256 = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2", + strip_prefix = "windows-sys-0.36.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.36.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__windows_aarch64_msvc__0_36_1", + url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.36.1/download", + type = "tar.gz", + sha256 = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47", + strip_prefix = "windows_aarch64_msvc-0.36.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.36.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__windows_i686_gnu__0_36_1", + url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.36.1/download", + type = "tar.gz", + sha256 = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6", + strip_prefix = "windows_i686_gnu-0.36.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.36.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__windows_i686_msvc__0_36_1", + url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.36.1/download", + type = "tar.gz", + sha256 = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024", + strip_prefix = "windows_i686_msvc-0.36.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.36.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__windows_x86_64_gnu__0_36_1", + url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.36.1/download", + type = "tar.gz", + sha256 = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1", + strip_prefix = "windows_x86_64_gnu-0.36.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.36.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__windows_x86_64_msvc__0_36_1", + url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.36.1/download", + type = "tar.gz", + sha256 = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680", + strip_prefix = "windows_x86_64_msvc-0.36.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.36.1.bazel"), + ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel index 35a316e9b..7c243418c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel @@ -52,7 +52,7 @@ rust_library( version = "0.17.0", # buildifier: leave-alone deps = [ - "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__gimli__0_26_2//:gimli", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index 06661a195..9c84912e1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -50,7 +50,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__serde__1_0_140//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.86.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.86.1.bazel index b230628a1..2c47d6ca1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.86.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.86.1.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.86.1.bazel index f7b7ccd75..7166edccc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.86.1.bazel @@ -58,11 +58,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.85.1", + version = "0.86.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_85_1//:cranelift_codegen_meta", - "@wasmtime__cranelift_isle__0_85_1//:cranelift_isle", + "@wasmtime__cranelift_codegen_meta__0_86_1//:cranelift_codegen_meta", + "@wasmtime__cranelift_isle__0_86_1//:cranelift_isle", ], ) @@ -88,16 +88,16 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_85_1//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_85_1//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", - "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__cranelift_bforest__0_86_1//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_86_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regalloc2__0_2_3//:regalloc2", + "@wasmtime__regalloc2__0_3_1//:regalloc2", "@wasmtime__smallvec__1_9_0//:smallvec", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.86.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.86.1.bazel index 13e23bb6e..facc249e0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.86.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_85_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_86_1//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.86.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.86.1.bazel index 83f167723..f07373936 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.86.1.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.86.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.86.1.bazel index 08cbb9d0f..94b0c60f6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.86.1.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__serde__1_0_140//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.86.1.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.86.1.bazel index 0e47a1821..9af54ee58 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.86.1.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_9_0//:smallvec", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.86.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.86.1.bazel index a05626249..19c0d17f3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.86.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.85.1", + version = "0.86.1", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "crate-name=cranelift-isle", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ ":cranelift_isle_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.86.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.86.1.bazel index dc39f77a2..dfad6ff09 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.86.1.bazel @@ -51,10 +51,10 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.85.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.86.1.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.85.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.86.1.bazel index f0d7b4d85..31d86a2d4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.85.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.86.1.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.85.1", + version = "0.86.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_85_1//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_86_1//:cranelift_frontend", "@wasmtime__itertools__0_10_3//:itertools", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_9_0//:smallvec", - "@wasmtime__wasmparser__0_85_0//:wasmparser", - "@wasmtime__wasmtime_types__0_38_1//:wasmtime_types", + "@wasmtime__wasmparser__0_86_0//:wasmparser", + "@wasmtime__wasmtime_types__0_39_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel index b726bd804..ec6cb4852 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel @@ -26,7 +26,7 @@ package(default_visibility = [ ]) licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" + "notice", # MIT from expression "MIT OR Apache-2.0" ]) # Generated Targets @@ -64,7 +64,7 @@ rust_library( "crate-name=gimli", "manual", ], - version = "0.26.1", + version = "0.26.2", # buildifier: leave-alone deps = [ "@wasmtime__fallible_iterator__0_2_0//:fallible_iterator", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index df6b301ae..3b0fce03b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -52,7 +52,7 @@ rust_library( "crate-name=hashbrown", "manual", ], - version = "0.12.2", + version = "0.12.3", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel index 9c2d17f57..0de97917d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel @@ -91,8 +91,8 @@ rust_library( # buildifier: leave-alone deps = [ ":indexmap_build_script", - "@wasmtime__hashbrown__0_12_2//:hashbrown", - "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__hashbrown__0_12_3//:hashbrown", + "@wasmtime__serde__1_0_140//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.2.bazel index 711157c37..5f40d72df 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.5.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.5.3", + version = "0.7.2", visibility = ["//visibility:private"], deps = [ ], @@ -86,7 +86,7 @@ rust_library( "crate-name=io-lifetimes", "manual", ], - version = "0.5.3", + version = "0.7.2", # buildifier: leave-alone deps = [ ":io_lifetimes_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.42.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.46.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.42.bazel rename to bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.46.bazel index 9aa497183..a3a724ab6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.42.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.46.bazel @@ -39,7 +39,6 @@ rust_library( "general", "ioctl", "no_std", - "std", ], crate_root = "src/lib.rs", data = [], @@ -52,7 +51,7 @@ rust_library( "crate-name=linux-raw-sys", "manual", ], - version = "0.0.42", + version = "0.0.46", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.40.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.42.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.40.bazel rename to bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.42.bazel index 298ea3764..df239e4a7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.40.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.42.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.40", + version = "1.0.42", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=proc-macro2", "manual", ], - version = "1.0.40", + version = "1.0.42", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@wasmtime__unicode_ident__1_0_1//:unicode_ident", + "@wasmtime__unicode_ident__1_0_2//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.20.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.psm-0.1.19.bazel rename to bazel/cargo/wasmtime/remote/BUILD.psm-0.1.20.bazel index 697f08fae..df571f008 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.20.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.19", + version = "0.1.20", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -89,7 +89,7 @@ rust_library( "crate-name=psm", "manual", ], - version = "0.1.19", + version = "0.1.20", # buildifier: leave-alone deps = [ ":psm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel index 41f48600f..31bdc853a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel @@ -84,7 +84,7 @@ rust_library( # buildifier: leave-alone deps = [ ":quote_build_script", - "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__proc_macro2__1_0_42//:proc_macro2", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.2.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.1.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.2.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.1.bazel index 0d5655bc0..a1fbc6f0d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.2.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=regalloc2", "manual", ], - version = "0.2.3", + version = "0.3.1", # buildifier: leave-alone deps = [ "@wasmtime__fxhash__0_2_1//:fxhash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.7.bazel similarity index 69% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.7.bazel index cefd75200..f6c825bce 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.33.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.7.bazel @@ -45,6 +45,9 @@ cargo_build_script( crate_features = [ "default", "io-lifetimes", + "linux-raw-sys", + "mm", + "process", "std", ], crate_root = "build.rs", @@ -58,31 +61,28 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.33.7", + version = "0.35.7", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) + # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_42//:linux_raw_sys", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(all(windows, not(target_vendor = "uwp"))) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ + "@wasmtime__linux_raw_sys__0_0_46//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -109,6 +109,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ + "@wasmtime__windows_sys__0_36_1//:windows_sys", ], "//conditions:default": [], }), @@ -130,10 +131,14 @@ rust_library( name = "rustix", srcs = glob(["**/*.rs"]), aliases = { + "@wasmtime__errno__0_2_8//:errno": "libc_errno", }, crate_features = [ "default", "io-lifetimes", + "linux-raw-sys", + "mm", + "process", "std", ], crate_root = "src/lib.rs", @@ -148,25 +153,30 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.33.7", + version = "0.35.7", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__0_5_3//:io_lifetimes", + "@wasmtime__io_lifetimes__0_7_2//:io_lifetimes", ] + selects.with_or({ - # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))) + # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_42//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_0_46//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", not(target_pointer_width = "32")), target_arch = "arm", target_arch = "aarch64", target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", @@ -195,7 +205,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__winapi__0_3_9//:winapi", + "@wasmtime__windows_sys__0_36_1//:windows_sys", ], "//conditions:default": [], }), @@ -207,14 +217,20 @@ rust_library( # Unsupported target "io" with type "test" omitted +# Unsupported target "mm" with type "test" omitted + # Unsupported target "net" with type "test" omitted +# Unsupported target "param" with type "test" omitted + # Unsupported target "path" with type "test" omitted # Unsupported target "process" with type "test" omitted # Unsupported target "rand" with type "test" omitted +# Unsupported target "termios" with type "test" omitted + # Unsupported target "thread" with type "test" omitted # Unsupported target "time" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.139.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.140.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.serde-1.0.139.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde-1.0.140.bazel index 7aa7b9944..bc423b52d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.139.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.140.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.139", + version = "1.0.140", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@wasmtime__serde_derive__1_0_139//:serde_derive", + "@wasmtime__serde_derive__1_0_140//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -87,7 +87,7 @@ rust_library( "crate-name=serde", "manual", ], - version = "1.0.139", + version = "1.0.140", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.139.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.140.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.139.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.140.bazel index 4cff57740..68dae3a52 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.139.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.140.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.139", + version = "1.0.140", visibility = ["//visibility:private"], deps = [ ], @@ -78,11 +78,11 @@ rust_proc_macro( "crate-name=serde_derive", "manual", ], - version = "1.0.139", + version = "1.0.140", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__proc_macro2__1_0_42//:proc_macro2", "@wasmtime__quote__1_0_20//:quote", "@wasmtime__syn__1_0_98//:syn", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel index 47eda55de..d6d65ce09 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel @@ -98,9 +98,9 @@ rust_library( # buildifier: leave-alone deps = [ ":syn_build_script", - "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__proc_macro2__1_0_42//:proc_macro2", "@wasmtime__quote__1_0_20//:quote", - "@wasmtime__unicode_ident__1_0_1//:unicode_ident", + "@wasmtime__unicode_ident__1_0_2//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel index eb959b04e..e0aa3ba97 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel @@ -50,7 +50,7 @@ rust_proc_macro( version = "1.0.31", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__proc_macro2__1_0_42//:proc_macro2", "@wasmtime__quote__1_0_20//:quote", "@wasmtime__syn__1_0_98//:syn", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.2.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.2.bazel index 665e53f28..1fe703741 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.2.bazel @@ -26,7 +26,7 @@ package(default_visibility = [ ]) licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" + "notice", # MIT from expression "(MIT OR Apache-2.0) AND Unicode-DFS-2016" ]) # Generated Targets @@ -49,7 +49,7 @@ rust_library( "crate-name=unicode-ident", "manual", ], - version = "1.0.1", + version = "1.0.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.85.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.86.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.85.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.86.0.bazel index 4a2f051c4..7f20f3239 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.85.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.86.0.bazel @@ -51,7 +51,7 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.85.0", + version = "0.86.0", # buildifier: leave-alone deps = [ "@wasmtime__indexmap__1_9_1//:indexmap", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.38.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.39.1.bazel similarity index 83% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.38.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.39.1.bazel index 573c8ebe9..1d41169cb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.38.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.39.1.bazel @@ -44,7 +44,6 @@ cargo_build_script( }, crate_features = [ "cranelift", - "wasmtime-cranelift", ], crate_root = "build.rs", data = glob(["**"]), @@ -56,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.38.1", + version = "0.39.1", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -65,6 +64,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ + "@wasmtime__windows_sys__0_36_1//:windows_sys", ], "//conditions:default": [], }), @@ -77,7 +77,6 @@ rust_library( }, crate_features = [ "cranelift", - "wasmtime-cranelift", ], crate_root = "src/lib.rs", data = [], @@ -93,7 +92,7 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.38.1", + version = "0.39.1", # buildifier: leave-alone deps = [ ":wasmtime_build_script", @@ -107,22 +106,22 @@ rust_library( "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_28_4//:object", "@wasmtime__once_cell__1_13_0//:once_cell", - "@wasmtime__psm__0_1_19//:psm", + "@wasmtime__psm__0_1_20//:psm", "@wasmtime__region__2_2_0//:region", - "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__serde__1_0_140//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", - "@wasmtime__wasmparser__0_85_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_38_1//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_38_1//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_38_1//:wasmtime_runtime", + "@wasmtime__wasmparser__0_86_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__0_39_1//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit__0_39_1//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__0_39_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__winapi__0_3_9//:winapi", + "@wasmtime__windows_sys__0_36_1//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index c84ee1df4..f89e48e9c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -50,7 +50,7 @@ rust_proc_macro( version = "0.19.0", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_40//:proc_macro2", + "@wasmtime__proc_macro2__1_0_42//:proc_macro2", "@wasmtime__quote__1_0_20//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.38.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.39.1.bazel similarity index 73% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.38.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.39.1.bazel index 5860328cd..271a03530 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.38.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.39.1.bazel @@ -47,22 +47,22 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.38.1", + version = "0.39.1", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_58//:anyhow", - "@wasmtime__cranelift_codegen__0_85_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_85_1//:cranelift_frontend", - "@wasmtime__cranelift_native__0_85_1//:cranelift_native", - "@wasmtime__cranelift_wasm__0_85_1//:cranelift_wasm", - "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_86_1//:cranelift_frontend", + "@wasmtime__cranelift_native__0_86_1//:cranelift_native", + "@wasmtime__cranelift_wasm__0_86_1//:cranelift_wasm", + "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_28_4//:object", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_85_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", + "@wasmtime__wasmparser__0_86_0//:wasmparser", + "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.38.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.39.1.bazel similarity index 82% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.38.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.39.1.bazel index 0ab887ee1..d419143af 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.38.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.39.1.bazel @@ -47,20 +47,20 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.38.1", + version = "0.39.1", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_58//:anyhow", - "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", - "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__log__0_4_17//:log", "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__object__0_28_4//:object", - "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__serde__1_0_140//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_85_0//:wasmparser", - "@wasmtime__wasmtime_types__0_38_1//:wasmtime_types", + "@wasmtime__wasmparser__0_86_0//:wasmparser", + "@wasmtime__wasmtime_types__0_39_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.38.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.39.1.bazel similarity index 87% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.38.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.39.1.bazel index cb158a7cf..9dc295d10 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.38.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.39.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.38.1", + version = "0.39.1", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", @@ -57,16 +57,16 @@ rust_library( "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", - "@wasmtime__gimli__0_26_1//:gimli", + "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_28_4//:object", "@wasmtime__region__2_2_0//:region", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", - "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__serde__1_0_140//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_38_1//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__0_39_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -77,7 +77,7 @@ rust_library( "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__rustix__0_33_7//:rustix", + "@wasmtime__rustix__0_35_7//:rustix", ], "//conditions:default": [], }) + selects.with_or({ @@ -86,7 +86,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__winapi__0_3_9//:winapi", + "@wasmtime__windows_sys__0_36_1//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.38.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.39.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.38.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.39.1.bazel index 8ddfe20ad..0a4d8d96d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.38.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.39.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "0.38.1", + version = "0.39.1", # buildifier: leave-alone deps = [ "@wasmtime__lazy_static__1_4_0//:lazy_static", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.38.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.39.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.38.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.39.1.bazel index 501a0625b..1bb5b3c7a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.38.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.39.1.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.38.1", + version = "0.39.1", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -73,6 +73,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ + "@wasmtime__windows_sys__0_36_1//:windows_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -118,7 +119,7 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.38.1", + version = "0.39.1", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", @@ -133,8 +134,8 @@ rust_library( "@wasmtime__rand__0_8_5//:rand", "@wasmtime__region__2_2_0//:region", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmtime_environ__0_38_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__0_38_1//:wasmtime_jit_debug", + "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__0_39_1//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -151,7 +152,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__winapi__0_3_9//:winapi", + "@wasmtime__windows_sys__0_36_1//:windows_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -174,7 +175,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_33_7//:rustix", + "@wasmtime__rustix__0_35_7//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.38.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.39.1.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.38.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.39.1.bazel index dca2d0441..582cfbd44 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.38.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.39.1.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.38.1", + version = "0.39.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_85_1//:cranelift_entity", - "@wasmtime__serde__1_0_139//:serde", + "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__serde__1_0_140//:serde", "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_85_0//:wasmparser", + "@wasmtime__wasmparser__0_86_0//:wasmparser", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel index 55dfd5cad..e8b88f89d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel @@ -47,8 +47,6 @@ cargo_build_script( "consoleapi", "errhandlingapi", "fileapi", - "handleapi", - "impl-default", "memoryapi", "minwinbase", "minwindef", @@ -60,8 +58,6 @@ cargo_build_script( "wincon", "winerror", "winnt", - "ws2ipdef", - "ws2tcpip", ], crate_root = "build.rs", data = glob(["**"]), @@ -87,8 +83,6 @@ rust_library( "consoleapi", "errhandlingapi", "fileapi", - "handleapi", - "impl-default", "memoryapi", "minwinbase", "minwindef", @@ -100,8 +94,6 @@ rust_library( "wincon", "winerror", "winnt", - "ws2ipdef", - "ws2tcpip", ], crate_root = "src/lib.rs", data = [], diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel new file mode 100644 index 000000000..8ba64f652 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel @@ -0,0 +1,88 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "windows_sys", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "Win32", + "Win32_Foundation", + "Win32_NetworkManagement", + "Win32_NetworkManagement_IpHelper", + "Win32_Networking", + "Win32_Networking_WinSock", + "Win32_Security", + "Win32_Storage", + "Win32_Storage_FileSystem", + "Win32_System", + "Win32_System_Diagnostics", + "Win32_System_Diagnostics_Debug", + "Win32_System_Kernel", + "Win32_System_Memory", + "Win32_System_Threading", + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows-sys", + "manual", + ], + version = "0.36.1", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # i686-pc-windows-msvc + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + ): [ + "@wasmtime__windows_i686_msvc__0_36_1//:windows_i686_msvc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # x86_64-pc-windows-msvc + ( + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@wasmtime__windows_x86_64_msvc__0_36_1//:windows_x86_64_msvc", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.36.1.bazel new file mode 100644 index 000000000..bdbed759a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.36.1.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_aarch64_msvc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.36.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_aarch64_msvc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_aarch64_msvc", + "manual", + ], + version = "0.36.1", + # buildifier: leave-alone + deps = [ + ":windows_aarch64_msvc_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.36.1.bazel new file mode 100644 index 000000000..a20218dc6 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.36.1.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_i686_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.36.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_i686_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_i686_gnu", + "manual", + ], + version = "0.36.1", + # buildifier: leave-alone + deps = [ + ":windows_i686_gnu_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.36.1.bazel new file mode 100644 index 000000000..f0d7b96cb --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.36.1.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_i686_msvc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.36.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_i686_msvc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_i686_msvc", + "manual", + ], + version = "0.36.1", + # buildifier: leave-alone + deps = [ + ":windows_i686_msvc_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.36.1.bazel new file mode 100644 index 000000000..6fb1e25e2 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.36.1.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_x86_64_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.36.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_x86_64_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_x86_64_gnu", + "manual", + ], + version = "0.36.1", + # buildifier: leave-alone + deps = [ + ":windows_x86_64_gnu_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.36.1.bazel new file mode 100644 index 000000000..b94fe7017 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.36.1.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_x86_64_msvc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.36.1", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_x86_64_msvc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_x86_64_msvc", + "manual", + ], + version = "0.36.1", + # buildifier: leave-alone + deps = [ + ":windows_x86_64_msvc_build_script", + ], +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 0732d8886..c9b8e6a0f 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -203,9 +203,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "8cb4ed3f14a1b054ff36e7017c056f10a28b57673f21d7548354fd40f2f02b3b", - strip_prefix = "wasmtime-0.38.1", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.38.1.tar.gz", + sha256 = "6ef70886da14245f575c6ff8c7c999ae22579257eba5ebf382e066598c1e381c", + strip_prefix = "wasmtime-0.39.1", + url = "https://github.com/bytecodealliance/wasmtime/archive/v0.39.1.tar.gz", ) maybe( From 38277868280b1c2933d6cf01fd7302ae8fbd6fc8 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 1 Aug 2022 19:59:50 -0500 Subject: [PATCH 213/287] wavm: update to nightly/2022-05-14. (#295) Signed-off-by: Piotr Sikora --- bazel/external/wavm.patch | 14 -------------- bazel/repositories.bzl | 8 +++----- test/runtime_test.cc | 6 ------ 3 files changed, 3 insertions(+), 25 deletions(-) delete mode 100644 bazel/external/wavm.patch diff --git a/bazel/external/wavm.patch b/bazel/external/wavm.patch deleted file mode 100644 index a03c67c32..000000000 --- a/bazel/external/wavm.patch +++ /dev/null @@ -1,14 +0,0 @@ -# Fix build with Clang 13. (https://github.com/WAVM/WAVM/pull/332) - -diff --git a/Lib/Platform/POSIX/ThreadPOSIX.cpp b/Lib/Platform/POSIX/ThreadPOSIX.cpp -index e1f232f6..d3241349 100644 ---- a/Lib/Platform/POSIX/ThreadPOSIX.cpp -+++ b/Lib/Platform/POSIX/ThreadPOSIX.cpp -@@ -173,6 +173,7 @@ WAVM_NO_ASAN static void touchStackPages(U8* minAddr, Uptr numBytesPerPage) - sum += *touchAddr; - if(touchAddr < minAddr + numBytesPerPage) { break; } - } -+ WAVM_SUPPRESS_UNUSED(sum); - } - - bool Platform::initThreadAndGlobalSignalsOnce() diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index c9b8e6a0f..af8d5c8b6 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -233,11 +233,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_wavm_wavm", build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD", - sha256 = "bf2b2aec8a4c6a5413081c0527cb40dd16cb67e9c74a91f8a82fe1cf27a3c5d5", - strip_prefix = "WAVM-c8997ebf154f3b42e688e670a7d0fa045b7a32a0", - url = "https://github.com/WAVM/WAVM/archive/c8997ebf154f3b42e688e670a7d0fa045b7a32a0.tar.gz", - patches = ["@proxy_wasm_cpp_host//bazel/external:wavm.patch"], - patch_args = ["-p1"], + sha256 = "7cfa3d7334c96f89553bb44eeee736a192826a78b4db114042d38d6882748f5b", + strip_prefix = "WAVM-nightly-2022-05-14", + url = "https://github.com/WAVM/WAVM/archive/refs/tags/nightly/2022-05-14.tar.gz", ) native.bind( diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 2d178466a..d0f6fd0af 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -165,12 +165,6 @@ TEST_P(TestVm, Trap) { } TEST_P(TestVm, Trap2) { - if (engine_ == "wavm") { - // TODO(mathetake): Somehow WAVM exits with 'munmap_chunk(): invalid pointer' on unidentified - // build condition in 'libstdc++ abi::__cxa_demangle' originally from - // WAVM::Runtime::describeCallStack. Needs further investigation. - return; - } auto source = readTestWasmFile("trap.wasm"); ASSERT_FALSE(source.empty()); auto wasm = TestWasm(std::move(vm_)); From d8a784759921081afe3fa54debeb202d4a6c67e2 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 1 Aug 2022 21:22:48 -0500 Subject: [PATCH 214/287] Demangle in-VM backtraces from C++ and Rust plugins. (#299) Before: Proxy-Wasm plugin in-VM backtrace: 0: 0x60c3 - rust_oom 1: 0x6d2c - __rg_oom 2: 0x38b1 - __rust_alloc_error_handler 3: 0x6cb3 - _ZN5alloc5alloc18handle_alloc_error8rt_error17hc05c98d79426d4d3E 4: 0x6ca5 - _ZN4core3ops8function6FnOnce9call_once17h104529aa81b44c4eE 5: 0x6d1e - _ZN4core10intrinsics17const_eval_select17hbbf517c24e8eee9cE 6: 0x6cc1 - _ZN5alloc5alloc18handle_alloc_error17hd51ecca19a6d9162E 7: 0x519 - _ZN5alloc7raw_vec19RawVec$LT$T$C$A$GT$11allocate_in17h4065aea9ced9d1eeE 8: 0x2b9 - _ZN5alloc7raw_vec19RawVec$LT$T$C$A$GT$16with_capacity_in17h2c8a17f6c910dc68E 9: 0x303a - _ZN5alloc3vec16Vec$LT$T$C$A$GT$16with_capacity_in17hb7917fc637d55bb8E After: Proxy-Wasm plugin in-VM backtrace: 0: 0x60c3 - rust_oom 1: 0x6d2c - __rg_oom 2: 0x38b1 - __rust_alloc_error_handler 3: 0x6cb3 - alloc::alloc::handle_alloc_error::rt_error::hc05c98d79426d4d3 4: 0x6ca5 - core::ops::function::FnOnce::call_once::h104529aa81b44c4e 5: 0x6d1e - core::intrinsics::const_eval_select::hbbf517c24e8eee9c 6: 0x6cc1 - alloc::alloc::handle_alloc_error::hd51ecca19a6d9162 7: 0x519 - alloc::raw_vec::RawVec$LT$T$C$A$GT$::allocate_in::h4065aea9ced9d1ee 8: 0x2b9 - alloc::raw_vec::RawVec$LT$T$C$A$GT$::with_capacity_in::h2c8a17f6c910dc68 9: 0x303a - alloc::vec::Vec$LT$T$C$A$GT$::with_capacity_in::hb7917fc637d55bb8 Signed-off-by: Piotr Sikora --- src/bytecode_util.cc | 15 ++++++++++++++- test/runtime_test.cc | 3 +++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/bytecode_util.cc b/src/bytecode_util.cc index 3c5f768f2..0d44c57e2 100644 --- a/src/bytecode_util.cc +++ b/src/bytecode_util.cc @@ -14,6 +14,10 @@ #include "include/proxy-wasm/bytecode_util.h" +#if !defined(_MSC_VER) +#include +#endif + #include namespace proxy_wasm { @@ -165,7 +169,16 @@ bool BytecodeUtil::getFunctionNameIndex(std::string_view bytecode, if (!parseVarint(pos, end, func_name_size) || pos + func_name_size > end) { return false; } - ret.insert({func_index, std::string(pos, func_name_size)}); + auto func_name = std::string(pos, func_name_size); +#if !defined(_MSC_VER) + int status; + char *data = abi::__cxa_demangle(func_name.c_str(), nullptr, nullptr, &status); + if (data != nullptr) { + func_name = std::string(data); + ::free(data); + } +#endif + ret.insert({func_index, func_name}); pos += func_name_size; } if (start + subsection_size != pos) { diff --git a/test/runtime_test.cc b/test/runtime_test.cc index d0f6fd0af..dfb2c3633 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -139,6 +139,7 @@ TEST_P(TestVm, WasmMemoryLimit) { EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); EXPECT_TRUE(host->isErrorLogged(" - rust_oom")); + EXPECT_TRUE(host->isErrorLogged(" - alloc::alloc::handle_alloc_error")); } } @@ -160,6 +161,7 @@ TEST_P(TestVm, Trap) { if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); + EXPECT_TRUE(host->isErrorLogged(" - std::panicking::begin_panic")); EXPECT_TRUE(host->isErrorLogged(" - trigger")); } } @@ -182,6 +184,7 @@ TEST_P(TestVm, Trap2) { if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); + EXPECT_TRUE(host->isErrorLogged(" - std::panicking::begin_panic")); EXPECT_TRUE(host->isErrorLogged(" - trigger2")); } } From c3c1a8ff02ce55fc55b2c6437cdc147cd919de0d Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Mon, 1 Aug 2022 22:33:32 -0500 Subject: [PATCH 215/287] Print trap messages in a consistent manner across Wasm engines. (#300) Signed-off-by: Piotr Sikora --- src/wamr/wamr.cc | 8 ++++---- src/wasmedge/wasmedge.cc | 8 ++++---- src/wasmtime/wasmtime.cc | 8 ++++---- test/runtime_test.cc | 28 ++++++++++++++++++++++------ 4 files changed, 34 insertions(+), 18 deletions(-) diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 6e97ebfb0..e193358cc 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -578,9 +578,9 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); + std::string message(error_message.get()->data); // NULL-terminated fail(FailState::RuntimeError, - "Function: " + std::string(function_name) + " failed:\n" + - std::string(error_message.get()->data, error_message.get()->size)); + "Function: " + std::string(function_name) + " failed: " + message); return; } if (log) { @@ -628,9 +628,9 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); + std::string message(error_message.get()->data); // NULL-terminated fail(FailState::RuntimeError, - "Function: " + std::string(function_name) + " failed:\n" + - std::string(error_message.get()->data, error_message.get()->size)); + "Function: " + std::string(function_name) + " failed: " + message); return R{}; } R ret = convertValueTypeToArg(results.data[0]); diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc index 0a0a10d45..f22d588ac 100644 --- a/src/wasmedge/wasmedge.cc +++ b/src/wasmedge/wasmedge.cc @@ -540,8 +540,8 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, WasmEdge_Result res = WasmEdge_ExecutorInvoke(executor_.get(), func_cxt, params, sizeof...(Args), nullptr, 0); if (!WasmEdge_ResultOK(res)) { - fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed:\n" + - WasmEdge_ResultGetMessage(res)); + fail(FailState::RuntimeError, "Function: " + std::string(function_name) + + " failed: " + WasmEdge_ResultGetMessage(res)); return; } if (log) { @@ -594,8 +594,8 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, WasmEdge_Result res = WasmEdge_ExecutorInvoke(executor_.get(), func_cxt, params, sizeof...(Args), results, 1); if (!WasmEdge_ResultOK(res)) { - fail(FailState::RuntimeError, "Function: " + std::string(function_name) + " failed:\n" + - WasmEdge_ResultGetMessage(res)); + fail(FailState::RuntimeError, "Function: " + std::string(function_name) + + " failed: " + WasmEdge_ResultGetMessage(res)); return R{}; } R ret = convValTypeToArg(results[0]); diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 06f4f0e3c..040dea072 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -616,9 +616,9 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); + std::string message(error_message.get()->data); // NULL-terminated fail(FailState::RuntimeError, - "Function: " + std::string(function_name) + " failed:\n" + - std::string(error_message.get()->data, error_message.get()->size)); + "Function: " + std::string(function_name) + " failed: " + message); return; } if (log) { @@ -678,9 +678,9 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, if (trap) { WasmByteVec error_message; wasm_trap_message(trap.get(), error_message.get()); + std::string message(error_message.get()->data); // NULL-terminated fail(FailState::RuntimeError, - "Function: " + std::string(function_name) + " failed:\n" + - std::string(error_message.get()->data, error_message.get()->size)); + "Function: " + std::string(function_name) + " failed: " + message); return R{}; } R ret = convertValueTypeToArg(results.data[0]); diff --git a/test/runtime_test.cc b/test/runtime_test.cc index dfb2c3633..20f723f5f 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -108,9 +108,7 @@ TEST_P(TestVm, TerminateExecution) { // Check integration logs. auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: infinite_loop failed")); - if (engine_ == "v8") { - EXPECT_TRUE(host->isErrorLogged("Uncaught Error: termination_exception")); - } + EXPECT_TRUE(host->isErrorLogged("termination_exception")); } TEST_P(TestVm, WasmMemoryLimit) { @@ -135,8 +133,14 @@ TEST_P(TestVm, WasmMemoryLimit) { // Check integration logs. auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: infinite_memory failed")); + // Trap message + if (engine_ == "wavm") { + EXPECT_TRUE(host->isErrorLogged("wavm.reachedUnreachable")); + } else { + EXPECT_TRUE(host->isErrorLogged("unreachable")); + } + // Backtrace if (engine_ == "v8") { - EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); EXPECT_TRUE(host->isErrorLogged(" - rust_oom")); EXPECT_TRUE(host->isErrorLogged(" - alloc::alloc::handle_alloc_error")); @@ -158,8 +162,14 @@ TEST_P(TestVm, Trap) { // Check integration logs. auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: trigger failed")); + // Trap message + if (engine_ == "wavm") { + EXPECT_TRUE(host->isErrorLogged("wavm.reachedUnreachable")); + } else { + EXPECT_TRUE(host->isErrorLogged("unreachable")); + } + // Backtrace if (engine_ == "v8") { - EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); EXPECT_TRUE(host->isErrorLogged(" - std::panicking::begin_panic")); EXPECT_TRUE(host->isErrorLogged(" - trigger")); @@ -181,8 +191,14 @@ TEST_P(TestVm, Trap2) { // Check integration logs. auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: trigger2 failed")); + // Trap message + if (engine_ == "wavm") { + EXPECT_TRUE(host->isErrorLogged("wavm.reachedUnreachable")); + } else { + EXPECT_TRUE(host->isErrorLogged("unreachable")); + } + // Backtrace if (engine_ == "v8") { - EXPECT_TRUE(host->isErrorLogged("Uncaught RuntimeError: unreachable")); EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); EXPECT_TRUE(host->isErrorLogged(" - std::panicking::begin_panic")); EXPECT_TRUE(host->isErrorLogged(" - trigger2")); From 33b2e7596d4afec915e41b60aaa465e835b4d6f7 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 4 Aug 2022 16:04:12 -0500 Subject: [PATCH 216/287] Don't overread buffers. (#303) While there, make sure to write a return pointer and length when returning an empty buffer. Reported by Chris Ertl from Google Security. Signed-off-by: Piotr Sikora --- src/exports.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/exports.cc b/src/exports.cc index bdefddeb6..837f9e1e0 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -485,13 +485,21 @@ Word get_buffer_bytes(Word type, Word start, Word length, Word ptr_ptr, Word siz return WasmResult::BadArgument; } // Don't overread. - if (start + length > buffer->size()) { + if (start > buffer->size()) { + length = 0; + } else if (start + length > buffer->size()) { length = buffer->size() - start; } - if (length > 0) { - return buffer->copyTo(context->wasm(), start, length, ptr_ptr, size_ptr); + if (length == 0) { + if (!context->wasmVm()->setWord(ptr_ptr, Word(0))) { + return WasmResult::InvalidMemoryAccess; + } + if (!context->wasmVm()->setWord(size_ptr, Word(0))) { + return WasmResult::InvalidMemoryAccess; + } + return WasmResult::Ok; } - return WasmResult::Ok; + return buffer->copyTo(context->wasm(), start, length, ptr_ptr, size_ptr); } Word get_buffer_status(Word type, Word length_ptr, Word flags_ptr) { From fa691f8b80afd2c9215f2419bc30acccc3733153 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Thu, 4 Aug 2022 19:37:52 -0500 Subject: [PATCH 217/287] Harden Wasm bytecode parsing. (#304) Reported by Chris Ertl from Google Security. Signed-off-by: Piotr Sikora --- .bazelrc | 40 ++++++++++------ .github/workflows/test.yml | 6 ++- bazel/dependencies.bzl | 5 ++ bazel/repositories.bzl | 8 ++++ src/bytecode_util.cc | 44 +++++++++++++----- test/fuzz/BUILD | 19 ++++++++ test/fuzz/bytecode_util_fuzzer.cc | 41 ++++++++++++++++ ...h-10198e96614e9ff7ca6dae581f4f7f13143257d7 | Bin 0 -> 15 bytes ...h-6d94d1b10bc8dabc467a8e4a9a7105f62c81ff4c | Bin 0 -> 15 bytes ...h-8cff35e5a0f9722df891fd1f05ca6dc2bd3d42aa | Bin 0 -> 154 bytes ...h-9718722528a7c015ef3852490a6c67649bda70c0 | Bin 0 -> 478 bytes ...h-ed7193f661f04a66a13facee4d25709e6f479d3d | Bin 0 -> 14 bytes 12 files changed, 136 insertions(+), 27 deletions(-) create mode 100644 test/fuzz/BUILD create mode 100644 test/fuzz/bytecode_util_fuzzer.cc create mode 100644 test/fuzz/corpus_bytecode/crash-10198e96614e9ff7ca6dae581f4f7f13143257d7 create mode 100644 test/fuzz/corpus_bytecode/crash-6d94d1b10bc8dabc467a8e4a9a7105f62c81ff4c create mode 100644 test/fuzz/corpus_bytecode/crash-8cff35e5a0f9722df891fd1f05ca6dc2bd3d42aa create mode 100644 test/fuzz/corpus_bytecode/crash-9718722528a7c015ef3852490a6c67649bda70c0 create mode 100644 test/fuzz/corpus_bytecode/crash-ed7193f661f04a66a13facee4d25709e6f479d3d diff --git a/.bazelrc b/.bazelrc index 00f6848f4..a8212233d 100644 --- a/.bazelrc +++ b/.bazelrc @@ -8,37 +8,49 @@ build:clang --action_env=BAZEL_COMPILER=clang build:clang --action_env=CC=clang build:clang --action_env=CXX=clang++ +# Common flags for Clang sanitizers. +build:clang-xsan --config=clang +build:clang-xsan --copt -O1 +build:clang-xsan --copt -fno-omit-frame-pointer +build:clang-xsan --copt -fno-optimize-sibling-calls +build:clang-xsan --copt -fno-sanitize-recover=all +build:clang-xsan --linkopt -fsanitize-link-c++-runtime +build:clang-xsan --linkopt -fuse-ld=lld +build:clang-xsan --linkopt -rtlib=compiler-rt +build:clang-xsan --linkopt --unwindlib=libgcc + # Use Clang compiler with Address and Undefined Behavior Sanitizers. -build:clang-asan --config=clang +build:clang-asan --config=clang-xsan build:clang-asan --copt -DADDRESS_SANITIZER=1 build:clang-asan --copt -DUNDEFINED_SANITIZER=1 -build:clang-asan --copt -O1 -build:clang-asan --copt -fno-omit-frame-pointer -build:clang-asan --copt -fno-optimize-sibling-calls build:clang-asan --copt -fsanitize=address,undefined build:clang-asan --copt -fsanitize-address-use-after-scope build:clang-asan --linkopt -fsanitize=address,undefined build:clang-asan --linkopt -fsanitize-address-use-after-scope -build:clang-asan --linkopt -fsanitize-link-c++-runtime -build:clang-asan --linkopt -fuse-ld=lld build:clang-asan --test_env=ASAN_OPTIONS=check_initialization_order=1:detect_stack_use_after_return=1:strict_init_order=1:strict_string_checks=1 -build:clang-asan --test_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 +build:clang-asan --test_env=UBSAN_OPTIONS=print_stacktrace=1 build:clang-asan --test_env=ASAN_SYMBOLIZER_PATH # Use Clang compiler with Address and Undefined Behavior Sanitizers (strict version). build:clang-asan-strict --config=clang-asan -build:clang-asan-strict --copt -fsanitize=integer -build:clang-asan-strict --linkopt -fsanitize=integer +build:clang-asan-strict --copt -fsanitize=integer,local-bounds,nullability +build:clang-asan-strict --linkopt -fsanitize=integer,local-bounds,nullability + +# Use Honggfuzz with Address and Undefined Behavior Sanitizers (strict version). +build:clang-asan-honggfuzz --config=clang-asan-strict +build:clang-asan-honggfuzz --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:honggfuzz +build:clang-asan-honggfuzz --@rules_fuzzing//fuzzing:cc_engine_instrumentation=honggfuzz + +# Use LibFuzzer with Address and Undefined Behavior Sanitizers (strict version). +build:clang-asan-libfuzzer --config=clang-asan-strict +build:clang-asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:libfuzzer +build:clang-asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_instrumentation=libfuzzer # Use Clang compiler with Thread Sanitizer. -build:clang-tsan --config=clang +build:clang-tsan --config=clang-xsan build:clang-tsan --copt -DTHREAD_SANITIZER=1 -build:clang-tsan --copt -O1 -build:clang-tsan --copt -fno-omit-frame-pointer -build:clang-tsan --copt -fno-optimize-sibling-calls build:clang-tsan --copt -fsanitize=thread build:clang-tsan --linkopt -fsanitize=thread -build:clang-tsan --linkopt -fuse-ld=lld # Use Clang-Tidy tool. build:clang-tidy --aspects @bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 55c9822eb..3ed6ca714 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -125,6 +125,7 @@ jobs: os: windows-2019 arch: x86_64 action: test + targets: -//test/fuzz/... - name: 'V8 on Linux/x86_64' engine: 'v8' repo: 'v8' @@ -155,6 +156,7 @@ jobs: os: ubuntu-20.04 arch: aarch64 action: test + targets: -//test/fuzz/... flags: --config=zig-cc-linux-aarch64 --@v8//bazel/config:v8_target_cpu=arm64 deps: qemu-user-static libc6-arm64-cross cache: true @@ -228,6 +230,7 @@ jobs: os: windows-2019 arch: x86_64 action: test + targets: -//test/fuzz/... - name: 'WAVM on Linux/x86_64' engine: 'wavm' repo: 'com_github_wavm_wavm' @@ -280,6 +283,7 @@ jobs: done - name: Bazel build/test + shell: bash run: > ${{ matrix.run_under }} bazel ${{ matrix.action }} @@ -287,7 +291,7 @@ jobs: --test_output=errors --define engine=${{ matrix.engine }} ${{ matrix.flags }} - //test/... + -- //test/... ${{ matrix.targets }} - name: Bazel build/test (signed Wasm module) if: ${{ matrix.engine != 'null' && !startsWith(matrix.os, 'windows') }} diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 8e0cfe91d..b6a4cb576 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -17,6 +17,8 @@ load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign:crates.bzl", "wasmsign_fetch_remote_crates") load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime:crates.bzl", "wasmtime_fetch_remote_crates") load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") +load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init") +load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies") load("@rules_python//python:pip.bzl", "pip_install") load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set") @@ -25,6 +27,9 @@ def proxy_wasm_cpp_host_dependencies(): rules_foreign_cc_dependencies() + rules_fuzzing_dependencies() + rules_fuzzing_init() + rust_repositories() rust_repository_set( name = "rust_linux_x86_64", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index af8d5c8b6..87ca15ee8 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -55,6 +55,14 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/bazelbuild/rules_foreign_cc/archive/0.7.1.tar.gz", ) + maybe( + http_archive, + name = "rules_fuzzing", + sha256 = "23bb074064c6f488d12044934ab1b0631e8e6898d5cf2f6bde087adb01111573", + strip_prefix = "rules_fuzzing-0.3.1", + url = "https://github.com/bazelbuild/rules_fuzzing/archive/v0.3.1.zip", + ) + maybe( http_archive, name = "rules_python", diff --git a/src/bytecode_util.cc b/src/bytecode_util.cc index 0d44c57e2..70a373e01 100644 --- a/src/bytecode_util.cc +++ b/src/bytecode_util.cc @@ -48,15 +48,18 @@ bool BytecodeUtil::getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersi return false; } if (section_type == 7 /* export section */) { + const char *section_end = pos + section_len; uint32_t export_vector_size = 0; - if (!parseVarint(pos, end, export_vector_size) || pos + export_vector_size > end) { + if (!parseVarint(pos, section_end, export_vector_size) || + pos + export_vector_size > section_end) { return false; } // Search thourgh exports. for (uint32_t i = 0; i < export_vector_size; i++) { // Parse name of the export. uint32_t export_name_size = 0; - if (!parseVarint(pos, end, export_name_size) || pos + export_name_size > end) { + if (!parseVarint(pos, section_end, export_name_size) || + pos + export_name_size > section_end) { return false; } const auto *const name_begin = pos; @@ -65,7 +68,7 @@ bool BytecodeUtil::getAbiVersion(std::string_view bytecode, proxy_wasm::AbiVersi return false; } // Check if it is a function type export - if (*pos++ == 0x00) { + if (*pos++ == 0x00 /* function */) { const std::string export_name = {name_begin, export_name_size}; // Check the name of the function. if (export_name == "proxy_abi_version_0_1_0") { @@ -114,24 +117,25 @@ bool BytecodeUtil::getCustomSection(std::string_view bytecode, std::string_view } if (section_type == 0) { // Custom section. - const auto *const section_data_start = pos; + const char *section_end = pos + section_len; uint32_t section_name_len = 0; - if (!BytecodeUtil::parseVarint(pos, end, section_name_len) || pos + section_name_len > end) { + if (!BytecodeUtil::parseVarint(pos, section_end, section_name_len) || + pos + section_name_len > section_end) { return false; } if (section_name_len == name.size() && ::memcmp(pos, name.data(), section_name_len) == 0) { pos += section_name_len; - ret = {pos, static_cast(section_data_start + section_len - pos)}; + ret = {pos, static_cast(section_end - pos)}; return true; } - pos = section_data_start + section_len; + pos = section_end; } else { // Skip other sections. pos += section_len; } } return true; -}; +} bool BytecodeUtil::getFunctionNameIndex(std::string_view bytecode, std::unordered_map &ret) { @@ -242,16 +246,32 @@ bool BytecodeUtil::getStrippedSource(std::string_view bytecode, std::string &ret bool BytecodeUtil::parseVarint(const char *&pos, const char *end, uint32_t &ret) { uint32_t shift = 0; + uint32_t total = 0; + uint32_t v; char b; - do { + while (pos < end) { if (pos + 1 > end) { + // overread return false; } b = *pos++; - ret += (b & 0x7f) << shift; + v = (b & 0x7f); + if (shift == 28 && v > 3) { + // overflow + return false; + } + total += v << shift; + if ((b & 0x80) == 0) { + ret = total; + return true; + } shift += 7; - } while ((b & 0x80) != 0); - return ret != static_cast(-1); + if (shift > 28) { + // overflow + return false; + } + } + return false; } } // namespace proxy_wasm diff --git a/test/fuzz/BUILD b/test/fuzz/BUILD new file mode 100644 index 000000000..9e9ca0c78 --- /dev/null +++ b/test/fuzz/BUILD @@ -0,0 +1,19 @@ +load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "corpus_bytecode", + srcs = glob(["corpus_bytecode/**"]), +) + +cc_fuzz_test( + name = "bytecode_util_fuzzer", + srcs = ["bytecode_util_fuzzer.cc"], + corpus = [":corpus_bytecode"], + deps = [ + "//:lib", + ], +) diff --git a/test/fuzz/bytecode_util_fuzzer.cc b/test/fuzz/bytecode_util_fuzzer.cc new file mode 100644 index 000000000..b77d9423b --- /dev/null +++ b/test/fuzz/bytecode_util_fuzzer.cc @@ -0,0 +1,41 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/bytecode_util.h" + +#include + +namespace proxy_wasm { +namespace { + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + auto bytecode = std::string_view(reinterpret_cast(data), size); + + AbiVersion version; + BytecodeUtil::getAbiVersion(bytecode, version); + + std::string_view custom_section; + BytecodeUtil::getCustomSection(bytecode, "precompiled", custom_section); + + std::string stripped_source; + BytecodeUtil::getStrippedSource(bytecode, stripped_source); + + std::unordered_map function_names; + BytecodeUtil::getFunctionNameIndex(bytecode, function_names); + + return 0; +} + +} // namespace +} // namespace proxy_wasm diff --git a/test/fuzz/corpus_bytecode/crash-10198e96614e9ff7ca6dae581f4f7f13143257d7 b/test/fuzz/corpus_bytecode/crash-10198e96614e9ff7ca6dae581f4f7f13143257d7 new file mode 100644 index 0000000000000000000000000000000000000000..a8e688a41706365ea8aab20ad3d7644381700103 GIT binary patch literal 15 WcmZQbEY4+MWMp7x`1k+*{}ccog$0TL literal 0 HcmV?d00001 diff --git a/test/fuzz/corpus_bytecode/crash-6d94d1b10bc8dabc467a8e4a9a7105f62c81ff4c b/test/fuzz/corpus_bytecode/crash-6d94d1b10bc8dabc467a8e4a9a7105f62c81ff4c new file mode 100644 index 0000000000000000000000000000000000000000..81aa8f42e6f64c3e745ef7be6034330c926babf8 GIT binary patch literal 15 WcmZQbEY4;AFLI56nI$hVHx&RT3k22x literal 0 HcmV?d00001 diff --git a/test/fuzz/corpus_bytecode/crash-8cff35e5a0f9722df891fd1f05ca6dc2bd3d42aa b/test/fuzz/corpus_bytecode/crash-8cff35e5a0f9722df891fd1f05ca6dc2bd3d42aa new file mode 100644 index 0000000000000000000000000000000000000000..63b0377d5fbcd6f9478ebc21b78dc8c5ff2f8a96 GIT binary patch literal 154 zcmZQbEY4;A&%n^kz`y{dx`9j}Sj@n{!3>cAQVgv?yjkQL12aorVs0t}d*pEjfkcox cMuyI7&I}I{Kx_pN0RoH=iZoIIrW~vr0D7Yij{pDw literal 0 HcmV?d00001 diff --git a/test/fuzz/corpus_bytecode/crash-9718722528a7c015ef3852490a6c67649bda70c0 b/test/fuzz/corpus_bytecode/crash-9718722528a7c015ef3852490a6c67649bda70c0 new file mode 100644 index 0000000000000000000000000000000000000000..c5eb9dd069c848e3c72f1d573c7c38d683b8f73f GIT binary patch literal 478 zcmchU!41MN3`M_{(n?%7a^u!LsF;I8C9dJp1z-l&VFe~&1C|K?J56cTJC@?u&rTHo zpdTX4(BOi|#n5P-oY`hf5l}lv$OZD&<4jv^FT)9St}9n7@^xutyMNp21xvt(7UO6~ z#y90}xe9w6Dqwh|^a0M*wU5LaPr~@bo%<(|E1AcZNa9nMW9l->qHStfDEh-iQNN#V SrYi2U Date: Thu, 4 Aug 2022 23:58:33 -0500 Subject: [PATCH 218/287] Harden Pairs de/serialization. (#305) Reported by Chris Ertl from Google Security. Signed-off-by: Piotr Sikora --- BUILD | 2 + include/proxy-wasm/exports.h | 30 --- include/proxy-wasm/limits.h | 10 + include/proxy-wasm/pairs_util.h | 63 +++++++ src/exports.cc | 82 +++------ src/pairs_util.cc | 171 ++++++++++++++++++ test/fuzz/BUILD | 14 ++ ...h-0bf4371e72f7ae83f9c5bf3e2485531cdcaaaa04 | Bin 0 -> 36 bytes test/fuzz/pairs_util_fuzzer.cc | 46 +++++ 9 files changed, 332 insertions(+), 86 deletions(-) create mode 100644 include/proxy-wasm/pairs_util.h create mode 100644 src/pairs_util.cc create mode 100644 test/fuzz/corpus_pairs/crash-0bf4371e72f7ae83f9c5bf3e2485531cdcaaaa04 create mode 100644 test/fuzz/pairs_util_fuzzer.cc diff --git a/BUILD b/BUILD index 67d8d89df..46edf1d1c 100644 --- a/BUILD +++ b/BUILD @@ -52,6 +52,7 @@ cc_library( "src/bytecode_util.cc", "src/context.cc", "src/exports.cc", + "src/pairs_util.cc", "src/shared_data.cc", "src/shared_data.h", "src/shared_queue.cc", @@ -62,6 +63,7 @@ cc_library( ], hdrs = [ "include/proxy-wasm/bytecode_util.h", + "include/proxy-wasm/pairs_util.h", "include/proxy-wasm/signature_util.h", ], linkopts = select({ diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 325d28ff3..376a4d3b6 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -62,36 +62,6 @@ struct RegisterForeignFunction { namespace exports { -template size_t pairsSize(const Pairs &result) { - size_t size = 4; // number of headers - for (auto &p : result) { - size += 8; // size of key, size of value - size += p.first.size() + 1; // null terminated key - size += p.second.size() + 1; // null terminated value - } - return size; -} - -template void marshalPairs(const Pairs &result, char *buffer) { - char *b = buffer; - *reinterpret_cast(b) = htowasm(result.size()); - b += sizeof(uint32_t); - for (auto &p : result) { - *reinterpret_cast(b) = htowasm(p.first.size()); - b += sizeof(uint32_t); - *reinterpret_cast(b) = htowasm(p.second.size()); - b += sizeof(uint32_t); - } - for (auto &p : result) { - memcpy(b, p.first.data(), p.first.size()); - b += p.first.size(); - *b++ = 0; - memcpy(b, p.second.data(), p.second.size()); - b += p.second.size(); - *b++ = 0; - } -} - // ABI functions exported from host to wasm. Word get_configuration(Word value_ptr_ptr, Word value_size_ptr); diff --git a/include/proxy-wasm/limits.h b/include/proxy-wasm/limits.h index d02d4c5e3..9b9ac1cd3 100644 --- a/include/proxy-wasm/limits.h +++ b/include/proxy-wasm/limits.h @@ -30,3 +30,13 @@ #ifndef PROXY_WASM_HOST_WASI_RANDOM_GET_MAX_SIZE_BYTES #define PROXY_WASM_HOST_WASI_RANDOM_GET_MAX_SIZE_BYTES (64 * 1024) #endif + +// Maximum allowed size of Pairs buffer to deserialize. +#ifndef PROXY_WASM_HOST_PAIRS_MAX_BYTES +#define PROXY_WASM_HOST_PAIRS_MAX_BYTES (1024 * 1024) +#endif + +// Maximum allowed number of pairs in a Pairs buffer to deserialize. +#ifndef PROXY_WASM_HOST_PAIRS_MAX_COUNT +#define PROXY_WASM_HOST_PAIRS_MAX_COUNT 1024 +#endif diff --git a/include/proxy-wasm/pairs_util.h b/include/proxy-wasm/pairs_util.h new file mode 100644 index 000000000..54df2fd88 --- /dev/null +++ b/include/proxy-wasm/pairs_util.h @@ -0,0 +1,63 @@ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include +#include +#include + +namespace proxy_wasm { + +using Pairs = std::vector>; +using StringPairs = std::vector>; + +class PairsUtil { +public: + /** + * pairsSize returns the buffer size required to serialize Pairs. + * @param pairs Pairs to serialize. + * @return size of the output buffer. + */ + static size_t pairsSize(const Pairs &pairs); + + static size_t pairsSize(const StringPairs &stringpairs) { + Pairs views(stringpairs.begin(), stringpairs.end()); + return pairsSize(views); + } + + /** + * marshalPairs serializes Pairs to output buffer. + * @param pairs Pairs to serialize. + * @param buffer output buffer. + * @param size size of the output buffer. + * @return indicates whether serialization succeeded or not. + */ + static bool marshalPairs(const Pairs &pairs, char *buffer, size_t size); + + static bool marshalPairs(const StringPairs &stringpairs, char *buffer, size_t size) { + Pairs views(stringpairs.begin(), stringpairs.end()); + return marshalPairs(views, buffer, size); + } + + /** + * toPairs deserializes input buffer to Pairs. + * @param buffer serialized input buffer. + * @return deserialized Pairs or an empty instance in case of deserialization failure. + */ + static Pairs toPairs(std::string_view buffer); +}; + +} // namespace proxy_wasm diff --git a/src/exports.cc b/src/exports.cc index 837f9e1e0..b06c40437 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -14,6 +14,7 @@ // limitations under the License. // #include "include/proxy-wasm/limits.h" +#include "include/proxy-wasm/pairs_util.h" #include "include/proxy-wasm/wasm.h" #include @@ -58,55 +59,6 @@ RegisterForeignFunction::RegisterForeignFunction(const std::string &name, WasmFo namespace exports { -namespace { - -Pairs toPairs(std::string_view buffer) { - Pairs result; - const char *b = buffer.data(); - if (buffer.size() < sizeof(uint32_t)) { - return {}; - } - auto size = wasmtoh(*reinterpret_cast(b)); - b += sizeof(uint32_t); - if (sizeof(uint32_t) + size * 2 * sizeof(uint32_t) > buffer.size()) { - return {}; - } - result.resize(size); - for (uint32_t i = 0; i < size; i++) { - result[i].first = std::string_view(nullptr, wasmtoh(*reinterpret_cast(b))); - b += sizeof(uint32_t); - result[i].second = std::string_view(nullptr, wasmtoh(*reinterpret_cast(b))); - b += sizeof(uint32_t); - } - for (auto &p : result) { - p.first = std::string_view(b, p.first.size()); - b += p.first.size() + 1; - p.second = std::string_view(b, p.second.size()); - b += p.second.size() + 1; - } - return result; -} - -template -bool getPairs(ContextBase *context, const Pairs &result, uint64_t ptr_ptr, uint64_t size_ptr) { - if (result.empty()) { - return context->wasm()->copyToPointerSize("", ptr_ptr, size_ptr); - } - uint64_t size = pairsSize(result); - uint64_t ptr = 0; - char *buffer = static_cast(context->wasm()->allocMemory(size, &ptr)); - marshalPairs(result, buffer); - if (!context->wasmVm()->setWord(ptr_ptr, Word(ptr))) { - return false; - } - if (!context->wasmVm()->setWord(size_ptr, Word(size))) { - return false; - } - return true; -} - -} // namespace - // General ABI. Word set_property(Word key_ptr, Word key_size, Word value_ptr, Word value_size) { @@ -200,7 +152,7 @@ Word send_local_response(Word response_code, Word response_code_details_ptr, if (!details || !body || !additional_response_header_pairs) { return WasmResult::InvalidMemoryAccess; } - auto additional_headers = toPairs(additional_response_header_pairs.value()); + auto additional_headers = PairsUtil::toPairs(additional_response_header_pairs.value()); context->sendLocalResponse(response_code, body.value(), std::move(additional_headers), grpc_status, details.value()); context->wasm()->stopNextIteration(true); @@ -435,7 +387,25 @@ Word get_header_map_pairs(Word type, Word ptr_ptr, Word size_ptr) { if (result != WasmResult::Ok) { return result; } - if (!getPairs(context, pairs, ptr_ptr, size_ptr)) { + if (pairs.empty()) { + if (!context->wasm()->copyToPointerSize("", ptr_ptr, size_ptr)) { + return WasmResult::InvalidMemoryAccess; + } + return WasmResult::Ok; + } + uint64_t size = PairsUtil::pairsSize(pairs); + uint64_t ptr = 0; + char *buffer = static_cast(context->wasm()->allocMemory(size, &ptr)); + if (buffer == nullptr) { + return WasmResult::InvalidMemoryAccess; + } + if (!PairsUtil::marshalPairs(pairs, buffer, size)) { + return WasmResult::InvalidMemoryAccess; + } + if (!context->wasmVm()->setWord(ptr_ptr, Word(ptr))) { + return WasmResult::InvalidMemoryAccess; + } + if (!context->wasmVm()->setWord(size_ptr, Word(size))) { return WasmResult::InvalidMemoryAccess; } return WasmResult::Ok; @@ -451,7 +421,7 @@ Word set_header_map_pairs(Word type, Word ptr, Word size) { return WasmResult::InvalidMemoryAccess; } return context->setHeaderMapPairs(static_cast(type.u64_), - toPairs(data.value())); + PairsUtil::toPairs(data.value())); } Word get_header_map_size(Word type, Word result_ptr) { @@ -549,8 +519,8 @@ Word http_call(Word uri_ptr, Word uri_size, Word header_pairs_ptr, Word header_p if (!uri || !body || !header_pairs || !trailer_pairs) { return WasmResult::InvalidMemoryAccess; } - auto headers = toPairs(header_pairs.value()); - auto trailers = toPairs(trailer_pairs.value()); + auto headers = PairsUtil::toPairs(header_pairs.value()); + auto trailers = PairsUtil::toPairs(trailer_pairs.value()); uint32_t token = 0; // NB: try to write the token to verify the memory before starting the async // operation. @@ -619,7 +589,7 @@ Word grpc_call(Word service_ptr, Word service_size, Word service_name_ptr, Word return WasmResult::InvalidMemoryAccess; } uint32_t token = 0; - auto initial_metadata = toPairs(initial_metadata_pairs.value()); + auto initial_metadata = PairsUtil::toPairs(initial_metadata_pairs.value()); auto result = context->grpcCall(service.value(), service_name.value(), method_name.value(), initial_metadata, request.value(), std::chrono::milliseconds(timeout_milliseconds), &token); @@ -645,7 +615,7 @@ Word grpc_stream(Word service_ptr, Word service_size, Word service_name_ptr, Wor return WasmResult::InvalidMemoryAccess; } uint32_t token = 0; - auto initial_metadata = toPairs(initial_metadata_pairs.value()); + auto initial_metadata = PairsUtil::toPairs(initial_metadata_pairs.value()); auto result = context->grpcStream(service.value(), service_name.value(), method_name.value(), initial_metadata, &token); if (result != WasmResult::Ok) { diff --git a/src/pairs_util.cc b/src/pairs_util.cc new file mode 100644 index 000000000..d49259216 --- /dev/null +++ b/src/pairs_util.cc @@ -0,0 +1,171 @@ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/pairs_util.h" + +#include +#include +#include + +#include "include/proxy-wasm/limits.h" +#include "include/proxy-wasm/word.h" + +namespace proxy_wasm { + +using Sizes = std::vector>; + +size_t PairsUtil::pairsSize(const Pairs &pairs) { + size_t size = sizeof(uint32_t); // number of headers + for (const auto &p : pairs) { + size += 2 * sizeof(uint32_t); // size of name, size of value + size += p.first.size() + 1; // NULL-terminated name + size += p.second.size() + 1; // NULL-terminated value + } + return size; +} + +bool PairsUtil::marshalPairs(const Pairs &pairs, char *buffer, size_t size) { + if (buffer == nullptr) { + return false; + } + + char *pos = buffer; + const char *end = buffer + size; + + // Write number of pairs. + uint32_t num_pairs = htowasm(pairs.size()); + if (pos + sizeof(uint32_t) > end) { + return false; + } + ::memcpy(pos, &num_pairs, sizeof(uint32_t)); + pos += sizeof(uint32_t); + + for (const auto &p : pairs) { + // Write name length. + uint32_t name_len = htowasm(p.first.size()); + if (pos + sizeof(uint32_t) > end) { + return false; + } + ::memcpy(pos, &name_len, sizeof(uint32_t)); + pos += sizeof(uint32_t); + + // Write value length. + uint32_t value_len = htowasm(p.second.size()); + if (pos + sizeof(uint32_t) > end) { + return false; + } + ::memcpy(pos, &value_len, sizeof(uint32_t)); + pos += sizeof(uint32_t); + } + + for (const auto &p : pairs) { + // Write name. + if (pos + p.first.size() + 1 > end) { + return false; + } + ::memcpy(pos, p.first.data(), p.first.size()); + pos += p.first.size(); + *pos++ = '\0'; // NULL-terminated string. + + // Write value. + if (pos + p.second.size() + 1 > end) { + return false; + } + ::memcpy(pos, p.second.data(), p.second.size()); + pos += p.second.size(); + *pos++ = '\0'; // NULL-terminated string. + } + + return pos == end; +} + +Pairs PairsUtil::toPairs(std::string_view buffer) { + if (buffer.data() == nullptr || buffer.size() > PROXY_WASM_HOST_PAIRS_MAX_BYTES) { + return {}; + } + + const char *pos = buffer.data(); + const char *end = buffer.data() + buffer.size(); + + // Read number of pairs. + if (pos + sizeof(uint32_t) > end) { + return {}; + } + uint32_t num_pairs = wasmtoh(*reinterpret_cast(pos)); + pos += sizeof(uint32_t); + + // Check if we're not going to exceed the limit. + if (num_pairs > PROXY_WASM_HOST_PAIRS_MAX_COUNT) { + return {}; + } + if (pos + num_pairs * 2 * sizeof(uint32_t) > end) { + return {}; + } + + Sizes sizes; + sizes.resize(num_pairs); + + for (auto &s : sizes) { + // Read name length. + if (pos + sizeof(uint32_t) > end) { + return {}; + } + s.first = wasmtoh(*reinterpret_cast(pos)); + pos += sizeof(uint32_t); + + // Read value length. + if (pos + sizeof(uint32_t) > end) { + return {}; + } + s.second = wasmtoh(*reinterpret_cast(pos)); + pos += sizeof(uint32_t); + } + + Pairs pairs; + pairs.resize(num_pairs); + + for (uint32_t i = 0; i < num_pairs; i++) { + auto &s = sizes[i]; + auto &p = pairs[i]; + + // Don't overread. + if (pos + s.first + 1 > end) { + return {}; + } + p.first = std::string_view(pos, s.first); + pos += s.first; + if (*pos++ != '\0') { // NULL-terminated string. + return {}; + } + + // Don't overread. + if (pos + s.second + 1 > end) { + return {}; + } + p.second = std::string_view(pos, s.second); + pos += s.second; + if (*pos++ != '\0') { // NULL-terminated string. + return {}; + } + } + + if (pos != end) { + return {}; + } + + return pairs; +} + +} // namespace proxy_wasm diff --git a/test/fuzz/BUILD b/test/fuzz/BUILD index 9e9ca0c78..4c069bcf1 100644 --- a/test/fuzz/BUILD +++ b/test/fuzz/BUILD @@ -17,3 +17,17 @@ cc_fuzz_test( "//:lib", ], ) + +filegroup( + name = "corpus_pairs", + srcs = glob(["corpus_pairs/**"]), +) + +cc_fuzz_test( + name = "pairs_util_fuzzer", + srcs = ["pairs_util_fuzzer.cc"], + corpus = [":corpus_pairs"], + deps = [ + "//:lib", + ], +) diff --git a/test/fuzz/corpus_pairs/crash-0bf4371e72f7ae83f9c5bf3e2485531cdcaaaa04 b/test/fuzz/corpus_pairs/crash-0bf4371e72f7ae83f9c5bf3e2485531cdcaaaa04 new file mode 100644 index 0000000000000000000000000000000000000000..7be804a261255c5c35bf5ebcd6d32047dc1137f0 GIT binary patch literal 36 TcmZQ!VEE7Q9~C&Da{mJW1JNHQ literal 0 HcmV?d00001 diff --git a/test/fuzz/pairs_util_fuzzer.cc b/test/fuzz/pairs_util_fuzzer.cc new file mode 100644 index 000000000..aaef0d099 --- /dev/null +++ b/test/fuzz/pairs_util_fuzzer.cc @@ -0,0 +1,46 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/pairs_util.h" + +#include + +namespace proxy_wasm { +namespace { + +extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { + auto input = std::string_view(reinterpret_cast(data), size); + + auto pairs = PairsUtil::toPairs(input); + + if (!pairs.empty()) { + // Verify that non-empty Pairs serializes back to the same bytes. + auto new_size = PairsUtil::pairsSize(pairs); + if (new_size != size) { + __builtin_trap(); + } + std::vector new_data(new_size); + if (!PairsUtil::marshalPairs(pairs, new_data.data(), new_data.size())) { + __builtin_trap(); + } + if (::memcmp(new_data.data(), data, size) != 0) { + __builtin_trap(); + } + } + + return 0; +} + +} // namespace +} // namespace proxy_wasm From 66b3b7ddadffd178fc0a5608311213a1778c4e43 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 5 Aug 2022 01:42:16 -0500 Subject: [PATCH 219/287] v8: add restricted callbacks. (#306) Restricted callbacks can invoke only allow-listed hostcalls. This mechanism is introduced primarily to prevent malicious plugins from modifying the state from "proxy_on_memory_allocate" ("malloc") callbacks, which could result in dangling pointers and/or out-of-bound access. While there, limit the hostcalls available during early initialization ("_initialize", "_start", and "main" callbacks). Reported by Chris Ertl from Google Security. Signed-off-by: Piotr Sikora --- include/proxy-wasm/wasm.h | 8 +++ include/proxy-wasm/wasm_vm.h | 15 +++++ src/v8/v8.cc | 12 ++++ src/wasm.cc | 20 +++++++ test/BUILD | 15 +++++ test/security_test.cc | 106 +++++++++++++++++++++++++++++++++++ test/test_data/BUILD | 5 ++ test/test_data/bad_malloc.rs | 47 ++++++++++++++++ 8 files changed, 228 insertions(+) create mode 100644 test/security_test.cc create mode 100644 test/test_data/bad_malloc.rs diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 873531afd..23ed3c1da 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -392,7 +392,15 @@ inline void *WasmBase::allocMemory(uint64_t size, uint64_t *address) { if (!malloc_) { return nullptr; } + wasm_vm_->setRestrictedCallback( + true, {// logging (Proxy-Wasm) + "env.proxy_log", + // logging (stdout/stderr) + "wasi_unstable.fd_write", "wasi_snapshot_preview1.fd_write", + // time + "wasi_unstable.clock_time_get", "wasi_snapshot_preview1.clock_time_get"}); Word a = malloc_(vm_context(), size); + wasm_vm_->setRestrictedCallback(false); if (!a.u64_) { return nullptr; } diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 800348ac3..879e200d1 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include "include/proxy-wasm/word.h" @@ -314,6 +315,16 @@ class WasmVm { fail_callbacks_.push_back(fail_callback); } + bool isHostFunctionAllowed(const std::string &name) { + return !restricted_callback_ || allowed_hostcalls_.find(name) != allowed_hostcalls_.end(); + } + + void setRestrictedCallback(bool restricted, + std::unordered_set allowed_hostcalls = {}) { + restricted_callback_ = restricted; + allowed_hostcalls_ = std::move(allowed_hostcalls); + } + // Integrator operations. std::unique_ptr &integration() { return integration_; } bool cmpLogLevel(proxy_wasm::LogLevel level) { return integration_->getLogLevel() <= level; } @@ -322,6 +333,10 @@ class WasmVm { std::unique_ptr integration_; FailState failed_ = FailState::Ok; std::vector> fail_callbacks_; + +private: + bool restricted_callback_{false}; + std::unordered_set allowed_hostcalls_{}; }; // Thread local state set during a call into a WASM VM so that calls coming out of the diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 7603ea671..ad43e0799 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -107,6 +107,8 @@ class V8 : public WasmVm { void terminate() override; private: + wasm::own trap(std::string message); + std::string getFailMessage(std::string_view function_name, wasm::own trap); template @@ -503,6 +505,10 @@ bool V8::setWord(uint64_t pointer, Word word) { return true; } +wasm::own V8::trap(std::string message) { + return wasm::Trap::make(store_.get(), wasm::Message::make(std::move(message))); +} + template void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, void (*function)(Args...)) { @@ -519,6 +525,9 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } + if (!func_data->vm_->isHostFunctionAllowed(func_data->name_)) { + return dynamic_cast(func_data->vm_)->trap("restricted_callback"); + } auto args = convertValTypesToArgsTuple>(params); auto function = reinterpret_cast(func_data->raw_func_); std::apply(function, args); @@ -552,6 +561,9 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view func_data->vm_->integration()->trace("[vm->host] " + func_data->name_ + "(" + printValues(params, sizeof...(Args)) + ")"); } + if (!func_data->vm_->isHostFunctionAllowed(func_data->name_)) { + return dynamic_cast(func_data->vm_)->trap("restricted_callback"); + } auto args = convertValTypesToArgsTuple>(params); auto function = reinterpret_cast(func_data->raw_func_); R rvalue = std::apply(function, args); diff --git a/src/wasm.cc b/src/wasm.cc index fe21d7925..5519b3e77 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -355,6 +355,25 @@ ContextBase *WasmBase::getRootContext(const std::shared_ptr &plugin, } void WasmBase::startVm(ContextBase *root_context) { + // wasi_snapshot_preview1.clock_time_get + wasm_vm_->setRestrictedCallback( + true, {// logging (Proxy-Wasm) + "env.proxy_log", + // logging (stdout/stderr) + "wasi_unstable.fd_write", "wasi_snapshot_preview1.fd_write", + // args + "wasi_unstable.args_sizes_get", "wasi_snapshot_preview1.args_sizes_get", + "wasi_unstable.args_get", "wasi_snapshot_preview1.args_get", + // environment variables + "wasi_unstable.environ_sizes_get", "wasi_snapshot_preview1.environ_sizes_get", + "wasi_unstable.environ_get", "wasi_snapshot_preview1.environ_get", + // preopened files/directories + "wasi_unstable.fd_prestat_get", "wasi_snapshot_preview1.fd_prestat_get", + "wasi_unstable.fd_prestat_dir_name", "wasi_snapshot_preview1.fd_prestat_dir_name", + // time + "wasi_unstable.clock_time_get", "wasi_snapshot_preview1.clock_time_get", + // random + "wasi_unstable.random_get", "wasi_snapshot_preview1.random_get"}); if (_initialize_) { // WASI reactor. _initialize_(root_context); @@ -370,6 +389,7 @@ void WasmBase::startVm(ContextBase *root_context) { // WASI command. _start_(root_context); } + wasm_vm_->setRestrictedCallback(false); } bool WasmBase::configure(ContextBase *root_context, std::shared_ptr plugin) { diff --git a/test/BUILD b/test/BUILD index 196cbc590..42748b92d 100644 --- a/test/BUILD +++ b/test/BUILD @@ -102,6 +102,21 @@ cc_test( ], ) +cc_test( + name = "security_test", + srcs = ["security_test.cc"], + data = [ + "//test/test_data:bad_malloc.wasm", + ], + linkstatic = 1, + deps = [ + ":utility_lib", + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + cc_test( name = "shared_data", srcs = ["shared_data_test.cc"], diff --git a/test/security_test.cc b/test/security_test.cc new file mode 100644 index 000000000..a077e4ae6 --- /dev/null +++ b/test/security_test.cc @@ -0,0 +1,106 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "gtest/gtest.h" + +#include +#include + +#include "include/proxy-wasm/context.h" +#include "include/proxy-wasm/wasm.h" + +#include "test/utility.h" + +namespace proxy_wasm { + +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), + [](const testing::TestParamInfo &info) { + return info.param; + }); + +TEST_P(TestVm, MallocNoHostcalls) { + if (engine_ != "v8") { + return; + } + auto source = readTestWasmFile("bad_malloc.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + uint64_t ptr = 0; + void *result = wasm.allocMemory(0x1000, &ptr); + EXPECT_NE(result, nullptr); + EXPECT_FALSE(wasm.isFailed()); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogEmpty()); + // Check integration logs. + auto *integration = dynamic_cast(wasm.wasm_vm()->integration().get()); + EXPECT_FALSE(integration->isErrorLogged("Function: proxy_on_memory_allocate failed")); + EXPECT_FALSE(integration->isErrorLogged("restricted_callback")); +} + +TEST_P(TestVm, MallocWithLog) { + if (engine_ != "v8") { + return; + } + auto source = readTestWasmFile("bad_malloc.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + uint64_t ptr = 0; + // 0xAAAA => hostcall to proxy_log (allowed). + void *result = wasm.allocMemory(0xAAAA, &ptr); + EXPECT_NE(result, nullptr); + EXPECT_FALSE(wasm.isFailed()); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogged("this is fine")); + // Check integration logs. + auto *integration = dynamic_cast(wasm.wasm_vm()->integration().get()); + EXPECT_FALSE(integration->isErrorLogged("Function: proxy_on_memory_allocate failed")); + EXPECT_FALSE(integration->isErrorLogged("restricted_callback")); +} + +TEST_P(TestVm, MallocWithHostcall) { + if (engine_ != "v8") { + return; + } + auto source = readTestWasmFile("bad_malloc.wasm"); + ASSERT_FALSE(source.empty()); + auto wasm = TestWasm(std::move(vm_)); + ASSERT_TRUE(wasm.load(source, false)); + ASSERT_TRUE(wasm.initialize()); + + uint64_t ptr = 0; + // 0xBBBB => hostcall to proxy_done (not allowed). + void *result = wasm.allocMemory(0xBBBB, &ptr); + EXPECT_EQ(result, nullptr); + EXPECT_TRUE(wasm.isFailed()); + + // Check application logs. + auto *context = dynamic_cast(wasm.vm_context()); + EXPECT_TRUE(context->isLogEmpty()); + // Check integration logs. + auto *integration = dynamic_cast(wasm.wasm_vm()->integration().get()); + EXPECT_TRUE(integration->isErrorLogged("Function: proxy_on_memory_allocate failed")); + EXPECT_TRUE(integration->isErrorLogged("restricted_callback")); +} + +} // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD index c6892954e..38612ca15 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -28,6 +28,11 @@ wasm_rust_binary( ], ) +wasm_rust_binary( + name = "bad_malloc.wasm", + srcs = ["bad_malloc.rs"], +) + wasm_rust_binary( name = "callback.wasm", srcs = ["callback.rs"], diff --git a/test/test_data/bad_malloc.rs b/test/test_data/bad_malloc.rs new file mode 100644 index 000000000..43c60da02 --- /dev/null +++ b/test/test_data/bad_malloc.rs @@ -0,0 +1,47 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use std::mem::MaybeUninit; + +extern "C" { + fn proxy_log(level: u32, message_data: *const u8, message_size: usize) -> u32; + fn proxy_done() -> u32; +} + +#[no_mangle] +pub extern "C" fn proxy_abi_version_0_2_0() {} + +#[no_mangle] +pub extern "C" fn proxy_on_memory_allocate(size: usize) -> *mut u8 { + let mut vec: Vec> = Vec::with_capacity(size); + unsafe { + vec.set_len(size); + } + match size { + 0xAAAA => { + let message = "this is fine"; + unsafe { + proxy_log(0, message.as_ptr(), message.len()); + } + } + 0xBBBB => { + unsafe { + proxy_done(); + } + } + _ => {} + } + let slice = vec.into_boxed_slice(); + Box::into_raw(slice) as *mut u8 +} From 4fcf895fa2433a1cdf20704926b8b7e4039a6a04 Mon Sep 17 00:00:00 2001 From: Piotr Sikora Date: Fri, 5 Aug 2022 02:43:10 -0500 Subject: [PATCH 220/287] v8: make sure we're operating in a wasm32 memory space. (#307) Reported by Chris Ertl from Google Security. Signed-off-by: Piotr Sikora --- src/v8/v8.cc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index ad43e0799..2d8660bcc 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -469,6 +469,10 @@ uint64_t V8::getMemorySize() { return memory_->data_size(); } std::optional V8::getMemory(uint64_t pointer, uint64_t size) { assert(memory_ != nullptr); + // Make sure we're operating in a wasm32 memory space. + if (pointer > UINT32_MAX || size > UINT32_MAX || pointer + size > UINT32_MAX) { + return std::nullopt; + } if (pointer + size > memory_->data_size()) { return std::nullopt; } @@ -477,6 +481,10 @@ std::optional V8::getMemory(uint64_t pointer, uint64_t size) { bool V8::setMemory(uint64_t pointer, uint64_t size, const void *data) { assert(memory_ != nullptr); + // Make sure we're operating in a wasm32 memory space. + if (pointer > UINT32_MAX || size > UINT32_MAX || pointer + size > UINT32_MAX) { + return false; + } if (pointer + size > memory_->data_size()) { return false; } @@ -486,6 +494,10 @@ bool V8::setMemory(uint64_t pointer, uint64_t size, const void *data) { bool V8::getWord(uint64_t pointer, Word *word) { constexpr auto size = sizeof(uint32_t); + // Make sure we're operating in a wasm32 memory space. + if (pointer > UINT32_MAX || pointer + size > UINT32_MAX) { + return false; + } if (pointer + size > memory_->data_size()) { return false; } @@ -497,6 +509,10 @@ bool V8::getWord(uint64_t pointer, Word *word) { bool V8::setWord(uint64_t pointer, Word word) { constexpr auto size = sizeof(uint32_t); + // Make sure we're operating in a wasm32 memory space. + if (pointer > UINT32_MAX || pointer + size > UINT32_MAX) { + return false; + } if (pointer + size > memory_->data_size()) { return false; } From 537b944de526aaeda803dfa3bbcffe1f408b986c Mon Sep 17 00:00:00 2001 From: Konstantin Maksimov <18444445+knm3000@users.noreply.github.com> Date: Sun, 2 Oct 2022 04:08:53 +0200 Subject: [PATCH 221/287] Do not reverse bytes for NullVM. (#282) Fixes https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/294. Signed-off-by: Konstantin Maksimov --- include/proxy-wasm/null_vm.h | 1 + include/proxy-wasm/wasm_vm.h | 6 ++++++ include/proxy-wasm/word.h | 8 ++++---- src/exports.cc | 5 +++-- src/pairs_util.cc | 31 +++++++++++++++++++++++++------ src/signature_util.cc | 2 +- src/v8/v8.cc | 5 +++-- src/wamr/wamr.cc | 5 +++-- src/wasmedge/wasmedge.cc | 1 + src/wasmtime/wasmtime.cc | 5 +++-- src/wavm/wavm.cc | 5 +++-- test/BUILD | 11 +++++++++++ test/null_vm_test.cc | 6 ++++++ test/pairs_util_test.cc | 33 +++++++++++++++++++++++++++++++++ test/wasm_vm_test.cc | 3 ++- 15 files changed, 105 insertions(+), 22 deletions(-) create mode 100644 test/pairs_util_test.cc diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index 3a38fd990..a0a3798ff 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -61,6 +61,7 @@ struct NullVm : public WasmVm { #undef _REGISTER_CALLBACK void terminate() override {} + bool usesWasmByteOrder() override { return false; } std::string plugin_name_; std::unique_ptr plugin_; diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index 879e200d1..acf0ccf3b 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -303,6 +303,12 @@ class WasmVm { */ virtual void terminate() = 0; + /** + * Byte order flag (host or wasm). + * @return 'false' for a null VM and 'true' for a wasm VM. + */ + virtual bool usesWasmByteOrder() = 0; + bool isFailed() { return failed_ != FailState::Ok; } void fail(FailState fail_state, std::string_view message) { integration()->error(message); diff --git a/include/proxy-wasm/word.h b/include/proxy-wasm/word.h index 559471eb8..90ea932df 100644 --- a/include/proxy-wasm/word.h +++ b/include/proxy-wasm/word.h @@ -24,11 +24,11 @@ namespace proxy_wasm { // Use byteswap functions only when compiling for big-endian platforms. #if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \ __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__ -#define htowasm(x) __builtin_bswap32(x) -#define wasmtoh(x) __builtin_bswap32(x) +#define htowasm(x, vm_uses_wasm_byte_order) ((vm_uses_wasm_byte_order) ? __builtin_bswap32(x) : (x)) +#define wasmtoh(x, vm_uses_wasm_byte_order) ((vm_uses_wasm_byte_order) ? __builtin_bswap32(x) : (x)) #else -#define htowasm(x) (x) -#define wasmtoh(x) (x) +#define htowasm(x, vm_uses_wasm_byte_order) (x) +#define wasmtoh(x, vm_uses_wasm_byte_order) (x) #endif // Represents a Wasm-native word-sized datum. On 32-bit VMs, the high bits are always zero. diff --git a/src/exports.cc b/src/exports.cc index b06c40437..0290dcf0f 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -693,8 +693,9 @@ Word writevImpl(Word fd, Word iovs, Word iovs_len, Word *nwritten_ptr) { } const auto *iovec = reinterpret_cast(memslice.value().data()); if (iovec[1] != 0U /* buf_len */) { - memslice = context->wasmVm()->getMemory(wasmtoh(iovec[0]) /* buf */, - wasmtoh(iovec[1]) /* buf_len */); + const auto buf = wasmtoh(iovec[0], context->wasmVm()->usesWasmByteOrder()); + const auto buf_len = wasmtoh(iovec[1], context->wasmVm()->usesWasmByteOrder()); + memslice = context->wasmVm()->getMemory(buf, buf_len); if (!memslice) { return 21; // __WASI_EFAULT } diff --git a/src/pairs_util.cc b/src/pairs_util.cc index d49259216..d21135788 100644 --- a/src/pairs_util.cc +++ b/src/pairs_util.cc @@ -19,6 +19,7 @@ #include #include +#include "include/proxy-wasm/exports.h" #include "include/proxy-wasm/limits.h" #include "include/proxy-wasm/word.h" @@ -45,7 +46,10 @@ bool PairsUtil::marshalPairs(const Pairs &pairs, char *buffer, size_t size) { const char *end = buffer + size; // Write number of pairs. - uint32_t num_pairs = htowasm(pairs.size()); + uint32_t num_pairs = + htowasm(pairs.size(), contextOrEffectiveContext() != nullptr + ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() + : false); if (pos + sizeof(uint32_t) > end) { return false; } @@ -54,7 +58,10 @@ bool PairsUtil::marshalPairs(const Pairs &pairs, char *buffer, size_t size) { for (const auto &p : pairs) { // Write name length. - uint32_t name_len = htowasm(p.first.size()); + uint32_t name_len = + htowasm(p.first.size(), contextOrEffectiveContext() != nullptr + ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() + : false); if (pos + sizeof(uint32_t) > end) { return false; } @@ -62,7 +69,10 @@ bool PairsUtil::marshalPairs(const Pairs &pairs, char *buffer, size_t size) { pos += sizeof(uint32_t); // Write value length. - uint32_t value_len = htowasm(p.second.size()); + uint32_t value_len = + htowasm(p.second.size(), contextOrEffectiveContext() != nullptr + ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() + : false); if (pos + sizeof(uint32_t) > end) { return false; } @@ -103,7 +113,10 @@ Pairs PairsUtil::toPairs(std::string_view buffer) { if (pos + sizeof(uint32_t) > end) { return {}; } - uint32_t num_pairs = wasmtoh(*reinterpret_cast(pos)); + uint32_t num_pairs = wasmtoh(*reinterpret_cast(pos), + contextOrEffectiveContext() != nullptr + ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() + : false); pos += sizeof(uint32_t); // Check if we're not going to exceed the limit. @@ -122,14 +135,20 @@ Pairs PairsUtil::toPairs(std::string_view buffer) { if (pos + sizeof(uint32_t) > end) { return {}; } - s.first = wasmtoh(*reinterpret_cast(pos)); + s.first = wasmtoh(*reinterpret_cast(pos), + contextOrEffectiveContext() != nullptr + ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() + : false); pos += sizeof(uint32_t); // Read value length. if (pos + sizeof(uint32_t) > end) { return {}; } - s.second = wasmtoh(*reinterpret_cast(pos)); + s.second = wasmtoh(*reinterpret_cast(pos), + contextOrEffectiveContext() != nullptr + ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() + : false); pos += sizeof(uint32_t); } diff --git a/src/signature_util.cc b/src/signature_util.cc index a8f29363b..46b9d3333 100644 --- a/src/signature_util.cc +++ b/src/signature_util.cc @@ -86,7 +86,7 @@ bool SignatureUtil::verifySignature(std::string_view bytecode, std::string &mess uint32_t alg_id; std::memcpy(&alg_id, payload.data(), sizeof(uint32_t)); - alg_id = wasmtoh(alg_id); + alg_id = wasmtoh(alg_id, true); if (alg_id != 2) { message = "Signature has a wrong alg_id (want: 2, is: " + std::to_string(alg_id) + ")"; diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 2d8660bcc..5718d1308 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -105,6 +105,7 @@ class V8 : public WasmVm { #undef _GET_MODULE_FUNCTION void terminate() override; + bool usesWasmByteOrder() override { return true; } private: wasm::own trap(std::string message); @@ -503,7 +504,7 @@ bool V8::getWord(uint64_t pointer, Word *word) { } uint32_t word32; ::memcpy(&word32, memory_->data() + pointer, size); - word->u64_ = wasmtoh(word32); + word->u64_ = wasmtoh(word32, true); return true; } @@ -516,7 +517,7 @@ bool V8::setWord(uint64_t pointer, Word word) { if (pointer + size > memory_->data_size()) { return false; } - uint32_t word32 = htowasm(word.u32()); + uint32_t word32 = htowasm(word.u32(), true); ::memcpy(memory_->data() + pointer, &word32, size); return true; } diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index e193358cc..2ca6863be 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -87,6 +87,7 @@ class Wamr : public WasmVm { #undef _GET_MODULE_FUNCTION void terminate() override {} + bool usesWasmByteOrder() override { return true; } private: template @@ -368,7 +369,7 @@ bool Wamr::getWord(uint64_t pointer, Word *word) { uint32_t word32; ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); - word->u64_ = wasmtoh(word32); + word->u64_ = wasmtoh(word32, true); return true; } @@ -377,7 +378,7 @@ bool Wamr::setWord(uint64_t pointer, Word word) { if (pointer + size > wasm_memory_data_size(memory_.get())) { return false; } - uint32_t word32 = htowasm(word.u32()); + uint32_t word32 = htowasm(word.u32(), true); ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); return true; } diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc index f22d588ac..89813096f 100644 --- a/src/wasmedge/wasmedge.cc +++ b/src/wasmedge/wasmedge.cc @@ -281,6 +281,7 @@ class WasmEdge : public WasmVm { std::function *function); void terminate() override {} + bool usesWasmByteOrder() override { return true; } WasmEdgeLoaderPtr loader_; WasmEdgeValidatorPtr validator_; diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 040dea072..2cfc21888 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -98,6 +98,7 @@ class Wasmtime : public WasmVm { std::function *function); void terminate() override {} + bool usesWasmByteOrder() override { return true; } WasmStorePtr store_; WasmModulePtr module_; @@ -394,7 +395,7 @@ bool Wasmtime::getWord(uint64_t pointer, Word *word) { uint32_t word32; ::memcpy(&word32, wasm_memory_data(memory_.get()) + pointer, size); - word->u64_ = wasmtoh(word32); + word->u64_ = wasmtoh(word32, true); return true; } @@ -403,7 +404,7 @@ bool Wasmtime::setWord(uint64_t pointer, Word word) { if (pointer + size > wasm_memory_data_size(memory_.get())) { return false; } - uint32_t word32 = htowasm(word.u32()); + uint32_t word32 = htowasm(word.u32(), true); ::memcpy(wasm_memory_data(memory_.get()) + pointer, &word32, size); return true; } diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc index 1041b7fa7..670eb7c41 100644 --- a/src/wavm/wavm.cc +++ b/src/wavm/wavm.cc @@ -230,6 +230,7 @@ struct Wavm : public WasmVm { #undef _REGISTER_CALLBACK void terminate() override {} + bool usesWasmByteOrder() override { return true; } IR::Module ir_module_; WAVM::Runtime::ModuleRef module_ = nullptr; @@ -389,12 +390,12 @@ bool Wavm::getWord(uint64_t pointer, Word *data) { auto *p = reinterpret_cast(memory_base_ + pointer); uint32_t data32; memcpy(&data32, p, sizeof(uint32_t)); - data->u64_ = wasmtoh(data32); + data->u64_ = wasmtoh(data32, true); return true; } bool Wavm::setWord(uint64_t pointer, Word data) { - uint32_t data32 = htowasm(data.u32()); + uint32_t data32 = htowasm(data.u32(), true); return setMemory(pointer, sizeof(uint32_t), &data32); } diff --git a/test/BUILD b/test/BUILD index 42748b92d..71b30296b 100644 --- a/test/BUILD +++ b/test/BUILD @@ -165,6 +165,17 @@ cc_test( ], ) +cc_test( + name = "pairs_util_test", + srcs = ["pairs_util_test.cc"], + linkstatic = 1, + deps = [ + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + cc_library( name = "utility_lib", testonly = True, diff --git a/test/null_vm_test.cc b/test/null_vm_test.cc index 774c685d3..5bb862f96 100644 --- a/test/null_vm_test.cc +++ b/test/null_vm_test.cc @@ -73,4 +73,10 @@ TEST_F(BaseVmTest, NullVmStartup) { EXPECT_NE(test_null_vm_plugin, nullptr); } +TEST_F(BaseVmTest, ByteOrder) { + auto wasm_vm = createNullVm(); + EXPECT_TRUE(wasm_vm->load("test_null_vm_plugin", {}, {})); + EXPECT_FALSE(wasm_vm->usesWasmByteOrder()); +} + } // namespace proxy_wasm diff --git a/test/pairs_util_test.cc b/test/pairs_util_test.cc new file mode 100644 index 000000000..3f9fcd965 --- /dev/null +++ b/test/pairs_util_test.cc @@ -0,0 +1,33 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "include/proxy-wasm/pairs_util.h" +#include "gtest/gtest.h" + +namespace proxy_wasm { + +TEST(PairsUtilTest, EncodeDecode) { + proxy_wasm::Pairs pairs1; + std::string data1("some_data"); + auto size_str = std::to_string(data1.size()); + pairs1.push_back({data1, size_str}); + std::vector buffer(PairsUtil::pairsSize(pairs1)); + EXPECT_TRUE(PairsUtil::marshalPairs(pairs1, buffer.data(), buffer.size())); + auto pairs2 = PairsUtil::toPairs(std::string_view(buffer.data(), buffer.size())); + EXPECT_EQ(pairs2.size(), pairs1.size()); + EXPECT_EQ(pairs2[0].first, pairs1[0].first); + EXPECT_EQ(pairs2[0].second, pairs1[0].second); +} + +} // namespace proxy_wasm diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc index 642ea636f..a9caac935 100644 --- a/test/wasm_vm_test.cc +++ b/test/wasm_vm_test.cc @@ -53,7 +53,8 @@ TEST_P(TestVm, Memory) { ASSERT_TRUE(vm_->getWord(0x2000, &word)); ASSERT_EQ(100, word.u64_); - uint32_t data[2] = {htowasm(static_cast(-1)), htowasm(200)}; + uint32_t data[2] = {htowasm(static_cast(-1), vm_->usesWasmByteOrder()), + htowasm(200, vm_->usesWasmByteOrder())}; ASSERT_TRUE(vm_->setMemory(0x200, sizeof(int32_t) * 2, static_cast(data))); ASSERT_TRUE(vm_->getWord(0x200, &word)); ASSERT_EQ(-1, static_cast(word.u64_)); From 25d6a99de9378e65a6bb6a56a2ca5073870ddc3c Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 6 Oct 2022 23:10:48 -0700 Subject: [PATCH 222/287] Add default visibility to Bazel's config_settings. (#311) Signed-off-by: Keith Smiley --- bazel/BUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bazel/BUILD b/bazel/BUILD index 2fe0c7924..39f25a630 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -1,5 +1,7 @@ load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) + config_setting( name = "engine_null", values = {"define": "engine=null"}, From b0a0594e8ab4023857393fab349170fb487ec5a9 Mon Sep 17 00:00:00 2001 From: Dhi Aurrahman Date: Sun, 9 Oct 2022 16:35:30 +0700 Subject: [PATCH 223/287] v8: update to v10.7.193.13. (#310) Signed-off-by: Dhi Aurrahman --- bazel/external/v8.patch | 263 ---------------------------------------- bazel/repositories.bzl | 29 +---- src/v8/v8.cc | 10 +- test/BUILD | 2 + 4 files changed, 10 insertions(+), 294 deletions(-) diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index 7748793d0..52af7b6ad 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,7 +1,5 @@ # 1. Disable pointer compression (limits the maximum number of WasmVMs). # 2. Don't expose Wasm C API (only Wasm C++ API). -# 3. Fix cross-compilation (https://crrev.com/c/3735165). -# 4. Fix build errors in SIMD IndexOf/includes (https://crrev.com/c/3749192). diff --git a/BUILD.bazel b/BUILD.bazel index 5fb10d3940..a19930d36e 100644 @@ -35,264 +33,3 @@ index ce3f569fd5..dc8a4c4f6a 100644 } // extern "C" + +#endif -diff --git a/src/execution/clobber-registers.cc b/src/execution/clobber-registers.cc -index 8f7fba765f..a7f5bf80cf 100644 ---- a/src/execution/clobber-registers.cc -+++ b/src/execution/clobber-registers.cc -@@ -5,19 +5,22 @@ - - #include "src/base/build_config.h" - --#if V8_HOST_ARCH_ARM -+// Check both {HOST_ARCH} and {TARGET_ARCH} to disable the functionality of this -+// file for cross-compilation. The reason is that the inline assembly code below -+// does not work for cross-compilation. -+#if V8_HOST_ARCH_ARM && V8_TARGET_ARCH_ARM - #include "src/codegen/arm/register-arm.h" --#elif V8_HOST_ARCH_ARM64 -+#elif V8_HOST_ARCH_ARM64 && V8_TARGET_ARCH_ARM64 - #include "src/codegen/arm64/register-arm64.h" --#elif V8_HOST_ARCH_IA32 -+#elif V8_HOST_ARCH_IA32 && V8_TARGET_ARCH_IA32 - #include "src/codegen/ia32/register-ia32.h" --#elif V8_HOST_ARCH_X64 -+#elif V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64 - #include "src/codegen/x64/register-x64.h" --#elif V8_HOST_ARCH_LOONG64 -+#elif V8_HOST_ARCH_LOONG64 && V8_TARGET_ARCH_LOONG64 - #include "src/codegen/loong64/register-loong64.h" --#elif V8_HOST_ARCH_MIPS -+#elif V8_HOST_ARCH_MIPS && V8_TARGET_ARCH_MIPS - #include "src/codegen/mips/register-mips.h" --#elif V8_HOST_ARCH_MIPS64 -+#elif V8_HOST_ARCH_MIPS64 && V8_TARGET_ARCH_MIPS64 - #include "src/codegen/mips64/register-mips64.h" - #endif - -@@ -26,14 +29,15 @@ namespace internal { - - #if V8_CC_MSVC - // msvc only support inline assembly on x86 --#if V8_HOST_ARCH_IA32 -+#if V8_HOST_ARCH_IA32 && V8_TARGET_ARCH_IA32 - #define CLOBBER_REGISTER(R) __asm xorps R, R - - #endif - - #else // !V8_CC_MSVC - --#if V8_HOST_ARCH_X64 || V8_HOST_ARCH_IA32 -+#if (V8_HOST_ARCH_X64 && V8_TARGET_ARCH_X64) || \ -+ (V8_HOST_ARCH_IA32 && V8_TARGET_ARCH_IA32) - #define CLOBBER_REGISTER(R) \ - __asm__ volatile( \ - "xorps " \ -@@ -42,20 +46,19 @@ namespace internal { - "%%" #R :: \ - :); - --#elif V8_HOST_ARCH_ARM64 -+#elif V8_HOST_ARCH_ARM64 && V8_TARGET_ARCH_ARM64 - #define CLOBBER_REGISTER(R) __asm__ volatile("fmov " #R ",xzr" :::); - --#elif V8_HOST_ARCH_LOONG64 -+#elif V8_HOST_ARCH_LOONG64 && V8_TARGET_ARCH_LOONG64 - #define CLOBBER_REGISTER(R) __asm__ volatile("movgr2fr.d $" #R ",$zero" :::); - --#elif V8_HOST_ARCH_MIPS -+#elif V8_HOST_ARCH_MIPS && V8_TARGET_ARCH_MIPS - #define CLOBBER_USE_REGISTER(R) __asm__ volatile("mtc1 $zero,$" #R :::); - --#elif V8_HOST_ARCH_MIPS64 -+#elif V8_HOST_ARCH_MIPS64 && V8_TARGET_ARCH_MIPS64 - #define CLOBBER_USE_REGISTER(R) __asm__ volatile("dmtc1 $zero,$" #R :::); - --#endif // V8_HOST_ARCH_X64 || V8_HOST_ARCH_IA32 || V8_HOST_ARCH_ARM64 || -- // V8_HOST_ARCH_LOONG64 || V8_HOST_ARCH_MIPS || V8_HOST_ARCH_MIPS64 -+#endif // V8_HOST_ARCH_XXX && V8_TARGET_ARCH_XXX - - #endif // V8_CC_MSVC - -diff --git a/src/objects/simd.cc b/src/objects/simd.cc -index 0a73b9c686..be6b72d157 100644 ---- a/src/objects/simd.cc -+++ b/src/objects/simd.cc -@@ -354,8 +354,13 @@ Address ArrayIndexOfIncludes(Address array_start, uintptr_t array_len, - if (reinterpret_cast(array) % sizeof(double) != 0) { - // Slow scalar search for unaligned double array. - for (; from_index < array_len; from_index++) { -- if (fixed_array.get_representation(static_cast(from_index)) == -- *reinterpret_cast(&search_num)) { -+ if (fixed_array.is_the_hole(static_cast(from_index))) { -+ // |search_num| cannot be NaN, so there is no need to check against -+ // holes. -+ continue; -+ } -+ if (fixed_array.get_scalar(static_cast(from_index)) == -+ search_num) { - return from_index; - } - } -diff --git a/src/objects/simd.cc b/src/objects/simd.cc -index d3cedfe330..0a73b9c686 100644 ---- a/src/objects/simd.cc -+++ b/src/objects/simd.cc -@@ -95,24 +95,21 @@ inline int extract_first_nonzero_index(T v) { - } - - template <> --inline int extract_first_nonzero_index(int32x4_t v) { -- int32x4_t mask = {4, 3, 2, 1}; -+inline int extract_first_nonzero_index(uint32x4_t v) { -+ uint32x4_t mask = {4, 3, 2, 1}; - mask = vandq_u32(mask, v); - return 4 - vmaxvq_u32(mask); - } - - template <> --inline int extract_first_nonzero_index(int64x2_t v) { -- int32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} -- mask = vandq_u32(mask, vreinterpretq_s32_s64(v)); -+inline int extract_first_nonzero_index(uint64x2_t v) { -+ uint32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} -+ mask = vandq_u32(mask, vreinterpretq_u32_u64(v)); - return 2 - vmaxvq_u32(mask); - } - --template <> --inline int extract_first_nonzero_index(float64x2_t v) { -- int32x4_t mask = {2, 0, 1, 0}; // Could also be {2,2,1,1} or {0,2,0,1} -- mask = vandq_u32(mask, vreinterpretq_s32_f64(v)); -- return 2 - vmaxvq_u32(mask); -+inline int32_t reinterpret_vmaxvq_u64(uint64x2_t v) { -+ return vmaxvq_u32(vreinterpretq_u32_u64(v)); - } - #endif - -@@ -204,14 +201,14 @@ inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, - } - #elif defined(NEON64) - if constexpr (std::is_same::value) { -- VECTORIZED_LOOP_Neon(int32x4_t, int32x4_t, vdupq_n_u32, vceqq_u32, -+ VECTORIZED_LOOP_Neon(uint32x4_t, uint32x4_t, vdupq_n_u32, vceqq_u32, - vmaxvq_u32) - } else if constexpr (std::is_same::value) { -- VECTORIZED_LOOP_Neon(int64x2_t, int64x2_t, vdupq_n_u64, vceqq_u64, -- vmaxvq_u32) -+ VECTORIZED_LOOP_Neon(uint64x2_t, uint64x2_t, vdupq_n_u64, vceqq_u64, -+ reinterpret_vmaxvq_u64) - } else if constexpr (std::is_same::value) { -- VECTORIZED_LOOP_Neon(float64x2_t, float64x2_t, vdupq_n_f64, vceqq_f64, -- vmaxvq_f64) -+ VECTORIZED_LOOP_Neon(float64x2_t, uint64x2_t, vdupq_n_f64, vceqq_f64, -+ reinterpret_vmaxvq_u64) - } - #else - UNREACHABLE(); -diff --git a/src/objects/simd.cc b/src/objects/simd.cc -index be6b72d157..a71968fd10 100644 ---- a/src/objects/simd.cc -+++ b/src/objects/simd.cc -@@ -148,9 +148,14 @@ inline int32_t reinterpret_vmaxvq_u64(uint64x2_t v) { - template - inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, - uintptr_t index, T search_element) { -- static_assert(std::is_same::value || -- std::is_same::value || -- std::is_same::value); -+ static constexpr bool is_uint32 = -+ sizeof(T) == sizeof(uint32_t) && std::is_integral::value; -+ static constexpr bool is_uint64 = -+ sizeof(T) == sizeof(uint64_t) && std::is_integral::value; -+ static constexpr bool is_double = -+ sizeof(T) == sizeof(double) && std::is_floating_point::value; -+ -+ static_assert(is_uint32 || is_uint64 || is_double); - - #if !(defined(__SSE3__) || defined(NEON64)) - // No SIMD available. -@@ -178,14 +183,14 @@ inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, - - // Inserting one of the vectorized loop - #ifdef __SSE3__ -- if constexpr (std::is_same::value) { -+ if constexpr (is_uint32) { - #define MOVEMASK(x) _mm_movemask_ps(_mm_castsi128_ps(x)) - #define EXTRACT(x) base::bits::CountTrailingZeros32(x) - VECTORIZED_LOOP_x86(__m128i, __m128i, _mm_set1_epi32, _mm_cmpeq_epi32, - MOVEMASK, EXTRACT) - #undef MOVEMASK - #undef EXTRACT -- } else if constexpr (std::is_same::value) { -+ } else if constexpr (is_uint64) { - #define SET1(x) _mm_castsi128_ps(_mm_set1_epi64x(x)) - #define CMP(a, b) _mm_cmpeq_pd(_mm_castps_pd(a), _mm_castps_pd(b)) - #define EXTRACT(x) base::bits::CountTrailingZeros32(x) -@@ -193,20 +198,20 @@ inline uintptr_t fast_search_noavx(T* array, uintptr_t array_len, - #undef SET1 - #undef CMP - #undef EXTRACT -- } else if constexpr (std::is_same::value) { -+ } else if constexpr (is_double) { - #define EXTRACT(x) base::bits::CountTrailingZeros32(x) - VECTORIZED_LOOP_x86(__m128d, __m128d, _mm_set1_pd, _mm_cmpeq_pd, - _mm_movemask_pd, EXTRACT) - #undef EXTRACT - } - #elif defined(NEON64) -- if constexpr (std::is_same::value) { -+ if constexpr (is_uint32) { - VECTORIZED_LOOP_Neon(uint32x4_t, uint32x4_t, vdupq_n_u32, vceqq_u32, - vmaxvq_u32) -- } else if constexpr (std::is_same::value) { -+ } else if constexpr (is_uint64) { - VECTORIZED_LOOP_Neon(uint64x2_t, uint64x2_t, vdupq_n_u64, vceqq_u64, - reinterpret_vmaxvq_u64) -- } else if constexpr (std::is_same::value) { -+ } else if constexpr (is_double) { - VECTORIZED_LOOP_Neon(float64x2_t, uint64x2_t, vdupq_n_f64, vceqq_f64, - reinterpret_vmaxvq_u64) - } -@@ -240,9 +245,14 @@ template - TARGET_AVX2 inline uintptr_t fast_search_avx(T* array, uintptr_t array_len, - uintptr_t index, - T search_element) { -- static_assert(std::is_same::value || -- std::is_same::value || -- std::is_same::value); -+ static constexpr bool is_uint32 = -+ sizeof(T) == sizeof(uint32_t) && std::is_integral::value; -+ static constexpr bool is_uint64 = -+ sizeof(T) == sizeof(uint64_t) && std::is_integral::value; -+ static constexpr bool is_double = -+ sizeof(T) == sizeof(double) && std::is_floating_point::value; -+ -+ static_assert(is_uint32 || is_uint64 || is_double); - - const int target_align = 32; - // Scalar loop to reach desired alignment -@@ -256,21 +266,21 @@ TARGET_AVX2 inline uintptr_t fast_search_avx(T* array, uintptr_t array_len, - } - - // Generating vectorized loop -- if constexpr (std::is_same::value) { -+ if constexpr (is_uint32) { - #define MOVEMASK(x) _mm256_movemask_ps(_mm256_castsi256_ps(x)) - #define EXTRACT(x) base::bits::CountTrailingZeros32(x) - VECTORIZED_LOOP_x86(__m256i, __m256i, _mm256_set1_epi32, _mm256_cmpeq_epi32, - MOVEMASK, EXTRACT) - #undef MOVEMASK - #undef EXTRACT -- } else if constexpr (std::is_same::value) { -+ } else if constexpr (is_uint64) { - #define MOVEMASK(x) _mm256_movemask_pd(_mm256_castsi256_pd(x)) - #define EXTRACT(x) base::bits::CountTrailingZeros32(x) - VECTORIZED_LOOP_x86(__m256i, __m256i, _mm256_set1_epi64x, - _mm256_cmpeq_epi64, MOVEMASK, EXTRACT) - #undef MOVEMASK - #undef EXTRACT -- } else if constexpr (std::is_same::value) { -+ } else if constexpr (is_double) { - #define CMP(a, b) _mm256_cmp_pd(a, b, _CMP_EQ_OQ) - #define EXTRACT(x) base::bits::CountTrailingZeros32(x) - VECTORIZED_LOOP_x86(__m256d, __m256d, _mm256_set1_pd, CMP, diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 87ca15ee8..e01f9d0d4 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -126,10 +126,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( git_repository, name = "v8", - # 10.4.132.18 - commit = "ce33dd2c08521fbe7f616bcd5941f2f388338030", + # 10.7.193.13 + commit = "6c8b357a84847a479cd329478522feefc1c3195a", remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1657561920 +0000", + shallow_since = "1664374400 +0000", patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], patch_args = ["-p1"], ) @@ -143,9 +143,9 @@ def proxy_wasm_cpp_host_repositories(): new_git_repository, name = "com_googlesource_chromium_base_trace_event_common", build_file = "@v8//:bazel/BUILD.trace_event_common", - commit = "d115b033c4e53666b535cbd1985ffe60badad082", + commit = "521ac34ebd795939c7e16b37d9d3ddb40e8ed556", remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", - shallow_since = "1642576054 -0800", + shallow_since = "1662508800 +0000", ) native.bind( @@ -153,25 +153,6 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common", ) - maybe( - new_git_repository, - name = "com_googlesource_chromium_zlib", - build_file = "@v8//:bazel/BUILD.zlib", - commit = "64bbf988543996eb8df9a86877b32917187eba8f", - remote = "https://chromium.googlesource.com/chromium/src/third_party/zlib.git", - shallow_since = "1653988038 -0700", - ) - - native.bind( - name = "zlib", - actual = "@com_googlesource_chromium_zlib//:zlib", - ) - - native.bind( - name = "zlib_compression_utils", - actual = "@com_googlesource_chromium_zlib//:zlib_compression_utils", - ) - # WAMR with dependencies. maybe( diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 5718d1308..61779c1d5 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -30,14 +30,10 @@ #include "include/v8-version.h" #include "include/v8.h" +#include "src/flags/flags.h" #include "src/wasm/c-api.h" #include "wasm-api/wasm.hh" -namespace v8::internal { -extern bool FLAG_liftoff; -extern unsigned int FLAG_wasm_max_mem_pages; -} // namespace v8::internal - namespace proxy_wasm { namespace v8 { @@ -46,8 +42,8 @@ wasm::Engine *engine() { static wasm::own engine; std::call_once(init, []() { - ::v8::internal::FLAG_liftoff = false; - ::v8::internal::FLAG_wasm_max_mem_pages = + ::v8::internal::v8_flags.liftoff = false; + ::v8::internal::v8_flags.wasm_max_mem_pages = PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES / PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES; ::v8::V8::EnableWebAssemblyTrapHandler(true); engine = wasm::Engine::make(); diff --git a/test/BUILD b/test/BUILD index 71b30296b..aa99c0f35 100644 --- a/test/BUILD +++ b/test/BUILD @@ -52,6 +52,7 @@ cc_test( cc_test( name = "runtime_test", + timeout = "long", srcs = ["runtime_test.cc"], data = [ "//test/test_data:callback.wasm", @@ -152,6 +153,7 @@ cc_test( cc_test( name = "wasm_vm_test", + timeout = "long", srcs = ["wasm_vm_test.cc"], data = [ "//test/test_data:abi_export.wasm", From 0176f43edfcbd854c13313aea6a923effe1d6537 Mon Sep 17 00:00:00 2001 From: River <6375745+RiverPhillips@users.noreply.github.com> Date: Thu, 27 Oct 2022 03:49:15 +0100 Subject: [PATCH 224/287] wasmtime: update to v1.0.1. (#309) Signed-off-by: river phillips --- bazel/cargo/wasmtime/BUILD.bazel | 8 +- bazel/cargo/wasmtime/Cargo.raze.lock | 289 ++++------ bazel/cargo/wasmtime/Cargo.toml | 12 +- bazel/cargo/wasmtime/bumpalo.patch | 9 + bazel/cargo/wasmtime/crates.bzl | 518 ++++++++---------- .../wasmtime/remote/BUILD.adler-1.0.2.bazel | 56 -- .../wasmtime/remote/BUILD.ahash-0.7.6.bazel | 4 +- ....bazel => BUILD.aho-corasick-0.7.19.bazel} | 2 +- ...1.0.58.bazel => BUILD.anyhow-1.0.66.bazel} | 4 +- .../remote/BUILD.arrayvec-0.7.2.bazel | 64 +++ .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- .../remote/BUILD.backtrace-0.3.66.bazel | 111 ---- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 2 +- ...1.4.0.bazel => BUILD.bumpalo-3.11.1.bazel} | 15 +- ...l => BUILD.cranelift-bforest-0.88.1.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.88.1.bazel} | 20 +- ...BUILD.cranelift-codegen-meta-0.88.1.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.88.1.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.88.1.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.88.1.bazel} | 6 +- ...azel => BUILD.cranelift-isle-0.88.1.bazel} | 4 +- ...el => BUILD.cranelift-native-0.88.1.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.88.1.bazel} | 16 +- ...r-1.7.0.bazel => BUILD.either-1.8.0.bazel} | 3 +- ...9.0.bazel => BUILD.env_logger-0.9.1.bazel} | 2 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 4 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- ....2.7.bazel => BUILD.getrandom-0.2.8.bazel} | 4 +- .../remote/BUILD.hashbrown-0.11.2.bazel | 66 --- .../remote/BUILD.hashbrown-0.12.3.bazel | 2 + .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- .../remote/BUILD.indexmap-1.9.1.bazel | 2 +- .../remote/BUILD.io-lifetimes-0.7.2.bazel | 102 ---- .../remote/BUILD.io-lifetimes-0.7.4.bazel | 84 +++ ...0.3.bazel => BUILD.itertools-0.10.5.bazel} | 4 +- ...0.2.126.bazel => BUILD.libc-0.2.137.bazel} | 4 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- .../remote/BUILD.miniz_oxide-0.5.3.bazel | 55 -- .../remote/BUILD.more-asserts-0.2.2.bazel | 54 -- .../wasmtime/remote/BUILD.object-0.28.4.bazel | 74 --- .../wasmtime/remote/BUILD.object-0.29.0.bazel | 12 +- ...3.0.bazel => BUILD.once_cell-1.15.0.bazel} | 4 +- ...te-1.0.7.bazel => BUILD.paste-1.0.9.bazel} | 2 +- ...2.bazel => BUILD.proc-macro2-1.0.47.bazel} | 6 +- ...sm-0.1.20.bazel => BUILD.psm-0.1.21.bazel} | 4 +- ...-1.0.20.bazel => BUILD.quote-1.0.21.bazel} | 6 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 4 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 2 +- ....6.3.bazel => BUILD.rand_core-0.6.4.bazel} | 4 +- ....3.1.bazel => BUILD.regalloc2-0.3.2.bazel} | 4 +- .../wasmtime/remote/BUILD.regex-1.6.0.bazel | 2 +- .../wasmtime/remote/BUILD.region-2.2.0.bazel | 79 --- ....35.7.bazel => BUILD.rustix-0.35.12.bazel} | 54 +- ....0.140.bazel => BUILD.serde-1.0.147.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.147.bazel} | 10 +- ....9.0.bazel => BUILD.smallvec-1.10.0.bazel} | 4 +- ...n-1.0.98.bazel => BUILD.syn-1.0.103.bazel} | 10 +- ....31.bazel => BUILD.thiserror-1.0.37.bazel} | 36 +- ...azel => BUILD.thiserror-impl-1.0.37.bazel} | 8 +- ....bazel => BUILD.unicode-ident-1.0.5.bazel} | 2 +- ....0.bazel => BUILD.wasmparser-0.89.1.bazel} | 2 +- ....39.1.bazel => BUILD.wasmtime-1.0.1.bazel} | 31 +- .../BUILD.wasmtime-asm-macros-1.0.1.bazel | 55 ++ .../BUILD.wasmtime-c-api-macros-0.19.0.bazel | 4 +- ...l => BUILD.wasmtime-cranelift-1.0.1.bazel} | 23 +- ...zel => BUILD.wasmtime-environ-1.0.1.bazel} | 19 +- ...1.bazel => BUILD.wasmtime-jit-1.0.1.bazel} | 17 +- ...l => BUILD.wasmtime-jit-debug-1.0.1.bazel} | 6 +- ...zel => BUILD.wasmtime-runtime-1.0.1.bazel} | 23 +- ...bazel => BUILD.wasmtime-types-1.0.1.bazel} | 10 +- .../wasmtime/remote/BUILD.winapi-0.3.9.bazel | 6 - .../remote/BUILD.windows-sys-0.36.1.bazel | 1 + bazel/repositories.bzl | 6 +- 73 files changed, 813 insertions(+), 1277 deletions(-) create mode 100644 bazel/cargo/wasmtime/bumpalo.patch delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.adler-1.0.2.bazel rename bazel/cargo/wasmtime/remote/{BUILD.aho-corasick-0.7.18.bazel => BUILD.aho-corasick-0.7.19.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.anyhow-1.0.58.bazel => BUILD.anyhow-1.0.66.bazel} (98%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.arrayvec-0.7.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.66.bazel rename bazel/cargo/wasmtime/remote/{BUILD.lazy_static-1.4.0.bazel => BUILD.bumpalo-3.11.1.bazel} (80%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.86.1.bazel => BUILD.cranelift-bforest-0.88.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.86.1.bazel => BUILD.cranelift-codegen-0.88.1.bazel} (78%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.86.1.bazel => BUILD.cranelift-codegen-meta-0.88.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.86.1.bazel => BUILD.cranelift-codegen-shared-0.88.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.86.1.bazel => BUILD.cranelift-entity-0.88.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.86.1.bazel => BUILD.cranelift-frontend-0.88.1.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-isle-0.86.1.bazel => BUILD.cranelift-isle-0.88.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.86.1.bazel => BUILD.cranelift-native-0.88.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.86.1.bazel => BUILD.cranelift-wasm-0.88.1.bazel} (73%) rename bazel/cargo/wasmtime/remote/{BUILD.either-1.7.0.bazel => BUILD.either-1.8.0.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.env_logger-0.9.0.bazel => BUILD.env_logger-0.9.1.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.getrandom-0.2.7.bazel => BUILD.getrandom-0.2.8.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.4.bazel rename bazel/cargo/wasmtime/remote/{BUILD.itertools-0.10.3.bazel => BUILD.itertools-0.10.5.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.126.bazel => BUILD.libc-0.2.137.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.3.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.more-asserts-0.2.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.object-0.28.4.bazel rename bazel/cargo/wasmtime/remote/{BUILD.once_cell-1.13.0.bazel => BUILD.once_cell-1.15.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.paste-1.0.7.bazel => BUILD.paste-1.0.9.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.proc-macro2-1.0.42.bazel => BUILD.proc-macro2-1.0.47.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.psm-0.1.20.bazel => BUILD.psm-0.1.21.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.quote-1.0.20.bazel => BUILD.quote-1.0.21.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.rand_core-0.6.3.bazel => BUILD.rand_core-0.6.4.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.regalloc2-0.3.1.bazel => BUILD.regalloc2-0.3.2.bazel} (94%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.35.7.bazel => BUILD.rustix-0.35.12.bazel} (83%) rename bazel/cargo/wasmtime/remote/{BUILD.serde-1.0.140.bazel => BUILD.serde-1.0.147.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.serde_derive-1.0.140.bazel => BUILD.serde_derive-1.0.147.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.smallvec-1.9.0.bazel => BUILD.smallvec-1.10.0.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.syn-1.0.98.bazel => BUILD.syn-1.0.103.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.thiserror-1.0.31.bazel => BUILD.thiserror-1.0.37.bazel} (70%) rename bazel/cargo/wasmtime/remote/{BUILD.thiserror-impl-1.0.31.bazel => BUILD.thiserror-impl-1.0.37.bazel} (86%) rename bazel/cargo/wasmtime/remote/{BUILD.unicode-ident-1.0.2.bazel => BUILD.unicode-ident-1.0.5.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.86.0.bazel => BUILD.wasmparser-0.89.1.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-0.39.1.bazel => BUILD.wasmtime-1.0.1.bazel} (75%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-1.0.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-0.39.1.bazel => BUILD.wasmtime-cranelift-1.0.1.bazel} (64%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-0.39.1.bazel => BUILD.wasmtime-environ-1.0.1.bazel} (73%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-0.39.1.bazel => BUILD.wasmtime-jit-1.0.1.bazel} (84%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-0.39.1.bazel => BUILD.wasmtime-jit-debug-1.0.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-0.39.1.bazel => BUILD.wasmtime-runtime-1.0.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-0.39.1.bazel => BUILD.wasmtime-types-1.0.1.bazel} (81%) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index a6e9ee996..2f7ca27d9 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@wasmtime__anyhow__1_0_58//:anyhow", + actual = "@wasmtime__anyhow__1_0_66//:anyhow", tags = [ "cargo-raze", "manual", @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@wasmtime__env_logger__0_9_0//:env_logger", + actual = "@wasmtime__env_logger__0_9_1//:env_logger", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@wasmtime__once_cell__1_13_0//:once_cell", + actual = "@wasmtime__once_cell__1_15_0//:once_cell", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__0_39_1//:wasmtime", + actual = "@wasmtime__wasmtime__1_0_1//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index cb561715e..fe3f47a0e 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -9,12 +9,6 @@ dependencies = [ "gimli", ] -[[package]] -name = "adler" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" - [[package]] name = "ahash" version = "0.7.6" @@ -28,18 +22,24 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.18" +version = "0.7.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" +checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.58" +version = "1.0.66" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704" +checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6" + +[[package]] +name = "arrayvec" +version = "0.7.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" [[package]] name = "atty" @@ -58,21 +58,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" -[[package]] -name = "backtrace" -version = "0.3.66" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7" -dependencies = [ - "addr2line", - "cc", - "cfg-if", - "libc", - "miniz_oxide", - "object 0.29.0", - "rustc-demangle", -] - [[package]] name = "bincode" version = "1.3.3" @@ -88,6 +73,12 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bumpalo" +version = "3.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" + [[package]] name = "byteorder" version = "1.4.3" @@ -117,19 +108,21 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "529ffacce2249ac60edba2941672dfedf3d96558b415d0d8083cd007456e0f55" +checksum = "44409ccf2d0f663920cab563d2b79fcd6b2e9a2bcc6e929fef76c8f82ad6c17a" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "427d105f617efc8cb55f8d036a7fded2e227892d8780b4985e5551f8d27c4a92" +checksum = "98de2018ad96eb97f621f7d6b900a0cc661aec8d02ea4a50e56ecb48e5a2fcaf" dependencies = [ + "arrayvec", + "bumpalo", "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", @@ -144,33 +137,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "551674bed85b838d45358e3eab4f0ffaa6790c70dc08184204b9a54b41cdb7d1" +checksum = "5287ce36e6c4758fbaf298bd1a8697ad97a4f2375a3d1b61142ea538db4877e5" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b3a63ae57498c3eb495360944a33571754241e15e47e3bcae6082f40fec5866" +checksum = "2855c24219e2f08827f3f4ffb2da92e134ae8d8ecc185b11ec8f9878cf5f588e" [[package]] name = "cranelift-entity" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11aa8aa624c72cc1c94ea3d0739fa61248260b5b14d3646f51593a88d67f3e6e" +checksum = "0b65673279d75d34bf11af9660ae2dbd1c22e6d28f163f5c72f4e1dc56d56103" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "544ee8f4d1c9559c9aa6d46e7aaeac4a13856d620561094f35527356c7d21bd0" +checksum = "3ed2b3d7a4751163f6c4a349205ab1b7d9c00eecf19dcea48592ef1f7688eefc" dependencies = [ "cranelift-codegen", "log", @@ -180,15 +173,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed16b14363d929b8c37e3c557d0a7396791b383ecc302141643c054343170aad" +checksum = "3be64cecea9d90105fc6a2ba2d003e98c867c1d6c4c86cc878f97ad9fb916293" [[package]] name = "cranelift-native" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51617cf8744634f2ed3c989c3c40cd6444f63377c6d994adab0d85807f3eb682" +checksum = "c4a03a6ac1b063e416ca4b93f6247978c991475e8271465340caa6f92f3c16a4" dependencies = [ "cranelift-codegen", "libc", @@ -197,9 +190,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.86.1" +version = "0.88.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5a8073a41efc173fd19bad3f725c170c705df6da999fc47a738ff310225dd63" +checksum = "c699873f7b30bc5f20dd03a796b4183e073a46616c91704792ec35e45d13f913" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -222,15 +215,15 @@ dependencies = [ [[package]] name = "either" -version = "1.7.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be" +checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" [[package]] name = "env_logger" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3" +checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" dependencies = [ "atty", "humantime", @@ -277,9 +270,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6" +checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" dependencies = [ "cfg-if", "libc", @@ -299,19 +292,13 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.11.2" +version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e" +checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" dependencies = [ "ahash", ] -[[package]] -name = "hashbrown" -version = "0.12.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" - [[package]] name = "hermit-abi" version = "0.1.19" @@ -334,36 +321,30 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" dependencies = [ "autocfg", - "hashbrown 0.12.3", + "hashbrown", "serde", ] [[package]] name = "io-lifetimes" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24c3f4eff5495aee4c0399d7b6a0dc2b6e81be84242ffbfcf253ebacccc1d0cb" +checksum = "e6e481ccbe3dea62107216d0d1138bb8ad8e5e5c43009a098bd1990272c497b0" [[package]] name = "itertools" -version = "0.10.3" +version = "0.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3" +checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" dependencies = [ "either", ] -[[package]] -name = "lazy_static" -version = "1.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" - [[package]] name = "libc" -version = "0.2.126" +version = "0.2.137" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836" +checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" [[package]] name = "linux-raw-sys" @@ -404,53 +385,29 @@ dependencies = [ "autocfg", ] -[[package]] -name = "miniz_oxide" -version = "0.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc" -dependencies = [ - "adler", -] - -[[package]] -name = "more-asserts" -version = "0.2.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389" - -[[package]] -name = "object" -version = "0.28.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e42c982f2d955fac81dd7e1d0e1426a7d702acd9c98d19ab01083a6a0328c424" -dependencies = [ - "crc32fast", - "hashbrown 0.11.2", - "indexmap", - "memchr", -] - [[package]] name = "object" version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" dependencies = [ + "crc32fast", + "hashbrown", + "indexmap", "memchr", ] [[package]] name = "once_cell" -version = "1.13.0" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1" +checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" [[package]] name = "paste" -version = "1.0.7" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc" +checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1" [[package]] name = "ppv-lite86" @@ -460,27 +417,27 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" [[package]] name = "proc-macro2" -version = "1.0.42" +version = "1.0.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c278e965f1d8cf32d6e0e96de3d3e79712178ae67986d9cf9151f51e95aac89b" +checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725" dependencies = [ "unicode-ident", ] [[package]] name = "psm" -version = "0.1.20" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f446d0a6efba22928558c4fb4ce0b3fd6c89b0061343e390bf01a703742b8125" +checksum = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874" dependencies = [ "cc", ] [[package]] name = "quote" -version = "1.0.20" +version = "1.0.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804" +checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" dependencies = [ "proc-macro2", ] @@ -508,18 +465,18 @@ dependencies = [ [[package]] name = "rand_core" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ "getrandom", ] [[package]] name = "regalloc2" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76ff2e57a7d050308b3fde0f707aa240b491b190e3855f212860f11bb3af4205" +checksum = "d43a209257d978ef079f3d446331d0f1794f5e0fc19b306a199983857833a779" dependencies = [ "fxhash", "log", @@ -544,18 +501,6 @@ version = "0.6.27" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" -[[package]] -name = "region" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0" -dependencies = [ - "bitflags", - "libc", - "mach", - "winapi", -] - [[package]] name = "rustc-demangle" version = "0.1.21" @@ -564,9 +509,9 @@ checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" [[package]] name = "rustix" -version = "0.35.7" +version = "0.35.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d51cc38aa10f6bbb377ed28197aa052aa4e2b762c22be9d3153d01822587e787" +checksum = "985947f9b6423159c4726323f373be0a21bdb514c5af06a849cb3d2dce2d01e8" dependencies = [ "bitflags", "errno", @@ -578,18 +523,18 @@ dependencies = [ [[package]] name = "serde" -version = "1.0.140" +version = "1.0.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03" +checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.140" +version = "1.0.147" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da" +checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852" dependencies = [ "proc-macro2", "quote", @@ -604,9 +549,9 @@ checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" [[package]] name = "smallvec" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1" +checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" [[package]] name = "stable_deref_trait" @@ -616,9 +561,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.98" +version = "1.0.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd" +checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d" dependencies = [ "proc-macro2", "quote", @@ -642,18 +587,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.31" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a" +checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.31" +version = "1.0.37" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a" +checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" dependencies = [ "proc-macro2", "quote", @@ -662,9 +607,9 @@ dependencies = [ [[package]] name = "unicode-ident" -version = "1.0.2" +version = "1.0.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7" +checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" [[package]] name = "version_check" @@ -680,32 +625,29 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasmparser" -version = "0.86.0" +version = "0.89.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcbfe95447da2aa7ff171857fc8427513eb57c75a729bb190e974dc695e8f5c" +checksum = "ab5d3e08b13876f96dd55608d03cd4883a0545884932d5adf11925876c96daef" dependencies = [ "indexmap", ] [[package]] name = "wasmtime" -version = "0.39.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d10a6853d64e99fffdae80f93a45080475c9267f87743060814dc1186d74618" +checksum = "f1f511c4917c83d04da68333921107db75747c4e11a2f654a8e909cc5e0520dc" dependencies = [ "anyhow", - "backtrace", "bincode", "cfg-if", "indexmap", - "lazy_static", "libc", "log", - "object 0.28.4", + "object", "once_cell", "paste", "psm", - "region", "serde", "target-lexicon", "wasmparser", @@ -716,9 +658,18 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "wasmtime-asm-macros" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39bf3debfe744bf19dd3732990ce6f8c0ced7439e2370ba4e1d8f5a3660a3178" +dependencies = [ + "cfg-if", +] + [[package]] name = "wasmtime-c-api-bazel" -version = "0.39.1" +version = "1.0.1" dependencies = [ "anyhow", "env_logger", @@ -730,7 +681,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v0.39.1#19b5436ac346b8e61230baeaf18e802db6f0b858" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v1.0.1#c63087ff668fbdffe326c7b48401acbbf0e82a65" dependencies = [ "proc-macro2", "quote", @@ -738,9 +689,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.39.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3302b33d919e8e33f1717d592c10c3cddccb318d0e1e0bef75178f579686ba94" +checksum = "058217e28644b012bdcdf0e445f58d496d78c2e0b6a6dd93558e701591dad705" dependencies = [ "anyhow", "cranelift-codegen", @@ -750,8 +701,7 @@ dependencies = [ "cranelift-wasm", "gimli", "log", - "more-asserts", - "object 0.28.4", + "object", "target-lexicon", "thiserror", "wasmparser", @@ -760,17 +710,16 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.39.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c50fb925e8eaa9f8431f9b784ea89a13c703cb445ddfe51cb437596fc34e734" +checksum = "c7af06848df28b7661471d9a80d30a973e0f401f2e3ed5396ad7e225ed217047" dependencies = [ "anyhow", "cranelift-entity", "gimli", "indexmap", "log", - "more-asserts", - "object 0.28.4", + "object", "serde", "target-lexicon", "thiserror", @@ -780,9 +729,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "0.39.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cad81635f33ab69aa04b386c9d954aef9f6230059f66caf67e55fb65bfd2f3e0" +checksum = "9028fb63a54185b3c192b7500ef8039c7bb8d7f62bfc9e7c258483a33a3d13bb" dependencies = [ "addr2line", "anyhow", @@ -791,8 +740,7 @@ dependencies = [ "cpp_demangle", "gimli", "log", - "object 0.28.4", - "region", + "object", "rustc-demangle", "rustix", "serde", @@ -805,21 +753,20 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "0.39.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55e23273fddce8cab149a0743c46932bf4910268641397ed86b46854b089f38f" +checksum = "25e82d4ef93296785de7efca92f7679dc67fe68a13b625a5ecc8d7503b377a37" dependencies = [ - "lazy_static", + "once_cell", ] [[package]] name = "wasmtime-runtime" -version = "0.39.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36b8aafb292502d28dc2d25f44d4a81e229bb2e0cc14ca847dde4448a1a62ae4" +checksum = "9f0e9bea7d517d114fe66b930b2124ee086516ee93eeebfd97f75f366c5b0553" dependencies = [ "anyhow", - "backtrace", "cc", "cfg-if", "indexmap", @@ -827,11 +774,11 @@ dependencies = [ "log", "mach", "memoffset", - "more-asserts", + "paste", "rand", - "region", "rustix", "thiserror", + "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", "windows-sys", @@ -839,9 +786,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "0.39.1" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd7edc34f358fc290d12e326de81884422cb94cf74cc305b27979569875332d6" +checksum = "69b83e93ed41b8fdc936244cfd5e455480cf1eca1fd60c78a0040038b4ce5075" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index f78765cca..9ea642465 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "0.39.1" +version = "1.0.1" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.9" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "0.39.1", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v0.39.1"} +wasmtime = {version = "1.0.1", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v1.0.1"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" @@ -26,6 +26,12 @@ patches = [ ] patch_args = ["-p4"] +[package.metadata.raze.crates.bumpalo.'*'] +patches = [ + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:bumpalo.patch", +] +patch_args = ["-p1"] + [package.metadata.raze.crates.rustix.'*'] additional_flags = [ "--cfg=feature=\\\"cc\\\"", diff --git a/bazel/cargo/wasmtime/bumpalo.patch b/bazel/cargo/wasmtime/bumpalo.patch new file mode 100644 index 000000000..22befe431 --- /dev/null +++ b/bazel/cargo/wasmtime/bumpalo.patch @@ -0,0 +1,9 @@ +diff --git a/src/lib.rs b/src/lib.rs +index be68365..47c14cd 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -1,4 +1,3 @@ +-#![doc = include_str!("../README.md")] + #![deny(missing_debug_implementations)] + #![deny(missing_docs)] + #![no_std] diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index 100e2321c..fc569e559 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -21,16 +21,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.addr2line-0.17.0.bazel"), ) - maybe( - http_archive, - name = "wasmtime__adler__1_0_2", - url = "https://crates.io/api/v1/crates/adler/1.0.2/download", - type = "tar.gz", - sha256 = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe", - strip_prefix = "adler-1.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.adler-1.0.2.bazel"), - ) - maybe( http_archive, name = "wasmtime__ahash__0_7_6", @@ -43,22 +33,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__aho_corasick__0_7_18", - url = "https://crates.io/api/v1/crates/aho-corasick/0.7.18/download", + name = "wasmtime__aho_corasick__0_7_19", + url = "https://crates.io/api/v1/crates/aho-corasick/0.7.19/download", type = "tar.gz", - sha256 = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f", - strip_prefix = "aho-corasick-0.7.18", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-0.7.18.bazel"), + sha256 = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e", + strip_prefix = "aho-corasick-0.7.19", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-0.7.19.bazel"), ) maybe( http_archive, - name = "wasmtime__anyhow__1_0_58", - url = "https://crates.io/api/v1/crates/anyhow/1.0.58/download", + name = "wasmtime__anyhow__1_0_66", + url = "https://crates.io/api/v1/crates/anyhow/1.0.66/download", type = "tar.gz", - sha256 = "bb07d2053ccdbe10e2af2995a2f116c1330396493dc1269f6a91d0ae82e19704", - strip_prefix = "anyhow-1.0.58", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.58.bazel"), + sha256 = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6", + strip_prefix = "anyhow-1.0.66", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.66.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__arrayvec__0_7_2", + url = "https://crates.io/api/v1/crates/arrayvec/0.7.2/download", + type = "tar.gz", + sha256 = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6", + strip_prefix = "arrayvec-0.7.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.arrayvec-0.7.2.bazel"), ) maybe( @@ -81,16 +81,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.autocfg-1.1.0.bazel"), ) - maybe( - http_archive, - name = "wasmtime__backtrace__0_3_66", - url = "https://crates.io/api/v1/crates/backtrace/0.3.66/download", - type = "tar.gz", - sha256 = "cab84319d616cfb654d03394f38ab7e6f0919e181b1b57e1fd15e7fb4077d9a7", - strip_prefix = "backtrace-0.3.66", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.backtrace-0.3.66.bazel"), - ) - maybe( http_archive, name = "wasmtime__bincode__1_3_3", @@ -111,6 +101,22 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bitflags-1.3.2.bazel"), ) + maybe( + http_archive, + name = "wasmtime__bumpalo__3_11_1", + url = "https://crates.io/api/v1/crates/bumpalo/3.11.1/download", + type = "tar.gz", + sha256 = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba", + strip_prefix = "bumpalo-3.11.1", + patches = [ + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:bumpalo.patch", + ], + patch_args = [ + "-p1", + ], + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bumpalo-3.11.1.bazel"), + ) + maybe( http_archive, name = "wasmtime__byteorder__1_4_3", @@ -153,98 +159,98 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.86.1/download", + name = "wasmtime__cranelift_bforest__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.88.1/download", type = "tar.gz", - sha256 = "529ffacce2249ac60edba2941672dfedf3d96558b415d0d8083cd007456e0f55", - strip_prefix = "cranelift-bforest-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.86.1.bazel"), + sha256 = "44409ccf2d0f663920cab563d2b79fcd6b2e9a2bcc6e929fef76c8f82ad6c17a", + strip_prefix = "cranelift-bforest-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.86.1/download", + name = "wasmtime__cranelift_codegen__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.88.1/download", type = "tar.gz", - sha256 = "427d105f617efc8cb55f8d036a7fded2e227892d8780b4985e5551f8d27c4a92", - strip_prefix = "cranelift-codegen-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.86.1.bazel"), + sha256 = "98de2018ad96eb97f621f7d6b900a0cc661aec8d02ea4a50e56ecb48e5a2fcaf", + strip_prefix = "cranelift-codegen-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.86.1/download", + name = "wasmtime__cranelift_codegen_meta__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.88.1/download", type = "tar.gz", - sha256 = "551674bed85b838d45358e3eab4f0ffaa6790c70dc08184204b9a54b41cdb7d1", - strip_prefix = "cranelift-codegen-meta-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.86.1.bazel"), + sha256 = "5287ce36e6c4758fbaf298bd1a8697ad97a4f2375a3d1b61142ea538db4877e5", + strip_prefix = "cranelift-codegen-meta-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.86.1/download", + name = "wasmtime__cranelift_codegen_shared__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.88.1/download", type = "tar.gz", - sha256 = "2b3a63ae57498c3eb495360944a33571754241e15e47e3bcae6082f40fec5866", - strip_prefix = "cranelift-codegen-shared-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.86.1.bazel"), + sha256 = "2855c24219e2f08827f3f4ffb2da92e134ae8d8ecc185b11ec8f9878cf5f588e", + strip_prefix = "cranelift-codegen-shared-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.86.1/download", + name = "wasmtime__cranelift_entity__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.88.1/download", type = "tar.gz", - sha256 = "11aa8aa624c72cc1c94ea3d0739fa61248260b5b14d3646f51593a88d67f3e6e", - strip_prefix = "cranelift-entity-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.86.1.bazel"), + sha256 = "0b65673279d75d34bf11af9660ae2dbd1c22e6d28f163f5c72f4e1dc56d56103", + strip_prefix = "cranelift-entity-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.86.1/download", + name = "wasmtime__cranelift_frontend__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.88.1/download", type = "tar.gz", - sha256 = "544ee8f4d1c9559c9aa6d46e7aaeac4a13856d620561094f35527356c7d21bd0", - strip_prefix = "cranelift-frontend-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.86.1.bazel"), + sha256 = "3ed2b3d7a4751163f6c4a349205ab1b7d9c00eecf19dcea48592ef1f7688eefc", + strip_prefix = "cranelift-frontend-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_isle__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-isle/0.86.1/download", + name = "wasmtime__cranelift_isle__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-isle/0.88.1/download", type = "tar.gz", - sha256 = "ed16b14363d929b8c37e3c557d0a7396791b383ecc302141643c054343170aad", - strip_prefix = "cranelift-isle-0.86.1", + sha256 = "3be64cecea9d90105fc6a2ba2d003e98c867c1d6c4c86cc878f97ad9fb916293", + strip_prefix = "cranelift-isle-0.88.1", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", ], patch_args = [ "-p4", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.86.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-native/0.86.1/download", + name = "wasmtime__cranelift_native__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-native/0.88.1/download", type = "tar.gz", - sha256 = "51617cf8744634f2ed3c989c3c40cd6444f63377c6d994adab0d85807f3eb682", - strip_prefix = "cranelift-native-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.86.1.bazel"), + sha256 = "c4a03a6ac1b063e416ca4b93f6247978c991475e8271465340caa6f92f3c16a4", + strip_prefix = "cranelift-native-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.88.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_86_1", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.86.1/download", + name = "wasmtime__cranelift_wasm__0_88_1", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.88.1/download", type = "tar.gz", - sha256 = "e5a8073a41efc173fd19bad3f725c170c705df6da999fc47a738ff310225dd63", - strip_prefix = "cranelift-wasm-0.86.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.86.1.bazel"), + sha256 = "c699873f7b30bc5f20dd03a796b4183e073a46616c91704792ec35e45d13f913", + strip_prefix = "cranelift-wasm-0.88.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.88.1.bazel"), ) maybe( @@ -259,22 +265,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__either__1_7_0", - url = "https://crates.io/api/v1/crates/either/1.7.0/download", + name = "wasmtime__either__1_8_0", + url = "https://crates.io/api/v1/crates/either/1.8.0/download", type = "tar.gz", - sha256 = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be", - strip_prefix = "either-1.7.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.7.0.bazel"), + sha256 = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797", + strip_prefix = "either-1.8.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.8.0.bazel"), ) maybe( http_archive, - name = "wasmtime__env_logger__0_9_0", - url = "https://crates.io/api/v1/crates/env_logger/0.9.0/download", + name = "wasmtime__env_logger__0_9_1", + url = "https://crates.io/api/v1/crates/env_logger/0.9.1/download", type = "tar.gz", - sha256 = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3", - strip_prefix = "env_logger-0.9.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.9.0.bazel"), + sha256 = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272", + strip_prefix = "env_logger-0.9.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.9.1.bazel"), ) maybe( @@ -319,12 +325,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__getrandom__0_2_7", - url = "https://crates.io/api/v1/crates/getrandom/0.2.7/download", + name = "wasmtime__getrandom__0_2_8", + url = "https://crates.io/api/v1/crates/getrandom/0.2.8/download", type = "tar.gz", - sha256 = "4eb1a864a501629691edf6c15a593b7a51eebaa1e8468e9ddc623de7c9b58ec6", - strip_prefix = "getrandom-0.2.7", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.7.bazel"), + sha256 = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31", + strip_prefix = "getrandom-0.2.8", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.8.bazel"), ) maybe( @@ -337,16 +343,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.gimli-0.26.2.bazel"), ) - maybe( - http_archive, - name = "wasmtime__hashbrown__0_11_2", - url = "https://crates.io/api/v1/crates/hashbrown/0.11.2/download", - type = "tar.gz", - sha256 = "ab5ef0d4909ef3724cc8cce6ccc8572c5c817592e9285f5464f8e86f8bd3726e", - strip_prefix = "hashbrown-0.11.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.11.2.bazel"), - ) - maybe( http_archive, name = "wasmtime__hashbrown__0_12_3", @@ -389,42 +385,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__io_lifetimes__0_7_2", - url = "https://crates.io/api/v1/crates/io-lifetimes/0.7.2/download", + name = "wasmtime__io_lifetimes__0_7_4", + url = "https://crates.io/api/v1/crates/io-lifetimes/0.7.4/download", type = "tar.gz", - sha256 = "24c3f4eff5495aee4c0399d7b6a0dc2b6e81be84242ffbfcf253ebacccc1d0cb", - strip_prefix = "io-lifetimes-0.7.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.7.2.bazel"), + sha256 = "e6e481ccbe3dea62107216d0d1138bb8ad8e5e5c43009a098bd1990272c497b0", + strip_prefix = "io-lifetimes-0.7.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.7.4.bazel"), ) maybe( http_archive, - name = "wasmtime__itertools__0_10_3", - url = "https://crates.io/api/v1/crates/itertools/0.10.3/download", + name = "wasmtime__itertools__0_10_5", + url = "https://crates.io/api/v1/crates/itertools/0.10.5/download", type = "tar.gz", - sha256 = "a9a9d19fa1e79b6215ff29b9d6880b706147f16e9b1dbb1e4e5947b5b02bc5e3", - strip_prefix = "itertools-0.10.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.itertools-0.10.3.bazel"), + sha256 = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473", + strip_prefix = "itertools-0.10.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.itertools-0.10.5.bazel"), ) maybe( http_archive, - name = "wasmtime__lazy_static__1_4_0", - url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", + name = "wasmtime__libc__0_2_137", + url = "https://crates.io/api/v1/crates/libc/0.2.137/download", type = "tar.gz", - sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", - strip_prefix = "lazy_static-1.4.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.lazy_static-1.4.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__libc__0_2_126", - url = "https://crates.io/api/v1/crates/libc/0.2.126/download", - type = "tar.gz", - sha256 = "349d5a591cd28b49e1d1037471617a32ddcda5731b99419008085f72d5a53836", - strip_prefix = "libc-0.2.126", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.126.bazel"), + sha256 = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89", + strip_prefix = "libc-0.2.137", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.137.bazel"), ) maybe( @@ -477,36 +463,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.6.5.bazel"), ) - maybe( - http_archive, - name = "wasmtime__miniz_oxide__0_5_3", - url = "https://crates.io/api/v1/crates/miniz_oxide/0.5.3/download", - type = "tar.gz", - sha256 = "6f5c75688da582b8ffc1f1799e9db273f32133c49e048f614d22ec3256773ccc", - strip_prefix = "miniz_oxide-0.5.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.miniz_oxide-0.5.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__more_asserts__0_2_2", - url = "https://crates.io/api/v1/crates/more-asserts/0.2.2/download", - type = "tar.gz", - sha256 = "7843ec2de400bcbc6a6328c958dc38e5359da6e93e72e37bc5246bf1ae776389", - strip_prefix = "more-asserts-0.2.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.more-asserts-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__object__0_28_4", - url = "https://crates.io/api/v1/crates/object/0.28.4/download", - type = "tar.gz", - sha256 = "e42c982f2d955fac81dd7e1d0e1426a7d702acd9c98d19ab01083a6a0328c424", - strip_prefix = "object-0.28.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.28.4.bazel"), - ) - maybe( http_archive, name = "wasmtime__object__0_29_0", @@ -519,22 +475,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__once_cell__1_13_0", - url = "https://crates.io/api/v1/crates/once_cell/1.13.0/download", + name = "wasmtime__once_cell__1_15_0", + url = "https://crates.io/api/v1/crates/once_cell/1.15.0/download", type = "tar.gz", - sha256 = "18a6dbe30758c9f83eb00cbea4ac95966305f5a7772f3f42ebfc7fc7eddbd8e1", - strip_prefix = "once_cell-1.13.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.13.0.bazel"), + sha256 = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1", + strip_prefix = "once_cell-1.15.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.15.0.bazel"), ) maybe( http_archive, - name = "wasmtime__paste__1_0_7", - url = "https://crates.io/api/v1/crates/paste/1.0.7/download", + name = "wasmtime__paste__1_0_9", + url = "https://crates.io/api/v1/crates/paste/1.0.9/download", type = "tar.gz", - sha256 = "0c520e05135d6e763148b6426a837e239041653ba7becd2e538c076c738025fc", - strip_prefix = "paste-1.0.7", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.7.bazel"), + sha256 = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1", + strip_prefix = "paste-1.0.9", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.9.bazel"), ) maybe( @@ -549,32 +505,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__proc_macro2__1_0_42", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.42/download", + name = "wasmtime__proc_macro2__1_0_47", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.47/download", type = "tar.gz", - sha256 = "c278e965f1d8cf32d6e0e96de3d3e79712178ae67986d9cf9151f51e95aac89b", - strip_prefix = "proc-macro2-1.0.42", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.42.bazel"), + sha256 = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725", + strip_prefix = "proc-macro2-1.0.47", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.47.bazel"), ) maybe( http_archive, - name = "wasmtime__psm__0_1_20", - url = "https://crates.io/api/v1/crates/psm/0.1.20/download", + name = "wasmtime__psm__0_1_21", + url = "https://crates.io/api/v1/crates/psm/0.1.21/download", type = "tar.gz", - sha256 = "f446d0a6efba22928558c4fb4ce0b3fd6c89b0061343e390bf01a703742b8125", - strip_prefix = "psm-0.1.20", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.20.bazel"), + sha256 = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874", + strip_prefix = "psm-0.1.21", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.21.bazel"), ) maybe( http_archive, - name = "wasmtime__quote__1_0_20", - url = "https://crates.io/api/v1/crates/quote/1.0.20/download", + name = "wasmtime__quote__1_0_21", + url = "https://crates.io/api/v1/crates/quote/1.0.21/download", type = "tar.gz", - sha256 = "3bcdf212e9776fbcb2d23ab029360416bb1706b1aea2d1a5ba002727cbcab804", - strip_prefix = "quote-1.0.20", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.20.bazel"), + sha256 = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179", + strip_prefix = "quote-1.0.21", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.21.bazel"), ) maybe( @@ -599,22 +555,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rand_core__0_6_3", - url = "https://crates.io/api/v1/crates/rand_core/0.6.3/download", + name = "wasmtime__rand_core__0_6_4", + url = "https://crates.io/api/v1/crates/rand_core/0.6.4/download", type = "tar.gz", - sha256 = "d34f1408f55294453790c48b2f1ebbb1c5b4b7563eb1f418bcfcfdbb06ebb4e7", - strip_prefix = "rand_core-0.6.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_core-0.6.3.bazel"), + sha256 = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c", + strip_prefix = "rand_core-0.6.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_core-0.6.4.bazel"), ) maybe( http_archive, - name = "wasmtime__regalloc2__0_3_1", - url = "https://crates.io/api/v1/crates/regalloc2/0.3.1/download", + name = "wasmtime__regalloc2__0_3_2", + url = "https://crates.io/api/v1/crates/regalloc2/0.3.2/download", type = "tar.gz", - sha256 = "76ff2e57a7d050308b3fde0f707aa240b491b190e3855f212860f11bb3af4205", - strip_prefix = "regalloc2-0.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.3.1.bazel"), + sha256 = "d43a209257d978ef079f3d446331d0f1794f5e0fc19b306a199983857833a779", + strip_prefix = "regalloc2-0.3.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.3.2.bazel"), ) maybe( @@ -637,16 +593,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.6.27.bazel"), ) - maybe( - http_archive, - name = "wasmtime__region__2_2_0", - url = "https://crates.io/api/v1/crates/region/2.2.0/download", - type = "tar.gz", - sha256 = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0", - strip_prefix = "region-2.2.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.region-2.2.0.bazel"), - ) - maybe( http_archive, name = "wasmtime__rustc_demangle__0_1_21", @@ -659,32 +605,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_35_7", - url = "https://crates.io/api/v1/crates/rustix/0.35.7/download", + name = "wasmtime__rustix__0_35_12", + url = "https://crates.io/api/v1/crates/rustix/0.35.12/download", type = "tar.gz", - sha256 = "d51cc38aa10f6bbb377ed28197aa052aa4e2b762c22be9d3153d01822587e787", - strip_prefix = "rustix-0.35.7", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.35.7.bazel"), + sha256 = "985947f9b6423159c4726323f373be0a21bdb514c5af06a849cb3d2dce2d01e8", + strip_prefix = "rustix-0.35.12", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.35.12.bazel"), ) maybe( http_archive, - name = "wasmtime__serde__1_0_140", - url = "https://crates.io/api/v1/crates/serde/1.0.140/download", + name = "wasmtime__serde__1_0_147", + url = "https://crates.io/api/v1/crates/serde/1.0.147/download", type = "tar.gz", - sha256 = "fc855a42c7967b7c369eb5860f7164ef1f6f81c20c7cc1141f2a604e18723b03", - strip_prefix = "serde-1.0.140", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.140.bazel"), + sha256 = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965", + strip_prefix = "serde-1.0.147", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.147.bazel"), ) maybe( http_archive, - name = "wasmtime__serde_derive__1_0_140", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.140/download", + name = "wasmtime__serde_derive__1_0_147", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.147/download", type = "tar.gz", - sha256 = "6f2122636b9fe3b81f1cb25099fcf2d3f542cdb1d45940d56c713158884a05da", - strip_prefix = "serde_derive-1.0.140", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.140.bazel"), + sha256 = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852", + strip_prefix = "serde_derive-1.0.147", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.147.bazel"), ) maybe( @@ -699,12 +645,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__smallvec__1_9_0", - url = "https://crates.io/api/v1/crates/smallvec/1.9.0/download", + name = "wasmtime__smallvec__1_10_0", + url = "https://crates.io/api/v1/crates/smallvec/1.10.0/download", type = "tar.gz", - sha256 = "2fd0db749597d91ff862fd1d55ea87f7855a744a8425a64695b6fca237d1dad1", - strip_prefix = "smallvec-1.9.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.9.0.bazel"), + sha256 = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0", + strip_prefix = "smallvec-1.10.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.10.0.bazel"), ) maybe( @@ -719,12 +665,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__syn__1_0_98", - url = "https://crates.io/api/v1/crates/syn/1.0.98/download", + name = "wasmtime__syn__1_0_103", + url = "https://crates.io/api/v1/crates/syn/1.0.103/download", type = "tar.gz", - sha256 = "c50aef8a904de4c23c788f104b7dddc7d6f79c647c7c8ce4cc8f73eb0ca773dd", - strip_prefix = "syn-1.0.98", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.98.bazel"), + sha256 = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d", + strip_prefix = "syn-1.0.103", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.103.bazel"), ) maybe( @@ -749,32 +695,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__thiserror__1_0_31", - url = "https://crates.io/api/v1/crates/thiserror/1.0.31/download", + name = "wasmtime__thiserror__1_0_37", + url = "https://crates.io/api/v1/crates/thiserror/1.0.37/download", type = "tar.gz", - sha256 = "bd829fe32373d27f76265620b5309d0340cb8550f523c1dda251d6298069069a", - strip_prefix = "thiserror-1.0.31", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.31.bazel"), + sha256 = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e", + strip_prefix = "thiserror-1.0.37", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.37.bazel"), ) maybe( http_archive, - name = "wasmtime__thiserror_impl__1_0_31", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.31/download", + name = "wasmtime__thiserror_impl__1_0_37", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.37/download", type = "tar.gz", - sha256 = "0396bc89e626244658bef819e22d0cc459e795a5ebe878e6ec336d1674a8d79a", - strip_prefix = "thiserror-impl-1.0.31", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.31.bazel"), + sha256 = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb", + strip_prefix = "thiserror-impl-1.0.37", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.37.bazel"), ) maybe( http_archive, - name = "wasmtime__unicode_ident__1_0_2", - url = "https://crates.io/api/v1/crates/unicode-ident/1.0.2/download", + name = "wasmtime__unicode_ident__1_0_5", + url = "https://crates.io/api/v1/crates/unicode-ident/1.0.5/download", type = "tar.gz", - sha256 = "15c61ba63f9235225a22310255a29b806b907c9b8c964bcbd0a2c70f3f2deea7", - strip_prefix = "unicode-ident-1.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.2.bazel"), + sha256 = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3", + strip_prefix = "unicode-ident-1.0.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.5.bazel"), ) maybe( @@ -799,91 +745,101 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmparser__0_86_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.86.0/download", + name = "wasmtime__wasmparser__0_89_1", + url = "https://crates.io/api/v1/crates/wasmparser/0.89.1/download", + type = "tar.gz", + sha256 = "ab5d3e08b13876f96dd55608d03cd4883a0545884932d5adf11925876c96daef", + strip_prefix = "wasmparser-0.89.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.89.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__wasmtime__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime/1.0.1/download", type = "tar.gz", - sha256 = "4bcbfe95447da2aa7ff171857fc8427513eb57c75a729bb190e974dc695e8f5c", - strip_prefix = "wasmparser-0.86.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.86.0.bazel"), + sha256 = "f1f511c4917c83d04da68333921107db75747c4e11a2f654a8e909cc5e0520dc", + strip_prefix = "wasmtime-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-1.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__0_39_1", - url = "https://crates.io/api/v1/crates/wasmtime/0.39.1/download", + name = "wasmtime__wasmtime_asm_macros__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/1.0.1/download", type = "tar.gz", - sha256 = "0d10a6853d64e99fffdae80f93a45080475c9267f87743060814dc1186d74618", - strip_prefix = "wasmtime-0.39.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-0.39.1.bazel"), + sha256 = "39bf3debfe744bf19dd3732990ce6f8c0ced7439e2370ba4e1d8f5a3660a3178", + strip_prefix = "wasmtime-asm-macros-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-1.0.1.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "19b5436ac346b8e61230baeaf18e802db6f0b858", + commit = "c63087ff668fbdffe326c7b48401acbbf0e82a65", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__0_39_1", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/0.39.1/download", + name = "wasmtime__wasmtime_cranelift__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/1.0.1/download", type = "tar.gz", - sha256 = "3302b33d919e8e33f1717d592c10c3cddccb318d0e1e0bef75178f579686ba94", - strip_prefix = "wasmtime-cranelift-0.39.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-0.39.1.bazel"), + sha256 = "058217e28644b012bdcdf0e445f58d496d78c2e0b6a6dd93558e701591dad705", + strip_prefix = "wasmtime-cranelift-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-1.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__0_39_1", - url = "https://crates.io/api/v1/crates/wasmtime-environ/0.39.1/download", + name = "wasmtime__wasmtime_environ__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-environ/1.0.1/download", type = "tar.gz", - sha256 = "7c50fb925e8eaa9f8431f9b784ea89a13c703cb445ddfe51cb437596fc34e734", - strip_prefix = "wasmtime-environ-0.39.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-0.39.1.bazel"), + sha256 = "c7af06848df28b7661471d9a80d30a973e0f401f2e3ed5396ad7e225ed217047", + strip_prefix = "wasmtime-environ-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-1.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__0_39_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit/0.39.1/download", + name = "wasmtime__wasmtime_jit__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit/1.0.1/download", type = "tar.gz", - sha256 = "cad81635f33ab69aa04b386c9d954aef9f6230059f66caf67e55fb65bfd2f3e0", - strip_prefix = "wasmtime-jit-0.39.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-0.39.1.bazel"), + sha256 = "9028fb63a54185b3c192b7500ef8039c7bb8d7f62bfc9e7c258483a33a3d13bb", + strip_prefix = "wasmtime-jit-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-1.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__0_39_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/0.39.1/download", + name = "wasmtime__wasmtime_jit_debug__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/1.0.1/download", type = "tar.gz", - sha256 = "55e23273fddce8cab149a0743c46932bf4910268641397ed86b46854b089f38f", - strip_prefix = "wasmtime-jit-debug-0.39.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-0.39.1.bazel"), + sha256 = "25e82d4ef93296785de7efca92f7679dc67fe68a13b625a5ecc8d7503b377a37", + strip_prefix = "wasmtime-jit-debug-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-1.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__0_39_1", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/0.39.1/download", + name = "wasmtime__wasmtime_runtime__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/1.0.1/download", type = "tar.gz", - sha256 = "36b8aafb292502d28dc2d25f44d4a81e229bb2e0cc14ca847dde4448a1a62ae4", - strip_prefix = "wasmtime-runtime-0.39.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-0.39.1.bazel"), + sha256 = "9f0e9bea7d517d114fe66b930b2124ee086516ee93eeebfd97f75f366c5b0553", + strip_prefix = "wasmtime-runtime-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-1.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__0_39_1", - url = "https://crates.io/api/v1/crates/wasmtime-types/0.39.1/download", + name = "wasmtime__wasmtime_types__1_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-types/1.0.1/download", type = "tar.gz", - sha256 = "dd7edc34f358fc290d12e326de81884422cb94cf74cc305b27979569875332d6", - strip_prefix = "wasmtime-types-0.39.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-0.39.1.bazel"), + sha256 = "69b83e93ed41b8fdc936244cfd5e455480cf1eca1fd60c78a0040038b4ce5075", + strip_prefix = "wasmtime-types-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-1.0.1.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/remote/BUILD.adler-1.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.adler-1.0.2.bazel deleted file mode 100644 index 602f9dd28..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.adler-1.0.2.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "0BSD OR (MIT OR Apache-2.0)" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "adler", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=adler", - "manual", - ], - version = "1.0.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel index 6b159da44..adf2a35fb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel @@ -161,7 +161,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__getrandom__0_2_7//:getrandom", + "@wasmtime__getrandom__0_2_8//:getrandom", ], "//conditions:default": [], }) + selects.with_or({ @@ -188,7 +188,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__once_cell__1_13_0//:once_cell", + "@wasmtime__once_cell__1_15_0//:once_cell", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.19.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel rename to bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.19.bazel index 356e1c86d..c0b21a3be 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.19.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=aho_corasick", "manual", ], - version = "0.7.18", + version = "0.7.19", # buildifier: leave-alone deps = [ "@wasmtime__memchr__2_5_0//:memchr", diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.58.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.66.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.58.bazel rename to bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.66.bazel index 7e9d3543d..7efe07f38 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.58.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.66.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.58", + version = "1.0.66", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=anyhow", "manual", ], - version = "1.0.58", + version = "1.0.66", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.arrayvec-0.7.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.arrayvec-0.7.2.bazel new file mode 100644 index 000000000..5f9410f59 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.arrayvec-0.7.2.bazel @@ -0,0 +1,64 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "arraystring" with type "bench" omitted + +# Unsupported target "extend" with type "bench" omitted + +rust_library( + name = "arrayvec", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=arrayvec", + "manual", + ], + version = "0.7.2", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "serde" with type "test" omitted + +# Unsupported target "tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 84025f552..6b1bcb3b6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.66.bazel b/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.66.bazel deleted file mode 100644 index 711f7230c..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.backtrace-0.3.66.bazel +++ /dev/null @@ -1,111 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "backtrace_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.66", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__cc__1_0_73//:cc", - ], -) - -# Unsupported target "benchmarks" with type "bench" omitted - -# Unsupported target "backtrace" with type "example" omitted - -# Unsupported target "raw" with type "example" omitted - -rust_library( - name = "backtrace", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=backtrace", - "manual", - ], - version = "0.3.66", - # buildifier: leave-alone - deps = [ - ":backtrace_build_script", - "@wasmtime__addr2line__0_17_0//:addr2line", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__libc__0_2_126//:libc", - "@wasmtime__miniz_oxide__0_5_3//:miniz_oxide", - "@wasmtime__object__0_29_0//:object", - "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", - ], -) - -# Unsupported target "accuracy" with type "test" omitted - -# Unsupported target "concurrent-panics" with type "test" omitted - -# Unsupported target "long_fn_name" with type "test" omitted - -# Unsupported target "skip_inner_frames" with type "test" omitted - -# Unsupported target "smoke" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index 9c84912e1..9606f772a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -50,7 +50,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_140//:serde", + "@wasmtime__serde__1_0_147//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.lazy_static-1.4.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.11.1.bazel similarity index 80% rename from bazel/cargo/wasmtime/remote/BUILD.lazy_static-1.4.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.11.1.bazel index 28cacc564..391fc5230 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.lazy_static-1.4.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.11.1.bazel @@ -31,28 +31,29 @@ licenses([ # Generated Targets +# Unsupported target "benches" with type "bench" omitted + rust_library( - name = "lazy_static", + name = "bumpalo", srcs = glob(["**/*.rs"]), crate_features = [ + "default", ], crate_root = "src/lib.rs", data = [], - edition = "2015", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-raze", - "crate-name=lazy_static", + "crate-name=bumpalo", "manual", ], - version = "1.4.0", + version = "3.11.1", # buildifier: leave-alone deps = [ ], ) -# Unsupported target "no_std" with type "test" omitted - -# Unsupported target "test" with type "test" omitted +# Unsupported target "try_alloc" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.88.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.88.1.bazel index 2c47d6ca1..46a1949b8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.88.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.88.1.bazel similarity index 78% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.88.1.bazel index 7166edccc..b6c31f175 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.88.1.bazel @@ -58,11 +58,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.86.1", + version = "0.88.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_86_1//:cranelift_codegen_meta", - "@wasmtime__cranelift_isle__0_86_1//:cranelift_isle", + "@wasmtime__cranelift_codegen_meta__0_88_1//:cranelift_codegen_meta", + "@wasmtime__cranelift_isle__0_88_1//:cranelift_isle", ], ) @@ -88,17 +88,19 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__cranelift_bforest__0_86_1//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_86_1//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__arrayvec__0_7_2//:arrayvec", + "@wasmtime__bumpalo__3_11_1//:bumpalo", + "@wasmtime__cranelift_bforest__0_88_1//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_88_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regalloc2__0_3_1//:regalloc2", - "@wasmtime__smallvec__1_9_0//:smallvec", + "@wasmtime__regalloc2__0_3_2//:regalloc2", + "@wasmtime__smallvec__1_10_0//:smallvec", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.88.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.88.1.bazel index facc249e0..841e887cc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.88.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_86_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_88_1//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.88.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.88.1.bazel index f07373936..a72812ff9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.88.1.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.88.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.88.1.bazel index 94b0c60f6..68f111f9b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.88.1.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_140//:serde", + "@wasmtime__serde__1_0_147//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.88.1.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.88.1.bazel index 9af54ee58..5a851151b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.88.1.bazel @@ -49,12 +49,12 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", "@wasmtime__log__0_4_17//:log", - "@wasmtime__smallvec__1_9_0//:smallvec", + "@wasmtime__smallvec__1_10_0//:smallvec", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.88.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.88.1.bazel index 19c0d17f3..db637a955 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.88.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.86.1", + version = "0.88.1", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "crate-name=cranelift-isle", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ ":cranelift_isle_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.88.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.88.1.bazel index dfad6ff09..f026dceae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.88.1.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.86.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.88.1.bazel similarity index 73% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.86.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.88.1.bazel index 31d86a2d4..3f377e198 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.86.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.88.1.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.86.1", + version = "0.88.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_86_1//:cranelift_frontend", - "@wasmtime__itertools__0_10_3//:itertools", + "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_88_1//:cranelift_frontend", + "@wasmtime__itertools__0_10_5//:itertools", "@wasmtime__log__0_4_17//:log", - "@wasmtime__smallvec__1_9_0//:smallvec", - "@wasmtime__wasmparser__0_86_0//:wasmparser", - "@wasmtime__wasmtime_types__0_39_1//:wasmtime_types", + "@wasmtime__smallvec__1_10_0//:smallvec", + "@wasmtime__wasmparser__0_89_1//:wasmparser", + "@wasmtime__wasmtime_types__1_0_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.7.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.8.0.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.either-1.7.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.either-1.8.0.bazel index 6a666ae8c..0103fd8cf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.either-1.7.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.8.0.bazel @@ -35,6 +35,7 @@ rust_library( name = "either", srcs = glob(["**/*.rs"]), crate_features = [ + "use_std", ], crate_root = "src/lib.rs", data = [], @@ -47,7 +48,7 @@ rust_library( "crate-name=either", "manual", ], - version = "1.7.0", + version = "1.8.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.1.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.1.bazel index 6e7c24eae..6a4139c17 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.1.bazel @@ -52,7 +52,7 @@ rust_library( "crate-name=env_logger", "manual", ], - version = "0.9.0", + version = "0.9.1", # buildifier: leave-alone deps = [ "@wasmtime__atty__0_2_14//:atty", diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index ba4303b75..71663e42a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -55,6 +55,7 @@ rust_library( ] + selects.with_or({ # cfg(unix) ( + "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -71,9 +72,8 @@ rust_library( "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", - "@rules_rust//rust/platform:wasm32-wasi", ): [ - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index 8acac1400..1fd6fc62a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.7.bazel rename to bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel index 059b638c1..e3ee8432d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel @@ -52,7 +52,7 @@ rust_library( "crate-name=getrandom", "manual", ], - version = "0.2.7", + version = "0.2.8", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel deleted file mode 100644 index e5de01424..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.11.2.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "hashbrown", - srcs = glob(["**/*.rs"]), - crate_features = [ - "ahash", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=hashbrown", - "manual", - ], - version = "0.11.2", - # buildifier: leave-alone - deps = [ - "@wasmtime__ahash__0_7_6//:ahash", - ], -) - -# Unsupported target "hasher" with type "test" omitted - -# Unsupported target "rayon" with type "test" omitted - -# Unsupported target "serde" with type "test" omitted - -# Unsupported target "set" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index 3b0fce03b..c9ecdf51a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -39,6 +39,7 @@ rust_library( name = "hashbrown", srcs = glob(["**/*.rs"]), crate_features = [ + "ahash", "raw", ], crate_root = "src/lib.rs", @@ -55,6 +56,7 @@ rust_library( version = "0.12.3", # buildifier: leave-alone deps = [ + "@wasmtime__ahash__0_7_6//:ahash", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index a66aeb652..ca03f81ba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel index 0de97917d..0b5126d41 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel @@ -92,7 +92,7 @@ rust_library( deps = [ ":indexmap_build_script", "@wasmtime__hashbrown__0_12_3//:hashbrown", - "@wasmtime__serde__1_0_140//:serde", + "@wasmtime__serde__1_0_147//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.2.bazel deleted file mode 100644 index 5f40d72df..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.2.bazel +++ /dev/null @@ -1,102 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "io_lifetimes_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.7.2", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "easy-conversions" with type "example" omitted - -# Unsupported target "flexible-apis" with type "example" omitted - -# Unsupported target "hello" with type "example" omitted - -# Unsupported target "owning-wrapper" with type "example" omitted - -# Unsupported target "portable-views" with type "example" omitted - -rust_library( - name = "io_lifetimes", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=io-lifetimes", - "manual", - ], - version = "0.7.2", - # buildifier: leave-alone - deps = [ - ":io_lifetimes_build_script", - ], -) - -# Unsupported target "api" with type "test" omitted - -# Unsupported target "assumptions" with type "test" omitted - -# Unsupported target "ffi" with type "test" omitted - -# Unsupported target "niche-optimizations" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.4.bazel new file mode 100644 index 000000000..caa76c4a8 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.4.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "io_lifetimes_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.7.4", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "io_lifetimes", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=io-lifetimes", + "manual", + ], + version = "0.7.4", + # buildifier: leave-alone + deps = [ + ":io_lifetimes_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel index 863cb6e51..3abb16e27 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel @@ -68,10 +68,10 @@ rust_library( "crate-name=itertools", "manual", ], - version = "0.10.3", + version = "0.10.5", # buildifier: leave-alone deps = [ - "@wasmtime__either__1_7_0//:either", + "@wasmtime__either__1_8_0//:either", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.126.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.137.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.126.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.137.bazel index 1702fdb42..cdddb7734 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.126.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.137.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.126", + version = "0.2.137", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.126", + version = "0.2.137", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index a09f1a1c9..fdd688164 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.3.bazel deleted file mode 100644 index ba23d2620..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.miniz_oxide-0.5.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR (Zlib OR Apache-2.0)" -]) - -# Generated Targets - -rust_library( - name = "miniz_oxide", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=miniz_oxide", - "manual", - ], - version = "0.5.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__adler__1_0_2//:adler", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.more-asserts-0.2.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.more-asserts-0.2.2.bazel deleted file mode 100644 index 123327069..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.more-asserts-0.2.2.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # CC0-1.0 from expression "CC0-1.0" -]) - -# Generated Targets - -rust_library( - name = "more_asserts", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=more-asserts", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.28.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.28.4.bazel deleted file mode 100644 index c43b06732..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.28.4.bazel +++ /dev/null @@ -1,74 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -rust_library( - name = "object", - srcs = glob(["**/*.rs"]), - crate_features = [ - "coff", - "crc32fast", - "elf", - "hashbrown", - "indexmap", - "macho", - "pe", - "read_core", - "std", - "write", - "write_core", - "write_std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=object", - "manual", - ], - version = "0.28.4", - # buildifier: leave-alone - deps = [ - "@wasmtime__crc32fast__1_3_2//:crc32fast", - "@wasmtime__hashbrown__0_11_2//:hashbrown", - "@wasmtime__indexmap__1_9_1//:indexmap", - "@wasmtime__memchr__2_5_0//:memchr", - ], -) - -# Unsupported target "integration" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel index be97d2801..fc7f0f8ea 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel @@ -35,13 +35,18 @@ rust_library( name = "object", srcs = glob(["**/*.rs"]), crate_features = [ - "archive", "coff", + "crc32fast", "elf", + "hashbrown", + "indexmap", "macho", "pe", "read_core", - "unaligned", + "std", + "write", + "write_core", + "write_std", ], crate_root = "src/lib.rs", data = [], @@ -57,6 +62,9 @@ rust_library( version = "0.29.0", # buildifier: leave-alone deps = [ + "@wasmtime__crc32fast__1_3_2//:crc32fast", + "@wasmtime__hashbrown__0_12_3//:hashbrown", + "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__memchr__2_5_0//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.13.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.15.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.once_cell-1.13.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.once_cell-1.15.0.bazel index 50c8e47be..a15c98be0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.13.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.15.0.bazel @@ -56,7 +56,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -65,7 +65,7 @@ rust_library( "crate-name=once_cell", "manual", ], - version = "1.13.0", + version = "1.15.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.9.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.paste-1.0.7.bazel rename to bazel/cargo/wasmtime/remote/BUILD.paste-1.0.9.bazel index 8bc62b829..cc57a6e84 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.9.bazel @@ -47,7 +47,7 @@ rust_proc_macro( "crate-name=paste", "manual", ], - version = "1.0.7", + version = "1.0.9", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.42.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.47.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.42.bazel rename to bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.47.bazel index df239e4a7..06a29955e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.42.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.47.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.42", + version = "1.0.47", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=proc-macro2", "manual", ], - version = "1.0.42", + version = "1.0.47", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@wasmtime__unicode_ident__1_0_2//:unicode_ident", + "@wasmtime__unicode_ident__1_0_5//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.20.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.psm-0.1.20.bazel rename to bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index df571f008..71003013e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.20.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.1.20", + version = "0.1.21", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -89,7 +89,7 @@ rust_library( "crate-name=psm", "manual", ], - version = "0.1.20", + version = "0.1.21", # buildifier: leave-alone deps = [ ":psm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.21.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel rename to bazel/cargo/wasmtime/remote/BUILD.quote-1.0.21.bazel index 31bdc853a..50d302291 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.20.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.21.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.20", + version = "1.0.21", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=quote", "manual", ], - version = "1.0.20", + version = "1.0.21", # buildifier: leave-alone deps = [ ":quote_build_script", - "@wasmtime__proc_macro2__1_0_42//:proc_macro2", + "@wasmtime__proc_macro2__1_0_47//:proc_macro2", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 35812478e..69762bf1e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -60,7 +60,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__rand_chacha__0_3_1//:rand_chacha", - "@wasmtime__rand_core__0_6_3//:rand_core", + "@wasmtime__rand_core__0_6_4//:rand_core", ] + selects.with_or({ # cfg(unix) ( @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel index 9fdf44b28..02d8477ab 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel @@ -52,6 +52,6 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__ppv_lite86__0_2_16//:ppv_lite86", - "@wasmtime__rand_core__0_6_3//:rand_core", + "@wasmtime__rand_core__0_6_4//:rand_core", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel index f5886d18a..a1545219b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel @@ -50,9 +50,9 @@ rust_library( "crate-name=rand_core", "manual", ], - version = "0.6.3", + version = "0.6.4", # buildifier: leave-alone deps = [ - "@wasmtime__getrandom__0_2_7//:getrandom", + "@wasmtime__getrandom__0_2_8//:getrandom", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.2.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.2.bazel index a1fbc6f0d..54f6a85c1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.2.bazel @@ -49,12 +49,12 @@ rust_library( "crate-name=regalloc2", "manual", ], - version = "0.3.1", + version = "0.3.2", # buildifier: leave-alone deps = [ "@wasmtime__fxhash__0_2_1//:fxhash", "@wasmtime__log__0_4_17//:log", "@wasmtime__slice_group_by__0_3_0//:slice_group_by", - "@wasmtime__smallvec__1_9_0//:smallvec", + "@wasmtime__smallvec__1_10_0//:smallvec", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel index 9a9d27bb2..17ef69208 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel @@ -70,7 +70,7 @@ rust_library( version = "1.6.0", # buildifier: leave-alone deps = [ - "@wasmtime__aho_corasick__0_7_18//:aho_corasick", + "@wasmtime__aho_corasick__0_7_19//:aho_corasick", "@wasmtime__memchr__2_5_0//:memchr", "@wasmtime__regex_syntax__0_6_27//:regex_syntax", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel deleted file mode 100644 index 91805a666..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.region-2.2.0.bazel +++ /dev/null @@ -1,79 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "region", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=region", - "manual", - ], - version = "2.2.0", - # buildifier: leave-alone - deps = [ - "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__libc__0_2_126//:libc", - ] + selects.with_or({ - # cfg(any(target_os = "macos", target_os = "ios")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:x86_64-apple-ios", - ): [ - "@wasmtime__mach__0_3_2//:mach", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.12.bazel similarity index 83% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.7.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.12.bazel index f6c825bce..58ff30dd8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.12.bazel @@ -45,10 +45,11 @@ cargo_build_script( crate_features = [ "default", "io-lifetimes", - "linux-raw-sys", + "libc", "mm", "process", "std", + "use-libc-auxv", ], crate_root = "build.rs", data = glob(["**"]), @@ -61,7 +62,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.35.7", + version = "0.35.12", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -117,16 +118,6 @@ cargo_build_script( # Unsupported target "mod" with type "bench" omitted -# Unsupported target "dup2_to_replace_stdio" with type "example" omitted - -# Unsupported target "hello" with type "example" omitted - -# Unsupported target "process" with type "example" omitted - -# Unsupported target "stdio" with type "example" omitted - -# Unsupported target "time" with type "example" omitted - rust_library( name = "rustix", srcs = glob(["**/*.rs"]), @@ -136,10 +127,11 @@ rust_library( crate_features = [ "default", "io-lifetimes", - "linux-raw-sys", + "libc", "mm", "process", "std", + "use-libc-auxv", ], crate_root = "src/lib.rs", data = [], @@ -153,12 +145,12 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.35.7", + version = "0.35.12", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__0_7_2//:io_lifetimes", + "@wasmtime__io_lifetimes__0_7_4//:io_lifetimes", ] + selects.with_or({ # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( @@ -176,8 +168,12 @@ rust_library( ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) + # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ( + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -195,8 +191,8 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ + "@wasmtime__libc__0_2_137//:libc", "@wasmtime__errno__0_2_8//:errno", - "@wasmtime__libc__0_2_126//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -210,27 +206,3 @@ rust_library( "//conditions:default": [], }), ) - -# Unsupported target "backends" with type "test" omitted - -# Unsupported target "fs" with type "test" omitted - -# Unsupported target "io" with type "test" omitted - -# Unsupported target "mm" with type "test" omitted - -# Unsupported target "net" with type "test" omitted - -# Unsupported target "param" with type "test" omitted - -# Unsupported target "path" with type "test" omitted - -# Unsupported target "process" with type "test" omitted - -# Unsupported target "rand" with type "test" omitted - -# Unsupported target "termios" with type "test" omitted - -# Unsupported target "thread" with type "test" omitted - -# Unsupported target "time" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.140.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.147.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.serde-1.0.140.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde-1.0.147.bazel index bc423b52d..b585aa6c4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.140.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.147.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.140", + version = "1.0.147", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@wasmtime__serde_derive__1_0_140//:serde_derive", + "@wasmtime__serde_derive__1_0_147//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -87,7 +87,7 @@ rust_library( "crate-name=serde", "manual", ], - version = "1.0.140", + version = "1.0.147", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.140.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.147.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.140.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.147.bazel index 68dae3a52..07b878a1a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.140.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.147.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.140", + version = "1.0.147", visibility = ["//visibility:private"], deps = [ ], @@ -78,12 +78,12 @@ rust_proc_macro( "crate-name=serde_derive", "manual", ], - version = "1.0.140", + version = "1.0.147", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@wasmtime__proc_macro2__1_0_42//:proc_macro2", - "@wasmtime__quote__1_0_20//:quote", - "@wasmtime__syn__1_0_98//:syn", + "@wasmtime__proc_macro2__1_0_47//:proc_macro2", + "@wasmtime__quote__1_0_21//:quote", + "@wasmtime__syn__1_0_103//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.9.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.smallvec-1.9.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel index 9600167e2..66f5032e4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.9.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel @@ -49,10 +49,12 @@ rust_library( "crate-name=smallvec", "manual", ], - version = "1.9.0", + version = "1.10.0", # buildifier: leave-alone deps = [ ], ) +# Unsupported target "debugger_visualizer" with type "test" omitted + # Unsupported target "macro" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.103.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel rename to bazel/cargo/wasmtime/remote/BUILD.syn-1.0.103.bazel index d6d65ce09..407616c21 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.98.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.103.bazel @@ -61,7 +61,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.98", + version = "1.0.103", visibility = ["//visibility:private"], deps = [ ], @@ -94,13 +94,13 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.98", + version = "1.0.103", # buildifier: leave-alone deps = [ ":syn_build_script", - "@wasmtime__proc_macro2__1_0_42//:proc_macro2", - "@wasmtime__quote__1_0_20//:quote", - "@wasmtime__unicode_ident__1_0_2//:unicode_ident", + "@wasmtime__proc_macro2__1_0_47//:proc_macro2", + "@wasmtime__quote__1_0_21//:quote", + "@wasmtime__unicode_ident__1_0_5//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.31.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.37.bazel similarity index 70% rename from bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.31.bazel rename to bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.37.bazel index 7730827d6..df0ca0842 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.31.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.37.bazel @@ -30,6 +30,35 @@ licenses([ ]) # Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "thiserror_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.37", + visibility = ["//visibility:private"], + deps = [ + ], +) rust_library( name = "thiserror", @@ -40,7 +69,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@wasmtime__thiserror_impl__1_0_31//:thiserror_impl", + "@wasmtime__thiserror_impl__1_0_37//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", @@ -50,9 +79,10 @@ rust_library( "crate-name=thiserror", "manual", ], - version = "1.0.31", + version = "1.0.37", # buildifier: leave-alone deps = [ + ":thiserror_build_script", ], ) @@ -60,6 +90,8 @@ rust_library( # Unsupported target "test_backtrace" with type "test" omitted +# Unsupported target "test_deprecated" with type "test" omitted + # Unsupported target "test_display" with type "test" omitted # Unsupported target "test_error" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.37.bazel similarity index 86% rename from bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel rename to bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.37.bazel index e0aa3ba97..0c6f33752 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.31.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.37.bazel @@ -47,11 +47,11 @@ rust_proc_macro( "crate-name=thiserror-impl", "manual", ], - version = "1.0.31", + version = "1.0.37", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_42//:proc_macro2", - "@wasmtime__quote__1_0_20//:quote", - "@wasmtime__syn__1_0_98//:syn", + "@wasmtime__proc_macro2__1_0_47//:proc_macro2", + "@wasmtime__quote__1_0_21//:quote", + "@wasmtime__syn__1_0_103//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.5.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.5.bazel index 1fe703741..e6676ba40 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.5.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=unicode-ident", "manual", ], - version = "1.0.2", + version = "1.0.5", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.86.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.89.1.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.86.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.89.1.bazel index 7f20f3239..4e5a56f14 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.86.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.89.1.bazel @@ -51,7 +51,7 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.86.0", + version = "0.89.1", # buildifier: leave-alone deps = [ "@wasmtime__indexmap__1_9_1//:indexmap", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.39.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-1.0.1.bazel similarity index 75% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.39.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-1.0.1.bazel index 1d41169cb..4f1ffad3c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-0.39.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-1.0.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.39.1", + version = "1.0.1", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -82,7 +82,7 @@ rust_library( data = [], edition = "2021", proc_macro_deps = [ - "@wasmtime__paste__1_0_7//:paste", + "@wasmtime__paste__1_0_9//:paste", ], rustc_flags = [ "--cap-lints=allow", @@ -92,29 +92,26 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "0.39.1", + version = "1.0.1", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@wasmtime__anyhow__1_0_58//:anyhow", - "@wasmtime__backtrace__0_3_66//:backtrace", + "@wasmtime__anyhow__1_0_66//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_9_1//:indexmap", - "@wasmtime__lazy_static__1_4_0//:lazy_static", - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_28_4//:object", - "@wasmtime__once_cell__1_13_0//:once_cell", - "@wasmtime__psm__0_1_20//:psm", - "@wasmtime__region__2_2_0//:region", - "@wasmtime__serde__1_0_140//:serde", + "@wasmtime__object__0_29_0//:object", + "@wasmtime__once_cell__1_15_0//:once_cell", + "@wasmtime__psm__0_1_21//:psm", + "@wasmtime__serde__1_0_147//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", - "@wasmtime__wasmparser__0_86_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__0_39_1//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit__0_39_1//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__0_39_1//:wasmtime_runtime", + "@wasmtime__wasmparser__0_89_1//:wasmparser", + "@wasmtime__wasmtime_cranelift__1_0_1//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit__1_0_1//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__1_0_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-1.0.1.bazel new file mode 100644 index 000000000..4bfabe328 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-1.0.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_asm_macros", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=wasmtime-asm-macros", + "manual", + ], + version = "1.0.1", + # buildifier: leave-alone + deps = [ + "@wasmtime__cfg_if__1_0_0//:cfg_if", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel index f89e48e9c..e85148123 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel @@ -50,7 +50,7 @@ rust_proc_macro( version = "0.19.0", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_42//:proc_macro2", - "@wasmtime__quote__1_0_20//:quote", + "@wasmtime__proc_macro2__1_0_47//:proc_macro2", + "@wasmtime__quote__1_0_21//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.39.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-1.0.1.bazel similarity index 64% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.39.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-1.0.1.bazel index 271a03530..c256f9b4d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-0.39.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-1.0.1.bazel @@ -47,22 +47,21 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "0.39.1", + version = "1.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_58//:anyhow", - "@wasmtime__cranelift_codegen__0_86_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_86_1//:cranelift_frontend", - "@wasmtime__cranelift_native__0_86_1//:cranelift_native", - "@wasmtime__cranelift_wasm__0_86_1//:cranelift_wasm", + "@wasmtime__anyhow__1_0_66//:anyhow", + "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_88_1//:cranelift_frontend", + "@wasmtime__cranelift_native__0_88_1//:cranelift_native", + "@wasmtime__cranelift_wasm__0_88_1//:cranelift_wasm", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__more_asserts__0_2_2//:more_asserts", - "@wasmtime__object__0_28_4//:object", + "@wasmtime__object__0_29_0//:object", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", - "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_86_0//:wasmparser", - "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", + "@wasmtime__thiserror__1_0_37//:thiserror", + "@wasmtime__wasmparser__0_89_1//:wasmparser", + "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.39.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-1.0.1.bazel similarity index 73% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.39.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-1.0.1.bazel index d419143af..e1d4a419f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-0.39.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-1.0.1.bazel @@ -31,6 +31,8 @@ licenses([ # Generated Targets +# Unsupported target "factc" with type "example" omitted + rust_library( name = "wasmtime_environ", srcs = glob(["**/*.rs"]), @@ -47,20 +49,19 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "0.39.1", + version = "1.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_58//:anyhow", - "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", + "@wasmtime__anyhow__1_0_66//:anyhow", + "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__log__0_4_17//:log", - "@wasmtime__more_asserts__0_2_2//:more_asserts", - "@wasmtime__object__0_28_4//:object", - "@wasmtime__serde__1_0_140//:serde", + "@wasmtime__object__0_29_0//:object", + "@wasmtime__serde__1_0_147//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", - "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_86_0//:wasmparser", - "@wasmtime__wasmtime_types__0_39_1//:wasmtime_types", + "@wasmtime__thiserror__1_0_37//:thiserror", + "@wasmtime__wasmparser__0_89_1//:wasmparser", + "@wasmtime__wasmtime_types__1_0_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.39.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-1.0.1.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.39.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-1.0.1.bazel index 9dc295d10..5090f08d7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-0.39.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-1.0.1.bazel @@ -49,24 +49,23 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "0.39.1", + version = "1.0.1", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", - "@wasmtime__anyhow__1_0_58//:anyhow", + "@wasmtime__anyhow__1_0_66//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_28_4//:object", - "@wasmtime__region__2_2_0//:region", + "@wasmtime__object__0_29_0//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", - "@wasmtime__serde__1_0_140//:serde", + "@wasmtime__serde__1_0_147//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", - "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__0_39_1//:wasmtime_runtime", + "@wasmtime__thiserror__1_0_37//:thiserror", + "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__1_0_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -77,7 +76,7 @@ rust_library( "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__rustix__0_35_7//:rustix", + "@wasmtime__rustix__0_35_12//:rustix", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.39.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-1.0.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.39.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-1.0.1.bazel index 0a4d8d96d..083ccc090 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-0.39.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-1.0.1.bazel @@ -36,7 +36,7 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "gdb_jit_int", - "lazy_static", + "once_cell", ], crate_root = "src/lib.rs", data = [], @@ -49,9 +49,9 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "0.39.1", + version = "1.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__lazy_static__1_4_0//:lazy_static", + "@wasmtime__once_cell__1_15_0//:once_cell", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.39.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-1.0.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.39.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-1.0.1.bazel index 1bb5b3c7a..622c36567 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-0.39.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-1.0.1.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.39.1", + version = "1.0.1", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -111,6 +111,9 @@ rust_library( crate_root = "src/lib.rs", data = [], edition = "2021", + proc_macro_deps = [ + "@wasmtime__paste__1_0_9//:paste", + ], rustc_flags = [ "--cap-lints=allow", ], @@ -119,23 +122,21 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "0.39.1", + version = "1.0.1", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@wasmtime__anyhow__1_0_58//:anyhow", - "@wasmtime__backtrace__0_3_66//:backtrace", + "@wasmtime__anyhow__1_0_66//:anyhow", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_9_1//:indexmap", - "@wasmtime__libc__0_2_126//:libc", + "@wasmtime__libc__0_2_137//:libc", "@wasmtime__log__0_4_17//:log", "@wasmtime__memoffset__0_6_5//:memoffset", - "@wasmtime__more_asserts__0_2_2//:more_asserts", "@wasmtime__rand__0_8_5//:rand", - "@wasmtime__region__2_2_0//:region", - "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmtime_environ__0_39_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__0_39_1//:wasmtime_jit_debug", + "@wasmtime__thiserror__1_0_37//:thiserror", + "@wasmtime__wasmtime_asm_macros__1_0_1//:wasmtime_asm_macros", + "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__1_0_1//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -175,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_35_7//:rustix", + "@wasmtime__rustix__0_35_12//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.39.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-1.0.1.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.39.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-1.0.1.bazel index 582cfbd44..126c01c6f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-0.39.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-1.0.1.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "0.39.1", + version = "1.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_86_1//:cranelift_entity", - "@wasmtime__serde__1_0_140//:serde", - "@wasmtime__thiserror__1_0_31//:thiserror", - "@wasmtime__wasmparser__0_86_0//:wasmparser", + "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", + "@wasmtime__serde__1_0_147//:serde", + "@wasmtime__thiserror__1_0_37//:thiserror", + "@wasmtime__wasmparser__0_89_1//:wasmparser", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel index e8b88f89d..51c9c7277 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel @@ -43,17 +43,14 @@ cargo_build_script( build_script_env = { }, crate_features = [ - "basetsd", "consoleapi", "errhandlingapi", "fileapi", - "memoryapi", "minwinbase", "minwindef", "ntdef", "processenv", "std", - "sysinfoapi", "winbase", "wincon", "winerror", @@ -79,17 +76,14 @@ rust_library( name = "winapi", srcs = glob(["**/*.rs"]), crate_features = [ - "basetsd", "consoleapi", "errhandlingapi", "fileapi", - "memoryapi", "minwinbase", "minwindef", "ntdef", "processenv", "std", - "sysinfoapi", "winbase", "wincon", "winerror", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel index 8ba64f652..7c6e8cb51 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel @@ -51,6 +51,7 @@ rust_library( "Win32_System_Diagnostics_Debug", "Win32_System_Kernel", "Win32_System_Memory", + "Win32_System_SystemInformation", "Win32_System_Threading", "default", ], diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index e01f9d0d4..15032f40b 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -192,9 +192,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "6ef70886da14245f575c6ff8c7c999ae22579257eba5ebf382e066598c1e381c", - strip_prefix = "wasmtime-0.39.1", - url = "https://github.com/bytecodealliance/wasmtime/archive/v0.39.1.tar.gz", + sha256 = "41e8d4916229f613e647bd20b6c1def0d04719c2bc0534bc29e3ba0cac317200", + strip_prefix = "wasmtime-1.0.1", + url = "https://github.com/bytecodealliance/wasmtime/archive/v1.0.1.tar.gz", ) maybe( From 59102f3ac3e7f0063b2c7f9d300f8b909d4ed972 Mon Sep 17 00:00:00 2001 From: River <6375745+RiverPhillips@users.noreply.github.com> Date: Thu, 27 Oct 2022 11:28:58 +0100 Subject: [PATCH 225/287] wasmtime: update to v2.0.0. (#314) Signed-off-by: river phillips --- bazel/cargo/wasmtime/BUILD.bazel | 2 +- bazel/cargo/wasmtime/Cargo.raze.lock | 166 ++++++++--- bazel/cargo/wasmtime/Cargo.toml | 6 +- bazel/cargo/wasmtime/crates.bzl | 272 +++++++++++------- ...l => BUILD.cranelift-bforest-0.89.0.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.89.0.bazel} | 16 +- ...BUILD.cranelift-codegen-meta-0.89.0.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.89.0.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.89.0.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.89.0.bazel} | 4 +- ...azel => BUILD.cranelift-isle-0.89.0.bazel} | 5 +- ...el => BUILD.cranelift-native-0.89.0.bazel} | 4 +- ...azel => BUILD.cranelift-wasm-0.89.0.bazel} | 12 +- .../BUILD.crossbeam-channel-0.5.6.bazel | 95 ++++++ .../remote/BUILD.crossbeam-deque-0.8.2.bazel | 69 +++++ .../remote/BUILD.crossbeam-epoch-0.9.11.bazel | 103 +++++++ .../remote/BUILD.crossbeam-utils-0.8.12.bazel | 103 +++++++ .../remote/BUILD.num_cpus-1.13.1.bazel | 83 ++++++ .../wasmtime/remote/BUILD.rayon-1.5.3.bazel | 118 ++++++++ .../remote/BUILD.rayon-core-1.9.3.bazel | 101 +++++++ ....3.2.bazel => BUILD.regalloc2-0.4.1.bazel} | 2 +- .../remote/BUILD.scopeguard-1.1.0.bazel | 56 ++++ .../remote/BUILD.smallvec-1.10.0.bazel | 1 + .../remote/BUILD.target-lexicon-0.12.4.bazel | 2 - ....1.bazel => BUILD.wasmparser-0.92.0.bazel} | 2 +- ...1.0.1.bazel => BUILD.wasmtime-2.0.0.bazel} | 14 +- ... => BUILD.wasmtime-asm-macros-2.0.0.bazel} | 2 +- ...l => BUILD.wasmtime-cranelift-2.0.0.bazel} | 16 +- ...zel => BUILD.wasmtime-environ-2.0.0.bazel} | 8 +- ...1.bazel => BUILD.wasmtime-jit-2.0.0.bazel} | 6 +- ...l => BUILD.wasmtime-jit-debug-2.0.0.bazel} | 2 +- ...zel => BUILD.wasmtime-runtime-2.0.0.bazel} | 10 +- ...bazel => BUILD.wasmtime-types-2.0.0.bazel} | 6 +- bazel/repositories.bzl | 6 +- 34 files changed, 1099 insertions(+), 205 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.88.1.bazel => BUILD.cranelift-bforest-0.89.0.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.88.1.bazel => BUILD.cranelift-codegen-0.89.0.bazel} (84%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.88.1.bazel => BUILD.cranelift-codegen-meta-0.89.0.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.88.1.bazel => BUILD.cranelift-codegen-shared-0.89.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.88.1.bazel => BUILD.cranelift-entity-0.89.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.88.1.bazel => BUILD.cranelift-frontend-0.89.0.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-isle-0.88.1.bazel => BUILD.cranelift-isle-0.89.0.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.88.1.bazel => BUILD.cranelift-native-0.89.0.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.88.1.bazel => BUILD.cranelift-wasm-0.89.0.bazel} (79%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.crossbeam-deque-0.8.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.crossbeam-utils-0.8.12.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.regalloc2-0.3.2.bazel => BUILD.regalloc2-0.4.1.bazel} (98%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.89.1.bazel => BUILD.wasmparser-0.92.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-1.0.1.bazel => BUILD.wasmtime-2.0.0.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-asm-macros-1.0.1.bazel => BUILD.wasmtime-asm-macros-2.0.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-1.0.1.bazel => BUILD.wasmtime-cranelift-2.0.0.bazel} (74%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-1.0.1.bazel => BUILD.wasmtime-environ-2.0.0.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-1.0.1.bazel => BUILD.wasmtime-jit-2.0.0.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-1.0.1.bazel => BUILD.wasmtime-jit-debug-2.0.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-1.0.1.bazel => BUILD.wasmtime-runtime-2.0.0.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-1.0.1.bazel => BUILD.wasmtime-types-2.0.0.bazel} (89%) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 2f7ca27d9..a239b0bb0 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__1_0_1//:wasmtime", + actual = "@wasmtime__wasmtime__2_0_0//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index fe3f47a0e..871dc72f5 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -108,18 +108,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44409ccf2d0f663920cab563d2b79fcd6b2e9a2bcc6e929fef76c8f82ad6c17a" +checksum = "be5e1ee4c22871d24a95196ea7047d58c1d978e46c88037d3d397b3b3e0af360" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98de2018ad96eb97f621f7d6b900a0cc661aec8d02ea4a50e56ecb48e5a2fcaf" +checksum = "70f600a52d59eed56a85f33750873b3b42d61e35ca777cd792369893f9e1f9dd" dependencies = [ "arrayvec", "bumpalo", @@ -137,33 +137,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5287ce36e6c4758fbaf298bd1a8697ad97a4f2375a3d1b61142ea538db4877e5" +checksum = "e8418218d0953d73e9b96e9d9ffec56145efa4f18988251530b5872ae4410563" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2855c24219e2f08827f3f4ffb2da92e134ae8d8ecc185b11ec8f9878cf5f588e" +checksum = "f01be0cfd40aba59153236ab4b99062131b5bbe6f9f3d4bcb238bd2f96ff5262" [[package]] name = "cranelift-entity" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b65673279d75d34bf11af9660ae2dbd1c22e6d28f163f5c72f4e1dc56d56103" +checksum = "ddae4fec5d6859233ffa175b61d269443c473b3971a2c3e69008c8d3e83d5825" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed2b3d7a4751163f6c4a349205ab1b7d9c00eecf19dcea48592ef1f7688eefc" +checksum = "f2cc3deb0df97748434cf9f7e404f1f5134f6a253fc9a6bca25c5cd6804c08d3" dependencies = [ "cranelift-codegen", "log", @@ -173,15 +173,18 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3be64cecea9d90105fc6a2ba2d003e98c867c1d6c4c86cc878f97ad9fb916293" +checksum = "fc3bb54287de9c36ba354eb849fefb77b5e73955058745fd08f12cfdfa181866" +dependencies = [ + "rayon", +] [[package]] name = "cranelift-native" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4a03a6ac1b063e416ca4b93f6247978c991475e8271465340caa6f92f3c16a4" +checksum = "d8c2a4f2efdce1de1f94e74f12b3b4144e3bcafa6011338b87388325d72d2120" dependencies = [ "cranelift-codegen", "libc", @@ -190,9 +193,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.88.1" +version = "0.89.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c699873f7b30bc5f20dd03a796b4183e073a46616c91704792ec35e45d13f913" +checksum = "f918c37eb01f5b5ccc632e0ef3b4bf9ee03b5d4c267d3d2d3b62720a6bce0180" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -213,6 +216,49 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "crossbeam-channel" +version = "0.5.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" +dependencies = [ + "cfg-if", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-deque" +version = "0.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" +dependencies = [ + "cfg-if", + "crossbeam-epoch", + "crossbeam-utils", +] + +[[package]] +name = "crossbeam-epoch" +version = "0.9.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348" +dependencies = [ + "autocfg", + "cfg-if", + "crossbeam-utils", + "memoffset", + "scopeguard", +] + +[[package]] +name = "crossbeam-utils" +version = "0.8.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac" +dependencies = [ + "cfg-if", +] + [[package]] name = "either" version = "1.8.0" @@ -385,6 +431,16 @@ dependencies = [ "autocfg", ] +[[package]] +name = "num_cpus" +version = "1.13.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" +dependencies = [ + "hermit-abi", + "libc", +] + [[package]] name = "object" version = "0.29.0" @@ -472,11 +528,35 @@ dependencies = [ "getrandom", ] +[[package]] +name = "rayon" +version = "1.5.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d" +dependencies = [ + "autocfg", + "crossbeam-deque", + "either", + "rayon-core", +] + +[[package]] +name = "rayon-core" +version = "1.9.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f" +dependencies = [ + "crossbeam-channel", + "crossbeam-deque", + "crossbeam-utils", + "num_cpus", +] + [[package]] name = "regalloc2" -version = "0.3.2" +version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d43a209257d978ef079f3d446331d0f1794f5e0fc19b306a199983857833a779" +checksum = "69025b4a161879ba90719837c06621c3d73cffa147a000aeacf458f6a9572485" dependencies = [ "fxhash", "log", @@ -521,6 +601,12 @@ dependencies = [ "windows-sys", ] +[[package]] +name = "scopeguard" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" + [[package]] name = "serde" version = "1.0.147" @@ -625,18 +711,18 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasmparser" -version = "0.89.1" +version = "0.92.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab5d3e08b13876f96dd55608d03cd4883a0545884932d5adf11925876c96daef" +checksum = "7da34cec2a8c23db906cdf8b26e988d7a7f0d549eb5d51299129647af61a1b37" dependencies = [ "indexmap", ] [[package]] name = "wasmtime" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1f511c4917c83d04da68333921107db75747c4e11a2f654a8e909cc5e0520dc" +checksum = "f5fc5bb3329415030796cfa5530b2481ccef5c4f1e5150733ba94318ab004fe1" dependencies = [ "anyhow", "bincode", @@ -660,16 +746,16 @@ dependencies = [ [[package]] name = "wasmtime-asm-macros" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39bf3debfe744bf19dd3732990ce6f8c0ced7439e2370ba4e1d8f5a3660a3178" +checksum = "db36545ff0940ad9bf4e9ab0ec2a4e1eaa5ebe2aa9227bcbc4af905375d9e482" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-c-api-bazel" -version = "1.0.1" +version = "2.0.0" dependencies = [ "anyhow", "env_logger", @@ -681,7 +767,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v1.0.1#c63087ff668fbdffe326c7b48401acbbf0e82a65" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v2.0.0#ff8c568eeed3918a5d591295e9384e2b1e462aae" dependencies = [ "proc-macro2", "quote", @@ -689,9 +775,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "058217e28644b012bdcdf0e445f58d496d78c2e0b6a6dd93558e701591dad705" +checksum = "0409e93b5eceaa4e5f498a4bce1cffc7ebe071d14582b5437c10af4aecc23f54" dependencies = [ "anyhow", "cranelift-codegen", @@ -710,9 +796,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7af06848df28b7661471d9a80d30a973e0f401f2e3ed5396ad7e225ed217047" +checksum = "55240389c604f68d2e1d2573d7d3740246ab9ea2fa4fe79e10ccd51faf9b9500" dependencies = [ "anyhow", "cranelift-entity", @@ -729,9 +815,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9028fb63a54185b3c192b7500ef8039c7bb8d7f62bfc9e7c258483a33a3d13bb" +checksum = "bc15e285b7073ee566e62ea4b6dd38b80465ade0ea8cd4cee13c7ac2e295cfca" dependencies = [ "addr2line", "anyhow", @@ -753,18 +839,18 @@ dependencies = [ [[package]] name = "wasmtime-jit-debug" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "25e82d4ef93296785de7efca92f7679dc67fe68a13b625a5ecc8d7503b377a37" +checksum = "bee06d206bcf7a875eacd1e1e957c2a63f64a92934d2535dd8e15cde6d3a9ffe" dependencies = [ "once_cell", ] [[package]] name = "wasmtime-runtime" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f0e9bea7d517d114fe66b930b2124ee086516ee93eeebfd97f75f366c5b0553" +checksum = "9969ff36cbf57f18c2d24679db57d0857ea7cc7d839534afc26ecc8003e9914b" dependencies = [ "anyhow", "cc", @@ -786,9 +872,9 @@ dependencies = [ [[package]] name = "wasmtime-types" -version = "1.0.1" +version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69b83e93ed41b8fdc936244cfd5e455480cf1eca1fd60c78a0040038b4ce5075" +checksum = "df64c737fc9b3cdf7617bcc65e8b97cb713ceb9c9c58530b20788a8a3482b5d1" dependencies = [ "cranelift-entity", "serde", diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 9ea642465..8b5b4c47e 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "1.0.1" +version = "2.0.0" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.9" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "1.0.1", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v1.0.1"} +wasmtime = {version = "2.0.0", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v2.0.0"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index fc569e559..b5fc80ebd 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -159,98 +159,98 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.88.1/download", + name = "wasmtime__cranelift_bforest__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.89.0/download", type = "tar.gz", - sha256 = "44409ccf2d0f663920cab563d2b79fcd6b2e9a2bcc6e929fef76c8f82ad6c17a", - strip_prefix = "cranelift-bforest-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.88.1.bazel"), + sha256 = "be5e1ee4c22871d24a95196ea7047d58c1d978e46c88037d3d397b3b3e0af360", + strip_prefix = "cranelift-bforest-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.88.1/download", + name = "wasmtime__cranelift_codegen__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.89.0/download", type = "tar.gz", - sha256 = "98de2018ad96eb97f621f7d6b900a0cc661aec8d02ea4a50e56ecb48e5a2fcaf", - strip_prefix = "cranelift-codegen-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.88.1.bazel"), + sha256 = "70f600a52d59eed56a85f33750873b3b42d61e35ca777cd792369893f9e1f9dd", + strip_prefix = "cranelift-codegen-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.88.1/download", + name = "wasmtime__cranelift_codegen_meta__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.89.0/download", type = "tar.gz", - sha256 = "5287ce36e6c4758fbaf298bd1a8697ad97a4f2375a3d1b61142ea538db4877e5", - strip_prefix = "cranelift-codegen-meta-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.88.1.bazel"), + sha256 = "e8418218d0953d73e9b96e9d9ffec56145efa4f18988251530b5872ae4410563", + strip_prefix = "cranelift-codegen-meta-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.88.1/download", + name = "wasmtime__cranelift_codegen_shared__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.89.0/download", type = "tar.gz", - sha256 = "2855c24219e2f08827f3f4ffb2da92e134ae8d8ecc185b11ec8f9878cf5f588e", - strip_prefix = "cranelift-codegen-shared-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.88.1.bazel"), + sha256 = "f01be0cfd40aba59153236ab4b99062131b5bbe6f9f3d4bcb238bd2f96ff5262", + strip_prefix = "cranelift-codegen-shared-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.88.1/download", + name = "wasmtime__cranelift_entity__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.89.0/download", type = "tar.gz", - sha256 = "0b65673279d75d34bf11af9660ae2dbd1c22e6d28f163f5c72f4e1dc56d56103", - strip_prefix = "cranelift-entity-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.88.1.bazel"), + sha256 = "ddae4fec5d6859233ffa175b61d269443c473b3971a2c3e69008c8d3e83d5825", + strip_prefix = "cranelift-entity-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.88.1/download", + name = "wasmtime__cranelift_frontend__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.89.0/download", type = "tar.gz", - sha256 = "3ed2b3d7a4751163f6c4a349205ab1b7d9c00eecf19dcea48592ef1f7688eefc", - strip_prefix = "cranelift-frontend-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.88.1.bazel"), + sha256 = "f2cc3deb0df97748434cf9f7e404f1f5134f6a253fc9a6bca25c5cd6804c08d3", + strip_prefix = "cranelift-frontend-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_isle__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-isle/0.88.1/download", + name = "wasmtime__cranelift_isle__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-isle/0.89.0/download", type = "tar.gz", - sha256 = "3be64cecea9d90105fc6a2ba2d003e98c867c1d6c4c86cc878f97ad9fb916293", - strip_prefix = "cranelift-isle-0.88.1", + sha256 = "fc3bb54287de9c36ba354eb849fefb77b5e73955058745fd08f12cfdfa181866", + strip_prefix = "cranelift-isle-0.89.0", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", ], patch_args = [ "-p4", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.88.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-native/0.88.1/download", + name = "wasmtime__cranelift_native__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-native/0.89.0/download", type = "tar.gz", - sha256 = "c4a03a6ac1b063e416ca4b93f6247978c991475e8271465340caa6f92f3c16a4", - strip_prefix = "cranelift-native-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.88.1.bazel"), + sha256 = "d8c2a4f2efdce1de1f94e74f12b3b4144e3bcafa6011338b87388325d72d2120", + strip_prefix = "cranelift-native-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.89.0.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_88_1", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.88.1/download", + name = "wasmtime__cranelift_wasm__0_89_0", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.89.0/download", type = "tar.gz", - sha256 = "c699873f7b30bc5f20dd03a796b4183e073a46616c91704792ec35e45d13f913", - strip_prefix = "cranelift-wasm-0.88.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.88.1.bazel"), + sha256 = "f918c37eb01f5b5ccc632e0ef3b4bf9ee03b5d4c267d3d2d3b62720a6bce0180", + strip_prefix = "cranelift-wasm-0.89.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.89.0.bazel"), ) maybe( @@ -263,6 +263,46 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.3.2.bazel"), ) + maybe( + http_archive, + name = "wasmtime__crossbeam_channel__0_5_6", + url = "https://crates.io/api/v1/crates/crossbeam-channel/0.5.6/download", + type = "tar.gz", + sha256 = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521", + strip_prefix = "crossbeam-channel-0.5.6", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-channel-0.5.6.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__crossbeam_deque__0_8_2", + url = "https://crates.io/api/v1/crates/crossbeam-deque/0.8.2/download", + type = "tar.gz", + sha256 = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc", + strip_prefix = "crossbeam-deque-0.8.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-deque-0.8.2.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__crossbeam_epoch__0_9_11", + url = "https://crates.io/api/v1/crates/crossbeam-epoch/0.9.11/download", + type = "tar.gz", + sha256 = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348", + strip_prefix = "crossbeam-epoch-0.9.11", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-epoch-0.9.11.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__crossbeam_utils__0_8_12", + url = "https://crates.io/api/v1/crates/crossbeam-utils/0.8.12/download", + type = "tar.gz", + sha256 = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac", + strip_prefix = "crossbeam-utils-0.8.12", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-utils-0.8.12.bazel"), + ) + maybe( http_archive, name = "wasmtime__either__1_8_0", @@ -463,6 +503,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.6.5.bazel"), ) + maybe( + http_archive, + name = "wasmtime__num_cpus__1_13_1", + url = "https://crates.io/api/v1/crates/num_cpus/1.13.1/download", + type = "tar.gz", + sha256 = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1", + strip_prefix = "num_cpus-1.13.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.num_cpus-1.13.1.bazel"), + ) + maybe( http_archive, name = "wasmtime__object__0_29_0", @@ -565,12 +615,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__regalloc2__0_3_2", - url = "https://crates.io/api/v1/crates/regalloc2/0.3.2/download", + name = "wasmtime__rayon__1_5_3", + url = "https://crates.io/api/v1/crates/rayon/1.5.3/download", + type = "tar.gz", + sha256 = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d", + strip_prefix = "rayon-1.5.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rayon-1.5.3.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__rayon_core__1_9_3", + url = "https://crates.io/api/v1/crates/rayon-core/1.9.3/download", type = "tar.gz", - sha256 = "d43a209257d978ef079f3d446331d0f1794f5e0fc19b306a199983857833a779", - strip_prefix = "regalloc2-0.3.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.3.2.bazel"), + sha256 = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f", + strip_prefix = "rayon-core-1.9.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rayon-core-1.9.3.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__regalloc2__0_4_1", + url = "https://crates.io/api/v1/crates/regalloc2/0.4.1/download", + type = "tar.gz", + sha256 = "69025b4a161879ba90719837c06621c3d73cffa147a000aeacf458f6a9572485", + strip_prefix = "regalloc2-0.4.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.4.1.bazel"), ) maybe( @@ -613,6 +683,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.35.12.bazel"), ) + maybe( + http_archive, + name = "wasmtime__scopeguard__1_1_0", + url = "https://crates.io/api/v1/crates/scopeguard/1.1.0/download", + type = "tar.gz", + sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd", + strip_prefix = "scopeguard-1.1.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.scopeguard-1.1.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__serde__1_0_147", @@ -745,101 +825,101 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmparser__0_89_1", - url = "https://crates.io/api/v1/crates/wasmparser/0.89.1/download", + name = "wasmtime__wasmparser__0_92_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.92.0/download", type = "tar.gz", - sha256 = "ab5d3e08b13876f96dd55608d03cd4883a0545884932d5adf11925876c96daef", - strip_prefix = "wasmparser-0.89.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.89.1.bazel"), + sha256 = "7da34cec2a8c23db906cdf8b26e988d7a7f0d549eb5d51299129647af61a1b37", + strip_prefix = "wasmparser-0.92.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.92.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime/1.0.1/download", + name = "wasmtime__wasmtime__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime/2.0.0/download", type = "tar.gz", - sha256 = "f1f511c4917c83d04da68333921107db75747c4e11a2f654a8e909cc5e0520dc", - strip_prefix = "wasmtime-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-1.0.1.bazel"), + sha256 = "f5fc5bb3329415030796cfa5530b2481ccef5c4f1e5150733ba94318ab004fe1", + strip_prefix = "wasmtime-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-2.0.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_asm_macros__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/1.0.1/download", + name = "wasmtime__wasmtime_asm_macros__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/2.0.0/download", type = "tar.gz", - sha256 = "39bf3debfe744bf19dd3732990ce6f8c0ced7439e2370ba4e1d8f5a3660a3178", - strip_prefix = "wasmtime-asm-macros-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-1.0.1.bazel"), + sha256 = "db36545ff0940ad9bf4e9ab0ec2a4e1eaa5ebe2aa9227bcbc4af905375d9e482", + strip_prefix = "wasmtime-asm-macros-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-2.0.0.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "c63087ff668fbdffe326c7b48401acbbf0e82a65", + commit = "ff8c568eeed3918a5d591295e9384e2b1e462aae", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/1.0.1/download", + name = "wasmtime__wasmtime_cranelift__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/2.0.0/download", type = "tar.gz", - sha256 = "058217e28644b012bdcdf0e445f58d496d78c2e0b6a6dd93558e701591dad705", - strip_prefix = "wasmtime-cranelift-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-1.0.1.bazel"), + sha256 = "0409e93b5eceaa4e5f498a4bce1cffc7ebe071d14582b5437c10af4aecc23f54", + strip_prefix = "wasmtime-cranelift-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-2.0.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-environ/1.0.1/download", + name = "wasmtime__wasmtime_environ__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime-environ/2.0.0/download", type = "tar.gz", - sha256 = "c7af06848df28b7661471d9a80d30a973e0f401f2e3ed5396ad7e225ed217047", - strip_prefix = "wasmtime-environ-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-1.0.1.bazel"), + sha256 = "55240389c604f68d2e1d2573d7d3740246ab9ea2fa4fe79e10ccd51faf9b9500", + strip_prefix = "wasmtime-environ-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-2.0.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit/1.0.1/download", + name = "wasmtime__wasmtime_jit__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit/2.0.0/download", type = "tar.gz", - sha256 = "9028fb63a54185b3c192b7500ef8039c7bb8d7f62bfc9e7c258483a33a3d13bb", - strip_prefix = "wasmtime-jit-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-1.0.1.bazel"), + sha256 = "bc15e285b7073ee566e62ea4b6dd38b80465ade0ea8cd4cee13c7ac2e295cfca", + strip_prefix = "wasmtime-jit-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-2.0.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/1.0.1/download", + name = "wasmtime__wasmtime_jit_debug__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/2.0.0/download", type = "tar.gz", - sha256 = "25e82d4ef93296785de7efca92f7679dc67fe68a13b625a5ecc8d7503b377a37", - strip_prefix = "wasmtime-jit-debug-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-1.0.1.bazel"), + sha256 = "bee06d206bcf7a875eacd1e1e957c2a63f64a92934d2535dd8e15cde6d3a9ffe", + strip_prefix = "wasmtime-jit-debug-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-2.0.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/1.0.1/download", + name = "wasmtime__wasmtime_runtime__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/2.0.0/download", type = "tar.gz", - sha256 = "9f0e9bea7d517d114fe66b930b2124ee086516ee93eeebfd97f75f366c5b0553", - strip_prefix = "wasmtime-runtime-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-1.0.1.bazel"), + sha256 = "9969ff36cbf57f18c2d24679db57d0857ea7cc7d839534afc26ecc8003e9914b", + strip_prefix = "wasmtime-runtime-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-2.0.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__1_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-types/1.0.1/download", + name = "wasmtime__wasmtime_types__2_0_0", + url = "https://crates.io/api/v1/crates/wasmtime-types/2.0.0/download", type = "tar.gz", - sha256 = "69b83e93ed41b8fdc936244cfd5e455480cf1eca1fd60c78a0040038b4ce5075", - strip_prefix = "wasmtime-types-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-1.0.1.bazel"), + sha256 = "df64c737fc9b3cdf7617bcc65e8b97cb713ceb9c9c58530b20788a8a3482b5d1", + strip_prefix = "wasmtime-types-2.0.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-2.0.0.bazel"), ) maybe( diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.0.bazel index 46a1949b8..f827ae914 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.0.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.0.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.0.bazel index b6c31f175..c4739164f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.0.bazel @@ -58,11 +58,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.88.1", + version = "0.89.0", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_88_1//:cranelift_codegen_meta", - "@wasmtime__cranelift_isle__0_88_1//:cranelift_isle", + "@wasmtime__cranelift_codegen_meta__0_89_0//:cranelift_codegen_meta", + "@wasmtime__cranelift_isle__0_89_0//:cranelift_isle", ], ) @@ -88,18 +88,18 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", "@wasmtime__arrayvec__0_7_2//:arrayvec", "@wasmtime__bumpalo__3_11_1//:bumpalo", - "@wasmtime__cranelift_bforest__0_88_1//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_88_1//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_89_0//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_89_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regalloc2__0_3_2//:regalloc2", + "@wasmtime__regalloc2__0_4_1//:regalloc2", "@wasmtime__smallvec__1_10_0//:smallvec", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.0.bazel index 841e887cc..af4062f00 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.0.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_88_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_89_0//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.0.bazel index a72812ff9..343290887 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.0.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.0.bazel index 68f111f9b..61a9850e9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ "@wasmtime__serde__1_0_147//:serde", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.0.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.0.bazel index 5a851151b..804b82d2d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.0.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_10_0//:smallvec", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.0.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.0.bazel index db637a955..81b590ec2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.88.1", + version = "0.89.0", visibility = ["//visibility:private"], deps = [ ], @@ -78,10 +78,11 @@ rust_library( "crate-name=cranelift-isle", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ ":cranelift_isle_build_script", + "@wasmtime__rayon__1_5_3//:rayon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.0.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.0.bazel index f026dceae..b45ab3da2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.0.bazel @@ -51,10 +51,10 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.88.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.0.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.88.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.0.bazel index 3f377e198..88f54e925 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.88.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.0.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.88.1", + version = "0.89.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_88_1//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_89_0//:cranelift_frontend", "@wasmtime__itertools__0_10_5//:itertools", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__wasmparser__0_89_1//:wasmparser", - "@wasmtime__wasmtime_types__1_0_1//:wasmtime_types", + "@wasmtime__wasmparser__0_92_0//:wasmparser", + "@wasmtime__wasmtime_types__2_0_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel new file mode 100644 index 000000000..acc36b2bd --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel @@ -0,0 +1,95 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "crossbeam" with type "bench" omitted + +# Unsupported target "fibonacci" with type "example" omitted + +# Unsupported target "matching" with type "example" omitted + +# Unsupported target "stopwatch" with type "example" omitted + +rust_library( + name = "crossbeam_channel", + srcs = glob(["**/*.rs"]), + crate_features = [ + "crossbeam-utils", + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=crossbeam-channel", + "manual", + ], + version = "0.5.6", + # buildifier: leave-alone + deps = [ + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", + ], +) + +# Unsupported target "after" with type "test" omitted + +# Unsupported target "array" with type "test" omitted + +# Unsupported target "golang" with type "test" omitted + +# Unsupported target "iter" with type "test" omitted + +# Unsupported target "list" with type "test" omitted + +# Unsupported target "mpsc" with type "test" omitted + +# Unsupported target "never" with type "test" omitted + +# Unsupported target "ready" with type "test" omitted + +# Unsupported target "same_channel" with type "test" omitted + +# Unsupported target "select" with type "test" omitted + +# Unsupported target "select_macro" with type "test" omitted + +# Unsupported target "thread_locals" with type "test" omitted + +# Unsupported target "tick" with type "test" omitted + +# Unsupported target "zero" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-deque-0.8.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-deque-0.8.2.bazel new file mode 100644 index 000000000..84628cb82 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-deque-0.8.2.bazel @@ -0,0 +1,69 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "crossbeam_deque", + srcs = glob(["**/*.rs"]), + crate_features = [ + "crossbeam-epoch", + "crossbeam-utils", + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=crossbeam-deque", + "manual", + ], + version = "0.8.2", + # buildifier: leave-alone + deps = [ + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__crossbeam_epoch__0_9_11//:crossbeam_epoch", + "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", + ], +) + +# Unsupported target "fifo" with type "test" omitted + +# Unsupported target "injector" with type "test" omitted + +# Unsupported target "lifo" with type "test" omitted + +# Unsupported target "steal" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel new file mode 100644 index 000000000..976b8d026 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel @@ -0,0 +1,103 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "crossbeam_epoch_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "alloc", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.9.11", + visibility = ["//visibility:private"], + deps = [ + "@wasmtime__autocfg__1_1_0//:autocfg", + ], +) + +# Unsupported target "defer" with type "bench" omitted + +# Unsupported target "flush" with type "bench" omitted + +# Unsupported target "pin" with type "bench" omitted + +# Unsupported target "sanitize" with type "example" omitted + +rust_library( + name = "crossbeam_epoch", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=crossbeam-epoch", + "manual", + ], + version = "0.9.11", + # buildifier: leave-alone + deps = [ + ":crossbeam_epoch_build_script", + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", + "@wasmtime__memoffset__0_6_5//:memoffset", + "@wasmtime__scopeguard__1_1_0//:scopeguard", + ], +) + +# Unsupported target "loom" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-utils-0.8.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-utils-0.8.12.bazel new file mode 100644 index 000000000..4a6d4c685 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-utils-0.8.12.bazel @@ -0,0 +1,103 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "crossbeam_utils_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.8.12", + visibility = ["//visibility:private"], + deps = [ + ], +) + +# Unsupported target "atomic_cell" with type "bench" omitted + +rust_library( + name = "crossbeam_utils", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=crossbeam-utils", + "manual", + ], + version = "0.8.12", + # buildifier: leave-alone + deps = [ + ":crossbeam_utils_build_script", + "@wasmtime__cfg_if__1_0_0//:cfg_if", + ], +) + +# Unsupported target "atomic_cell" with type "test" omitted + +# Unsupported target "cache_padded" with type "test" omitted + +# Unsupported target "parker" with type "test" omitted + +# Unsupported target "sharded_lock" with type "test" omitted + +# Unsupported target "thread" with type "test" omitted + +# Unsupported target "wait_group" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel new file mode 100644 index 000000000..8898207f5 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel @@ -0,0 +1,83 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "values" with type "example" omitted + +rust_library( + name = "num_cpus", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=num_cpus", + "manual", + ], + version = "1.13.1", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@wasmtime__libc__0_2_137//:libc", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel new file mode 100644 index 000000000..ffc50f2e6 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel @@ -0,0 +1,118 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "rayon_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.5.3", + visibility = ["//visibility:private"], + deps = [ + "@wasmtime__autocfg__1_1_0//:autocfg", + ], +) + +# Unsupported target "cpu_monitor" with type "example" omitted + +rust_library( + name = "rayon", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=rayon", + "manual", + ], + version = "1.5.3", + # buildifier: leave-alone + deps = [ + ":rayon_build_script", + "@wasmtime__crossbeam_deque__0_8_2//:crossbeam_deque", + "@wasmtime__either__1_8_0//:either", + "@wasmtime__rayon_core__1_9_3//:rayon_core", + ], +) + +# Unsupported target "chars" with type "test" omitted + +# Unsupported target "clones" with type "test" omitted + +# Unsupported target "collect" with type "test" omitted + +# Unsupported target "cross-pool" with type "test" omitted + +# Unsupported target "debug" with type "test" omitted + +# Unsupported target "intersperse" with type "test" omitted + +# Unsupported target "issue671" with type "test" omitted + +# Unsupported target "issue671-unzip" with type "test" omitted + +# Unsupported target "iter_panic" with type "test" omitted + +# Unsupported target "named-threads" with type "test" omitted + +# Unsupported target "octillion" with type "test" omitted + +# Unsupported target "producer_split_at" with type "test" omitted + +# Unsupported target "sort-panic-safe" with type "test" omitted + +# Unsupported target "str" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel new file mode 100644 index 000000000..3ba1a872d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel @@ -0,0 +1,101 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "rayon_core_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + links = "rayon-core", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.9.3", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "rayon_core", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=rayon-core", + "manual", + ], + version = "1.9.3", + # buildifier: leave-alone + deps = [ + ":rayon_core_build_script", + "@wasmtime__crossbeam_channel__0_5_6//:crossbeam_channel", + "@wasmtime__crossbeam_deque__0_8_2//:crossbeam_deque", + "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", + "@wasmtime__num_cpus__1_13_1//:num_cpus", + ], +) + +# Unsupported target "double_init_fail" with type "test" omitted + +# Unsupported target "init_zero_threads" with type "test" omitted + +# Unsupported target "scope_join" with type "test" omitted + +# Unsupported target "scoped_threadpool" with type "test" omitted + +# Unsupported target "simple_panic" with type "test" omitted + +# Unsupported target "stack_overflow_crash" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.1.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.1.bazel index 54f6a85c1..0ecc1045d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=regalloc2", "manual", ], - version = "0.3.2", + version = "0.4.1", # buildifier: leave-alone deps = [ "@wasmtime__fxhash__0_2_1//:fxhash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel new file mode 100644 index 000000000..7b2581e74 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "readme" with type "example" omitted + +rust_library( + name = "scopeguard", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=scopeguard", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel index 66f5032e4..a5ff1f07e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel @@ -37,6 +37,7 @@ rust_library( name = "smallvec", srcs = glob(["**/*.rs"]), crate_features = [ + "union", ], crate_root = "src/lib.rs", data = [], diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel index e617fce82..b8857c7fc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel @@ -43,7 +43,6 @@ cargo_build_script( build_script_env = { }, crate_features = [ - "default", ], crate_root = "build.rs", data = glob(["**"]), @@ -69,7 +68,6 @@ rust_library( name = "target_lexicon", srcs = glob(["**/*.rs"]), crate_features = [ - "default", ], crate_root = "src/lib.rs", data = [], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.89.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.89.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel index 4e5a56f14..d38aad0af 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.89.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel @@ -51,7 +51,7 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.89.1", + version = "0.92.0", # buildifier: leave-alone deps = [ "@wasmtime__indexmap__1_9_1//:indexmap", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.0.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.0.bazel index 4f1ffad3c..249f642a1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.1", + version = "2.0.0", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -92,7 +92,7 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ ":wasmtime_build_script", @@ -107,11 +107,11 @@ rust_library( "@wasmtime__psm__0_1_21//:psm", "@wasmtime__serde__1_0_147//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", - "@wasmtime__wasmparser__0_89_1//:wasmparser", - "@wasmtime__wasmtime_cranelift__1_0_1//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit__1_0_1//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__1_0_1//:wasmtime_runtime", + "@wasmtime__wasmparser__0_92_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__2_0_0//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", + "@wasmtime__wasmtime_jit__2_0_0//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__2_0_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.0.bazel index 4bfabe328..3323015dd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.0.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=wasmtime-asm-macros", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.0.bazel similarity index 74% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.0.bazel index c256f9b4d..c9ac3cdc8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.0.bazel @@ -47,21 +47,21 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_66//:anyhow", - "@wasmtime__cranelift_codegen__0_88_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_88_1//:cranelift_frontend", - "@wasmtime__cranelift_native__0_88_1//:cranelift_native", - "@wasmtime__cranelift_wasm__0_88_1//:cranelift_wasm", + "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_89_0//:cranelift_frontend", + "@wasmtime__cranelift_native__0_89_0//:cranelift_native", + "@wasmtime__cranelift_wasm__0_89_0//:cranelift_wasm", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_29_0//:object", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmparser__0_89_1//:wasmparser", - "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", + "@wasmtime__wasmparser__0_92_0//:wasmparser", + "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.0.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.0.bazel index e1d4a419f..71d5f5afd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.0.bazel @@ -49,11 +49,11 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_66//:anyhow", - "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__indexmap__1_9_1//:indexmap", "@wasmtime__log__0_4_17//:log", @@ -61,7 +61,7 @@ rust_library( "@wasmtime__serde__1_0_147//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmparser__0_89_1//:wasmparser", - "@wasmtime__wasmtime_types__1_0_1//:wasmtime_types", + "@wasmtime__wasmparser__0_92_0//:wasmparser", + "@wasmtime__wasmtime_types__2_0_0//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.0.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.0.bazel index 5090f08d7..62c01e9ae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", @@ -64,8 +64,8 @@ rust_library( "@wasmtime__serde__1_0_147//:serde", "@wasmtime__target_lexicon__0_12_4//:target_lexicon", "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__1_0_1//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__2_0_0//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.0.bazel index 083ccc090..8e94de7da 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ "@wasmtime__once_cell__1_15_0//:once_cell", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.0.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.0.bazel index 622c36567..290a50237 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.1", + version = "2.0.0", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_73//:cc", @@ -122,7 +122,7 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", @@ -134,9 +134,9 @@ rust_library( "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__rand__0_8_5//:rand", "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmtime_asm_macros__1_0_1//:wasmtime_asm_macros", - "@wasmtime__wasmtime_environ__1_0_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__1_0_1//:wasmtime_jit_debug", + "@wasmtime__wasmtime_asm_macros__2_0_0//:wasmtime_asm_macros", + "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__2_0_0//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.0.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-1.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.0.bazel index 126c01c6f..862142e98 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-1.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.0.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "1.0.1", + version = "2.0.0", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_88_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", "@wasmtime__serde__1_0_147//:serde", "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmparser__0_89_1//:wasmparser", + "@wasmtime__wasmparser__0_92_0//:wasmparser", ], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 15032f40b..2d5bb9e1a 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -192,9 +192,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "41e8d4916229f613e647bd20b6c1def0d04719c2bc0534bc29e3ba0cac317200", - strip_prefix = "wasmtime-1.0.1", - url = "https://github.com/bytecodealliance/wasmtime/archive/v1.0.1.tar.gz", + sha256 = "5c1b721614196865a949c612851401073ef6aed9820172113c935e48ac6bcd62", + strip_prefix = "wasmtime-2.0.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v2.0.0.tar.gz", ) maybe( From d73a0246dcb8d3f68175fd83fbe636d452ab748c Mon Sep 17 00:00:00 2001 From: Yi-Ying He Date: Sat, 19 Nov 2022 05:22:55 +0800 Subject: [PATCH 226/287] wasmedge: update to v0.11.2. (#318) Signed-off-by: YiYing He --- .github/workflows/test.yml | 6 ++++++ BUILD | 13 +++++++++---- bazel/external/wasmedge.BUILD | 2 +- bazel/repositories.bzl | 6 +++--- src/wasmedge/wasmedge.cc | 4 ++-- 5 files changed, 21 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ed6ca714..bee94b318 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -187,6 +187,12 @@ jobs: arch: x86_64 action: test flags: --config=clang + - name: 'WasmEdge on macOS/x86_64' + engine: 'wasmedge' + repo: 'com_github_wasmedge_wasmedge' + os: macos-11 + arch: x86_64 + action: test - name: 'Wasmtime on Linux/x86_64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' diff --git a/BUILD b/BUILD index 46edf1d1c..8d7c5b915 100644 --- a/BUILD +++ b/BUILD @@ -150,10 +150,15 @@ cc_library( "PROXY_WASM_HAS_RUNTIME_WASMEDGE", "PROXY_WASM_HOST_ENGINE_WASMEDGE", ], - linkopts = [ - "-lrt", - "-ldl", - ], + linkopts = select({ + "@platforms//os:macos": [ + "-ldl", + ], + "//conditions:default": [ + "-lrt", + "-ldl", + ], + }), deps = [ ":wasm_vm_headers", "//external:wasmedge", diff --git a/bazel/external/wasmedge.BUILD b/bazel/external/wasmedge.BUILD index 9887a4280..1869bf969 100644 --- a/bazel/external/wasmedge.BUILD +++ b/bazel/external/wasmedge.BUILD @@ -20,5 +20,5 @@ cmake( }, generate_args = ["-GNinja"], lib_source = ":srcs", - out_static_libs = ["libwasmedge_c.a"], + out_static_libs = ["libwasmedge.a"], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 2d5bb9e1a..1299ce960 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -176,9 +176,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_wasmedge_wasmedge", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmedge.BUILD", - sha256 = "4cff44e8c805ed4364d326ff1dd40e3aeb21ba1a11388372386eea1ccc7f93dd", - strip_prefix = "WasmEdge-proxy-wasm-0.10.0", - url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.10.0.tar.gz", + sha256 = "65d95e5f83d25ab09fa9a29369f578838e8a519fb170704d0f5896187364429b", + strip_prefix = "WasmEdge-proxy-wasm-0.11.2", + url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.11.2.tar.gz", ) native.bind( diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc index 89813096f..38b8a9c9c 100644 --- a/src/wasmedge/wasmedge.cc +++ b/src/wasmedge/wasmedge.cc @@ -417,7 +417,7 @@ void WasmEdge::registerHostFunctionImpl(std::string_view module_name, auto *func_type = newWasmEdgeFuncType>(); data->vm_ = this; data->raw_func_ = reinterpret_cast(function); - data->callback_ = [](void *data, WasmEdge_MemoryInstanceContext * /*MemCxt*/, + data->callback_ = [](void *data, const WasmEdge_CallingFrameContext * /*CallFrameCxt*/, const WasmEdge_Value *Params, WasmEdge_Value * /*Returns*/) -> WasmEdge_Result { auto *func_data = reinterpret_cast(data); @@ -464,7 +464,7 @@ void WasmEdge::registerHostFunctionImpl(std::string_view module_name, auto *func_type = newWasmEdgeFuncType>(); data->vm_ = this; data->raw_func_ = reinterpret_cast(function); - data->callback_ = [](void *data, WasmEdge_MemoryInstanceContext * /*MemCxt*/, + data->callback_ = [](void *data, const WasmEdge_CallingFrameContext * /*CallFrameCxt*/, const WasmEdge_Value *Params, WasmEdge_Value *Returns) -> WasmEdge_Result { auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); From 946c232195692baa543ede7049c4b3ed400a9e77 Mon Sep 17 00:00:00 2001 From: phlax Date: Mon, 21 Nov 2022 21:16:28 +0000 Subject: [PATCH 227/287] Add license headers to BUILD files. (#320) Signed-off-by: Ryan Northey --- BUILD | 14 ++++++++++++++ bazel/BUILD | 14 ++++++++++++++ bazel/external/BUILD | 13 +++++++++++++ test/BUILD | 14 ++++++++++++++ test/fuzz/BUILD | 14 ++++++++++++++ test/test_data/BUILD | 14 ++++++++++++++ 6 files changed, 83 insertions(+) diff --git a/BUILD b/BUILD index 8d7c5b915..69c9bdae5 100644 --- a/BUILD +++ b/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_library") load( "@proxy_wasm_cpp_host//bazel:select.bzl", diff --git a/bazel/BUILD b/bazel/BUILD index 39f25a630..4a83aa444 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@bazel_skylib//lib:selects.bzl", "selects") package(default_visibility = ["//visibility:public"]) diff --git a/bazel/external/BUILD b/bazel/external/BUILD index e69de29bb..6d6d1266c 100644 --- a/bazel/external/BUILD +++ b/bazel/external/BUILD @@ -0,0 +1,13 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/test/BUILD b/test/BUILD index aa99c0f35..a922bbfbc 100644 --- a/test/BUILD +++ b/test/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@proxy_wasm_cpp_host//bazel:select.bzl", "proxy_wasm_select_engine_null") load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") diff --git a/test/fuzz/BUILD b/test/fuzz/BUILD index 4c069bcf1..71b099007 100644 --- a/test/fuzz/BUILD +++ b/test/fuzz/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test") licenses(["notice"]) # Apache 2 diff --git a/test/test_data/BUILD b/test/test_data/BUILD index 38612ca15..d730b4bfc 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -1,3 +1,17 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@proxy_wasm_cpp_host//bazel:wasm.bzl", "wasm_rust_binary") load("@proxy_wasm_cpp_sdk//bazel:defs.bzl", "proxy_wasm_cc_binary") From 624ef2edac2cdc086e0339f36b32ef1a2ed7e270 Mon Sep 17 00:00:00 2001 From: phlax Date: Tue, 22 Nov 2022 19:26:02 +0000 Subject: [PATCH 228/287] wasmtime: update to v2.0.2. (#319) Signed-off-by: Ryan Northey --- bazel/cargo/wasmtime/BUILD.bazel | 6 +- bazel/cargo/wasmtime/Cargo.raze.lock | 277 +++++------ bazel/cargo/wasmtime/Cargo.toml | 8 +- bazel/cargo/wasmtime/crates.bzl | 442 +++++++++--------- .../wasmtime/remote/BUILD.ahash-0.7.6.bazel | 2 +- ....cc-1.0.73.bazel => BUILD.cc-1.0.77.bazel} | 4 +- ...l => BUILD.cranelift-bforest-0.89.2.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.89.2.bazel} | 18 +- ...BUILD.cranelift-codegen-meta-0.89.2.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.89.2.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.89.2.bazel} | 2 +- ... => BUILD.cranelift-frontend-0.89.2.bazel} | 6 +- ...azel => BUILD.cranelift-isle-0.89.2.bazel} | 5 +- ...el => BUILD.cranelift-native-0.89.2.bazel} | 6 +- ...azel => BUILD.cranelift-wasm-0.89.2.bazel} | 10 +- .../BUILD.crossbeam-channel-0.5.6.bazel | 95 ---- .../remote/BUILD.crossbeam-epoch-0.9.11.bazel | 103 ---- ...9.1.bazel => BUILD.env_logger-0.9.3.bazel} | 4 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- .../wasmtime/remote/BUILD.gimli-0.26.2.bazel | 2 +- ...1.9.1.bazel => BUILD.indexmap-1.9.2.bazel} | 4 +- ...4.bazel => BUILD.io-lifetimes-0.7.5.bazel} | 4 +- .../remote/BUILD.num_cpus-1.13.1.bazel | 83 ---- .../wasmtime/remote/BUILD.object-0.29.0.bazel | 2 +- ...5.0.bazel => BUILD.once_cell-1.16.0.bazel} | 2 +- ...16.bazel => BUILD.ppv-lite86-0.2.17.bazel} | 2 +- .../wasmtime/remote/BUILD.psm-0.1.21.bazel | 2 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 2 +- .../wasmtime/remote/BUILD.rayon-1.5.3.bazel | 118 ----- .../remote/BUILD.rayon-core-1.9.3.bazel | 101 ---- ....4.1.bazel => BUILD.regalloc2-0.4.2.bazel} | 2 +- ...ex-1.6.0.bazel => BUILD.regex-1.7.0.bazel} | 4 +- ....bazel => BUILD.regex-syntax-0.6.28.bazel} | 2 +- ...35.12.bazel => BUILD.rustix-0.35.13.bazel} | 10 +- .../remote/BUILD.scopeguard-1.1.0.bazel | 56 --- ...azel => BUILD.target-lexicon-0.12.5.bazel} | 4 +- .../remote/BUILD.wasmparser-0.92.0.bazel | 2 +- ...2.0.0.bazel => BUILD.wasmtime-2.0.2.bazel} | 18 +- ... => BUILD.wasmtime-asm-macros-2.0.2.bazel} | 2 +- ...l => BUILD.wasmtime-cranelift-2.0.2.bazel} | 16 +- ...zel => BUILD.wasmtime-environ-2.0.2.bazel} | 10 +- ...0.bazel => BUILD.wasmtime-jit-2.0.2.bazel} | 10 +- ...l => BUILD.wasmtime-jit-debug-2.0.2.bazel} | 4 +- ...zel => BUILD.wasmtime-runtime-2.0.2.bazel} | 16 +- ...bazel => BUILD.wasmtime-types-2.0.2.bazel} | 4 +- .../remote/BUILD.windows-sys-0.36.1.bazel | 5 - ...2.bazel => BUILD.windows-sys-0.42.0.bazel} | 48 +- ...UILD.windows_aarch64_gnullvm-0.42.0.bazel} | 31 +- .../BUILD.windows_aarch64_msvc-0.42.0.bazel | 84 ++++ .../BUILD.windows_i686_gnu-0.42.0.bazel | 84 ++++ .../BUILD.windows_i686_msvc-0.42.0.bazel | 84 ++++ .../BUILD.windows_x86_64_gnu-0.42.0.bazel | 84 ++++ .../BUILD.windows_x86_64_gnullvm-0.42.0.bazel | 84 ++++ .../BUILD.windows_x86_64_msvc-0.42.0.bazel | 84 ++++ bazel/repositories.bzl | 6 +- 55 files changed, 991 insertions(+), 1085 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.cc-1.0.73.bazel => BUILD.cc-1.0.77.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.89.0.bazel => BUILD.cranelift-bforest-0.89.2.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.89.0.bazel => BUILD.cranelift-codegen-0.89.2.bazel} (81%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.89.0.bazel => BUILD.cranelift-codegen-meta-0.89.2.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.89.0.bazel => BUILD.cranelift-codegen-shared-0.89.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.89.0.bazel => BUILD.cranelift-entity-0.89.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.89.0.bazel => BUILD.cranelift-frontend-0.89.2.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-isle-0.89.0.bazel => BUILD.cranelift-isle-0.89.2.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.89.0.bazel => BUILD.cranelift-native-0.89.2.bazel} (90%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.89.0.bazel => BUILD.cranelift-wasm-0.89.2.bazel} (83%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel rename bazel/cargo/wasmtime/remote/{BUILD.env_logger-0.9.1.bazel => BUILD.env_logger-0.9.3.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.indexmap-1.9.1.bazel => BUILD.indexmap-1.9.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.io-lifetimes-0.7.4.bazel => BUILD.io-lifetimes-0.7.5.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.once_cell-1.15.0.bazel => BUILD.once_cell-1.16.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.ppv-lite86-0.2.16.bazel => BUILD.ppv-lite86-0.2.17.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.regalloc2-0.4.1.bazel => BUILD.regalloc2-0.4.2.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-1.6.0.bazel => BUILD.regex-1.7.0.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-syntax-0.6.27.bazel => BUILD.regex-syntax-0.6.28.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.35.12.bazel => BUILD.rustix-0.35.13.bazel} (93%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.target-lexicon-0.12.4.bazel => BUILD.target-lexicon-0.12.5.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-2.0.0.bazel => BUILD.wasmtime-2.0.2.bazel} (86%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-asm-macros-2.0.0.bazel => BUILD.wasmtime-asm-macros-2.0.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-2.0.0.bazel => BUILD.wasmtime-cranelift-2.0.2.bazel} (74%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-2.0.0.bazel => BUILD.wasmtime-environ-2.0.2.bazel} (84%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-2.0.0.bazel => BUILD.wasmtime-jit-2.0.2.bazel} (90%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-2.0.0.bazel => BUILD.wasmtime-jit-debug-2.0.2.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-2.0.0.bazel => BUILD.wasmtime-runtime-2.0.2.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-2.0.0.bazel => BUILD.wasmtime-types-2.0.2.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.crossbeam-deque-0.8.2.bazel => BUILD.windows-sys-0.42.0.bazel} (52%) rename bazel/cargo/wasmtime/remote/{BUILD.crossbeam-utils-0.8.12.bazel => BUILD.windows_aarch64_gnullvm-0.42.0.bazel} (67%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index a239b0bb0..b06ef02d7 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@wasmtime__env_logger__0_9_1//:env_logger", + actual = "@wasmtime__env_logger__0_9_3//:env_logger", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@wasmtime__once_cell__1_15_0//:once_cell", + actual = "@wasmtime__once_cell__1_16_0//:once_cell", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__2_0_0//:wasmtime", + actual = "@wasmtime__wasmtime__2_0_2//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 871dc72f5..5c21f6d55 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -87,9 +87,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "cc" -version = "1.0.73" +version = "1.0.77" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11" +checksum = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4" [[package]] name = "cfg-if" @@ -108,18 +108,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be5e1ee4c22871d24a95196ea7047d58c1d978e46c88037d3d397b3b3e0af360" +checksum = "593b398dd0c5b1e2e3a9c3dae8584e287894ea84e361949ad506376e99196265" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70f600a52d59eed56a85f33750873b3b42d61e35ca777cd792369893f9e1f9dd" +checksum = "afc0d8faabd099ea15ab33d49d150e5572c04cfeb95d675fd41286739b754629" dependencies = [ "arrayvec", "bumpalo", @@ -137,33 +137,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e8418218d0953d73e9b96e9d9ffec56145efa4f18988251530b5872ae4410563" +checksum = "1ac1669e42579476f001571d6ba4b825fac686282c97b88b18f8e34242066a81" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f01be0cfd40aba59153236ab4b99062131b5bbe6f9f3d4bcb238bd2f96ff5262" +checksum = "e2a1b1eef9640ab72c1e7b583ac678083855a509da34b4b4378bd99954127c20" [[package]] name = "cranelift-entity" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddae4fec5d6859233ffa175b61d269443c473b3971a2c3e69008c8d3e83d5825" +checksum = "eea4e17c3791fd8134640b26242a9ddbd7c67db78f0bad98cb778bf563ef81a0" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2cc3deb0df97748434cf9f7e404f1f5134f6a253fc9a6bca25c5cd6804c08d3" +checksum = "fca1474b5302348799656d43a40eacd716a3b46169405a3af812832c9edf77b4" dependencies = [ "cranelift-codegen", "log", @@ -173,18 +173,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc3bb54287de9c36ba354eb849fefb77b5e73955058745fd08f12cfdfa181866" -dependencies = [ - "rayon", -] +checksum = "77aa537f020ea43483100153278e7215d41695bdcef9eea6642d122675f64249" [[package]] name = "cranelift-native" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d8c2a4f2efdce1de1f94e74f12b3b4144e3bcafa6011338b87388325d72d2120" +checksum = "8bdc6b65241a95b7d8eafbf4e114c082e49b80162a2dcd9c6bcc5989c3310c9e" dependencies = [ "cranelift-codegen", "libc", @@ -193,9 +190,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.89.0" +version = "0.89.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f918c37eb01f5b5ccc632e0ef3b4bf9ee03b5d4c267d3d2d3b62720a6bce0180" +checksum = "4eb6359f606a1c80ccaa04fae9dbbb504615ec7a49b6c212b341080fff7a65dd" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -216,49 +213,6 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "crossbeam-channel" -version = "0.5.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521" -dependencies = [ - "cfg-if", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-deque" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc" -dependencies = [ - "cfg-if", - "crossbeam-epoch", - "crossbeam-utils", -] - -[[package]] -name = "crossbeam-epoch" -version = "0.9.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348" -dependencies = [ - "autocfg", - "cfg-if", - "crossbeam-utils", - "memoffset", - "scopeguard", -] - -[[package]] -name = "crossbeam-utils" -version = "0.8.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac" -dependencies = [ - "cfg-if", -] - [[package]] name = "either" version = "1.8.0" @@ -267,9 +221,9 @@ checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" [[package]] name = "env_logger" -version = "0.9.1" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272" +checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" dependencies = [ "atty", "humantime", @@ -362,9 +316,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "indexmap" -version = "1.9.1" +version = "1.9.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e" +checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" dependencies = [ "autocfg", "hashbrown", @@ -373,9 +327,9 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "0.7.4" +version = "0.7.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6e481ccbe3dea62107216d0d1138bb8ad8e5e5c43009a098bd1990272c497b0" +checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074" [[package]] name = "itertools" @@ -431,16 +385,6 @@ dependencies = [ "autocfg", ] -[[package]] -name = "num_cpus" -version = "1.13.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1" -dependencies = [ - "hermit-abi", - "libc", -] - [[package]] name = "object" version = "0.29.0" @@ -455,9 +399,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1" +checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" [[package]] name = "paste" @@ -467,9 +411,9 @@ checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1" [[package]] name = "ppv-lite86" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "proc-macro2" @@ -528,35 +472,11 @@ dependencies = [ "getrandom", ] -[[package]] -name = "rayon" -version = "1.5.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d" -dependencies = [ - "autocfg", - "crossbeam-deque", - "either", - "rayon-core", -] - -[[package]] -name = "rayon-core" -version = "1.9.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f" -dependencies = [ - "crossbeam-channel", - "crossbeam-deque", - "crossbeam-utils", - "num_cpus", -] - [[package]] name = "regalloc2" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69025b4a161879ba90719837c06621c3d73cffa147a000aeacf458f6a9572485" +checksum = "91b2eab54204ea0117fe9a060537e0b07a4e72f7c7d182361ecc346cab2240e5" dependencies = [ "fxhash", "log", @@ -566,9 +486,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.6.0" +version = "1.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b" +checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" dependencies = [ "aho-corasick", "memchr", @@ -577,9 +497,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.27" +version = "0.6.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244" +checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" [[package]] name = "rustc-demangle" @@ -589,24 +509,18 @@ checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" [[package]] name = "rustix" -version = "0.35.12" +version = "0.35.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "985947f9b6423159c4726323f373be0a21bdb514c5af06a849cb3d2dce2d01e8" +checksum = "727a1a6d65f786ec22df8a81ca3121107f235970dc1705ed681d3e6e8b9cd5f9" dependencies = [ "bitflags", "errno", "io-lifetimes", "libc", "linux-raw-sys", - "windows-sys", + "windows-sys 0.42.0", ] -[[package]] -name = "scopeguard" -version = "1.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" - [[package]] name = "serde" version = "1.0.147" @@ -658,9 +572,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.4" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c02424087780c9b71cc96799eaeddff35af2bc513278cda5c99fc1f5d026d3c1" +checksum = "9410d0f6853b1d94f0e519fb95df60f29d2c1eff2d921ffdf01a4c8a3b54f12d" [[package]] name = "termcolor" @@ -720,9 +634,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5fc5bb3329415030796cfa5530b2481ccef5c4f1e5150733ba94318ab004fe1" +checksum = "743d37c265fa134a76de653c7e66be22590eaccd03da13cee99f3ac7a59cb826" dependencies = [ "anyhow", "bincode", @@ -741,21 +655,21 @@ dependencies = [ "wasmtime-environ", "wasmtime-jit", "wasmtime-runtime", - "windows-sys", + "windows-sys 0.36.1", ] [[package]] name = "wasmtime-asm-macros" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "db36545ff0940ad9bf4e9ab0ec2a4e1eaa5ebe2aa9227bcbc4af905375d9e482" +checksum = "de327cf46d5218315957138131ed904621e6f99018aa2da508c0dcf0c65f1bf2" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-c-api-bazel" -version = "2.0.0" +version = "2.0.2" dependencies = [ "anyhow", "env_logger", @@ -767,7 +681,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v2.0.0#ff8c568eeed3918a5d591295e9384e2b1e462aae" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v2.0.2#a528e0383e1177119a6c985dac1972513df11a03" dependencies = [ "proc-macro2", "quote", @@ -775,9 +689,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0409e93b5eceaa4e5f498a4bce1cffc7ebe071d14582b5437c10af4aecc23f54" +checksum = "017c3605ccce867b3ba7f71d95e5652acc22b9dc2971ad6a6f9df4a8d7af2648" dependencies = [ "anyhow", "cranelift-codegen", @@ -796,9 +710,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "55240389c604f68d2e1d2573d7d3740246ab9ea2fa4fe79e10ccd51faf9b9500" +checksum = "6aec5c1f81aab9bb35997113c171b6bb9093afc90e3757c55e0c08dc9ac612e4" dependencies = [ "anyhow", "cranelift-entity", @@ -815,9 +729,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc15e285b7073ee566e62ea4b6dd38b80465ade0ea8cd4cee13c7ac2e295cfca" +checksum = "08c683893dbba3986aa71582a5332b87157fb95d34098de2e5f077c7f078726d" dependencies = [ "addr2line", "anyhow", @@ -834,23 +748,23 @@ dependencies = [ "thiserror", "wasmtime-environ", "wasmtime-runtime", - "windows-sys", + "windows-sys 0.36.1", ] [[package]] name = "wasmtime-jit-debug" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bee06d206bcf7a875eacd1e1e957c2a63f64a92934d2535dd8e15cde6d3a9ffe" +checksum = "b2f8f15a81292eec468c79a4f887a37a3d02eb0c610f34ddbec607d3e9022f18" dependencies = [ "once_cell", ] [[package]] name = "wasmtime-runtime" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9969ff36cbf57f18c2d24679db57d0857ea7cc7d839534afc26ecc8003e9914b" +checksum = "09af6238c962e8220424c815a7b1a9a6d0ba0694f0ab0ae12a6cda1923935a0d" dependencies = [ "anyhow", "cc", @@ -867,14 +781,14 @@ dependencies = [ "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", - "windows-sys", + "windows-sys 0.36.1", ] [[package]] name = "wasmtime-types" -version = "2.0.0" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "df64c737fc9b3cdf7617bcc65e8b97cb713ceb9c9c58530b20788a8a3482b5d1" +checksum = "5dc3dd9521815984b35d6362f79e6b9c72475027cd1c71c44eb8df8fbf33a9fb" dependencies = [ "cranelift-entity", "serde", @@ -919,39 +833,96 @@ version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" dependencies = [ - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_msvc", + "windows_aarch64_msvc 0.36.1", + "windows_i686_gnu 0.36.1", + "windows_i686_msvc 0.36.1", + "windows_x86_64_gnu 0.36.1", + "windows_x86_64_msvc 0.36.1", ] +[[package]] +name = "windows-sys" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc 0.42.0", + "windows_i686_gnu 0.42.0", + "windows_i686_msvc 0.42.0", + "windows_x86_64_gnu 0.42.0", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc 0.42.0", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" + [[package]] name = "windows_aarch64_msvc" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" +[[package]] +name = "windows_aarch64_msvc" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" + [[package]] name = "windows_i686_gnu" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" +[[package]] +name = "windows_i686_gnu" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" + [[package]] name = "windows_i686_msvc" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" +[[package]] +name = "windows_i686_msvc" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" + [[package]] name = "windows_x86_64_gnu" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" +[[package]] +name = "windows_x86_64_gnu" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" + [[package]] name = "windows_x86_64_msvc" version = "0.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.42.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 8b5b4c47e..aeb869b3a 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2018" name = "wasmtime-c-api-bazel" -version = "2.0.0" +version = "2.0.2" [lib] path = "fake_lib.rs" @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.9" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "2.0.0", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v2.0.0"} +wasmtime = {version = "2.0.2", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v2.0.2"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" @@ -37,5 +37,5 @@ additional_flags = [ "--cfg=feature=\\\"cc\\\"", ] buildrs_additional_deps = [ - "@wasmtime__cc__1_0_73//:cc", + "@wasmtime__cc__1_0_77//:cc", ] diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index b5fc80ebd..26949685a 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -129,12 +129,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cc__1_0_73", - url = "https://crates.io/api/v1/crates/cc/1.0.73/download", + name = "wasmtime__cc__1_0_77", + url = "https://crates.io/api/v1/crates/cc/1.0.77/download", type = "tar.gz", - sha256 = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11", - strip_prefix = "cc-1.0.73", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.73.bazel"), + sha256 = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4", + strip_prefix = "cc-1.0.77", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.77.bazel"), ) maybe( @@ -159,98 +159,98 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.89.0/download", + name = "wasmtime__cranelift_bforest__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.89.2/download", type = "tar.gz", - sha256 = "be5e1ee4c22871d24a95196ea7047d58c1d978e46c88037d3d397b3b3e0af360", - strip_prefix = "cranelift-bforest-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.89.0.bazel"), + sha256 = "593b398dd0c5b1e2e3a9c3dae8584e287894ea84e361949ad506376e99196265", + strip_prefix = "cranelift-bforest-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.89.0/download", + name = "wasmtime__cranelift_codegen__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.89.2/download", type = "tar.gz", - sha256 = "70f600a52d59eed56a85f33750873b3b42d61e35ca777cd792369893f9e1f9dd", - strip_prefix = "cranelift-codegen-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.89.0.bazel"), + sha256 = "afc0d8faabd099ea15ab33d49d150e5572c04cfeb95d675fd41286739b754629", + strip_prefix = "cranelift-codegen-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.89.0/download", + name = "wasmtime__cranelift_codegen_meta__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.89.2/download", type = "tar.gz", - sha256 = "e8418218d0953d73e9b96e9d9ffec56145efa4f18988251530b5872ae4410563", - strip_prefix = "cranelift-codegen-meta-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.89.0.bazel"), + sha256 = "1ac1669e42579476f001571d6ba4b825fac686282c97b88b18f8e34242066a81", + strip_prefix = "cranelift-codegen-meta-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.89.0/download", + name = "wasmtime__cranelift_codegen_shared__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.89.2/download", type = "tar.gz", - sha256 = "f01be0cfd40aba59153236ab4b99062131b5bbe6f9f3d4bcb238bd2f96ff5262", - strip_prefix = "cranelift-codegen-shared-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.89.0.bazel"), + sha256 = "e2a1b1eef9640ab72c1e7b583ac678083855a509da34b4b4378bd99954127c20", + strip_prefix = "cranelift-codegen-shared-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.89.0/download", + name = "wasmtime__cranelift_entity__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.89.2/download", type = "tar.gz", - sha256 = "ddae4fec5d6859233ffa175b61d269443c473b3971a2c3e69008c8d3e83d5825", - strip_prefix = "cranelift-entity-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.89.0.bazel"), + sha256 = "eea4e17c3791fd8134640b26242a9ddbd7c67db78f0bad98cb778bf563ef81a0", + strip_prefix = "cranelift-entity-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.89.0/download", + name = "wasmtime__cranelift_frontend__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.89.2/download", type = "tar.gz", - sha256 = "f2cc3deb0df97748434cf9f7e404f1f5134f6a253fc9a6bca25c5cd6804c08d3", - strip_prefix = "cranelift-frontend-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.89.0.bazel"), + sha256 = "fca1474b5302348799656d43a40eacd716a3b46169405a3af812832c9edf77b4", + strip_prefix = "cranelift-frontend-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_isle__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-isle/0.89.0/download", + name = "wasmtime__cranelift_isle__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-isle/0.89.2/download", type = "tar.gz", - sha256 = "fc3bb54287de9c36ba354eb849fefb77b5e73955058745fd08f12cfdfa181866", - strip_prefix = "cranelift-isle-0.89.0", + sha256 = "77aa537f020ea43483100153278e7215d41695bdcef9eea6642d122675f64249", + strip_prefix = "cranelift-isle-0.89.2", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", ], patch_args = [ "-p4", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.89.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-native/0.89.0/download", + name = "wasmtime__cranelift_native__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-native/0.89.2/download", type = "tar.gz", - sha256 = "d8c2a4f2efdce1de1f94e74f12b3b4144e3bcafa6011338b87388325d72d2120", - strip_prefix = "cranelift-native-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.89.0.bazel"), + sha256 = "8bdc6b65241a95b7d8eafbf4e114c082e49b80162a2dcd9c6bcc5989c3310c9e", + strip_prefix = "cranelift-native-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.89.2.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_89_0", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.89.0/download", + name = "wasmtime__cranelift_wasm__0_89_2", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.89.2/download", type = "tar.gz", - sha256 = "f918c37eb01f5b5ccc632e0ef3b4bf9ee03b5d4c267d3d2d3b62720a6bce0180", - strip_prefix = "cranelift-wasm-0.89.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.89.0.bazel"), + sha256 = "4eb6359f606a1c80ccaa04fae9dbbb504615ec7a49b6c212b341080fff7a65dd", + strip_prefix = "cranelift-wasm-0.89.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.89.2.bazel"), ) maybe( @@ -263,46 +263,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.3.2.bazel"), ) - maybe( - http_archive, - name = "wasmtime__crossbeam_channel__0_5_6", - url = "https://crates.io/api/v1/crates/crossbeam-channel/0.5.6/download", - type = "tar.gz", - sha256 = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521", - strip_prefix = "crossbeam-channel-0.5.6", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-channel-0.5.6.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__crossbeam_deque__0_8_2", - url = "https://crates.io/api/v1/crates/crossbeam-deque/0.8.2/download", - type = "tar.gz", - sha256 = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc", - strip_prefix = "crossbeam-deque-0.8.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-deque-0.8.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__crossbeam_epoch__0_9_11", - url = "https://crates.io/api/v1/crates/crossbeam-epoch/0.9.11/download", - type = "tar.gz", - sha256 = "f916dfc5d356b0ed9dae65f1db9fc9770aa2851d2662b988ccf4fe3516e86348", - strip_prefix = "crossbeam-epoch-0.9.11", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-epoch-0.9.11.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__crossbeam_utils__0_8_12", - url = "https://crates.io/api/v1/crates/crossbeam-utils/0.8.12/download", - type = "tar.gz", - sha256 = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac", - strip_prefix = "crossbeam-utils-0.8.12", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crossbeam-utils-0.8.12.bazel"), - ) - maybe( http_archive, name = "wasmtime__either__1_8_0", @@ -315,12 +275,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__env_logger__0_9_1", - url = "https://crates.io/api/v1/crates/env_logger/0.9.1/download", + name = "wasmtime__env_logger__0_9_3", + url = "https://crates.io/api/v1/crates/env_logger/0.9.3/download", type = "tar.gz", - sha256 = "c90bf5f19754d10198ccb95b70664fc925bd1fc090a0fd9a6ebc54acc8cd6272", - strip_prefix = "env_logger-0.9.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.9.1.bazel"), + sha256 = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7", + strip_prefix = "env_logger-0.9.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.9.3.bazel"), ) maybe( @@ -415,22 +375,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__indexmap__1_9_1", - url = "https://crates.io/api/v1/crates/indexmap/1.9.1/download", + name = "wasmtime__indexmap__1_9_2", + url = "https://crates.io/api/v1/crates/indexmap/1.9.2/download", type = "tar.gz", - sha256 = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e", - strip_prefix = "indexmap-1.9.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.1.bazel"), + sha256 = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399", + strip_prefix = "indexmap-1.9.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.2.bazel"), ) maybe( http_archive, - name = "wasmtime__io_lifetimes__0_7_4", - url = "https://crates.io/api/v1/crates/io-lifetimes/0.7.4/download", + name = "wasmtime__io_lifetimes__0_7_5", + url = "https://crates.io/api/v1/crates/io-lifetimes/0.7.5/download", type = "tar.gz", - sha256 = "e6e481ccbe3dea62107216d0d1138bb8ad8e5e5c43009a098bd1990272c497b0", - strip_prefix = "io-lifetimes-0.7.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.7.4.bazel"), + sha256 = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074", + strip_prefix = "io-lifetimes-0.7.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.7.5.bazel"), ) maybe( @@ -503,16 +463,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.6.5.bazel"), ) - maybe( - http_archive, - name = "wasmtime__num_cpus__1_13_1", - url = "https://crates.io/api/v1/crates/num_cpus/1.13.1/download", - type = "tar.gz", - sha256 = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1", - strip_prefix = "num_cpus-1.13.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.num_cpus-1.13.1.bazel"), - ) - maybe( http_archive, name = "wasmtime__object__0_29_0", @@ -525,12 +475,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__once_cell__1_15_0", - url = "https://crates.io/api/v1/crates/once_cell/1.15.0/download", + name = "wasmtime__once_cell__1_16_0", + url = "https://crates.io/api/v1/crates/once_cell/1.16.0/download", type = "tar.gz", - sha256 = "e82dad04139b71a90c080c8463fe0dc7902db5192d939bd0950f074d014339e1", - strip_prefix = "once_cell-1.15.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.15.0.bazel"), + sha256 = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860", + strip_prefix = "once_cell-1.16.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.16.0.bazel"), ) maybe( @@ -545,12 +495,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__ppv_lite86__0_2_16", - url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.16/download", + name = "wasmtime__ppv_lite86__0_2_17", + url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.17/download", type = "tar.gz", - sha256 = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872", - strip_prefix = "ppv-lite86-0.2.16", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ppv-lite86-0.2.16.bazel"), + sha256 = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de", + strip_prefix = "ppv-lite86-0.2.17", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ppv-lite86-0.2.17.bazel"), ) maybe( @@ -615,52 +565,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rayon__1_5_3", - url = "https://crates.io/api/v1/crates/rayon/1.5.3/download", - type = "tar.gz", - sha256 = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d", - strip_prefix = "rayon-1.5.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rayon-1.5.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__rayon_core__1_9_3", - url = "https://crates.io/api/v1/crates/rayon-core/1.9.3/download", + name = "wasmtime__regalloc2__0_4_2", + url = "https://crates.io/api/v1/crates/regalloc2/0.4.2/download", type = "tar.gz", - sha256 = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f", - strip_prefix = "rayon-core-1.9.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rayon-core-1.9.3.bazel"), + sha256 = "91b2eab54204ea0117fe9a060537e0b07a4e72f7c7d182361ecc346cab2240e5", + strip_prefix = "regalloc2-0.4.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.4.2.bazel"), ) maybe( http_archive, - name = "wasmtime__regalloc2__0_4_1", - url = "https://crates.io/api/v1/crates/regalloc2/0.4.1/download", + name = "wasmtime__regex__1_7_0", + url = "https://crates.io/api/v1/crates/regex/1.7.0/download", type = "tar.gz", - sha256 = "69025b4a161879ba90719837c06621c3d73cffa147a000aeacf458f6a9572485", - strip_prefix = "regalloc2-0.4.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.4.1.bazel"), + sha256 = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a", + strip_prefix = "regex-1.7.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.7.0.bazel"), ) maybe( http_archive, - name = "wasmtime__regex__1_6_0", - url = "https://crates.io/api/v1/crates/regex/1.6.0/download", + name = "wasmtime__regex_syntax__0_6_28", + url = "https://crates.io/api/v1/crates/regex-syntax/0.6.28/download", type = "tar.gz", - sha256 = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b", - strip_prefix = "regex-1.6.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.6.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__regex_syntax__0_6_27", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.27/download", - type = "tar.gz", - sha256 = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244", - strip_prefix = "regex-syntax-0.6.27", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.6.27.bazel"), + sha256 = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848", + strip_prefix = "regex-syntax-0.6.28", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.6.28.bazel"), ) maybe( @@ -675,22 +605,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_35_12", - url = "https://crates.io/api/v1/crates/rustix/0.35.12/download", - type = "tar.gz", - sha256 = "985947f9b6423159c4726323f373be0a21bdb514c5af06a849cb3d2dce2d01e8", - strip_prefix = "rustix-0.35.12", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.35.12.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__scopeguard__1_1_0", - url = "https://crates.io/api/v1/crates/scopeguard/1.1.0/download", + name = "wasmtime__rustix__0_35_13", + url = "https://crates.io/api/v1/crates/rustix/0.35.13/download", type = "tar.gz", - sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd", - strip_prefix = "scopeguard-1.1.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.scopeguard-1.1.0.bazel"), + sha256 = "727a1a6d65f786ec22df8a81ca3121107f235970dc1705ed681d3e6e8b9cd5f9", + strip_prefix = "rustix-0.35.13", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.35.13.bazel"), ) maybe( @@ -755,12 +675,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__target_lexicon__0_12_4", - url = "https://crates.io/api/v1/crates/target-lexicon/0.12.4/download", + name = "wasmtime__target_lexicon__0_12_5", + url = "https://crates.io/api/v1/crates/target-lexicon/0.12.5/download", type = "tar.gz", - sha256 = "c02424087780c9b71cc96799eaeddff35af2bc513278cda5c99fc1f5d026d3c1", - strip_prefix = "target-lexicon-0.12.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.4.bazel"), + sha256 = "9410d0f6853b1d94f0e519fb95df60f29d2c1eff2d921ffdf01a4c8a3b54f12d", + strip_prefix = "target-lexicon-0.12.5", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.5.bazel"), ) maybe( @@ -835,91 +755,91 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmtime__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime/2.0.0/download", + name = "wasmtime__wasmtime__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime/2.0.2/download", type = "tar.gz", - sha256 = "f5fc5bb3329415030796cfa5530b2481ccef5c4f1e5150733ba94318ab004fe1", - strip_prefix = "wasmtime-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-2.0.0.bazel"), + sha256 = "743d37c265fa134a76de653c7e66be22590eaccd03da13cee99f3ac7a59cb826", + strip_prefix = "wasmtime-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-2.0.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_asm_macros__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/2.0.0/download", + name = "wasmtime__wasmtime_asm_macros__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/2.0.2/download", type = "tar.gz", - sha256 = "db36545ff0940ad9bf4e9ab0ec2a4e1eaa5ebe2aa9227bcbc4af905375d9e482", - strip_prefix = "wasmtime-asm-macros-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-2.0.0.bazel"), + sha256 = "de327cf46d5218315957138131ed904621e6f99018aa2da508c0dcf0c65f1bf2", + strip_prefix = "wasmtime-asm-macros-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-2.0.2.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_19_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "ff8c568eeed3918a5d591295e9384e2b1e462aae", + commit = "a528e0383e1177119a6c985dac1972513df11a03", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/2.0.0/download", + name = "wasmtime__wasmtime_cranelift__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/2.0.2/download", type = "tar.gz", - sha256 = "0409e93b5eceaa4e5f498a4bce1cffc7ebe071d14582b5437c10af4aecc23f54", - strip_prefix = "wasmtime-cranelift-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-2.0.0.bazel"), + sha256 = "017c3605ccce867b3ba7f71d95e5652acc22b9dc2971ad6a6f9df4a8d7af2648", + strip_prefix = "wasmtime-cranelift-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-2.0.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime-environ/2.0.0/download", + name = "wasmtime__wasmtime_environ__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime-environ/2.0.2/download", type = "tar.gz", - sha256 = "55240389c604f68d2e1d2573d7d3740246ab9ea2fa4fe79e10ccd51faf9b9500", - strip_prefix = "wasmtime-environ-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-2.0.0.bazel"), + sha256 = "6aec5c1f81aab9bb35997113c171b6bb9093afc90e3757c55e0c08dc9ac612e4", + strip_prefix = "wasmtime-environ-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-2.0.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit/2.0.0/download", + name = "wasmtime__wasmtime_jit__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime-jit/2.0.2/download", type = "tar.gz", - sha256 = "bc15e285b7073ee566e62ea4b6dd38b80465ade0ea8cd4cee13c7ac2e295cfca", - strip_prefix = "wasmtime-jit-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-2.0.0.bazel"), + sha256 = "08c683893dbba3986aa71582a5332b87157fb95d34098de2e5f077c7f078726d", + strip_prefix = "wasmtime-jit-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-2.0.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/2.0.0/download", + name = "wasmtime__wasmtime_jit_debug__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/2.0.2/download", type = "tar.gz", - sha256 = "bee06d206bcf7a875eacd1e1e957c2a63f64a92934d2535dd8e15cde6d3a9ffe", - strip_prefix = "wasmtime-jit-debug-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-2.0.0.bazel"), + sha256 = "b2f8f15a81292eec468c79a4f887a37a3d02eb0c610f34ddbec607d3e9022f18", + strip_prefix = "wasmtime-jit-debug-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-2.0.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/2.0.0/download", + name = "wasmtime__wasmtime_runtime__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/2.0.2/download", type = "tar.gz", - sha256 = "9969ff36cbf57f18c2d24679db57d0857ea7cc7d839534afc26ecc8003e9914b", - strip_prefix = "wasmtime-runtime-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-2.0.0.bazel"), + sha256 = "09af6238c962e8220424c815a7b1a9a6d0ba0694f0ab0ae12a6cda1923935a0d", + strip_prefix = "wasmtime-runtime-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-2.0.2.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__2_0_0", - url = "https://crates.io/api/v1/crates/wasmtime-types/2.0.0/download", + name = "wasmtime__wasmtime_types__2_0_2", + url = "https://crates.io/api/v1/crates/wasmtime-types/2.0.2/download", type = "tar.gz", - sha256 = "df64c737fc9b3cdf7617bcc65e8b97cb713ceb9c9c58530b20788a8a3482b5d1", - strip_prefix = "wasmtime-types-2.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-2.0.0.bazel"), + sha256 = "5dc3dd9521815984b35d6362f79e6b9c72475027cd1c71c44eb8df8fbf33a9fb", + strip_prefix = "wasmtime-types-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-2.0.2.bazel"), ) maybe( @@ -972,6 +892,26 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.36.1.bazel"), ) + maybe( + http_archive, + name = "wasmtime__windows_sys__0_42_0", + url = "https://crates.io/api/v1/crates/windows-sys/0.42.0/download", + type = "tar.gz", + sha256 = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7", + strip_prefix = "windows-sys-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.42.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__windows_aarch64_gnullvm__0_42_0", + url = "https://crates.io/api/v1/crates/windows_aarch64_gnullvm/0.42.0/download", + type = "tar.gz", + sha256 = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e", + strip_prefix = "windows_aarch64_gnullvm-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.42.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__windows_aarch64_msvc__0_36_1", @@ -982,6 +922,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.36.1.bazel"), ) + maybe( + http_archive, + name = "wasmtime__windows_aarch64_msvc__0_42_0", + url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.42.0/download", + type = "tar.gz", + sha256 = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4", + strip_prefix = "windows_aarch64_msvc-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.42.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__windows_i686_gnu__0_36_1", @@ -992,6 +942,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.36.1.bazel"), ) + maybe( + http_archive, + name = "wasmtime__windows_i686_gnu__0_42_0", + url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.42.0/download", + type = "tar.gz", + sha256 = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7", + strip_prefix = "windows_i686_gnu-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.42.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__windows_i686_msvc__0_36_1", @@ -1002,6 +962,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.36.1.bazel"), ) + maybe( + http_archive, + name = "wasmtime__windows_i686_msvc__0_42_0", + url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.42.0/download", + type = "tar.gz", + sha256 = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246", + strip_prefix = "windows_i686_msvc-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.42.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__windows_x86_64_gnu__0_36_1", @@ -1012,6 +982,26 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.36.1.bazel"), ) + maybe( + http_archive, + name = "wasmtime__windows_x86_64_gnu__0_42_0", + url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.42.0/download", + type = "tar.gz", + sha256 = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed", + strip_prefix = "windows_x86_64_gnu-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.42.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__windows_x86_64_gnullvm__0_42_0", + url = "https://crates.io/api/v1/crates/windows_x86_64_gnullvm/0.42.0/download", + type = "tar.gz", + sha256 = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028", + strip_prefix = "windows_x86_64_gnullvm-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.42.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__windows_x86_64_msvc__0_36_1", @@ -1021,3 +1011,13 @@ def wasmtime_fetch_remote_crates(): strip_prefix = "windows_x86_64_msvc-0.36.1", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.36.1.bazel"), ) + + maybe( + http_archive, + name = "wasmtime__windows_x86_64_msvc__0_42_0", + url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.42.0/download", + type = "tar.gz", + sha256 = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5", + strip_prefix = "windows_x86_64_msvc-0.42.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.42.0.bazel"), + ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel index adf2a35fb..85485572c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel @@ -188,7 +188,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__once_cell__1_15_0//:once_cell", + "@wasmtime__once_cell__1_16_0//:once_cell", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.73.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.77.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cc-1.0.73.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cc-1.0.77.bazel index 1fa5ec2af..374a61361 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.73.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.77.bazel @@ -49,7 +49,7 @@ rust_binary( "crate-name=gcc-shim", "manual", ], - version = "1.0.73", + version = "1.0.77", # buildifier: leave-alone deps = [ ":cc", @@ -72,7 +72,7 @@ rust_library( "crate-name=cc", "manual", ], - version = "1.0.73", + version = "1.0.77", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.2.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.2.bazel index f827ae914..8eb878a64 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.2.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.2.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.2.bazel index c4739164f..59a59bc84 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.2.bazel @@ -58,11 +58,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.89.0", + version = "0.89.2", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_89_0//:cranelift_codegen_meta", - "@wasmtime__cranelift_isle__0_89_0//:cranelift_isle", + "@wasmtime__cranelift_codegen_meta__0_89_2//:cranelift_codegen_meta", + "@wasmtime__cranelift_isle__0_89_2//:cranelift_isle", ], ) @@ -88,19 +88,19 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", "@wasmtime__arrayvec__0_7_2//:arrayvec", "@wasmtime__bumpalo__3_11_1//:bumpalo", - "@wasmtime__cranelift_bforest__0_89_0//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_89_0//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", + "@wasmtime__cranelift_bforest__0_89_2//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_89_2//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regalloc2__0_4_1//:regalloc2", + "@wasmtime__regalloc2__0_4_2//:regalloc2", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__target_lexicon__0_12_5//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.2.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.2.bazel index af4062f00..c1e60d901 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.2.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_89_0//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_89_2//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.2.bazel index 343290887..31153e86c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.2.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.2.bazel index 61a9850e9..97a5b71b6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.2.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ "@wasmtime__serde__1_0_147//:serde", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.2.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.2.bazel index 804b82d2d..dc55bd281 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.2.bazel @@ -49,12 +49,12 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__target_lexicon__0_12_5//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.2.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.2.bazel index 81b590ec2..801c29247 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.2.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.89.0", + version = "0.89.2", visibility = ["//visibility:private"], deps = [ ], @@ -78,11 +78,10 @@ rust_library( "crate-name=cranelift-isle", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ ":cranelift_isle_build_script", - "@wasmtime__rayon__1_5_3//:rayon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.2.bazel similarity index 90% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.2.bazel index b45ab3da2..a99f81745 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.2.bazel @@ -51,11 +51,11 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", - "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", + "@wasmtime__target_lexicon__0_12_5//:target_lexicon", ] + selects.with_or({ # cfg(target_arch = "s390x") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.2.bazel similarity index 83% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.2.bazel index 88f54e925..8c6580c92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.2.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.89.0", + version = "0.89.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_89_0//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_89_2//:cranelift_frontend", "@wasmtime__itertools__0_10_5//:itertools", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_10_0//:smallvec", "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_types__2_0_0//:wasmtime_types", + "@wasmtime__wasmtime_types__2_0_2//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel deleted file mode 100644 index acc36b2bd..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-channel-0.5.6.bazel +++ /dev/null @@ -1,95 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "crossbeam" with type "bench" omitted - -# Unsupported target "fibonacci" with type "example" omitted - -# Unsupported target "matching" with type "example" omitted - -# Unsupported target "stopwatch" with type "example" omitted - -rust_library( - name = "crossbeam_channel", - srcs = glob(["**/*.rs"]), - crate_features = [ - "crossbeam-utils", - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=crossbeam-channel", - "manual", - ], - version = "0.5.6", - # buildifier: leave-alone - deps = [ - "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", - ], -) - -# Unsupported target "after" with type "test" omitted - -# Unsupported target "array" with type "test" omitted - -# Unsupported target "golang" with type "test" omitted - -# Unsupported target "iter" with type "test" omitted - -# Unsupported target "list" with type "test" omitted - -# Unsupported target "mpsc" with type "test" omitted - -# Unsupported target "never" with type "test" omitted - -# Unsupported target "ready" with type "test" omitted - -# Unsupported target "same_channel" with type "test" omitted - -# Unsupported target "select" with type "test" omitted - -# Unsupported target "select_macro" with type "test" omitted - -# Unsupported target "thread_locals" with type "test" omitted - -# Unsupported target "tick" with type "test" omitted - -# Unsupported target "zero" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel deleted file mode 100644 index 976b8d026..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-epoch-0.9.11.bazel +++ /dev/null @@ -1,103 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "crossbeam_epoch_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "alloc", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.9.11", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__autocfg__1_1_0//:autocfg", - ], -) - -# Unsupported target "defer" with type "bench" omitted - -# Unsupported target "flush" with type "bench" omitted - -# Unsupported target "pin" with type "bench" omitted - -# Unsupported target "sanitize" with type "example" omitted - -rust_library( - name = "crossbeam_epoch", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=crossbeam-epoch", - "manual", - ], - version = "0.9.11", - # buildifier: leave-alone - deps = [ - ":crossbeam_epoch_build_script", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", - "@wasmtime__memoffset__0_6_5//:memoffset", - "@wasmtime__scopeguard__1_1_0//:scopeguard", - ], -) - -# Unsupported target "loom" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel index 6a4139c17..1415ec0c0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel @@ -52,13 +52,13 @@ rust_library( "crate-name=env_logger", "manual", ], - version = "0.9.1", + version = "0.9.3", # buildifier: leave-alone deps = [ "@wasmtime__atty__0_2_14//:atty", "@wasmtime__humantime__2_1_0//:humantime", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regex__1_6_0//:regex", + "@wasmtime__regex__1_7_0//:regex", "@wasmtime__termcolor__1_1_3//:termcolor", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index 1fd6fc62a..8bd9bcb2c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -57,7 +57,7 @@ cargo_build_script( version = "0.1.2", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_73//:cc", + "@wasmtime__cc__1_0_77//:cc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel index ec6cb4852..31b8cc147 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel @@ -68,7 +68,7 @@ rust_library( # buildifier: leave-alone deps = [ "@wasmtime__fallible_iterator__0_2_0//:fallible_iterator", - "@wasmtime__indexmap__1_9_1//:indexmap", + "@wasmtime__indexmap__1_9_2//:indexmap", "@wasmtime__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel index 0b5126d41..c0c78e0b0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.9.1", + version = "1.9.2", visibility = ["//visibility:private"], deps = [ "@wasmtime__autocfg__1_1_0//:autocfg", @@ -87,7 +87,7 @@ rust_library( "crate-name=indexmap", "manual", ], - version = "1.9.1", + version = "1.9.2", # buildifier: leave-alone deps = [ ":indexmap_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.5.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.5.bazel index caa76c4a8..0a4b35562 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.5.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.7.4", + version = "0.7.5", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=io-lifetimes", "manual", ], - version = "0.7.4", + version = "0.7.5", # buildifier: leave-alone deps = [ ":io_lifetimes_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel deleted file mode 100644 index 8898207f5..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.num_cpus-1.13.1.bazel +++ /dev/null @@ -1,83 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "values" with type "example" omitted - -rust_library( - name = "num_cpus", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=num_cpus", - "manual", - ], - version = "1.13.1", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(not(windows)) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__libc__0_2_137//:libc", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel index fc7f0f8ea..6dd14d8f5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel @@ -64,7 +64,7 @@ rust_library( deps = [ "@wasmtime__crc32fast__1_3_2//:crc32fast", "@wasmtime__hashbrown__0_12_3//:hashbrown", - "@wasmtime__indexmap__1_9_1//:indexmap", + "@wasmtime__indexmap__1_9_2//:indexmap", "@wasmtime__memchr__2_5_0//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.15.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.16.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.once_cell-1.15.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.once_cell-1.16.0.bazel index a15c98be0..b8221ad2d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.15.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.16.0.bazel @@ -65,7 +65,7 @@ rust_library( "crate-name=once_cell", "manual", ], - version = "1.15.0", + version = "1.16.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.16.bazel b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.16.bazel rename to bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel index 1f3e2d8de..458b2d0bb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.16.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=ppv-lite86", "manual", ], - version = "0.2.16", + version = "0.2.17", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index 71003013e..5c35a2fae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -57,7 +57,7 @@ cargo_build_script( version = "0.1.21", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_73//:cc", + "@wasmtime__cc__1_0_77//:cc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel index 02d8477ab..c6b497c31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel @@ -51,7 +51,7 @@ rust_library( version = "0.3.1", # buildifier: leave-alone deps = [ - "@wasmtime__ppv_lite86__0_2_16//:ppv_lite86", + "@wasmtime__ppv_lite86__0_2_17//:ppv_lite86", "@wasmtime__rand_core__0_6_4//:rand_core", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel deleted file mode 100644 index ffc50f2e6..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rayon-1.5.3.bazel +++ /dev/null @@ -1,118 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "rayon_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.5.3", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__autocfg__1_1_0//:autocfg", - ], -) - -# Unsupported target "cpu_monitor" with type "example" omitted - -rust_library( - name = "rayon", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rayon", - "manual", - ], - version = "1.5.3", - # buildifier: leave-alone - deps = [ - ":rayon_build_script", - "@wasmtime__crossbeam_deque__0_8_2//:crossbeam_deque", - "@wasmtime__either__1_8_0//:either", - "@wasmtime__rayon_core__1_9_3//:rayon_core", - ], -) - -# Unsupported target "chars" with type "test" omitted - -# Unsupported target "clones" with type "test" omitted - -# Unsupported target "collect" with type "test" omitted - -# Unsupported target "cross-pool" with type "test" omitted - -# Unsupported target "debug" with type "test" omitted - -# Unsupported target "intersperse" with type "test" omitted - -# Unsupported target "issue671" with type "test" omitted - -# Unsupported target "issue671-unzip" with type "test" omitted - -# Unsupported target "iter_panic" with type "test" omitted - -# Unsupported target "named-threads" with type "test" omitted - -# Unsupported target "octillion" with type "test" omitted - -# Unsupported target "producer_split_at" with type "test" omitted - -# Unsupported target "sort-panic-safe" with type "test" omitted - -# Unsupported target "str" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel deleted file mode 100644 index 3ba1a872d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rayon-core-1.9.3.bazel +++ /dev/null @@ -1,101 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "rayon_core_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - links = "rayon-core", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.9.3", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "rayon_core", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rayon-core", - "manual", - ], - version = "1.9.3", - # buildifier: leave-alone - deps = [ - ":rayon_core_build_script", - "@wasmtime__crossbeam_channel__0_5_6//:crossbeam_channel", - "@wasmtime__crossbeam_deque__0_8_2//:crossbeam_deque", - "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", - "@wasmtime__num_cpus__1_13_1//:num_cpus", - ], -) - -# Unsupported target "double_init_fail" with type "test" omitted - -# Unsupported target "init_zero_threads" with type "test" omitted - -# Unsupported target "scope_join" with type "test" omitted - -# Unsupported target "scoped_threadpool" with type "test" omitted - -# Unsupported target "simple_panic" with type "test" omitted - -# Unsupported target "stack_overflow_crash" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.2.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.2.bazel index 0ecc1045d..47b521a36 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.2.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=regalloc2", "manual", ], - version = "0.4.1", + version = "0.4.2", # buildifier: leave-alone deps = [ "@wasmtime__fxhash__0_2_1//:fxhash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.0.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-1.7.0.bazel index 17ef69208..f743948f4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.0.bazel @@ -67,12 +67,12 @@ rust_library( "crate-name=regex", "manual", ], - version = "1.6.0", + version = "1.7.0", # buildifier: leave-alone deps = [ "@wasmtime__aho_corasick__0_7_19//:aho_corasick", "@wasmtime__memchr__2_5_0//:memchr", - "@wasmtime__regex_syntax__0_6_27//:regex_syntax", + "@wasmtime__regex_syntax__0_6_28//:regex_syntax", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.27.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.28.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.27.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.28.bazel index b885fca3f..aab040ca3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.27.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.28.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=regex-syntax", "manual", ], - version = "0.6.27", + version = "0.6.28", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.13.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.12.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.13.bazel index 58ff30dd8..9a64be998 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.13.bazel @@ -62,10 +62,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.35.12", + version = "0.35.13", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_73//:cc", + "@wasmtime__cc__1_0_77//:cc", ] + selects.with_or({ # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( @@ -145,12 +145,12 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.35.12", + version = "0.35.13", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__0_7_4//:io_lifetimes", + "@wasmtime__io_lifetimes__0_7_5//:io_lifetimes", ] + selects.with_or({ # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( @@ -168,7 +168,7 @@ rust_library( ], "//conditions:default": [], }) + selects.with_or({ - # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", diff --git a/bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel deleted file mode 100644 index 7b2581e74..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.scopeguard-1.1.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "readme" with type "example" omitted - -rust_library( - name = "scopeguard", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=scopeguard", - "manual", - ], - version = "1.1.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.5.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.5.bazel index b8857c7fc..f5a26dcaf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.5.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.12.4", + version = "0.12.5", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=target-lexicon", "manual", ], - version = "0.12.4", + version = "0.12.5", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel index d38aad0af..9d9933003 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel @@ -54,6 +54,6 @@ rust_library( version = "0.92.0", # buildifier: leave-alone deps = [ - "@wasmtime__indexmap__1_9_1//:indexmap", + "@wasmtime__indexmap__1_9_2//:indexmap", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.2.bazel similarity index 86% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.2.bazel index 249f642a1..831fd7cde 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.2.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "2.0.0", + version = "2.0.2", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -92,26 +92,26 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ ":wasmtime_build_script", "@wasmtime__anyhow__1_0_66//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_9_1//:indexmap", + "@wasmtime__indexmap__1_9_2//:indexmap", "@wasmtime__libc__0_2_137//:libc", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_29_0//:object", - "@wasmtime__once_cell__1_15_0//:once_cell", + "@wasmtime__once_cell__1_16_0//:once_cell", "@wasmtime__psm__0_1_21//:psm", "@wasmtime__serde__1_0_147//:serde", - "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__target_lexicon__0_12_5//:target_lexicon", "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__2_0_0//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", - "@wasmtime__wasmtime_jit__2_0_0//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__2_0_0//:wasmtime_runtime", + "@wasmtime__wasmtime_cranelift__2_0_2//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", + "@wasmtime__wasmtime_jit__2_0_2//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__2_0_2//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.2.bazel index 3323015dd..89826c0d8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.2.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=wasmtime-asm-macros", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.2.bazel similarity index 74% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.2.bazel index c9ac3cdc8..522679c5f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.2.bazel @@ -47,21 +47,21 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_66//:anyhow", - "@wasmtime__cranelift_codegen__0_89_0//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_89_0//:cranelift_frontend", - "@wasmtime__cranelift_native__0_89_0//:cranelift_native", - "@wasmtime__cranelift_wasm__0_89_0//:cranelift_wasm", + "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_89_2//:cranelift_frontend", + "@wasmtime__cranelift_native__0_89_2//:cranelift_native", + "@wasmtime__cranelift_wasm__0_89_2//:cranelift_wasm", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_29_0//:object", - "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__target_lexicon__0_12_5//:target_lexicon", "@wasmtime__thiserror__1_0_37//:thiserror", "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", + "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.2.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.2.bazel index 71d5f5afd..2e15cd6d7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.2.bazel @@ -49,19 +49,19 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ "@wasmtime__anyhow__1_0_66//:anyhow", - "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", - "@wasmtime__indexmap__1_9_1//:indexmap", + "@wasmtime__indexmap__1_9_2//:indexmap", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_29_0//:object", "@wasmtime__serde__1_0_147//:serde", - "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__target_lexicon__0_12_5//:target_lexicon", "@wasmtime__thiserror__1_0_37//:thiserror", "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_types__2_0_0//:wasmtime_types", + "@wasmtime__wasmtime_types__2_0_2//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.2.bazel similarity index 90% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.2.bazel index 62c01e9ae..907710d4d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.2.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ "@wasmtime__addr2line__0_17_0//:addr2line", @@ -62,10 +62,10 @@ rust_library( "@wasmtime__object__0_29_0//:object", "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", "@wasmtime__serde__1_0_147//:serde", - "@wasmtime__target_lexicon__0_12_4//:target_lexicon", + "@wasmtime__target_lexicon__0_12_5//:target_lexicon", "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__2_0_0//:wasmtime_runtime", + "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", + "@wasmtime__wasmtime_runtime__2_0_2//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "linux") ( @@ -76,7 +76,7 @@ rust_library( "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__rustix__0_35_12//:rustix", + "@wasmtime__rustix__0_35_13//:rustix", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.2.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.2.bazel index 8e94de7da..6d367703c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.2.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ - "@wasmtime__once_cell__1_15_0//:once_cell", + "@wasmtime__once_cell__1_16_0//:once_cell", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.2.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.2.bazel index 290a50237..1d53ffeab 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.2.bazel @@ -54,10 +54,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "2.0.0", + version = "2.0.2", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_73//:cc", + "@wasmtime__cc__1_0_77//:cc", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -122,21 +122,21 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", "@wasmtime__anyhow__1_0_66//:anyhow", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_9_1//:indexmap", + "@wasmtime__indexmap__1_9_2//:indexmap", "@wasmtime__libc__0_2_137//:libc", "@wasmtime__log__0_4_17//:log", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__rand__0_8_5//:rand", "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmtime_asm_macros__2_0_0//:wasmtime_asm_macros", - "@wasmtime__wasmtime_environ__2_0_0//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__2_0_0//:wasmtime_jit_debug", + "@wasmtime__wasmtime_asm_macros__2_0_2//:wasmtime_asm_macros", + "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__2_0_2//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_35_12//:rustix", + "@wasmtime__rustix__0_35_13//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.2.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.2.bazel index 862142e98..0d77211de 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.2.bazel @@ -47,10 +47,10 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "2.0.0", + version = "2.0.2", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_89_0//:cranelift_entity", + "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", "@wasmtime__serde__1_0_147//:serde", "@wasmtime__thiserror__1_0_37//:thiserror", "@wasmtime__wasmparser__0_92_0//:wasmparser", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel index 7c6e8cb51..51d8c8955 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel @@ -39,10 +39,6 @@ rust_library( crate_features = [ "Win32", "Win32_Foundation", - "Win32_NetworkManagement", - "Win32_NetworkManagement_IpHelper", - "Win32_Networking", - "Win32_Networking_WinSock", "Win32_Security", "Win32_Storage", "Win32_Storage_FileSystem", @@ -52,7 +48,6 @@ rust_library( "Win32_System_Kernel", "Win32_System_Memory", "Win32_System_SystemInformation", - "Win32_System_Threading", "default", ], crate_root = "src/lib.rs", diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-deque-0.8.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel similarity index 52% rename from bazel/cargo/wasmtime/remote/BUILD.crossbeam-deque-0.8.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel index 84628cb82..b710204bc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-deque-0.8.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel @@ -32,13 +32,20 @@ licenses([ # Generated Targets rust_library( - name = "crossbeam_deque", + name = "windows_sys", srcs = glob(["**/*.rs"]), + aliases = { + }, crate_features = [ - "crossbeam-epoch", - "crossbeam-utils", + "Win32", + "Win32_Foundation", + "Win32_NetworkManagement", + "Win32_NetworkManagement_IpHelper", + "Win32_Networking", + "Win32_Networking_WinSock", + "Win32_System", + "Win32_System_Threading", "default", - "std", ], crate_root = "src/lib.rs", data = [], @@ -48,22 +55,27 @@ rust_library( ], tags = [ "cargo-raze", - "crate-name=crossbeam-deque", + "crate-name=windows-sys", "manual", ], - version = "0.8.2", + version = "0.42.0", # buildifier: leave-alone deps = [ - "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__crossbeam_epoch__0_9_11//:crossbeam_epoch", - "@wasmtime__crossbeam_utils__0_8_12//:crossbeam_utils", - ], + ] + selects.with_or({ + # i686-pc-windows-msvc + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + ): [ + "@wasmtime__windows_i686_msvc__0_42_0//:windows_i686_msvc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # x86_64-pc-windows-msvc + ( + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@wasmtime__windows_x86_64_msvc__0_42_0//:windows_x86_64_msvc", + ], + "//conditions:default": [], + }), ) - -# Unsupported target "fifo" with type "test" omitted - -# Unsupported target "injector" with type "test" omitted - -# Unsupported target "lifo" with type "test" omitted - -# Unsupported target "steal" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-utils-0.8.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.0.bazel similarity index 67% rename from bazel/cargo/wasmtime/remote/BUILD.crossbeam-utils-0.8.12.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.0.bazel index 4a6d4c685..c40f240db 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.crossbeam-utils-0.8.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.0.bazel @@ -38,13 +38,11 @@ load( ) cargo_build_script( - name = "crossbeam_utils_build_script", + name = "windows_aarch64_gnullvm_build_script", srcs = glob(["**/*.rs"]), build_script_env = { }, crate_features = [ - "default", - "std", ], crate_root = "build.rs", data = glob(["**"]), @@ -56,20 +54,16 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.8.12", + version = "0.42.0", visibility = ["//visibility:private"], deps = [ ], ) -# Unsupported target "atomic_cell" with type "bench" omitted - rust_library( - name = "crossbeam_utils", + name = "windows_aarch64_gnullvm", srcs = glob(["**/*.rs"]), crate_features = [ - "default", - "std", ], crate_root = "src/lib.rs", data = [], @@ -79,25 +73,12 @@ rust_library( ], tags = [ "cargo-raze", - "crate-name=crossbeam-utils", + "crate-name=windows_aarch64_gnullvm", "manual", ], - version = "0.8.12", + version = "0.42.0", # buildifier: leave-alone deps = [ - ":crossbeam_utils_build_script", - "@wasmtime__cfg_if__1_0_0//:cfg_if", + ":windows_aarch64_gnullvm_build_script", ], ) - -# Unsupported target "atomic_cell" with type "test" omitted - -# Unsupported target "cache_padded" with type "test" omitted - -# Unsupported target "parker" with type "test" omitted - -# Unsupported target "sharded_lock" with type "test" omitted - -# Unsupported target "thread" with type "test" omitted - -# Unsupported target "wait_group" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.0.bazel new file mode 100644 index 000000000..152cd1af0 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_aarch64_msvc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.42.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_aarch64_msvc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_aarch64_msvc", + "manual", + ], + version = "0.42.0", + # buildifier: leave-alone + deps = [ + ":windows_aarch64_msvc_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel new file mode 100644 index 000000000..e28b9cca0 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_i686_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.42.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_i686_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_i686_gnu", + "manual", + ], + version = "0.42.0", + # buildifier: leave-alone + deps = [ + ":windows_i686_gnu_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel new file mode 100644 index 000000000..2cccbfaa9 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_i686_msvc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.42.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_i686_msvc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_i686_msvc", + "manual", + ], + version = "0.42.0", + # buildifier: leave-alone + deps = [ + ":windows_i686_msvc_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel new file mode 100644 index 000000000..2a2c399e9 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_x86_64_gnu_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.42.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_x86_64_gnu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_x86_64_gnu", + "manual", + ], + version = "0.42.0", + # buildifier: leave-alone + deps = [ + ":windows_x86_64_gnu_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.0.bazel new file mode 100644 index 000000000..c9d2e2d16 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_x86_64_gnullvm_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.42.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_x86_64_gnullvm", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_x86_64_gnullvm", + "manual", + ], + version = "0.42.0", + # buildifier: leave-alone + deps = [ + ":windows_x86_64_gnullvm_build_script", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel new file mode 100644 index 000000000..581086428 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel @@ -0,0 +1,84 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "windows_x86_64_msvc_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "0.42.0", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "windows_x86_64_msvc", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows_x86_64_msvc", + "manual", + ], + version = "0.42.0", + # buildifier: leave-alone + deps = [ + ":windows_x86_64_msvc_build_script", + ], +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 1299ce960..dbf5a0cdd 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -192,9 +192,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "5c1b721614196865a949c612851401073ef6aed9820172113c935e48ac6bcd62", - strip_prefix = "wasmtime-2.0.0", - url = "https://github.com/bytecodealliance/wasmtime/archive/v2.0.0.tar.gz", + sha256 = "f850c7d2480e71b587a7102d8814e127dc9bf8370ffa0e382fe86ec80d629190", + strip_prefix = "wasmtime-2.0.2", + url = "https://github.com/bytecodealliance/wasmtime/archive/v2.0.2.tar.gz", ) maybe( From 72ce32f7b11f9190edf874028255e1309e41690f Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Fri, 16 Dec 2022 10:05:25 +0800 Subject: [PATCH 229/287] WAMR: adds support for `clone`. (#317) Signed-off-by: liang.he@intel.com --- bazel/external/wamr.BUILD | 12 +++++++----- bazel/repositories.bzl | 8 ++++---- src/wamr/types.h | 1 + src/wamr/wamr.cc | 37 +++++++++++++++++++++++++++++++++++-- test/wasm_vm_test.cc | 4 ++-- 5 files changed, 49 insertions(+), 13 deletions(-) diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index f25b9f074..9e7445ffc 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -12,15 +12,17 @@ filegroup( cmake( name = "wamr_lib", cache_entries = { - "WAMR_BUILD_INTERP": "1", + "WAMR_BUILD_AOT": "0", "WAMR_BUILD_FAST_INTERP": "1", + "WAMR_BUILD_INTERP": "1", "WAMR_BUILD_JIT": "0", - "WAMR_BUILD_LAZY_JIT": "0", - "WAMR_BUILD_AOT": "0", - "WAMR_BUILD_SIMD": "0", - "WAMR_BUILD_MULTI_MODULE": "1", "WAMR_BUILD_LIBC_WASI": "0", + "WAMR_BUILD_MULTI_MODULE": "0", + "WAMR_BUILD_SIMD": "0", "WAMR_BUILD_TAIL_CALL": "1", + "WAMR_BUILD_WASM_CACHE": "0", + "WAMR_DISABLE_HW_BOUND_CHECK": "0", + "WAMR_DISABLE_STACK_HW_BOUND_CHECK": "1", }, generate_args = ["-GNinja"], lib_source = ":srcs", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index dbf5a0cdd..48b3c75ca 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -159,10 +159,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - # WAMR-05-18-2022 - sha256 = "350736fffdc49533f5f372221d01e3b570ecd7b85f4429b22f5d89594eb99d9c", - strip_prefix = "wasm-micro-runtime-d7a2888b18c478d87ce8094e1419b4e061db289f", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/d7a2888b18c478d87ce8094e1419b4e061db289f.tar.gz", + # WAMR-2022-12-07 + sha256 = "6a5263ad022176257a93b39b02f95f615c0c590da1798c86c935f501a51c30c4", + strip_prefix = "wasm-micro-runtime-c3d66f916ef8093e5c8cacf3329ed968f807cf58", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/c3d66f916ef8093e5c8cacf3329ed968f807cf58.tar.gz", ) native.bind( diff --git a/src/wamr/types.h b/src/wamr/types.h index f6e516881..7252c5c3d 100644 --- a/src/wamr/types.h +++ b/src/wamr/types.h @@ -21,6 +21,7 @@ using WasmEnginePtr = common::CSmartPtr; using WasmFuncPtr = common::CSmartPtr; using WasmStorePtr = common::CSmartPtr; using WasmModulePtr = common::CSmartPtr; +using WasmSharedModulePtr = common::CSmartPtr; using WasmMemoryPtr = common::CSmartPtr; using WasmTablePtr = common::CSmartPtr; using WasmInstancePtr = common::CSmartPtr; diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 2ca6863be..577b6784f 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -58,8 +58,8 @@ class Wamr : public WasmVm { std::string_view getEngineName() override { return "wamr"; } std::string_view getPrecompiledSectionName() override { return ""; } - Cloneable cloneable() override { return Cloneable::NotCloneable; } - std::unique_ptr clone() override { return nullptr; } + Cloneable cloneable() override { return Cloneable::CompiledBytecode; } + std::unique_ptr clone() override; bool load(std::string_view bytecode, std::string_view precompiled, const std::unordered_map &function_names) override; @@ -108,6 +108,7 @@ class Wamr : public WasmVm { WasmStorePtr store_; WasmModulePtr module_; + WasmSharedModulePtr shared_module_; WasmInstancePtr instance_; WasmMemoryPtr memory_; @@ -132,9 +133,41 @@ bool Wamr::load(std::string_view bytecode, std::string_view /*precompiled*/, return false; } + shared_module_ = wasm_module_share(module_.get()); + if (shared_module_ == nullptr) { + return false; + } + return true; } +std::unique_ptr Wamr::clone() { + assert(module_ != nullptr); + + auto vm = std::make_unique(); + if (vm == nullptr) { + return nullptr; + } + + vm->store_ = wasm_store_new(engine()); + if (vm->store_ == nullptr) { + return nullptr; + } + + vm->module_ = wasm_module_obtain(vm->store_.get(), shared_module_.get()); + if (vm->module_ == nullptr) { + return nullptr; + } + + auto *integration_clone = integration()->clone(); + if (integration_clone == nullptr) { + return nullptr; + } + vm->integration().reset(integration_clone); + + return vm; +} + static bool equalValTypes(const wasm_valtype_vec_t *left, const wasm_valtype_vec_t *right) { if (left->size != right->size) { return false; diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc index a9caac935..6b4ece60f 100644 --- a/test/wasm_vm_test.cc +++ b/test/wasm_vm_test.cc @@ -31,9 +31,9 @@ INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines() }); TEST_P(TestVm, Basic) { - if (engine_ == "wamr" || engine_ == "wasmedge") { + if (engine_ == "wasmedge") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); - } else if (engine_ == "wasmtime" || engine_ == "v8") { + } else if (engine_ == "wasmtime" || engine_ == "v8" || engine_ == "wamr") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); } else if (engine_ == "wavm") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::InstantiatedModule); From 0f5a0e798bcfbd3bf1e6b54359d7a004b009c584 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Wed, 25 Jan 2023 15:33:30 +0800 Subject: [PATCH 230/287] wamr: add LLVM-based JIT in addition to interpreter. (#325) Use `wamr-interp` to represent WAMR Interpreter, and `wamr-jit` to represent WAMR JIT. Signed-off-by: liang.he@intel.com --- .bazelrc | 1 + .github/workflows/format.yml | 2 +- .github/workflows/test.yml | 24 +++++- bazel/BUILD | 9 ++- bazel/external/wamr.BUILD | 46 +++++++---- bazel/external/wamr_llvm.BUILD | 136 +++++++++++++++++++++++++++++++++ bazel/repositories.bzl | 17 ++++- bazel/select.bzl | 3 +- 8 files changed, 212 insertions(+), 26 deletions(-) create mode 100644 bazel/external/wamr_llvm.BUILD diff --git a/.bazelrc b/.bazelrc index a8212233d..86e814d38 100644 --- a/.bazelrc +++ b/.bazelrc @@ -53,6 +53,7 @@ build:clang-tsan --copt -fsanitize=thread build:clang-tsan --linkopt -fsanitize=thread # Use Clang-Tidy tool. +build:clang-tidy --config=clang build:clang-tidy --aspects @bazel_clang_tidy//clang_tidy:clang_tidy.bzl%clang_tidy_aspect build:clang-tidy --@bazel_clang_tidy//:clang_tidy_config=@proxy_wasm_cpp_host//:clang_tidy_config build:clang-tidy --output_groups=report diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 1f0f44628..1065c0519 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -122,7 +122,7 @@ jobs: - uses: actions/checkout@v2 - name: Install dependencies (Linux) - run: sudo apt update -y && sudo apt install -y clang-tidy-12 + run: sudo apt update -y && sudo apt install -y clang-tidy-12 lld-12 && sudo ln -sf /usr/bin/lld-12 /usr/bin/lld - name: Bazel cache uses: PiotrSikora/cache@v2.1.7-with-skip-cache diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bee94b318..eba4f62ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -167,19 +167,35 @@ jobs: arch: x86_64 action: test cache: true - - name: 'WAMR on Linux/x86_64' - engine: 'wamr' + - name: 'WAMR interp on Linux/x86_64' + engine: 'wamr-interp' repo: 'com_github_bytecodealliance_wasm_micro_runtime' os: ubuntu-20.04 arch: x86_64 action: test flags: --config=clang - - name: 'WAMR on macOS/x86_64' - engine: 'wamr' + - name: 'WAMR interp on macOS/x86_64' + engine: 'wamr-interp' repo: 'com_github_bytecodealliance_wasm_micro_runtime' os: macos-11 arch: x86_64 action: test + - name: 'WAMR jit on Linux/x86_64' + engine: 'wamr-jit' + repo: 'com_github_bytecodealliance_wasm_micro_runtime' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=clang + deps: lld-12 + cache: true + - name: 'WAMR jit on macOS/x86_64' + engine: 'wamr-jit' + repo: 'com_github_bytecodealliance_wasm_micro_runtime' + os: macos-11 + arch: x86_64 + action: test + cache: true - name: 'WasmEdge on Linux/x86_64' engine: 'wasmedge' repo: 'com_github_wasmedge_wasmedge' diff --git a/bazel/BUILD b/bazel/BUILD index 4a83aa444..650fa29d8 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -27,8 +27,13 @@ config_setting( ) config_setting( - name = "engine_wamr", - values = {"define": "engine=wamr"}, + name = "engine_wamr_interp", + values = {"define": "engine=wamr-interp"}, +) + +config_setting( + name = "engine_wamr_jit", + values = {"define": "engine=wamr-jit"}, ) config_setting( diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index 9e7445ffc..9ef6850e9 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -11,20 +11,38 @@ filegroup( cmake( name = "wamr_lib", - cache_entries = { - "WAMR_BUILD_AOT": "0", - "WAMR_BUILD_FAST_INTERP": "1", - "WAMR_BUILD_INTERP": "1", - "WAMR_BUILD_JIT": "0", - "WAMR_BUILD_LIBC_WASI": "0", - "WAMR_BUILD_MULTI_MODULE": "0", - "WAMR_BUILD_SIMD": "0", - "WAMR_BUILD_TAIL_CALL": "1", - "WAMR_BUILD_WASM_CACHE": "0", - "WAMR_DISABLE_HW_BOUND_CHECK": "0", - "WAMR_DISABLE_STACK_HW_BOUND_CHECK": "1", - }, - generate_args = ["-GNinja"], + generate_args = [ + "-DWAMR_BUILD_LIBC_WASI=0", + "-DWAMR_BUILD_MULTI_MODULE=0", + "-DWAMR_BUILD_TAIL_CALL=1", + "-DWAMR_DISABLE_HW_BOUND_CHECK=0", + "-DWAMR_DISABLE_STACK_HW_BOUND_CHECK=1", + "-GNinja", + ] + select({ + "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": [ + "-DLLVM_DIR=$EXT_BUILD_DEPS/copy_llvm_13_0_1/llvm/lib/cmake/llvm", + "-DWAMR_BUILD_AOT=1", + "-DWAMR_BUILD_FAST_INTERP=0", + "-DWAMR_BUILD_INTERP=0", + "-DWAMR_BUILD_JIT=1", + "-DWAMR_BUILD_SIMD=1", + ], + "//conditions:default": [ + "-DWAMR_BUILD_AOT=0", + "-DWAMR_BUILD_FAST_INTERP=1", + "-DWAMR_BUILD_INTERP=1", + "-DWAMR_BUILD_JIT=0", + "-DWAMR_BUILD_SIMD=0", + ], + }), lib_source = ":srcs", + linkopts = select({ + "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": ["-ldl"], + "//conditions:default": [], + }), out_static_libs = ["libvmlib.a"], + deps = select({ + "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": ["@llvm-13_0_1//:llvm_13_0_1_lib"], + "//conditions:default": [], + }), ) diff --git a/bazel/external/wamr_llvm.BUILD b/bazel/external/wamr_llvm.BUILD new file mode 100644 index 000000000..0efdbc9b6 --- /dev/null +++ b/bazel/external/wamr_llvm.BUILD @@ -0,0 +1,136 @@ +load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +filegroup( + name = "srcs", + srcs = glob(["**"]), +) + +cmake( + name = "llvm_13_0_1_lib", + cache_entries = { + # Disable both: BUILD and INCLUDE, since some of the INCLUDE + # targets build code instead of only generating build files. + "LLVM_BUILD_BENCHMARKS": "off", + "LLVM_INCLUDE_BENCHMARKS": "off", + "LLVM_BUILD_DOCS": "off", + "LLVM_INCLUDE_DOCS": "off", + "LLVM_BUILD_EXAMPLES": "off", + "LLVM_INCLUDE_EXAMPLES": "off", + "LLVM_BUILD_RUNTIME": "off", + "LLVM_BUILD_RUNTIMES": "off", + "LLVM_INCLUDE_RUNTIMES": "off", + "LLVM_BUILD_TESTS": "off", + "LLVM_INCLUDE_TESTS": "off", + "LLVM_BUILD_TOOLS": "off", + "LLVM_INCLUDE_TOOLS": "off", + "LLVM_BUILD_UTILS": "off", + "LLVM_INCLUDE_UTILS": "off", + "LLVM_ENABLE_IDE": "off", + "LLVM_ENABLE_LIBEDIT": "off", + "LLVM_ENABLE_LIBXML2": "off", + "LLVM_ENABLE_TERMINFO": "off", + "LLVM_ENABLE_ZLIB": "off", + "LLVM_TARGETS_TO_BUILD": "X86", + "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", + }, + # `lld` doesn't work on MacOS + generate_args = select({ + "@platforms//os:linux": [ + "-GNinja", + "-DLLVM_USE_LINKER=lld", + ], + "//conditions:default": [ + "-GNinja", + ], + }), + lib_source = ":srcs", + out_data_dirs = [ + "bin", + "include", + "lib", + "libexec", + "share", + ], + out_static_libs = [ + # How to get the library list: + # build LLVM with "-DLLVM_INCLUDE_TOOLS=ON" + # cd bin and run "./llvm-config --libnames" + "libLLVMWindowsManifest.a", + "libLLVMXRay.a", + "libLLVMLibDriver.a", + "libLLVMDlltoolDriver.a", + "libLLVMCoverage.a", + "libLLVMLineEditor.a", + "libLLVMX86Disassembler.a", + "libLLVMX86AsmParser.a", + "libLLVMX86CodeGen.a", + "libLLVMX86Desc.a", + "libLLVMX86Info.a", + "libLLVMOrcJIT.a", + "libLLVMMCJIT.a", + "libLLVMJITLink.a", + "libLLVMInterpreter.a", + "libLLVMExecutionEngine.a", + "libLLVMRuntimeDyld.a", + "libLLVMOrcTargetProcess.a", + "libLLVMOrcShared.a", + "libLLVMDWP.a", + "libLLVMSymbolize.a", + "libLLVMDebugInfoPDB.a", + "libLLVMDebugInfoGSYM.a", + "libLLVMOption.a", + "libLLVMObjectYAML.a", + "libLLVMMCA.a", + "libLLVMMCDisassembler.a", + "libLLVMLTO.a", + "libLLVMPasses.a", + "libLLVMCFGuard.a", + "libLLVMCoroutines.a", + "libLLVMObjCARCOpts.a", + "libLLVMipo.a", + "libLLVMVectorize.a", + "libLLVMLinker.a", + "libLLVMInstrumentation.a", + "libLLVMFrontendOpenMP.a", + "libLLVMFrontendOpenACC.a", + "libLLVMExtensions.a", + "libLLVMDWARFLinker.a", + "libLLVMGlobalISel.a", + "libLLVMMIRParser.a", + "libLLVMAsmPrinter.a", + "libLLVMDebugInfoMSF.a", + "libLLVMDebugInfoDWARF.a", + "libLLVMSelectionDAG.a", + "libLLVMCodeGen.a", + "libLLVMIRReader.a", + "libLLVMAsmParser.a", + "libLLVMInterfaceStub.a", + "libLLVMFileCheck.a", + "libLLVMFuzzMutate.a", + "libLLVMTarget.a", + "libLLVMScalarOpts.a", + "libLLVMInstCombine.a", + "libLLVMAggressiveInstCombine.a", + "libLLVMTransformUtils.a", + "libLLVMBitWriter.a", + "libLLVMAnalysis.a", + "libLLVMProfileData.a", + "libLLVMObject.a", + "libLLVMTextAPI.a", + "libLLVMMCParser.a", + "libLLVMMC.a", + "libLLVMDebugInfoCodeView.a", + "libLLVMBitReader.a", + "libLLVMCore.a", + "libLLVMRemarks.a", + "libLLVMBitstreamReader.a", + "libLLVMBinaryFormat.a", + "libLLVMTableGen.a", + "libLLVMSupport.a", + "libLLVMDemangle.a", + ], +) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 48b3c75ca..b56aa4c1b 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -159,10 +159,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - # WAMR-2022-12-07 - sha256 = "6a5263ad022176257a93b39b02f95f615c0c590da1798c86c935f501a51c30c4", - strip_prefix = "wasm-micro-runtime-c3d66f916ef8093e5c8cacf3329ed968f807cf58", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/c3d66f916ef8093e5c8cacf3329ed968f807cf58.tar.gz", + # WAMR-2022-12-16 + sha256 = "976b928f420040a77e793051e4d742208adf157370b9ad0f5535e126adb31eb0", + strip_prefix = "wasm-micro-runtime-WAMR-1.1.2", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/WAMR-1.1.2.tar.gz", ) native.bind( @@ -170,6 +170,15 @@ def proxy_wasm_cpp_host_repositories(): actual = "@com_github_bytecodealliance_wasm_micro_runtime//:wamr_lib", ) + maybe( + http_archive, + name = "llvm-13_0_1", + build_file = "@proxy_wasm_cpp_host//bazel/external:wamr_llvm.BUILD", + sha256 = "ec6b80d82c384acad2dc192903a6cf2cdbaffb889b84bfb98da9d71e630fc834", + strip_prefix = "llvm-13.0.1.src", + url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/llvm-13.0.1.src.tar.xz", + ) + # WasmEdge with dependencies. maybe( diff --git a/bazel/select.bzl b/bazel/select.bzl index d79862ace..747aef33c 100644 --- a/bazel/select.bzl +++ b/bazel/select.bzl @@ -28,7 +28,8 @@ def proxy_wasm_select_engine_v8(xs): def proxy_wasm_select_engine_wamr(xs): return select({ - "@proxy_wasm_cpp_host//bazel:engine_wamr": xs, + "@proxy_wasm_cpp_host//bazel:engine_wamr_interp": xs, + "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": xs, "@proxy_wasm_cpp_host//bazel:multiengine": xs, "//conditions:default": [], }) From 609960ce1921ebeba0d4339ba5f236516931f2fd Mon Sep 17 00:00:00 2001 From: Konstantin Maksimov <18444445+knm3000@users.noreply.github.com> Date: Tue, 7 Feb 2023 00:27:29 +0100 Subject: [PATCH 231/287] rustc_flags linker flag no longer needed for s390x (#329) Signed-off-by: Konstantin Maksimov --- bazel/wasm.bzl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index 58cd84e3b..9b3a5f734 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -77,7 +77,7 @@ wasi_rust_binary_rule = rule( attrs = _wasm_attrs(wasi_rust_transition), ) -def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], rustc_flags = [], **kwargs): +def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], **kwargs): wasm_name = "_wasm_" + name.replace(".", "_") kwargs.setdefault("visibility", ["//visibility:public"]) @@ -87,11 +87,6 @@ def wasm_rust_binary(name, tags = [], wasi = False, signing_key = [], rustc_flag crate_type = "cdylib", out_binary = True, tags = ["manual"], - # Rust doesn't distribute rust-lld for Linux/s390x. - rustc_flags = rustc_flags + select({ - "//bazel:linux_s390x": ["-C", "linker=/usr/bin/lld"], - "//conditions:default": [], - }), **kwargs ) From f844e6770014db5eb4abfc20dd453248c71520d5 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Thu, 16 Mar 2023 15:44:16 +0800 Subject: [PATCH 232/287] wamr: avoids redundant .wasm binary content copying. (#332) Signed-off-by: liang.he@intel.com --- src/wamr/wamr.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 577b6784f..e894df8f6 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -125,10 +125,12 @@ bool Wamr::load(std::string_view bytecode, std::string_view /*precompiled*/, return false; } - WasmByteVec vec; - wasm_byte_vec_new(vec.get(), bytecode.size(), bytecode.data()); - - module_ = wasm_module_new(store_.get(), vec.get()); + wasm_byte_vec_t binary = {.size = bytecode.size(), + .data = (char *)bytecode.data(), + .num_elems = bytecode.size(), + .size_of_elem = sizeof(byte_t), + .lock = nullptr}; + module_ = wasm_module_new(store_.get(), &binary); if (module_ == nullptr) { return false; } @@ -344,11 +346,10 @@ bool Wamr::link(std::string_view /*debug_name*/) { wasm_instance_exports(instance_.get(), exports.get()); for (size_t i = 0; i < export_types.get()->size; i++) { - const wasm_externtype_t *exp_extern_type = wasm_exporttype_type(export_types.get()->data[i]); wasm_extern_t *actual_extern = exports.get()->data[i]; wasm_externkind_t kind = wasm_extern_kind(actual_extern); - assert(kind == wasm_externtype_kind(exp_extern_type)); + assert(kind == wasm_externtype_kind(wasm_exporttype_type(export_types.get()->data[i]))); switch (kind) { case WASM_EXTERN_FUNC: { WasmFuncPtr func = wasm_func_copy(wasm_extern_as_func(actual_extern)); From cc3864b4efafe4d984a7baf64c0ac5848b50ed02 Mon Sep 17 00:00:00 2001 From: River <6375745+RiverPhillips@users.noreply.github.com> Date: Mon, 20 Mar 2023 05:32:38 +0000 Subject: [PATCH 233/287] Update rules_rust to v0.19.0 (with Rust v1.68.0). (#334) Signed-off-by: River phillips --- bazel/dependencies.bzl | 4 ++-- bazel/repositories.bzl | 6 +++--- test/runtime_test.cc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index b6a4cb576..49db6d7ba 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -39,7 +39,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.62.1", + version = "1.68.0", ) rust_repository_set( name = "rust_linux_s390x", @@ -48,7 +48,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.62.1", + version = "1.68.0", ) zig_register_toolchains( diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index b56aa4c1b..faed87ae0 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -74,10 +74,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_rust", - sha256 = "f3d443e9ad1eca99fbcade1c649adbd8200753cf22e47846b3105a43a550273b", - strip_prefix = "rules_rust-0.8.1", + sha256 = "c8a84a01bff4be4c7a8beefbc12e713ff296fed2110c30572a44205856594cfc", + strip_prefix = "rules_rust-0.19.0", # NOTE: Update Rust version in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/0.8.1.tar.gz", + url = "https://github.com/bazelbuild/rules_rust/archive/0.19.0.tar.gz", patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], patch_args = ["-p1"], ) diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 20f723f5f..876908515 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -142,7 +142,7 @@ TEST_P(TestVm, WasmMemoryLimit) { // Backtrace if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); - EXPECT_TRUE(host->isErrorLogged(" - rust_oom")); + EXPECT_TRUE(host->isErrorLogged("rust_oom")); EXPECT_TRUE(host->isErrorLogged(" - alloc::alloc::handle_alloc_error")); } } From 8aa8053609d893e25287551295bd9cd7dd4c3dcc Mon Sep 17 00:00:00 2001 From: River <6375745+RiverPhillips@users.noreply.github.com> Date: Mon, 20 Mar 2023 16:24:12 +0000 Subject: [PATCH 234/287] wasmtime: update to v6.0.1. (#333) Signed-off-by: River phillips --- bazel/cargo/wasmtime/BUILD.bazel | 8 +- bazel/cargo/wasmtime/Cargo.raze.lock | 379 ++++++---- bazel/cargo/wasmtime/Cargo.toml | 6 +- bazel/cargo/wasmtime/crates.bzl | 656 ++++++++++-------- .../wasmtime/remote/BUILD.ahash-0.7.6.bazel | 2 +- ....bazel => BUILD.aho-corasick-0.7.20.bazel} | 2 +- ...1.0.66.bazel => BUILD.anyhow-1.0.70.bazel} | 4 +- .../wasmtime/remote/BUILD.atty-0.2.14.bazel | 2 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 2 +- ....11.1.bazel => BUILD.bumpalo-3.12.0.bazel} | 2 +- ....cc-1.0.77.bazel => BUILD.cc-1.0.79.bazel} | 4 +- ...l => BUILD.cranelift-bforest-0.93.1.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.93.1.bazel} | 23 +- ...BUILD.cranelift-codegen-meta-0.93.1.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.93.1.bazel} | 2 +- ...el => BUILD.cranelift-entity-0.93.1.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.93.1.bazel} | 6 +- ...azel => BUILD.cranelift-isle-0.93.1.bazel} | 4 +- ...el => BUILD.cranelift-native-0.93.1.bazel} | 10 +- ...azel => BUILD.cranelift-wasm-0.93.1.bazel} | 12 +- ...r-1.8.0.bazel => BUILD.either-1.8.1.bazel} | 2 +- .../remote/BUILD.env_logger-0.9.3.bazel | 4 +- .../wasmtime/remote/BUILD.errno-0.2.8.bazel | 3 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 4 +- .../remote/BUILD.form_urlencoded-1.1.0.bazel | 55 ++ .../remote/BUILD.getrandom-0.2.8.bazel | 2 +- .../remote/BUILD.hashbrown-0.12.3.bazel | 2 + .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- .../remote/BUILD.hermit-abi-0.3.1.bazel | 55 ++ ...ste-1.0.9.bazel => BUILD.idna-0.3.0.bazel} | 22 +- .../remote/BUILD.indexmap-1.9.2.bazel | 2 +- .../remote/BUILD.io-lifetimes-0.7.5.bazel | 84 --- .../remote/BUILD.io-lifetimes-1.0.8.bazel | 161 +++++ .../remote/BUILD.itertools-0.10.5.bazel | 2 +- ...0.2.137.bazel => BUILD.libc-0.2.140.bazel} | 4 +- ....bazel => BUILD.linux-raw-sys-0.1.4.bazel} | 2 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- .../wasmtime/remote/BUILD.memfd-0.6.2.bazel | 61 ++ ...6.0.bazel => BUILD.once_cell-1.17.1.bazel} | 2 +- ...-0.36.1.bazel => BUILD.paste-1.0.12.bazel} | 24 +- .../remote/BUILD.percent-encoding-2.2.0.bazel | 56 ++ ...7.bazel => BUILD.proc-macro2-1.0.52.bazel} | 8 +- .../wasmtime/remote/BUILD.psm-0.1.21.bazel | 2 +- ...-1.0.21.bazel => BUILD.quote-1.0.26.bazel} | 6 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 3 +- ....4.2.bazel => BUILD.regalloc2-0.5.1.bazel} | 2 +- ...ex-1.7.0.bazel => BUILD.regex-1.7.1.bazel} | 4 +- ...35.13.bazel => BUILD.rustix-0.36.10.bazel} | 46 +- ....0.147.bazel => BUILD.serde-1.0.157.bazel} | 6 +- ...bazel => BUILD.serde_derive-1.0.157.bazel} | 10 +- ...yn-1.0.103.bazel => BUILD.syn-2.0.2.bazel} | 47 +- ...azel => BUILD.target-lexicon-0.12.6.bazel} | 6 +- ....1.3.bazel => BUILD.termcolor-1.2.0.bazel} | 2 +- ....37.bazel => BUILD.thiserror-1.0.40.bazel} | 6 +- ...azel => BUILD.thiserror-impl-1.0.40.bazel} | 8 +- .../wasmtime/remote/BUILD.tinyvec-1.6.0.bazel | 66 ++ .../remote/BUILD.tinyvec_macros-0.1.1.bazel | 54 ++ .../remote/BUILD.unicode-bidi-0.3.12.bazel | 59 ++ ....bazel => BUILD.unicode-ident-1.0.8.bazel} | 2 +- .../BUILD.unicode-normalization-0.1.22.bazel | 59 ++ .../wasmtime/remote/BUILD.url-2.3.1.bazel | 66 ++ ...0.bazel => BUILD.wasmparser-0.100.0.bazel} | 3 +- ...2.0.2.bazel => BUILD.wasmtime-6.0.1.bazel} | 30 +- ... => BUILD.wasmtime-asm-macros-6.0.1.bazel} | 2 +- ...> BUILD.wasmtime-c-api-macros-0.0.0.bazel} | 6 +- ...l => BUILD.wasmtime-cranelift-6.0.1.bazel} | 22 +- ...zel => BUILD.wasmtime-environ-6.0.1.bazel} | 16 +- .../remote/BUILD.wasmtime-jit-6.0.1.bazel | 79 +++ ...l => BUILD.wasmtime-jit-debug-6.0.1.bazel} | 4 +- ...wasmtime-jit-icache-coherence-6.0.1.bazel} | 33 +- ...zel => BUILD.wasmtime-runtime-6.0.1.bazel} | 26 +- ...bazel => BUILD.wasmtime-types-6.0.1.bazel} | 10 +- .../remote/BUILD.windows-sys-0.42.0.bazel | 16 +- .../remote/BUILD.windows-sys-0.45.0.bazel | 96 +++ ...zel => BUILD.windows-targets-0.42.2.bazel} | 22 +- ...UILD.windows_aarch64_gnullvm-0.42.2.bazel} | 4 +- ...> BUILD.windows_aarch64_msvc-0.42.2.bazel} | 4 +- .../BUILD.windows_i686_gnu-0.42.0.bazel | 84 --- ...el => BUILD.windows_i686_gnu-0.42.2.bazel} | 4 +- .../BUILD.windows_i686_msvc-0.42.0.bazel | 84 --- ...l => BUILD.windows_i686_msvc-0.42.2.bazel} | 4 +- .../BUILD.windows_x86_64_gnu-0.42.0.bazel | 84 --- ... => BUILD.windows_x86_64_gnu-0.42.2.bazel} | 4 +- ...BUILD.windows_x86_64_gnullvm-0.42.2.bazel} | 4 +- .../BUILD.windows_x86_64_msvc-0.42.0.bazel | 84 --- ...=> BUILD.windows_x86_64_msvc-0.42.2.bazel} | 4 +- bazel/repositories.bzl | 6 +- 87 files changed, 1735 insertions(+), 1149 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.aho-corasick-0.7.19.bazel => BUILD.aho-corasick-0.7.20.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.anyhow-1.0.66.bazel => BUILD.anyhow-1.0.70.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.bumpalo-3.11.1.bazel => BUILD.bumpalo-3.12.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.cc-1.0.77.bazel => BUILD.cc-1.0.79.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.89.2.bazel => BUILD.cranelift-bforest-0.93.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.89.2.bazel => BUILD.cranelift-codegen-0.93.1.bazel} (77%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.89.2.bazel => BUILD.cranelift-codegen-meta-0.93.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.89.2.bazel => BUILD.cranelift-codegen-shared-0.93.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.89.2.bazel => BUILD.cranelift-entity-0.93.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.89.2.bazel => BUILD.cranelift-frontend-0.93.1.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-isle-0.89.2.bazel => BUILD.cranelift-isle-0.93.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.89.2.bazel => BUILD.cranelift-native-0.93.1.bazel} (82%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.89.2.bazel => BUILD.cranelift-wasm-0.93.1.bazel} (79%) rename bazel/cargo/wasmtime/remote/{BUILD.either-1.8.0.bazel => BUILD.either-1.8.1.bazel} (97%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.paste-1.0.9.bazel => BUILD.idna-0.3.0.bazel} (71%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.8.bazel rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.137.bazel => BUILD.libc-0.2.140.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.linux-raw-sys-0.0.46.bazel => BUILD.linux-raw-sys-0.1.4.bazel} (97%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.2.bazel rename bazel/cargo/wasmtime/remote/{BUILD.once_cell-1.16.0.bazel => BUILD.once_cell-1.17.1.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_aarch64_msvc-0.36.1.bazel => BUILD.paste-1.0.12.bazel} (76%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.proc-macro2-1.0.47.bazel => BUILD.proc-macro2-1.0.52.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.quote-1.0.21.bazel => BUILD.quote-1.0.26.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.regalloc2-0.4.2.bazel => BUILD.regalloc2-0.5.1.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-1.7.0.bazel => BUILD.regex-1.7.1.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.35.13.bazel => BUILD.rustix-0.36.10.bazel} (80%) rename bazel/cargo/wasmtime/remote/{BUILD.serde-1.0.147.bazel => BUILD.serde-1.0.157.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.serde_derive-1.0.147.bazel => BUILD.serde_derive-1.0.157.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.syn-1.0.103.bazel => BUILD.syn-2.0.2.bazel} (75%) rename bazel/cargo/wasmtime/remote/{BUILD.target-lexicon-0.12.5.bazel => BUILD.target-lexicon-0.12.6.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.termcolor-1.1.3.bazel => BUILD.termcolor-1.2.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.thiserror-1.0.37.bazel => BUILD.thiserror-1.0.40.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.thiserror-impl-1.0.37.bazel => BUILD.thiserror-impl-1.0.40.bazel} (86%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.12.bazel rename bazel/cargo/wasmtime/remote/{BUILD.unicode-ident-1.0.5.bazel => BUILD.unicode-ident-1.0.8.bazel} (98%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.92.0.bazel => BUILD.wasmparser-0.100.0.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-2.0.2.bazel => BUILD.wasmtime-6.0.1.bazel} (76%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-asm-macros-2.0.2.bazel => BUILD.wasmtime-asm-macros-6.0.1.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-c-api-macros-0.19.0.bazel => BUILD.wasmtime-c-api-macros-0.0.0.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-2.0.2.bazel => BUILD.wasmtime-cranelift-6.0.1.bazel} (66%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-2.0.2.bazel => BUILD.wasmtime-environ-6.0.1.bazel} (76%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-6.0.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-2.0.2.bazel => BUILD.wasmtime-jit-debug-6.0.1.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-2.0.2.bazel => BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel} (66%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-2.0.2.bazel => BUILD.wasmtime-runtime-6.0.1.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-2.0.2.bazel => BUILD.wasmtime-types-6.0.1.bazel} (81%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows-sys-0.36.1.bazel => BUILD.windows-targets-0.42.2.bazel} (71%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_aarch64_gnullvm-0.42.0.bazel => BUILD.windows_aarch64_gnullvm-0.42.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_aarch64_msvc-0.42.0.bazel => BUILD.windows_aarch64_msvc-0.42.2.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows_i686_gnu-0.36.1.bazel => BUILD.windows_i686_gnu-0.42.2.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows_i686_msvc-0.36.1.bazel => BUILD.windows_i686_msvc-0.42.2.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows_x86_64_gnu-0.36.1.bazel => BUILD.windows_x86_64_gnu-0.42.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_x86_64_gnullvm-0.42.0.bazel => BUILD.windows_x86_64_gnullvm-0.42.2.bazel} (97%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows_x86_64_msvc-0.36.1.bazel => BUILD.windows_x86_64_msvc-0.42.2.bazel} (97%) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index b06ef02d7..f09d38542 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@wasmtime__anyhow__1_0_66//:anyhow", + actual = "@wasmtime__anyhow__1_0_70//:anyhow", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@wasmtime__once_cell__1_16_0//:once_cell", + actual = "@wasmtime__once_cell__1_17_1//:once_cell", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__2_0_2//:wasmtime", + actual = "@wasmtime__wasmtime__6_0_1//:wasmtime", tags = [ "cargo-raze", "manual", @@ -50,7 +50,7 @@ alias( alias( name = "wasmtime_c_api_macros", - actual = "@wasmtime__wasmtime_c_api_macros__0_19_0//:wasmtime_c_api_macros", + actual = "@wasmtime__wasmtime_c_api_macros__0_0_0//:wasmtime_c_api_macros", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 5c21f6d55..14c6bbdf2 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -22,18 +22,18 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.19" +version = "0.7.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e" +checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.66" +version = "1.0.70" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6" +checksum = "7de8ce5e0f9f8d88245311066a578d72b7af3e7088f32783804676302df237e4" [[package]] name = "arrayvec" @@ -47,7 +47,7 @@ version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" dependencies = [ - "hermit-abi", + "hermit-abi 0.1.19", "libc", "winapi", ] @@ -75,9 +75,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bumpalo" -version = "3.11.1" +version = "3.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba" +checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" [[package]] name = "byteorder" @@ -87,9 +87,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" [[package]] name = "cc" -version = "1.0.77" +version = "1.0.79" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4" +checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" [[package]] name = "cfg-if" @@ -108,18 +108,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "593b398dd0c5b1e2e3a9c3dae8584e287894ea84e361949ad506376e99196265" +checksum = "a7379abaacee0f14abf3204a7606118f0465785252169d186337bcb75030815a" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afc0d8faabd099ea15ab33d49d150e5572c04cfeb95d675fd41286739b754629" +checksum = "9489fa336927df749631f1008007ced2871068544f40a202ce6d93fbf2366a7b" dependencies = [ "arrayvec", "bumpalo", @@ -129,6 +129,7 @@ dependencies = [ "cranelift-entity", "cranelift-isle", "gimli", + "hashbrown", "log", "regalloc2", "smallvec", @@ -137,33 +138,33 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ac1669e42579476f001571d6ba4b825fac686282c97b88b18f8e34242066a81" +checksum = "05bbb67da91ec721ed57cef2f7c5ef7728e1cd9bde9ffd3ef8601022e73e3239" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2a1b1eef9640ab72c1e7b583ac678083855a509da34b4b4378bd99954127c20" +checksum = "418ecb2f36032f6665dc1a5e2060a143dbab41d83b784882e97710e890a7a16d" [[package]] name = "cranelift-entity" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eea4e17c3791fd8134640b26242a9ddbd7c67db78f0bad98cb778bf563ef81a0" +checksum = "7cf583f7b093f291005f9fb1323e2c37f6ee4c7909e39ce016b2e8360d461705" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fca1474b5302348799656d43a40eacd716a3b46169405a3af812832c9edf77b4" +checksum = "0b66bf9e916f57fbbd0f7703ec6286f4624866bf45000111627c70d272c8dda1" dependencies = [ "cranelift-codegen", "log", @@ -173,15 +174,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "77aa537f020ea43483100153278e7215d41695bdcef9eea6642d122675f64249" +checksum = "649782a39ce99798dd6b4029e2bb318a2fbeaade1b4fa25330763c10c65bc358" [[package]] name = "cranelift-native" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bdc6b65241a95b7d8eafbf4e114c082e49b80162a2dcd9c6bcc5989c3310c9e" +checksum = "937e021e089c51f9749d09e7ad1c4f255c2f8686cb8c3df63a34b3ec9921bc41" dependencies = [ "cranelift-codegen", "libc", @@ -190,9 +191,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.89.2" +version = "0.93.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4eb6359f606a1c80ccaa04fae9dbbb504615ec7a49b6c212b341080fff7a65dd" +checksum = "d850cf6775477747c9dfda9ae23355dd70512ffebc70cf82b85a5b111ae668b5" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -215,9 +216,9 @@ dependencies = [ [[package]] name = "either" -version = "1.8.0" +version = "1.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797" +checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" [[package]] name = "env_logger" @@ -259,6 +260,15 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" +[[package]] +name = "form_urlencoded" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +dependencies = [ + "percent-encoding", +] + [[package]] name = "fxhash" version = "0.2.1" @@ -308,12 +318,28 @@ dependencies = [ "libc", ] +[[package]] +name = "hermit-abi" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" + [[package]] name = "humantime" version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" +[[package]] +name = "idna" +version = "0.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +dependencies = [ + "unicode-bidi", + "unicode-normalization", +] + [[package]] name = "indexmap" version = "1.9.2" @@ -327,9 +353,14 @@ dependencies = [ [[package]] name = "io-lifetimes" -version = "0.7.5" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074" +checksum = "0dd6da19f25979c7270e70fa95ab371ec3b701cd0eefc47667a09785b3c59155" +dependencies = [ + "hermit-abi 0.3.1", + "libc", + "windows-sys 0.45.0", +] [[package]] name = "itertools" @@ -342,15 +373,15 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.137" +version = "0.2.140" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89" +checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c" [[package]] name = "linux-raw-sys" -version = "0.0.46" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d" +checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" [[package]] name = "log" @@ -376,6 +407,15 @@ version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +[[package]] +name = "memfd" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" +dependencies = [ + "rustix", +] + [[package]] name = "memoffset" version = "0.6.5" @@ -399,15 +439,21 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.16.0" +version = "1.17.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860" +checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" [[package]] name = "paste" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1" +checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" + +[[package]] +name = "percent-encoding" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" [[package]] name = "ppv-lite86" @@ -417,9 +463,9 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "proc-macro2" -version = "1.0.47" +version = "1.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725" +checksum = "1d0e1ae9e836cc3beddd63db0df682593d7e2d3d891ae8c9083d2113e1744224" dependencies = [ "unicode-ident", ] @@ -435,9 +481,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.21" +version = "1.0.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179" +checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" dependencies = [ "proc-macro2", ] @@ -474,9 +520,9 @@ dependencies = [ [[package]] name = "regalloc2" -version = "0.4.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91b2eab54204ea0117fe9a060537e0b07a4e72f7c7d182361ecc346cab2240e5" +checksum = "300d4fbfb40c1c66a78ba3ddd41c1110247cf52f97b87d0f2fc9209bd49b030c" dependencies = [ "fxhash", "log", @@ -486,9 +532,9 @@ dependencies = [ [[package]] name = "regex" -version = "1.7.0" +version = "1.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a" +checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" dependencies = [ "aho-corasick", "memchr", @@ -509,32 +555,32 @@ checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" [[package]] name = "rustix" -version = "0.35.13" +version = "0.36.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "727a1a6d65f786ec22df8a81ca3121107f235970dc1705ed681d3e6e8b9cd5f9" +checksum = "2fe885c3a125aa45213b68cc1472a49880cb5923dc23f522ad2791b882228778" dependencies = [ "bitflags", "errno", "io-lifetimes", "libc", "linux-raw-sys", - "windows-sys 0.42.0", + "windows-sys 0.45.0", ] [[package]] name = "serde" -version = "1.0.147" +version = "1.0.157" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965" +checksum = "707de5fcf5df2b5788fca98dd7eab490bc2fd9b7ef1404defc462833b83f25ca" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.147" +version = "1.0.157" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852" +checksum = "78997f4555c22a7971214540c4a661291970619afd56de19f77e0de86296e1e5" dependencies = [ "proc-macro2", "quote", @@ -561,9 +607,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "1.0.103" +version = "2.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d" +checksum = "59d3276aee1fa0c33612917969b5172b5be2db051232a6e4826f1a1a9191b045" dependencies = [ "proc-macro2", "quote", @@ -572,44 +618,85 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.5" +version = "0.12.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9410d0f6853b1d94f0e519fb95df60f29d2c1eff2d921ffdf01a4c8a3b54f12d" +checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" [[package]] name = "termcolor" -version = "1.1.3" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" dependencies = [ "winapi-util", ] [[package]] name = "thiserror" -version = "1.0.37" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e" +checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.37" +version = "1.0.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb" +checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" dependencies = [ "proc-macro2", "quote", "syn", ] +[[package]] +name = "tinyvec" +version = "1.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +dependencies = [ + "tinyvec_macros", +] + +[[package]] +name = "tinyvec_macros" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" + +[[package]] +name = "unicode-bidi" +version = "0.3.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d502c968c6a838ead8e69b2ee18ec708802f99db92a0d156705ec9ef801993b" + [[package]] name = "unicode-ident" -version = "1.0.5" +version = "1.0.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" + +[[package]] +name = "unicode-normalization" +version = "0.1.22" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +dependencies = [ + "tinyvec", +] + +[[package]] +name = "url" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3" +checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +dependencies = [ + "form_urlencoded", + "idna", + "percent-encoding", +] [[package]] name = "version_check" @@ -625,18 +712,19 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasmparser" -version = "0.92.0" +version = "0.100.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7da34cec2a8c23db906cdf8b26e988d7a7f0d549eb5d51299129647af61a1b37" +checksum = "64b20236ab624147dfbb62cf12a19aaf66af0e41b8398838b66e997d07d269d4" dependencies = [ "indexmap", + "url", ] [[package]] name = "wasmtime" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "743d37c265fa134a76de653c7e66be22590eaccd03da13cee99f3ac7a59cb826" +checksum = "f6e89f9819523447330ffd70367ef4a18d8c832e24e8150fe054d1d912841632" dependencies = [ "anyhow", "bincode", @@ -655,14 +743,14 @@ dependencies = [ "wasmtime-environ", "wasmtime-jit", "wasmtime-runtime", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] name = "wasmtime-asm-macros" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de327cf46d5218315957138131ed904621e6f99018aa2da508c0dcf0c65f1bf2" +checksum = "9bd3a5e46c198032da934469f3a6e48649d1f9142438e4fd4617b68a35644b8a" dependencies = [ "cfg-if", ] @@ -680,8 +768,8 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" -version = "0.19.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v2.0.2#a528e0383e1177119a6c985dac1972513df11a03" +version = "0.0.0" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v6.0.1#b6bc33da2bcb466d377fb02f5aa764a667d08e0a" dependencies = [ "proc-macro2", "quote", @@ -689,9 +777,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "017c3605ccce867b3ba7f71d95e5652acc22b9dc2971ad6a6f9df4a8d7af2648" +checksum = "59b2c92a08c0db6efffd88fdc97d7aa9c7c63b03edb0971dbca745469f820e8c" dependencies = [ "anyhow", "cranelift-codegen", @@ -710,9 +798,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aec5c1f81aab9bb35997113c171b6bb9093afc90e3757c55e0c08dc9ac612e4" +checksum = "9a6db9fc52985ba06ca601f2ff0ff1f526c5d724c7ac267b47326304b0c97883" dependencies = [ "anyhow", "cranelift-entity", @@ -729,9 +817,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08c683893dbba3986aa71582a5332b87157fb95d34098de2e5f077c7f078726d" +checksum = "b77e3a52cd84d0f7f18554afa8060cfe564ccac61e3b0802d3fd4084772fa5f6" dependencies = [ "addr2line", "anyhow", @@ -742,29 +830,39 @@ dependencies = [ "log", "object", "rustc-demangle", - "rustix", "serde", "target-lexicon", - "thiserror", "wasmtime-environ", + "wasmtime-jit-icache-coherence", "wasmtime-runtime", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] name = "wasmtime-jit-debug" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2f8f15a81292eec468c79a4f887a37a3d02eb0c610f34ddbec607d3e9022f18" +checksum = "d0245e8a9347017c7185a72e215218a802ff561545c242953c11ba00fccc930f" dependencies = [ "once_cell", ] +[[package]] +name = "wasmtime-jit-icache-coherence" +version = "6.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67d412e9340ab1c83867051d8d1d7c90aa8c9afc91da086088068e2734e25064" +dependencies = [ + "cfg-if", + "libc", + "windows-sys 0.42.0", +] + [[package]] name = "wasmtime-runtime" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09af6238c962e8220424c815a7b1a9a6d0ba0694f0ab0ae12a6cda1923935a0d" +checksum = "d594e791b5fdd4dbaf8cf7ae62f2e4ff85018ce90f483ca6f42947688e48827d" dependencies = [ "anyhow", "cc", @@ -773,22 +871,22 @@ dependencies = [ "libc", "log", "mach", + "memfd", "memoffset", "paste", "rand", "rustix", - "thiserror", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", - "windows-sys 0.36.1", + "windows-sys 0.42.0", ] [[package]] name = "wasmtime-types" -version = "2.0.2" +version = "6.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dc3dd9521815984b35d6362f79e6b9c72475027cd1c71c44eb8df8fbf33a9fb" +checksum = "a6688d6f96d4dbc1f89fab626c56c1778936d122b5f4ae7a57c2eb42b8d982e2" dependencies = [ "cranelift-entity", "serde", @@ -827,19 +925,6 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" -[[package]] -name = "windows-sys" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" -dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", -] - [[package]] name = "windows-sys" version = "0.42.0" @@ -847,82 +932,76 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" dependencies = [ "windows_aarch64_gnullvm", - "windows_aarch64_msvc 0.42.0", - "windows_i686_gnu 0.42.0", - "windows_i686_msvc 0.42.0", - "windows_x86_64_gnu 0.42.0", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", "windows_x86_64_gnullvm", - "windows_x86_64_msvc 0.42.0", + "windows_x86_64_msvc", ] [[package]] -name = "windows_aarch64_gnullvm" -version = "0.42.0" +name = "windows-sys" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +dependencies = [ + "windows-targets", +] [[package]] -name = "windows_aarch64_msvc" -version = "0.36.1" +name = "windows-targets" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", +] [[package]] -name = "windows_aarch64_msvc" -version = "0.42.0" +name = "windows_aarch64_gnullvm" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" [[package]] -name = "windows_i686_gnu" -version = "0.36.1" +name = "windows_aarch64_msvc" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_i686_gnu" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7" - -[[package]] -name = "windows_i686_msvc" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_msvc" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246" - -[[package]] -name = "windows_x86_64_gnu" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_x86_64_gnu" -version = "0.42.0" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.0" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" [[package]] name = "windows_x86_64_msvc" -version = "0.36.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" - -[[package]] -name = "windows_x86_64_msvc" -version = "0.42.0" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index aeb869b3a..f4199812e 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -10,8 +10,8 @@ path = "fake_lib.rs" env_logger = "0.9" anyhow = "1.0" once_cell = "1.3" -wasmtime = {version = "2.0.2", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v2.0.2"} +wasmtime = {version = "6.0.1", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v6.0.1"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" @@ -37,5 +37,5 @@ additional_flags = [ "--cfg=feature=\\\"cc\\\"", ] buildrs_additional_deps = [ - "@wasmtime__cc__1_0_77//:cc", + "@wasmtime__cc__1_0_79//:cc", ] diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index 26949685a..1a65f92eb 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -33,22 +33,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__aho_corasick__0_7_19", - url = "https://crates.io/api/v1/crates/aho-corasick/0.7.19/download", + name = "wasmtime__aho_corasick__0_7_20", + url = "https://crates.io/api/v1/crates/aho-corasick/0.7.20/download", type = "tar.gz", - sha256 = "b4f55bd91a0978cbfd91c457a164bab8b4001c833b7f323132c0a4e1922dd44e", - strip_prefix = "aho-corasick-0.7.19", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-0.7.19.bazel"), + sha256 = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac", + strip_prefix = "aho-corasick-0.7.20", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-0.7.20.bazel"), ) maybe( http_archive, - name = "wasmtime__anyhow__1_0_66", - url = "https://crates.io/api/v1/crates/anyhow/1.0.66/download", + name = "wasmtime__anyhow__1_0_70", + url = "https://crates.io/api/v1/crates/anyhow/1.0.70/download", type = "tar.gz", - sha256 = "216261ddc8289130e551ddcd5ce8a064710c0d064a4d2895c67151c92b5443f6", - strip_prefix = "anyhow-1.0.66", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.66.bazel"), + sha256 = "7de8ce5e0f9f8d88245311066a578d72b7af3e7088f32783804676302df237e4", + strip_prefix = "anyhow-1.0.70", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.70.bazel"), ) maybe( @@ -103,18 +103,18 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__bumpalo__3_11_1", - url = "https://crates.io/api/v1/crates/bumpalo/3.11.1/download", + name = "wasmtime__bumpalo__3_12_0", + url = "https://crates.io/api/v1/crates/bumpalo/3.12.0/download", type = "tar.gz", - sha256 = "572f695136211188308f16ad2ca5c851a712c464060ae6974944458eb83880ba", - strip_prefix = "bumpalo-3.11.1", + sha256 = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535", + strip_prefix = "bumpalo-3.12.0", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:bumpalo.patch", ], patch_args = [ "-p1", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bumpalo-3.11.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bumpalo-3.12.0.bazel"), ) maybe( @@ -129,12 +129,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cc__1_0_77", - url = "https://crates.io/api/v1/crates/cc/1.0.77/download", + name = "wasmtime__cc__1_0_79", + url = "https://crates.io/api/v1/crates/cc/1.0.79/download", type = "tar.gz", - sha256 = "e9f73505338f7d905b19d18738976aae232eb46b8efc15554ffc56deb5d9ebe4", - strip_prefix = "cc-1.0.77", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.77.bazel"), + sha256 = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f", + strip_prefix = "cc-1.0.79", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.79.bazel"), ) maybe( @@ -159,98 +159,98 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.89.2/download", + name = "wasmtime__cranelift_bforest__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.93.1/download", type = "tar.gz", - sha256 = "593b398dd0c5b1e2e3a9c3dae8584e287894ea84e361949ad506376e99196265", - strip_prefix = "cranelift-bforest-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.89.2.bazel"), + sha256 = "a7379abaacee0f14abf3204a7606118f0465785252169d186337bcb75030815a", + strip_prefix = "cranelift-bforest-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.89.2/download", + name = "wasmtime__cranelift_codegen__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.93.1/download", type = "tar.gz", - sha256 = "afc0d8faabd099ea15ab33d49d150e5572c04cfeb95d675fd41286739b754629", - strip_prefix = "cranelift-codegen-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.89.2.bazel"), + sha256 = "9489fa336927df749631f1008007ced2871068544f40a202ce6d93fbf2366a7b", + strip_prefix = "cranelift-codegen-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.89.2/download", + name = "wasmtime__cranelift_codegen_meta__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.93.1/download", type = "tar.gz", - sha256 = "1ac1669e42579476f001571d6ba4b825fac686282c97b88b18f8e34242066a81", - strip_prefix = "cranelift-codegen-meta-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.89.2.bazel"), + sha256 = "05bbb67da91ec721ed57cef2f7c5ef7728e1cd9bde9ffd3ef8601022e73e3239", + strip_prefix = "cranelift-codegen-meta-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.89.2/download", + name = "wasmtime__cranelift_codegen_shared__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.93.1/download", type = "tar.gz", - sha256 = "e2a1b1eef9640ab72c1e7b583ac678083855a509da34b4b4378bd99954127c20", - strip_prefix = "cranelift-codegen-shared-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.89.2.bazel"), + sha256 = "418ecb2f36032f6665dc1a5e2060a143dbab41d83b784882e97710e890a7a16d", + strip_prefix = "cranelift-codegen-shared-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.89.2/download", + name = "wasmtime__cranelift_entity__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.93.1/download", type = "tar.gz", - sha256 = "eea4e17c3791fd8134640b26242a9ddbd7c67db78f0bad98cb778bf563ef81a0", - strip_prefix = "cranelift-entity-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.89.2.bazel"), + sha256 = "7cf583f7b093f291005f9fb1323e2c37f6ee4c7909e39ce016b2e8360d461705", + strip_prefix = "cranelift-entity-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.89.2/download", + name = "wasmtime__cranelift_frontend__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.93.1/download", type = "tar.gz", - sha256 = "fca1474b5302348799656d43a40eacd716a3b46169405a3af812832c9edf77b4", - strip_prefix = "cranelift-frontend-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.89.2.bazel"), + sha256 = "0b66bf9e916f57fbbd0f7703ec6286f4624866bf45000111627c70d272c8dda1", + strip_prefix = "cranelift-frontend-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_isle__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-isle/0.89.2/download", + name = "wasmtime__cranelift_isle__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-isle/0.93.1/download", type = "tar.gz", - sha256 = "77aa537f020ea43483100153278e7215d41695bdcef9eea6642d122675f64249", - strip_prefix = "cranelift-isle-0.89.2", + sha256 = "649782a39ce99798dd6b4029e2bb318a2fbeaade1b4fa25330763c10c65bc358", + strip_prefix = "cranelift-isle-0.93.1", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", ], patch_args = [ "-p4", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.89.2.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-native/0.89.2/download", + name = "wasmtime__cranelift_native__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-native/0.93.1/download", type = "tar.gz", - sha256 = "8bdc6b65241a95b7d8eafbf4e114c082e49b80162a2dcd9c6bcc5989c3310c9e", - strip_prefix = "cranelift-native-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.89.2.bazel"), + sha256 = "937e021e089c51f9749d09e7ad1c4f255c2f8686cb8c3df63a34b3ec9921bc41", + strip_prefix = "cranelift-native-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.93.1.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_89_2", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.89.2/download", + name = "wasmtime__cranelift_wasm__0_93_1", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.93.1/download", type = "tar.gz", - sha256 = "4eb6359f606a1c80ccaa04fae9dbbb504615ec7a49b6c212b341080fff7a65dd", - strip_prefix = "cranelift-wasm-0.89.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.89.2.bazel"), + sha256 = "d850cf6775477747c9dfda9ae23355dd70512ffebc70cf82b85a5b111ae668b5", + strip_prefix = "cranelift-wasm-0.93.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.93.1.bazel"), ) maybe( @@ -265,12 +265,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__either__1_8_0", - url = "https://crates.io/api/v1/crates/either/1.8.0/download", + name = "wasmtime__either__1_8_1", + url = "https://crates.io/api/v1/crates/either/1.8.1/download", type = "tar.gz", - sha256 = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797", - strip_prefix = "either-1.8.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.8.0.bazel"), + sha256 = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91", + strip_prefix = "either-1.8.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.8.1.bazel"), ) maybe( @@ -313,6 +313,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.fallible-iterator-0.2.0.bazel"), ) + maybe( + http_archive, + name = "wasmtime__form_urlencoded__1_1_0", + url = "https://crates.io/api/v1/crates/form_urlencoded/1.1.0/download", + type = "tar.gz", + sha256 = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8", + strip_prefix = "form_urlencoded-1.1.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.form_urlencoded-1.1.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__fxhash__0_2_1", @@ -363,6 +373,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hermit-abi-0.1.19.bazel"), ) + maybe( + http_archive, + name = "wasmtime__hermit_abi__0_3_1", + url = "https://crates.io/api/v1/crates/hermit-abi/0.3.1/download", + type = "tar.gz", + sha256 = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286", + strip_prefix = "hermit-abi-0.3.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hermit-abi-0.3.1.bazel"), + ) + maybe( http_archive, name = "wasmtime__humantime__2_1_0", @@ -373,6 +393,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.humantime-2.1.0.bazel"), ) + maybe( + http_archive, + name = "wasmtime__idna__0_3_0", + url = "https://crates.io/api/v1/crates/idna/0.3.0/download", + type = "tar.gz", + sha256 = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6", + strip_prefix = "idna-0.3.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.idna-0.3.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__indexmap__1_9_2", @@ -385,12 +415,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__io_lifetimes__0_7_5", - url = "https://crates.io/api/v1/crates/io-lifetimes/0.7.5/download", + name = "wasmtime__io_lifetimes__1_0_8", + url = "https://crates.io/api/v1/crates/io-lifetimes/1.0.8/download", type = "tar.gz", - sha256 = "59ce5ef949d49ee85593fc4d3f3f95ad61657076395cbbce23e2121fc5542074", - strip_prefix = "io-lifetimes-0.7.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-0.7.5.bazel"), + sha256 = "0dd6da19f25979c7270e70fa95ab371ec3b701cd0eefc47667a09785b3c59155", + strip_prefix = "io-lifetimes-1.0.8", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-1.0.8.bazel"), ) maybe( @@ -405,22 +435,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_137", - url = "https://crates.io/api/v1/crates/libc/0.2.137/download", + name = "wasmtime__libc__0_2_140", + url = "https://crates.io/api/v1/crates/libc/0.2.140/download", type = "tar.gz", - sha256 = "fc7fcc620a3bff7cdd7a365be3376c97191aeaccc2a603e600951e452615bf89", - strip_prefix = "libc-0.2.137", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.137.bazel"), + sha256 = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c", + strip_prefix = "libc-0.2.140", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.140.bazel"), ) maybe( http_archive, - name = "wasmtime__linux_raw_sys__0_0_46", - url = "https://crates.io/api/v1/crates/linux-raw-sys/0.0.46/download", + name = "wasmtime__linux_raw_sys__0_1_4", + url = "https://crates.io/api/v1/crates/linux-raw-sys/0.1.4/download", type = "tar.gz", - sha256 = "d4d2456c373231a208ad294c33dc5bff30051eafd954cd4caae83a712b12854d", - strip_prefix = "linux-raw-sys-0.0.46", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.0.46.bazel"), + sha256 = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4", + strip_prefix = "linux-raw-sys-0.1.4", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.1.4.bazel"), ) maybe( @@ -453,6 +483,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memchr-2.5.0.bazel"), ) + maybe( + http_archive, + name = "wasmtime__memfd__0_6_2", + url = "https://crates.io/api/v1/crates/memfd/0.6.2/download", + type = "tar.gz", + sha256 = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb", + strip_prefix = "memfd-0.6.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memfd-0.6.2.bazel"), + ) + maybe( http_archive, name = "wasmtime__memoffset__0_6_5", @@ -475,22 +515,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__once_cell__1_16_0", - url = "https://crates.io/api/v1/crates/once_cell/1.16.0/download", + name = "wasmtime__once_cell__1_17_1", + url = "https://crates.io/api/v1/crates/once_cell/1.17.1/download", + type = "tar.gz", + sha256 = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3", + strip_prefix = "once_cell-1.17.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.17.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__paste__1_0_12", + url = "https://crates.io/api/v1/crates/paste/1.0.12/download", type = "tar.gz", - sha256 = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860", - strip_prefix = "once_cell-1.16.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.16.0.bazel"), + sha256 = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79", + strip_prefix = "paste-1.0.12", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.12.bazel"), ) maybe( http_archive, - name = "wasmtime__paste__1_0_9", - url = "https://crates.io/api/v1/crates/paste/1.0.9/download", + name = "wasmtime__percent_encoding__2_2_0", + url = "https://crates.io/api/v1/crates/percent-encoding/2.2.0/download", type = "tar.gz", - sha256 = "b1de2e551fb905ac83f73f7aedf2f0cb4a0da7e35efa24a202a936269f1f18e1", - strip_prefix = "paste-1.0.9", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.9.bazel"), + sha256 = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e", + strip_prefix = "percent-encoding-2.2.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.percent-encoding-2.2.0.bazel"), ) maybe( @@ -505,12 +555,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__proc_macro2__1_0_47", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.47/download", + name = "wasmtime__proc_macro2__1_0_52", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.52/download", type = "tar.gz", - sha256 = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725", - strip_prefix = "proc-macro2-1.0.47", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.47.bazel"), + sha256 = "1d0e1ae9e836cc3beddd63db0df682593d7e2d3d891ae8c9083d2113e1744224", + strip_prefix = "proc-macro2-1.0.52", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.52.bazel"), ) maybe( @@ -525,12 +575,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__quote__1_0_21", - url = "https://crates.io/api/v1/crates/quote/1.0.21/download", + name = "wasmtime__quote__1_0_26", + url = "https://crates.io/api/v1/crates/quote/1.0.26/download", type = "tar.gz", - sha256 = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179", - strip_prefix = "quote-1.0.21", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.21.bazel"), + sha256 = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc", + strip_prefix = "quote-1.0.26", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.26.bazel"), ) maybe( @@ -565,22 +615,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__regalloc2__0_4_2", - url = "https://crates.io/api/v1/crates/regalloc2/0.4.2/download", + name = "wasmtime__regalloc2__0_5_1", + url = "https://crates.io/api/v1/crates/regalloc2/0.5.1/download", type = "tar.gz", - sha256 = "91b2eab54204ea0117fe9a060537e0b07a4e72f7c7d182361ecc346cab2240e5", - strip_prefix = "regalloc2-0.4.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.4.2.bazel"), + sha256 = "300d4fbfb40c1c66a78ba3ddd41c1110247cf52f97b87d0f2fc9209bd49b030c", + strip_prefix = "regalloc2-0.5.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.5.1.bazel"), ) maybe( http_archive, - name = "wasmtime__regex__1_7_0", - url = "https://crates.io/api/v1/crates/regex/1.7.0/download", + name = "wasmtime__regex__1_7_1", + url = "https://crates.io/api/v1/crates/regex/1.7.1/download", type = "tar.gz", - sha256 = "e076559ef8e241f2ae3479e36f97bd5741c0330689e217ad51ce2c76808b868a", - strip_prefix = "regex-1.7.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.7.0.bazel"), + sha256 = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733", + strip_prefix = "regex-1.7.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.7.1.bazel"), ) maybe( @@ -605,32 +655,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__rustix__0_35_13", - url = "https://crates.io/api/v1/crates/rustix/0.35.13/download", + name = "wasmtime__rustix__0_36_10", + url = "https://crates.io/api/v1/crates/rustix/0.36.10/download", type = "tar.gz", - sha256 = "727a1a6d65f786ec22df8a81ca3121107f235970dc1705ed681d3e6e8b9cd5f9", - strip_prefix = "rustix-0.35.13", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.35.13.bazel"), + sha256 = "2fe885c3a125aa45213b68cc1472a49880cb5923dc23f522ad2791b882228778", + strip_prefix = "rustix-0.36.10", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.36.10.bazel"), ) maybe( http_archive, - name = "wasmtime__serde__1_0_147", - url = "https://crates.io/api/v1/crates/serde/1.0.147/download", + name = "wasmtime__serde__1_0_157", + url = "https://crates.io/api/v1/crates/serde/1.0.157/download", type = "tar.gz", - sha256 = "d193d69bae983fc11a79df82342761dfbf28a99fc8d203dca4c3c1b590948965", - strip_prefix = "serde-1.0.147", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.147.bazel"), + sha256 = "707de5fcf5df2b5788fca98dd7eab490bc2fd9b7ef1404defc462833b83f25ca", + strip_prefix = "serde-1.0.157", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.157.bazel"), ) maybe( http_archive, - name = "wasmtime__serde_derive__1_0_147", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.147/download", + name = "wasmtime__serde_derive__1_0_157", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.157/download", type = "tar.gz", - sha256 = "4f1d362ca8fc9c3e3a7484440752472d68a6caa98f1ab81d99b5dfe517cec852", - strip_prefix = "serde_derive-1.0.147", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.147.bazel"), + sha256 = "78997f4555c22a7971214540c4a661291970619afd56de19f77e0de86296e1e5", + strip_prefix = "serde_derive-1.0.157", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.157.bazel"), ) maybe( @@ -665,62 +715,112 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__syn__1_0_103", - url = "https://crates.io/api/v1/crates/syn/1.0.103/download", + name = "wasmtime__syn__2_0_2", + url = "https://crates.io/api/v1/crates/syn/2.0.2/download", type = "tar.gz", - sha256 = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d", - strip_prefix = "syn-1.0.103", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-1.0.103.bazel"), + sha256 = "59d3276aee1fa0c33612917969b5172b5be2db051232a6e4826f1a1a9191b045", + strip_prefix = "syn-2.0.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-2.0.2.bazel"), ) maybe( http_archive, - name = "wasmtime__target_lexicon__0_12_5", - url = "https://crates.io/api/v1/crates/target-lexicon/0.12.5/download", + name = "wasmtime__target_lexicon__0_12_6", + url = "https://crates.io/api/v1/crates/target-lexicon/0.12.6/download", type = "tar.gz", - sha256 = "9410d0f6853b1d94f0e519fb95df60f29d2c1eff2d921ffdf01a4c8a3b54f12d", - strip_prefix = "target-lexicon-0.12.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.5.bazel"), + sha256 = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5", + strip_prefix = "target-lexicon-0.12.6", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.6.bazel"), ) maybe( http_archive, - name = "wasmtime__termcolor__1_1_3", - url = "https://crates.io/api/v1/crates/termcolor/1.1.3/download", + name = "wasmtime__termcolor__1_2_0", + url = "https://crates.io/api/v1/crates/termcolor/1.2.0/download", type = "tar.gz", - sha256 = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755", - strip_prefix = "termcolor-1.1.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.termcolor-1.1.3.bazel"), + sha256 = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6", + strip_prefix = "termcolor-1.2.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.termcolor-1.2.0.bazel"), ) maybe( http_archive, - name = "wasmtime__thiserror__1_0_37", - url = "https://crates.io/api/v1/crates/thiserror/1.0.37/download", + name = "wasmtime__thiserror__1_0_40", + url = "https://crates.io/api/v1/crates/thiserror/1.0.40/download", type = "tar.gz", - sha256 = "10deb33631e3c9018b9baf9dcbbc4f737320d2b576bac10f6aefa048fa407e3e", - strip_prefix = "thiserror-1.0.37", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.37.bazel"), + sha256 = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac", + strip_prefix = "thiserror-1.0.40", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.40.bazel"), ) maybe( http_archive, - name = "wasmtime__thiserror_impl__1_0_37", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.37/download", + name = "wasmtime__thiserror_impl__1_0_40", + url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.40/download", type = "tar.gz", - sha256 = "982d17546b47146b28f7c22e3d08465f6b8903d0ea13c1660d9d84a6e7adcdbb", - strip_prefix = "thiserror-impl-1.0.37", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.37.bazel"), + sha256 = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f", + strip_prefix = "thiserror-impl-1.0.40", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.40.bazel"), ) maybe( http_archive, - name = "wasmtime__unicode_ident__1_0_5", - url = "https://crates.io/api/v1/crates/unicode-ident/1.0.5/download", + name = "wasmtime__tinyvec__1_6_0", + url = "https://crates.io/api/v1/crates/tinyvec/1.6.0/download", type = "tar.gz", - sha256 = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3", - strip_prefix = "unicode-ident-1.0.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.5.bazel"), + sha256 = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50", + strip_prefix = "tinyvec-1.6.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.tinyvec-1.6.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__tinyvec_macros__0_1_1", + url = "https://crates.io/api/v1/crates/tinyvec_macros/0.1.1/download", + type = "tar.gz", + sha256 = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20", + strip_prefix = "tinyvec_macros-0.1.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.tinyvec_macros-0.1.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__unicode_bidi__0_3_12", + url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.12/download", + type = "tar.gz", + sha256 = "7d502c968c6a838ead8e69b2ee18ec708802f99db92a0d156705ec9ef801993b", + strip_prefix = "unicode-bidi-0.3.12", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-bidi-0.3.12.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__unicode_ident__1_0_8", + url = "https://crates.io/api/v1/crates/unicode-ident/1.0.8/download", + type = "tar.gz", + sha256 = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4", + strip_prefix = "unicode-ident-1.0.8", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.8.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__unicode_normalization__0_1_22", + url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.22/download", + type = "tar.gz", + sha256 = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921", + strip_prefix = "unicode-normalization-0.1.22", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-normalization-0.1.22.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__url__2_3_1", + url = "https://crates.io/api/v1/crates/url/2.3.1/download", + type = "tar.gz", + sha256 = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643", + strip_prefix = "url-2.3.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.url-2.3.1.bazel"), ) maybe( @@ -745,101 +845,111 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmparser__0_92_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.92.0/download", + name = "wasmtime__wasmparser__0_100_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.100.0/download", type = "tar.gz", - sha256 = "7da34cec2a8c23db906cdf8b26e988d7a7f0d549eb5d51299129647af61a1b37", - strip_prefix = "wasmparser-0.92.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.92.0.bazel"), + sha256 = "64b20236ab624147dfbb62cf12a19aaf66af0e41b8398838b66e997d07d269d4", + strip_prefix = "wasmparser-0.100.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.100.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime/2.0.2/download", + name = "wasmtime__wasmtime__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime/6.0.1/download", type = "tar.gz", - sha256 = "743d37c265fa134a76de653c7e66be22590eaccd03da13cee99f3ac7a59cb826", - strip_prefix = "wasmtime-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-2.0.2.bazel"), + sha256 = "f6e89f9819523447330ffd70367ef4a18d8c832e24e8150fe054d1d912841632", + strip_prefix = "wasmtime-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-6.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_asm_macros__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/2.0.2/download", + name = "wasmtime__wasmtime_asm_macros__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/6.0.1/download", type = "tar.gz", - sha256 = "de327cf46d5218315957138131ed904621e6f99018aa2da508c0dcf0c65f1bf2", - strip_prefix = "wasmtime-asm-macros-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-2.0.2.bazel"), + sha256 = "9bd3a5e46c198032da934469f3a6e48649d1f9142438e4fd4617b68a35644b8a", + strip_prefix = "wasmtime-asm-macros-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-6.0.1.bazel"), ) maybe( new_git_repository, - name = "wasmtime__wasmtime_c_api_macros__0_19_0", + name = "wasmtime__wasmtime_c_api_macros__0_0_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "a528e0383e1177119a6c985dac1972513df11a03", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.19.0.bazel"), + commit = "b6bc33da2bcb466d377fb02f5aa764a667d08e0a", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.0.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/2.0.2/download", + name = "wasmtime__wasmtime_cranelift__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/6.0.1/download", type = "tar.gz", - sha256 = "017c3605ccce867b3ba7f71d95e5652acc22b9dc2971ad6a6f9df4a8d7af2648", - strip_prefix = "wasmtime-cranelift-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-2.0.2.bazel"), + sha256 = "59b2c92a08c0db6efffd88fdc97d7aa9c7c63b03edb0971dbca745469f820e8c", + strip_prefix = "wasmtime-cranelift-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-6.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime-environ/2.0.2/download", + name = "wasmtime__wasmtime_environ__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-environ/6.0.1/download", type = "tar.gz", - sha256 = "6aec5c1f81aab9bb35997113c171b6bb9093afc90e3757c55e0c08dc9ac612e4", - strip_prefix = "wasmtime-environ-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-2.0.2.bazel"), + sha256 = "9a6db9fc52985ba06ca601f2ff0ff1f526c5d724c7ac267b47326304b0c97883", + strip_prefix = "wasmtime-environ-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-6.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime-jit/2.0.2/download", + name = "wasmtime__wasmtime_jit__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit/6.0.1/download", type = "tar.gz", - sha256 = "08c683893dbba3986aa71582a5332b87157fb95d34098de2e5f077c7f078726d", - strip_prefix = "wasmtime-jit-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-2.0.2.bazel"), + sha256 = "b77e3a52cd84d0f7f18554afa8060cfe564ccac61e3b0802d3fd4084772fa5f6", + strip_prefix = "wasmtime-jit-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-6.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/2.0.2/download", + name = "wasmtime__wasmtime_jit_debug__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/6.0.1/download", type = "tar.gz", - sha256 = "b2f8f15a81292eec468c79a4f887a37a3d02eb0c610f34ddbec607d3e9022f18", - strip_prefix = "wasmtime-jit-debug-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-2.0.2.bazel"), + sha256 = "d0245e8a9347017c7185a72e215218a802ff561545c242953c11ba00fccc930f", + strip_prefix = "wasmtime-jit-debug-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-6.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/2.0.2/download", + name = "wasmtime__wasmtime_jit_icache_coherence__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-jit-icache-coherence/6.0.1/download", type = "tar.gz", - sha256 = "09af6238c962e8220424c815a7b1a9a6d0ba0694f0ab0ae12a6cda1923935a0d", - strip_prefix = "wasmtime-runtime-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-2.0.2.bazel"), + sha256 = "67d412e9340ab1c83867051d8d1d7c90aa8c9afc91da086088068e2734e25064", + strip_prefix = "wasmtime-jit-icache-coherence-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__2_0_2", - url = "https://crates.io/api/v1/crates/wasmtime-types/2.0.2/download", + name = "wasmtime__wasmtime_runtime__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/6.0.1/download", type = "tar.gz", - sha256 = "5dc3dd9521815984b35d6362f79e6b9c72475027cd1c71c44eb8df8fbf33a9fb", - strip_prefix = "wasmtime-types-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-2.0.2.bazel"), + sha256 = "d594e791b5fdd4dbaf8cf7ae62f2e4ff85018ce90f483ca6f42947688e48827d", + strip_prefix = "wasmtime-runtime-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-6.0.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__wasmtime_types__6_0_1", + url = "https://crates.io/api/v1/crates/wasmtime-types/6.0.1/download", + type = "tar.gz", + sha256 = "a6688d6f96d4dbc1f89fab626c56c1778936d122b5f4ae7a57c2eb42b8d982e2", + strip_prefix = "wasmtime-types-6.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-6.0.1.bazel"), ) maybe( @@ -882,16 +992,6 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) - maybe( - http_archive, - name = "wasmtime__windows_sys__0_36_1", - url = "https://crates.io/api/v1/crates/windows-sys/0.36.1/download", - type = "tar.gz", - sha256 = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2", - strip_prefix = "windows-sys-0.36.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.36.1.bazel"), - ) - maybe( http_archive, name = "wasmtime__windows_sys__0_42_0", @@ -904,120 +1004,90 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__windows_aarch64_gnullvm__0_42_0", - url = "https://crates.io/api/v1/crates/windows_aarch64_gnullvm/0.42.0/download", - type = "tar.gz", - sha256 = "41d2aa71f6f0cbe00ae5167d90ef3cfe66527d6f613ca78ac8024c3ccab9a19e", - strip_prefix = "windows_aarch64_gnullvm-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.42.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_aarch64_msvc__0_36_1", - url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.36.1/download", - type = "tar.gz", - sha256 = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47", - strip_prefix = "windows_aarch64_msvc-0.36.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.36.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_aarch64_msvc__0_42_0", - url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.42.0/download", - type = "tar.gz", - sha256 = "dd0f252f5a35cac83d6311b2e795981f5ee6e67eb1f9a7f64eb4500fbc4dcdb4", - strip_prefix = "windows_aarch64_msvc-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.42.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_i686_gnu__0_36_1", - url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.36.1/download", + name = "wasmtime__windows_sys__0_45_0", + url = "https://crates.io/api/v1/crates/windows-sys/0.45.0/download", type = "tar.gz", - sha256 = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6", - strip_prefix = "windows_i686_gnu-0.36.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.36.1.bazel"), + sha256 = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0", + strip_prefix = "windows-sys-0.45.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.45.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_i686_gnu__0_42_0", - url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.42.0/download", + name = "wasmtime__windows_targets__0_42_2", + url = "https://crates.io/api/v1/crates/windows-targets/0.42.2/download", type = "tar.gz", - sha256 = "fbeae19f6716841636c28d695375df17562ca208b2b7d0dc47635a50ae6c5de7", - strip_prefix = "windows_i686_gnu-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.42.0.bazel"), + sha256 = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071", + strip_prefix = "windows-targets-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.42.2.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_i686_msvc__0_36_1", - url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.36.1/download", + name = "wasmtime__windows_aarch64_gnullvm__0_42_2", + url = "https://crates.io/api/v1/crates/windows_aarch64_gnullvm/0.42.2/download", type = "tar.gz", - sha256 = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024", - strip_prefix = "windows_i686_msvc-0.36.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.36.1.bazel"), + sha256 = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8", + strip_prefix = "windows_aarch64_gnullvm-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.42.2.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_i686_msvc__0_42_0", - url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.42.0/download", + name = "wasmtime__windows_aarch64_msvc__0_42_2", + url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.42.2/download", type = "tar.gz", - sha256 = "84c12f65daa39dd2babe6e442988fc329d6243fdce47d7d2d155b8d874862246", - strip_prefix = "windows_i686_msvc-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.42.0.bazel"), + sha256 = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43", + strip_prefix = "windows_aarch64_msvc-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.42.2.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_gnu__0_36_1", - url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.36.1/download", + name = "wasmtime__windows_i686_gnu__0_42_2", + url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.42.2/download", type = "tar.gz", - sha256 = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1", - strip_prefix = "windows_x86_64_gnu-0.36.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.36.1.bazel"), + sha256 = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f", + strip_prefix = "windows_i686_gnu-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.42.2.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_gnu__0_42_0", - url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.42.0/download", + name = "wasmtime__windows_i686_msvc__0_42_2", + url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.42.2/download", type = "tar.gz", - sha256 = "bf7b1b21b5362cbc318f686150e5bcea75ecedc74dd157d874d754a2ca44b0ed", - strip_prefix = "windows_x86_64_gnu-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.42.0.bazel"), + sha256 = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060", + strip_prefix = "windows_i686_msvc-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.42.2.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_gnullvm__0_42_0", - url = "https://crates.io/api/v1/crates/windows_x86_64_gnullvm/0.42.0/download", + name = "wasmtime__windows_x86_64_gnu__0_42_2", + url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.42.2/download", type = "tar.gz", - sha256 = "09d525d2ba30eeb3297665bd434a54297e4170c7f1a44cad4ef58095b4cd2028", - strip_prefix = "windows_x86_64_gnullvm-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.42.0.bazel"), + sha256 = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36", + strip_prefix = "windows_x86_64_gnu-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.42.2.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_msvc__0_36_1", - url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.36.1/download", + name = "wasmtime__windows_x86_64_gnullvm__0_42_2", + url = "https://crates.io/api/v1/crates/windows_x86_64_gnullvm/0.42.2/download", type = "tar.gz", - sha256 = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680", - strip_prefix = "windows_x86_64_msvc-0.36.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.36.1.bazel"), + sha256 = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3", + strip_prefix = "windows_x86_64_gnullvm-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.42.2.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_msvc__0_42_0", - url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.42.0/download", + name = "wasmtime__windows_x86_64_msvc__0_42_2", + url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.42.2/download", type = "tar.gz", - sha256 = "f40009d85759725a34da6d89a94e63d7bdc50a862acf0dbc7c8e488f1edcb6f5", - strip_prefix = "windows_x86_64_msvc-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.42.0.bazel"), + sha256 = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0", + strip_prefix = "windows_x86_64_msvc-0.42.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.42.2.bazel"), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel index 85485572c..b379a904b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel @@ -188,7 +188,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__once_cell__1_16_0//:once_cell", + "@wasmtime__once_cell__1_17_1//:once_cell", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.20.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.19.bazel rename to bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.20.bazel index c0b21a3be..ff04b2e8d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.20.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=aho_corasick", "manual", ], - version = "0.7.19", + version = "0.7.20", # buildifier: leave-alone deps = [ "@wasmtime__memchr__2_5_0//:memchr", diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.66.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.70.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.66.bazel rename to bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.70.bazel index 7efe07f38..40857df25 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.66.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.70.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.66", + version = "1.0.70", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=anyhow", "manual", ], - version = "1.0.66", + version = "1.0.70", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel index 6b1bcb3b6..4328e3654 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel @@ -74,7 +74,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index 9606f772a..dd1fe52c6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -50,7 +50,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_147//:serde", + "@wasmtime__serde__1_0_157//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.11.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.12.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.11.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.12.0.bazel index 391fc5230..b9c5b13c1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.11.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.12.0.bazel @@ -50,7 +50,7 @@ rust_library( "crate-name=bumpalo", "manual", ], - version = "3.11.1", + version = "3.12.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.77.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.79.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cc-1.0.77.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cc-1.0.79.bazel index 374a61361..e20c01b8e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.77.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.79.bazel @@ -49,7 +49,7 @@ rust_binary( "crate-name=gcc-shim", "manual", ], - version = "1.0.77", + version = "1.0.79", # buildifier: leave-alone deps = [ ":cc", @@ -72,7 +72,7 @@ rust_library( "crate-name=cc", "manual", ], - version = "1.0.77", + version = "1.0.79", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.93.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.93.1.bazel index 8eb878a64..4add29b59 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.93.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", + "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.93.1.bazel similarity index 77% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.93.1.bazel index 59a59bc84..2dabba129 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.93.1.bazel @@ -46,6 +46,7 @@ cargo_build_script( "default", "gimli", "std", + "trace-log", "unwind", ], crate_root = "build.rs", @@ -58,11 +59,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.89.2", + version = "0.93.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_89_2//:cranelift_codegen_meta", - "@wasmtime__cranelift_isle__0_89_2//:cranelift_isle", + "@wasmtime__cranelift_codegen_meta__0_93_1//:cranelift_codegen_meta", + "@wasmtime__cranelift_isle__0_93_1//:cranelift_isle", ], ) @@ -75,6 +76,7 @@ rust_library( "default", "gimli", "std", + "trace-log", "unwind", ], crate_root = "src/lib.rs", @@ -88,19 +90,20 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", "@wasmtime__arrayvec__0_7_2//:arrayvec", - "@wasmtime__bumpalo__3_11_1//:bumpalo", - "@wasmtime__cranelift_bforest__0_89_2//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_89_2//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", + "@wasmtime__bumpalo__3_12_0//:bumpalo", + "@wasmtime__cranelift_bforest__0_93_1//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_93_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", + "@wasmtime__hashbrown__0_12_3//:hashbrown", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regalloc2__0_4_2//:regalloc2", + "@wasmtime__regalloc2__0_5_1//:regalloc2", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_5//:target_lexicon", + "@wasmtime__target_lexicon__0_12_6//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.93.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.93.1.bazel index c1e60d901..3ff1556f6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.93.1.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_89_2//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_93_1//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.93.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.93.1.bazel index 31153e86c..eab3b03cb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.93.1.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.93.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.93.1.bazel index 97a5b71b6..fb5ef6fe1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.93.1.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_147//:serde", + "@wasmtime__serde__1_0_157//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.93.1.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.93.1.bazel index dc55bd281..88d24eba2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.93.1.bazel @@ -49,12 +49,12 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", + "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_5//:target_lexicon", + "@wasmtime__target_lexicon__0_12_6//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.93.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.93.1.bazel index 801c29247..d81b52602 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.93.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.89.2", + version = "0.93.1", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "crate-name=cranelift-isle", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ ":cranelift_isle_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.93.1.bazel similarity index 82% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.93.1.bazel index a99f81745..b34a8ce62 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.93.1.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", - "@wasmtime__target_lexicon__0_12_5//:target_lexicon", + "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", + "@wasmtime__target_lexicon__0_12_6//:target_lexicon", ] + selects.with_or({ - # cfg(target_arch = "s390x") + # cfg(any(target_arch = "s390x", target_arch = "riscv64")) ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.93.1.bazel similarity index 79% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.93.1.bazel index 8c6580c92..cfed43381 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.89.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.93.1.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.89.2", + version = "0.93.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_89_2//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_93_1//:cranelift_frontend", "@wasmtime__itertools__0_10_5//:itertools", "@wasmtime__log__0_4_17//:log", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_types__2_0_2//:wasmtime_types", + "@wasmtime__wasmparser__0_100_0//:wasmparser", + "@wasmtime__wasmtime_types__6_0_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.8.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.either-1.8.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.either-1.8.1.bazel index 0103fd8cf..361164111 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.either-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.8.1.bazel @@ -48,7 +48,7 @@ rust_library( "crate-name=either", "manual", ], - version = "1.8.0", + version = "1.8.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel index 1415ec0c0..215e96b3f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel @@ -58,8 +58,8 @@ rust_library( "@wasmtime__atty__0_2_14//:atty", "@wasmtime__humantime__2_1_0//:humantime", "@wasmtime__log__0_4_17//:log", - "@wasmtime__regex__1_7_0//:regex", - "@wasmtime__termcolor__1_1_3//:termcolor", + "@wasmtime__regex__1_7_1//:regex", + "@wasmtime__termcolor__1_2_0//:termcolor", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel index 71663e42a..59e11e6bc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel @@ -53,7 +53,6 @@ rust_library( # buildifier: leave-alone deps = [ ] + selects.with_or({ - # cfg(unix) ( "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:i686-apple-darwin", @@ -73,7 +72,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], "//conditions:default": [], }) + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index 8bd9bcb2c..c478a7433 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -57,7 +57,7 @@ cargo_build_script( version = "0.1.2", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_77//:cc", + "@wasmtime__cc__1_0_79//:cc", ], ) @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel new file mode 100644 index 000000000..90133f21f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "form_urlencoded", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=form_urlencoded", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + "@wasmtime__percent_encoding__2_2_0//:percent_encoding", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel index e3ee8432d..db7fdded6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index c9ecdf51a..39778cd98 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -40,6 +40,8 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "ahash", + "default", + "inline-more", "raw", ], crate_root = "src/lib.rs", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel index ca03f81ba..fb457e180 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel @@ -51,6 +51,6 @@ rust_library( version = "0.1.19", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel new file mode 100644 index 000000000..1e326eb98 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "hermit_abi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=hermit-abi", + "manual", + ], + version = "0.3.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel similarity index 71% rename from bazel/cargo/wasmtime/remote/BUILD.paste-1.0.9.bazel rename to bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel index cc57a6e84..e090f874d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel @@ -31,8 +31,10 @@ licenses([ # Generated Targets -rust_proc_macro( - name = "paste", +# Unsupported target "all" with type "bench" omitted + +rust_library( + name = "idna", srcs = glob(["**/*.rs"]), crate_features = [ ], @@ -44,21 +46,17 @@ rust_proc_macro( ], tags = [ "cargo-raze", - "crate-name=paste", + "crate-name=idna", "manual", ], - version = "1.0.9", + version = "0.3.0", # buildifier: leave-alone deps = [ + "@wasmtime__unicode_bidi__0_3_12//:unicode_bidi", + "@wasmtime__unicode_normalization__0_1_22//:unicode_normalization", ], ) -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test_attr" with type "test" omitted - -# Unsupported target "test_doc" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted +# Unsupported target "tests" with type "test" omitted -# Unsupported target "test_item" with type "test" omitted +# Unsupported target "unit" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel index c0c78e0b0..debb87520 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel @@ -92,7 +92,7 @@ rust_library( deps = [ ":indexmap_build_script", "@wasmtime__hashbrown__0_12_3//:hashbrown", - "@wasmtime__serde__1_0_147//:serde", + "@wasmtime__serde__1_0_157//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.5.bazel deleted file mode 100644 index 0a4b35562..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-0.7.5.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "io_lifetimes_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.7.5", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "io_lifetimes", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=io-lifetimes", - "manual", - ], - version = "0.7.5", - # buildifier: leave-alone - deps = [ - ":io_lifetimes_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.8.bazel new file mode 100644 index 000000000..730a93a57 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.8.bazel @@ -0,0 +1,161 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "io_lifetimes_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "close", + "hermit-abi", + "libc", + "windows-sys", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.8", + visibility = ["//visibility:private"], + deps = [ + ] + selects.with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@wasmtime__windows_sys__0_45_0//:windows_sys", + ], + "//conditions:default": [], + }), +) + +rust_library( + name = "io_lifetimes", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "close", + "hermit-abi", + "libc", + "windows-sys", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=io-lifetimes", + "manual", + ], + version = "1.0.8", + # buildifier: leave-alone + deps = [ + ":io_lifetimes_build_script", + ] + selects.with_or({ + # cfg(not(windows)) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@wasmtime__libc__0_2_140//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(windows) + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@wasmtime__windows_sys__0_45_0//:windows_sys", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel index 3abb16e27..0c67dab7a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel @@ -71,7 +71,7 @@ rust_library( version = "0.10.5", # buildifier: leave-alone deps = [ - "@wasmtime__either__1_8_0//:either", + "@wasmtime__either__1_8_1//:either", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.137.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.140.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.137.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.140.bazel index cdddb7734..99968d55e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.137.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.140.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.137", + version = "0.2.140", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.137", + version = "0.2.140", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.46.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.1.4.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.46.bazel rename to bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.1.4.bazel index a3a724ab6..bc2f28994 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.0.46.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.1.4.bazel @@ -51,7 +51,7 @@ rust_library( "crate-name=linux-raw-sys", "manual", ], - version = "0.0.46", + version = "0.1.4", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index fdd688164..9a3abd783 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.2.bazel new file mode 100644 index 000000000..b01f05c3a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.2.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "sized" with type "example" omitted + +rust_library( + name = "memfd", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=memfd", + "manual", + ], + version = "0.6.2", + # buildifier: leave-alone + deps = [ + "@wasmtime__rustix__0_36_10//:rustix", + ], +) + +# Unsupported target "memfd" with type "test" omitted + +# Unsupported target "sealing" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.16.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.1.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.once_cell-1.16.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.1.bazel index b8221ad2d..d1c56af71 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.16.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.1.bazel @@ -65,7 +65,7 @@ rust_library( "crate-name=once_cell", "manual", ], - version = "1.16.0", + version = "1.17.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.12.bazel similarity index 76% rename from bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.36.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.paste-1.0.12.bazel index bdbed759a..d8ed0c975 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.12.bazel @@ -38,7 +38,7 @@ load( ) cargo_build_script( - name = "windows_aarch64_msvc_build_script", + name = "paste_build_script", srcs = glob(["**/*.rs"]), build_script_env = { }, @@ -54,14 +54,14 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.1", + version = "1.0.12", visibility = ["//visibility:private"], deps = [ ], ) -rust_library( - name = "windows_aarch64_msvc", +rust_proc_macro( + name = "paste", srcs = glob(["**/*.rs"]), crate_features = [ ], @@ -73,12 +73,22 @@ rust_library( ], tags = [ "cargo-raze", - "crate-name=windows_aarch64_msvc", + "crate-name=paste", "manual", ], - version = "0.36.1", + version = "1.0.12", # buildifier: leave-alone deps = [ - ":windows_aarch64_msvc_build_script", + ":paste_build_script", ], ) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "test_attr" with type "test" omitted + +# Unsupported target "test_doc" with type "test" omitted + +# Unsupported target "test_expr" with type "test" omitted + +# Unsupported target "test_item" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel new file mode 100644 index 000000000..95a56e1b0 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel @@ -0,0 +1,56 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "percent_encoding", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=percent-encoding", + "manual", + ], + version = "2.2.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.47.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.52.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.47.bazel rename to bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.52.bazel index 06a29955e..f4073eac9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.47.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.52.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.47", + version = "1.0.52", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=proc-macro2", "manual", ], - version = "1.0.47", + version = "1.0.52", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@wasmtime__unicode_ident__1_0_5//:unicode_ident", + "@wasmtime__unicode_ident__1_0_8//:unicode_ident", ], ) @@ -97,3 +97,5 @@ rust_library( # Unsupported target "test" with type "test" omitted # Unsupported target "test_fmt" with type "test" omitted + +# Unsupported target "test_size" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index 5c35a2fae..bd4d7d358 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -57,7 +57,7 @@ cargo_build_script( version = "0.1.21", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_77//:cc", + "@wasmtime__cc__1_0_79//:cc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.26.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.quote-1.0.21.bazel rename to bazel/cargo/wasmtime/remote/BUILD.quote-1.0.26.bazel index 50d302291..c5e62bf4a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.26.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.21", + version = "1.0.26", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=quote", "manual", ], - version = "1.0.21", + version = "1.0.26", # buildifier: leave-alone deps = [ ":quote_build_script", - "@wasmtime__proc_macro2__1_0_47//:proc_macro2", + "@wasmtime__proc_macro2__1_0_52//:proc_macro2", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 69762bf1e..73e341553 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -42,6 +42,7 @@ rust_library( "getrandom", "libc", "rand_chacha", + "small_rng", "std", "std_rng", ], @@ -81,7 +82,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.5.1.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.5.1.bazel index 47b521a36..fd1efce15 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.4.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.5.1.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=regalloc2", "manual", ], - version = "0.4.2", + version = "0.5.1", # buildifier: leave-alone deps = [ "@wasmtime__fxhash__0_2_1//:fxhash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.1.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.regex-1.7.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-1.7.1.bazel index f743948f4..0b55e3434 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.1.bazel @@ -67,10 +67,10 @@ rust_library( "crate-name=regex", "manual", ], - version = "1.7.0", + version = "1.7.1", # buildifier: leave-alone deps = [ - "@wasmtime__aho_corasick__0_7_19//:aho_corasick", + "@wasmtime__aho_corasick__0_7_20//:aho_corasick", "@wasmtime__memchr__2_5_0//:memchr", "@wasmtime__regex_syntax__0_6_28//:regex_syntax", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.13.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.36.10.bazel similarity index 80% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.13.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.36.10.bazel index 9a64be998..9c0fededf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.35.13.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.36.10.bazel @@ -44,10 +44,10 @@ cargo_build_script( }, crate_features = [ "default", + "fs", "io-lifetimes", "libc", "mm", - "process", "std", "use-libc-auxv", ], @@ -62,10 +62,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.35.13", + version = "0.36.10", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_77//:cc", + "@wasmtime__cc__1_0_79//:cc", ] + selects.with_or({ # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( @@ -79,7 +79,7 @@ cargo_build_script( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_46//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_1_4//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -110,7 +110,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_36_1//:windows_sys", + "@wasmtime__windows_sys__0_45_0//:windows_sys", ], "//conditions:default": [], }), @@ -126,10 +126,10 @@ rust_library( }, crate_features = [ "default", + "fs", "io-lifetimes", "libc", "mm", - "process", "std", "use-libc-auxv", ], @@ -145,12 +145,12 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.35.13", + version = "0.36.10", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__0_7_5//:io_lifetimes", + "@wasmtime__io_lifetimes__1_0_8//:io_lifetimes", ] + selects.with_or({ # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( @@ -164,11 +164,11 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_0_46//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_1_4//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ - # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) + # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ( "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", @@ -191,7 +191,29 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ "@wasmtime__errno__0_2_8//:errno", ], "//conditions:default": [], @@ -201,7 +223,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_36_1//:windows_sys", + "@wasmtime__windows_sys__0_45_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.147.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.157.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.serde-1.0.147.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde-1.0.157.bazel index b585aa6c4..622ff00ae 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.147.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.157.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.147", + version = "1.0.157", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@wasmtime__serde_derive__1_0_147//:serde_derive", + "@wasmtime__serde_derive__1_0_157//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -87,7 +87,7 @@ rust_library( "crate-name=serde", "manual", ], - version = "1.0.147", + version = "1.0.157", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.147.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.157.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.147.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.157.bazel index 07b878a1a..1a3d98271 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.147.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.157.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.147", + version = "1.0.157", visibility = ["//visibility:private"], deps = [ ], @@ -78,12 +78,12 @@ rust_proc_macro( "crate-name=serde_derive", "manual", ], - version = "1.0.147", + version = "1.0.157", # buildifier: leave-alone deps = [ ":serde_derive_build_script", - "@wasmtime__proc_macro2__1_0_47//:proc_macro2", - "@wasmtime__quote__1_0_21//:quote", - "@wasmtime__syn__1_0_103//:syn", + "@wasmtime__proc_macro2__1_0_52//:proc_macro2", + "@wasmtime__quote__1_0_26//:quote", + "@wasmtime__syn__2_0_2//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.103.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.2.bazel similarity index 75% rename from bazel/cargo/wasmtime/remote/BUILD.syn-1.0.103.bazel rename to bazel/cargo/wasmtime/remote/BUILD.syn-2.0.2.bazel index 407616c21..1f51d9b70 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-1.0.103.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.2.bazel @@ -30,42 +30,6 @@ licenses([ ]) # Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "syn_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "clone-impls", - "default", - "derive", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.103", - visibility = ["//visibility:private"], - deps = [ - ], -) # Unsupported target "file" with type "bench" omitted @@ -85,7 +49,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -94,13 +58,12 @@ rust_library( "crate-name=syn", "manual", ], - version = "1.0.103", + version = "2.0.2", # buildifier: leave-alone deps = [ - ":syn_build_script", - "@wasmtime__proc_macro2__1_0_47//:proc_macro2", - "@wasmtime__quote__1_0_21//:quote", - "@wasmtime__unicode_ident__1_0_5//:unicode_ident", + "@wasmtime__proc_macro2__1_0_52//:proc_macro2", + "@wasmtime__quote__1_0_26//:quote", + "@wasmtime__unicode_ident__1_0_8//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.6.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.6.bazel index f5a26dcaf..b3441d7df 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.6.bazel @@ -43,6 +43,7 @@ cargo_build_script( build_script_env = { }, crate_features = [ + "std", ], crate_root = "build.rs", data = glob(["**"]), @@ -54,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.12.5", + version = "0.12.6", visibility = ["//visibility:private"], deps = [ ], @@ -68,6 +69,7 @@ rust_library( name = "target_lexicon", srcs = glob(["**/*.rs"]), crate_features = [ + "std", ], crate_root = "src/lib.rs", data = [], @@ -80,7 +82,7 @@ rust_library( "crate-name=target-lexicon", "manual", ], - version = "0.12.5", + version = "0.12.6", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.2.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.termcolor-1.2.0.bazel index 2e9f4307a..325896227 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.1.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.2.0.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=termcolor", "manual", ], - version = "1.1.3", + version = "1.2.0", # buildifier: leave-alone deps = [ ] + selects.with_or({ diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.37.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.40.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.37.bazel rename to bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.40.bazel index df0ca0842..47e53f008 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.37.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.40.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.37", + version = "1.0.40", visibility = ["//visibility:private"], deps = [ ], @@ -69,7 +69,7 @@ rust_library( data = [], edition = "2018", proc_macro_deps = [ - "@wasmtime__thiserror_impl__1_0_37//:thiserror_impl", + "@wasmtime__thiserror_impl__1_0_40//:thiserror_impl", ], rustc_flags = [ "--cap-lints=allow", @@ -79,7 +79,7 @@ rust_library( "crate-name=thiserror", "manual", ], - version = "1.0.37", + version = "1.0.40", # buildifier: leave-alone deps = [ ":thiserror_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.37.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel similarity index 86% rename from bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.37.bazel rename to bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel index 0c6f33752..c97322f9c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.37.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel @@ -47,11 +47,11 @@ rust_proc_macro( "crate-name=thiserror-impl", "manual", ], - version = "1.0.37", + version = "1.0.40", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_47//:proc_macro2", - "@wasmtime__quote__1_0_21//:quote", - "@wasmtime__syn__1_0_103//:syn", + "@wasmtime__proc_macro2__1_0_52//:proc_macro2", + "@wasmtime__quote__1_0_26//:quote", + "@wasmtime__syn__2_0_2//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel new file mode 100644 index 000000000..0fe1e0a1b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel @@ -0,0 +1,66 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Zlib from expression "Zlib OR (Apache-2.0 OR MIT)" +]) + +# Generated Targets + +# Unsupported target "macros" with type "bench" omitted + +# Unsupported target "smallvec" with type "bench" omitted + +rust_library( + name = "tinyvec", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "tinyvec_macros", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=tinyvec", + "manual", + ], + version = "1.6.0", + # buildifier: leave-alone + deps = [ + "@wasmtime__tinyvec_macros__0_1_1//:tinyvec_macros", + ], +) + +# Unsupported target "arrayvec" with type "test" omitted + +# Unsupported target "tinyvec" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel new file mode 100644 index 000000000..c0d7a9263 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR (Apache-2.0 OR Zlib)" +]) + +# Generated Targets + +rust_library( + name = "tinyvec_macros", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=tinyvec_macros", + "manual", + ], + version = "0.1.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.12.bazel new file mode 100644 index 000000000..2fedefab0 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.12.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "unicode_bidi", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "hardcoded-data", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=unicode_bidi", + "manual", + ], + version = "0.3.12", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "conformance_tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.8.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.8.bazel index e6676ba40..c8da47e31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.8.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=unicode-ident", "manual", ], - version = "1.0.5", + version = "1.0.8", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel new file mode 100644 index 000000000..cb865589a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel @@ -0,0 +1,59 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +rust_library( + name = "unicode_normalization", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=unicode-normalization", + "manual", + ], + version = "0.1.22", + # buildifier: leave-alone + deps = [ + "@wasmtime__tinyvec__1_6_0//:tinyvec", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel new file mode 100644 index 000000000..d722ef883 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel @@ -0,0 +1,66 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "parse_url" with type "bench" omitted + +rust_library( + name = "url", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=url", + "manual", + ], + version = "2.3.1", + # buildifier: leave-alone + deps = [ + "@wasmtime__form_urlencoded__1_1_0//:form_urlencoded", + "@wasmtime__idna__0_3_0//:idna", + "@wasmtime__percent_encoding__2_2_0//:percent_encoding", + ], +) + +# Unsupported target "data" with type "test" omitted + +# Unsupported target "debugger_visualizer" with type "test" omitted + +# Unsupported target "unit" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.100.0.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.100.0.bazel index 9d9933003..3e38b00ff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.92.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.100.0.bazel @@ -51,9 +51,10 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.92.0", + version = "0.100.0", # buildifier: leave-alone deps = [ "@wasmtime__indexmap__1_9_2//:indexmap", + "@wasmtime__url__2_3_1//:url", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-6.0.1.bazel similarity index 76% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-6.0.1.bazel index 831fd7cde..967d14997 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-6.0.1.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "2.0.2", + version = "6.0.1", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -64,7 +64,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_36_1//:windows_sys", + "@wasmtime__windows_sys__0_42_0//:windows_sys", ], "//conditions:default": [], }), @@ -82,7 +82,7 @@ rust_library( data = [], edition = "2021", proc_macro_deps = [ - "@wasmtime__paste__1_0_9//:paste", + "@wasmtime__paste__1_0_12//:paste", ], rustc_flags = [ "--cap-lints=allow", @@ -92,33 +92,33 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@wasmtime__anyhow__1_0_66//:anyhow", + "@wasmtime__anyhow__1_0_70//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_9_2//:indexmap", - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_29_0//:object", - "@wasmtime__once_cell__1_16_0//:once_cell", + "@wasmtime__once_cell__1_17_1//:once_cell", "@wasmtime__psm__0_1_21//:psm", - "@wasmtime__serde__1_0_147//:serde", - "@wasmtime__target_lexicon__0_12_5//:target_lexicon", - "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__2_0_2//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", - "@wasmtime__wasmtime_jit__2_0_2//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__2_0_2//:wasmtime_runtime", + "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__wasmparser__0_100_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__6_0_1//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit__6_0_1//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__6_0_1//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_36_1//:windows_sys", + "@wasmtime__windows_sys__0_42_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-6.0.1.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-6.0.1.bazel index 89826c0d8..089e9fb50 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-6.0.1.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=wasmtime-asm-macros", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel index e85148123..dd3a77432 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel @@ -47,10 +47,10 @@ rust_proc_macro( "crate-name=wasmtime-c-api-macros", "manual", ], - version = "0.19.0", + version = "0.0.0", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_47//:proc_macro2", - "@wasmtime__quote__1_0_21//:quote", + "@wasmtime__proc_macro2__1_0_52//:proc_macro2", + "@wasmtime__quote__1_0_26//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-6.0.1.bazel similarity index 66% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-6.0.1.bazel index 522679c5f..f2760f00a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-6.0.1.bazel @@ -47,21 +47,21 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_66//:anyhow", - "@wasmtime__cranelift_codegen__0_89_2//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_89_2//:cranelift_frontend", - "@wasmtime__cranelift_native__0_89_2//:cranelift_native", - "@wasmtime__cranelift_wasm__0_89_2//:cranelift_wasm", + "@wasmtime__anyhow__1_0_70//:anyhow", + "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_93_1//:cranelift_frontend", + "@wasmtime__cranelift_native__0_93_1//:cranelift_native", + "@wasmtime__cranelift_wasm__0_93_1//:cranelift_wasm", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_29_0//:object", - "@wasmtime__target_lexicon__0_12_5//:target_lexicon", - "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", + "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__thiserror__1_0_40//:thiserror", + "@wasmtime__wasmparser__0_100_0//:wasmparser", + "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-6.0.1.bazel similarity index 76% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-6.0.1.bazel index 2e15cd6d7..cf4ab44de 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-6.0.1.bazel @@ -49,19 +49,19 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_66//:anyhow", - "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", + "@wasmtime__anyhow__1_0_70//:anyhow", + "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", "@wasmtime__gimli__0_26_2//:gimli", "@wasmtime__indexmap__1_9_2//:indexmap", "@wasmtime__log__0_4_17//:log", "@wasmtime__object__0_29_0//:object", - "@wasmtime__serde__1_0_147//:serde", - "@wasmtime__target_lexicon__0_12_5//:target_lexicon", - "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmparser__0_92_0//:wasmparser", - "@wasmtime__wasmtime_types__2_0_2//:wasmtime_types", + "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__thiserror__1_0_40//:thiserror", + "@wasmtime__wasmparser__0_100_0//:wasmparser", + "@wasmtime__wasmtime_types__6_0_1//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-6.0.1.bazel new file mode 100644 index 000000000..51468d281 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-6.0.1.bazel @@ -0,0 +1,79 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_jit", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=wasmtime-jit", + "manual", + ], + version = "6.0.1", + # buildifier: leave-alone + deps = [ + "@wasmtime__addr2line__0_17_0//:addr2line", + "@wasmtime__anyhow__1_0_70//:anyhow", + "@wasmtime__bincode__1_3_3//:bincode", + "@wasmtime__cfg_if__1_0_0//:cfg_if", + "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", + "@wasmtime__gimli__0_26_2//:gimli", + "@wasmtime__log__0_4_17//:log", + "@wasmtime__object__0_29_0//:object", + "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", + "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit_icache_coherence__6_0_1//:wasmtime_jit_icache_coherence", + "@wasmtime__wasmtime_runtime__6_0_1//:wasmtime_runtime", + ] + selects.with_or({ + # cfg(target_os = "windows") + ( + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + ): [ + "@wasmtime__windows_sys__0_42_0//:windows_sys", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-6.0.1.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-6.0.1.bazel index 6d367703c..152481ac3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-6.0.1.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__once_cell__1_16_0//:once_cell", + "@wasmtime__once_cell__1_17_1//:once_cell", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel similarity index 66% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel index 907710d4d..e54901d2e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel @@ -32,7 +32,7 @@ licenses([ # Generated Targets rust_library( - name = "wasmtime_jit", + name = "wasmtime_jit_icache_coherence", srcs = glob(["**/*.rs"]), aliases = { }, @@ -46,37 +46,32 @@ rust_library( ], tags = [ "cargo-raze", - "crate-name=wasmtime-jit", + "crate-name=wasmtime-jit-icache-coherence", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__addr2line__0_17_0//:addr2line", - "@wasmtime__anyhow__1_0_66//:anyhow", - "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", - "@wasmtime__gimli__0_26_2//:gimli", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_29_0//:object", - "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", - "@wasmtime__serde__1_0_147//:serde", - "@wasmtime__target_lexicon__0_12_5//:target_lexicon", - "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", - "@wasmtime__wasmtime_runtime__2_0_2//:wasmtime_runtime", ] + selects.with_or({ - # cfg(target_os = "linux") + # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ( + "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_35_13//:rustix", + "@wasmtime__libc__0_2_140//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -85,7 +80,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_36_1//:windows_sys", + "@wasmtime__windows_sys__0_42_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-6.0.1.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-6.0.1.bazel index 1d53ffeab..0980b7f62 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-6.0.1.bazel @@ -54,10 +54,10 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "2.0.2", + version = "6.0.1", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_77//:cc", + "@wasmtime__cc__1_0_79//:cc", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -73,7 +73,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_36_1//:windows_sys", + "@wasmtime__windows_sys__0_42_0//:windows_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -112,7 +112,7 @@ rust_library( data = [], edition = "2021", proc_macro_deps = [ - "@wasmtime__paste__1_0_9//:paste", + "@wasmtime__paste__1_0_12//:paste", ], rustc_flags = [ "--cap-lints=allow", @@ -122,21 +122,21 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@wasmtime__anyhow__1_0_66//:anyhow", + "@wasmtime__anyhow__1_0_70//:anyhow", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__indexmap__1_9_2//:indexmap", - "@wasmtime__libc__0_2_137//:libc", + "@wasmtime__libc__0_2_140//:libc", "@wasmtime__log__0_4_17//:log", + "@wasmtime__memfd__0_6_2//:memfd", "@wasmtime__memoffset__0_6_5//:memoffset", "@wasmtime__rand__0_8_5//:rand", - "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmtime_asm_macros__2_0_2//:wasmtime_asm_macros", - "@wasmtime__wasmtime_environ__2_0_2//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__2_0_2//:wasmtime_jit_debug", + "@wasmtime__wasmtime_asm_macros__6_0_1//:wasmtime_asm_macros", + "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__6_0_1//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -153,7 +153,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_36_1//:windows_sys", + "@wasmtime__windows_sys__0_42_0//:windows_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_35_13//:rustix", + "@wasmtime__rustix__0_36_10//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-6.0.1.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-6.0.1.bazel index 0d77211de..c1157ae3f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-6.0.1.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "2.0.2", + version = "6.0.1", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_89_2//:cranelift_entity", - "@wasmtime__serde__1_0_147//:serde", - "@wasmtime__thiserror__1_0_37//:thiserror", - "@wasmtime__wasmparser__0_92_0//:wasmparser", + "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", + "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__thiserror__1_0_40//:thiserror", + "@wasmtime__wasmparser__0_100_0//:wasmparser", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel index b710204bc..668f95552 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel @@ -39,11 +39,15 @@ rust_library( crate_features = [ "Win32", "Win32_Foundation", - "Win32_NetworkManagement", - "Win32_NetworkManagement_IpHelper", - "Win32_Networking", - "Win32_Networking_WinSock", + "Win32_Security", + "Win32_Storage", + "Win32_Storage_FileSystem", "Win32_System", + "Win32_System_Diagnostics", + "Win32_System_Diagnostics_Debug", + "Win32_System_Kernel", + "Win32_System_Memory", + "Win32_System_SystemInformation", "Win32_System_Threading", "default", ], @@ -66,7 +70,7 @@ rust_library( ( "@rules_rust//rust/platform:i686-pc-windows-msvc", ): [ - "@wasmtime__windows_i686_msvc__0_42_0//:windows_i686_msvc", + "@wasmtime__windows_i686_msvc__0_42_2//:windows_i686_msvc", ], "//conditions:default": [], }) + selects.with_or({ @@ -74,7 +78,7 @@ rust_library( ( "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_x86_64_msvc__0_42_0//:windows_x86_64_msvc", + "@wasmtime__windows_x86_64_msvc__0_42_2//:windows_x86_64_msvc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel new file mode 100644 index 000000000..26c3fcb0c --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel @@ -0,0 +1,96 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "windows_sys", + srcs = glob(["**/*.rs"]), + aliases = { + }, + crate_features = [ + "Win32", + "Win32_Foundation", + "Win32_NetworkManagement", + "Win32_NetworkManagement_IpHelper", + "Win32_Networking", + "Win32_Networking_WinSock", + "Win32_Security", + "Win32_Storage", + "Win32_Storage_FileSystem", + "Win32_System", + "Win32_System_IO", + "Win32_System_Threading", + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=windows-sys", + "manual", + ], + version = "0.45.0", + # buildifier: leave-alone + deps = [ + ] + selects.with_or({ + # cfg(not(windows_raw_dylib)) + ( + "@rules_rust//rust/platform:i686-apple-darwin", + "@rules_rust//rust/platform:i686-pc-windows-msvc", + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:x86_64-apple-darwin", + "@rules_rust//rust/platform:x86_64-pc-windows-msvc", + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", + "@rules_rust//rust/platform:aarch64-apple-darwin", + "@rules_rust//rust/platform:aarch64-apple-ios", + "@rules_rust//rust/platform:aarch64-linux-android", + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", + "@rules_rust//rust/platform:i686-linux-android", + "@rules_rust//rust/platform:i686-unknown-freebsd", + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", + "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-unknown-unknown", + "@rules_rust//rust/platform:wasm32-wasi", + "@rules_rust//rust/platform:x86_64-apple-ios", + "@rules_rust//rust/platform:x86_64-linux-android", + "@rules_rust//rust/platform:x86_64-unknown-freebsd", + ): [ + "@wasmtime__windows_targets__0_42_2//:windows_targets", + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.42.2.bazel similarity index 71% rename from bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.42.2.bazel index 51d8c8955..3ca4c07b1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.42.2.bazel @@ -32,23 +32,11 @@ licenses([ # Generated Targets rust_library( - name = "windows_sys", + name = "windows_targets", srcs = glob(["**/*.rs"]), aliases = { }, crate_features = [ - "Win32", - "Win32_Foundation", - "Win32_Security", - "Win32_Storage", - "Win32_Storage_FileSystem", - "Win32_System", - "Win32_System_Diagnostics", - "Win32_System_Diagnostics_Debug", - "Win32_System_Kernel", - "Win32_System_Memory", - "Win32_System_SystemInformation", - "default", ], crate_root = "src/lib.rs", data = [], @@ -58,10 +46,10 @@ rust_library( ], tags = [ "cargo-raze", - "crate-name=windows-sys", + "crate-name=windows-targets", "manual", ], - version = "0.36.1", + version = "0.42.2", # buildifier: leave-alone deps = [ ] + selects.with_or({ @@ -69,7 +57,7 @@ rust_library( ( "@rules_rust//rust/platform:i686-pc-windows-msvc", ): [ - "@wasmtime__windows_i686_msvc__0_36_1//:windows_i686_msvc", + "@wasmtime__windows_i686_msvc__0_42_2//:windows_i686_msvc", ], "//conditions:default": [], }) + selects.with_or({ @@ -77,7 +65,7 @@ rust_library( ( "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_x86_64_msvc__0_36_1//:windows_x86_64_msvc", + "@wasmtime__windows_x86_64_msvc__0_42_2//:windows_x86_64_msvc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.2.bazel index c40f240db..e14ccd98d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.0", + version = "0.42.2", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_aarch64_gnullvm", "manual", ], - version = "0.42.0", + version = "0.42.2", # buildifier: leave-alone deps = [ ":windows_aarch64_gnullvm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.2.bazel index 152cd1af0..0b6e1c95a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.0", + version = "0.42.2", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_aarch64_msvc", "manual", ], - version = "0.42.0", + version = "0.42.2", # buildifier: leave-alone deps = [ ":windows_aarch64_msvc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel deleted file mode 100644 index e28b9cca0..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_i686_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.42.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_i686_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_i686_gnu", - "manual", - ], - version = "0.42.0", - # buildifier: leave-alone - deps = [ - ":windows_i686_gnu_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.36.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.2.bazel index a20218dc6..85ba0eb67 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.1", + version = "0.42.2", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_i686_gnu", "manual", ], - version = "0.36.1", + version = "0.42.2", # buildifier: leave-alone deps = [ ":windows_i686_gnu_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel deleted file mode 100644 index 2cccbfaa9..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_i686_msvc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.42.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_i686_msvc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_i686_msvc", - "manual", - ], - version = "0.42.0", - # buildifier: leave-alone - deps = [ - ":windows_i686_msvc_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.36.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.2.bazel index f0d7b96cb..36329428f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.1", + version = "0.42.2", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_i686_msvc", "manual", ], - version = "0.36.1", + version = "0.42.2", # buildifier: leave-alone deps = [ ":windows_i686_msvc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel deleted file mode 100644 index 2a2c399e9..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_x86_64_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.42.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_x86_64_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_x86_64_gnu", - "manual", - ], - version = "0.42.0", - # buildifier: leave-alone - deps = [ - ":windows_x86_64_gnu_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.36.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.2.bazel index 6fb1e25e2..937caf0a7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.1", + version = "0.42.2", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_x86_64_gnu", "manual", ], - version = "0.36.1", + version = "0.42.2", # buildifier: leave-alone deps = [ ":windows_x86_64_gnu_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.2.bazel index c9d2e2d16..af44a2694 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.0", + version = "0.42.2", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_x86_64_gnullvm", "manual", ], - version = "0.42.0", + version = "0.42.2", # buildifier: leave-alone deps = [ ":windows_x86_64_gnullvm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel deleted file mode 100644 index 581086428..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_x86_64_msvc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.42.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_x86_64_msvc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_x86_64_msvc", - "manual", - ], - version = "0.42.0", - # buildifier: leave-alone - deps = [ - ":windows_x86_64_msvc_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.36.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.36.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.2.bazel index b94fe7017..c93c72615 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.36.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.2.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.1", + version = "0.42.2", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_x86_64_msvc", "manual", ], - version = "0.36.1", + version = "0.42.2", # buildifier: leave-alone deps = [ ":windows_x86_64_msvc_build_script", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index faed87ae0..3f9ea12de 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -201,9 +201,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "f850c7d2480e71b587a7102d8814e127dc9bf8370ffa0e382fe86ec80d629190", - strip_prefix = "wasmtime-2.0.2", - url = "https://github.com/bytecodealliance/wasmtime/archive/v2.0.2.tar.gz", + sha256 = "7ed6359faa385c40fc77e324301e5c70c7fdaeeca8a5ab58e25b1f75035b2cd6", + strip_prefix = "wasmtime-6.0.1", + url = "https://github.com/bytecodealliance/wasmtime/archive/v6.0.1.tar.gz", ) maybe( From 3af2c1aa9c0d6210d0cbdc07ef97727f50a5af58 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Wed, 29 Mar 2023 08:50:40 +0800 Subject: [PATCH 235/287] Update bazel-zig-cc remote url. (#335) Signed-off-by: liang.he@intel.com --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 3f9ea12de..764e4a38b 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -42,9 +42,9 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "bazel-zig-cc", - sha256 = "ad6384b4d16ebb3e5047df6548a195e598346da84e5f320250beb9198705ac81", - strip_prefix = "bazel-zig-cc-v0.4.4", - url = "https://git.sr.ht/~motiejus/bazel-zig-cc/archive/v0.4.4.tar.gz", + sha256 = "0c29b7975c65026eefdb9226864c3eefccd4a8b5549b4b2709d1912fdc92e472", + strip_prefix = "bazel-zig-cc-0.4.4", + url = "https://github.com/uber/bazel-zig-cc/archive/refs/tags/v0.4.4.tar.gz", ) maybe( From 94497deb683e37c0fc54e252b600de1dd4d47406 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Wed, 26 Apr 2023 12:39:34 +0800 Subject: [PATCH 236/287] wamr: update to v1.2.1 (with LLVM v15.0.7). (#339) Signed-off-by: liang.he@intel.com --- bazel/external/wamr.BUILD | 4 ++-- bazel/external/wamr_llvm.BUILD | 9 +++------ bazel/repositories.bzl | 16 ++++++++-------- src/wamr/wamr.cc | 15 ++++++++++----- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index 9ef6850e9..8c2955d57 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -20,7 +20,7 @@ cmake( "-GNinja", ] + select({ "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": [ - "-DLLVM_DIR=$EXT_BUILD_DEPS/copy_llvm_13_0_1/llvm/lib/cmake/llvm", + "-DLLVM_DIR=$EXT_BUILD_DEPS/copy_llvm-15_0_7/llvm/lib/cmake/llvm", "-DWAMR_BUILD_AOT=1", "-DWAMR_BUILD_FAST_INTERP=0", "-DWAMR_BUILD_INTERP=0", @@ -42,7 +42,7 @@ cmake( }), out_static_libs = ["libvmlib.a"], deps = select({ - "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": ["@llvm-13_0_1//:llvm_13_0_1_lib"], + "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": ["@llvm-15_0_7//:llvm_wamr_lib"], "//conditions:default": [], }), ) diff --git a/bazel/external/wamr_llvm.BUILD b/bazel/external/wamr_llvm.BUILD index 0efdbc9b6..789e5a442 100644 --- a/bazel/external/wamr_llvm.BUILD +++ b/bazel/external/wamr_llvm.BUILD @@ -10,7 +10,7 @@ filegroup( ) cmake( - name = "llvm_13_0_1_lib", + name = "llvm_wamr_lib", cache_entries = { # Disable both: BUILD and INCLUDE, since some of the INCLUDE # targets build code instead of only generating build files. @@ -20,20 +20,16 @@ cmake( "LLVM_INCLUDE_DOCS": "off", "LLVM_BUILD_EXAMPLES": "off", "LLVM_INCLUDE_EXAMPLES": "off", - "LLVM_BUILD_RUNTIME": "off", - "LLVM_BUILD_RUNTIMES": "off", - "LLVM_INCLUDE_RUNTIMES": "off", "LLVM_BUILD_TESTS": "off", "LLVM_INCLUDE_TESTS": "off", "LLVM_BUILD_TOOLS": "off", "LLVM_INCLUDE_TOOLS": "off", - "LLVM_BUILD_UTILS": "off", - "LLVM_INCLUDE_UTILS": "off", "LLVM_ENABLE_IDE": "off", "LLVM_ENABLE_LIBEDIT": "off", "LLVM_ENABLE_LIBXML2": "off", "LLVM_ENABLE_TERMINFO": "off", "LLVM_ENABLE_ZLIB": "off", + "LLVM_ENABLE_ZSTD": "off", "LLVM_TARGETS_TO_BUILD": "X86", "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", }, @@ -133,4 +129,5 @@ cmake( "libLLVMSupport.a", "libLLVMDemangle.a", ], + working_directory = "llvm", ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 764e4a38b..a49f01aad 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -159,10 +159,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - # WAMR-2022-12-16 - sha256 = "976b928f420040a77e793051e4d742208adf157370b9ad0f5535e126adb31eb0", - strip_prefix = "wasm-micro-runtime-WAMR-1.1.2", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/WAMR-1.1.2.tar.gz", + # WAMR-1.2.1 + sha256 = "7548d4bbea8dbb9b005e83bd571f93a12fb3f0b5e87a8b0130f004dd92df4b0b", + strip_prefix = "wasm-micro-runtime-WAMR-1.2.1", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/refs/tags/WAMR-1.2.1.zip", ) native.bind( @@ -172,11 +172,11 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, - name = "llvm-13_0_1", + name = "llvm-15_0_7", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr_llvm.BUILD", - sha256 = "ec6b80d82c384acad2dc192903a6cf2cdbaffb889b84bfb98da9d71e630fc834", - strip_prefix = "llvm-13.0.1.src", - url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-13.0.1/llvm-13.0.1.src.tar.xz", + sha256 = "8b5fcb24b4128cf04df1b0b9410ce8b1a729cb3c544e6da885d234280dedeac6", + strip_prefix = "llvm-project-15.0.7.src", + url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-15.0.7/llvm-project-15.0.7.src.tar.xz", ) # WasmEdge with dependencies. diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index e894df8f6..ea3d140e7 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -261,9 +261,15 @@ bool Wamr::link(std::string_view /*debug_name*/) { const wasm_name_t *name_ptr = wasm_importtype_name(import_types.get()->data[i]); const wasm_externtype_t *extern_type = wasm_importtype_type(import_types.get()->data[i]); - std::string_view module_name(module_name_ptr->data, module_name_ptr->size); - std::string_view name(name_ptr->data, name_ptr->size); - assert(name_ptr->size > 0); + if (std::strlen(name_ptr->data) == 0) { + fail(FailState::UnableToInitializeCode, std::string("The name field of import_types[") + + std::to_string(i) + std::string("] is empty")); + return false; + } + + std::string_view module_name(module_name_ptr->data); + std::string_view name(name_ptr->data); + switch (wasm_externtype_kind(extern_type)) { case WASM_EXTERN_FUNC: { auto it = host_functions_.find(std::string(module_name) + "." + std::string(name)); @@ -354,8 +360,7 @@ bool Wamr::link(std::string_view /*debug_name*/) { case WASM_EXTERN_FUNC: { WasmFuncPtr func = wasm_func_copy(wasm_extern_as_func(actual_extern)); const wasm_name_t *name_ptr = wasm_exporttype_name(export_types.get()->data[i]); - module_functions_.insert_or_assign(std::string(name_ptr->data, name_ptr->size), - std::move(func)); + module_functions_.insert_or_assign(std::string(name_ptr->data), std::move(func)); } break; case WASM_EXTERN_GLOBAL: { // TODO(mathetake): add support when/if needed. From d6babe40d4fe1406eff7601a8c9987feaa22085c Mon Sep 17 00:00:00 2001 From: martijneken Date: Thu, 27 Apr 2023 12:37:54 -0400 Subject: [PATCH 237/287] Replace bazel-zig-cc with hermetic_cc_toolchain. (#345) Fixes #341. Signed-off-by: Martijn Stevenson --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index a49f01aad..eaf3066fd 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -42,9 +42,9 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "bazel-zig-cc", - sha256 = "0c29b7975c65026eefdb9226864c3eefccd4a8b5549b4b2709d1912fdc92e472", - strip_prefix = "bazel-zig-cc-0.4.4", - url = "https://github.com/uber/bazel-zig-cc/archive/refs/tags/v0.4.4.tar.gz", + sha256 = "ff89e0220c72cdc774e451a35e5c3b9f1593d0df71341844b2108c181ac0eef9", + strip_prefix = "hermetic_cc_toolchain-0.4.4", + url = "https://github.com/uber/hermetic_cc_toolchain/archive/refs/tags/v0.4.4.tar.gz", ) maybe( From 491915a9a999a18e394af22f9103b4d40ed0d24c Mon Sep 17 00:00:00 2001 From: martijneken Date: Fri, 28 Apr 2023 15:42:08 -0400 Subject: [PATCH 238/287] v8: fix build with GCC. (#343) Fixes #340. Signed-off-by: Martijn Stevenson --- .github/workflows/test.yml | 8 ++++++++ bazel/external/v8.patch | 23 ++++++++++++++++++----- 2 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index eba4f62ad..ed4a1b72d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -150,6 +150,14 @@ jobs: action: test flags: --config=clang-tsan cache: true + - name: 'V8 on Linux/x86_64 with GCC' + engine: 'v8' + repo: 'v8' + os: ubuntu-20.04 + arch: x86_64 + action: test + flags: --config=gcc + cache: true - name: 'V8 on Linux/aarch64' engine: 'v8' repo: 'v8' diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index 52af7b6ad..90b1de013 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,11 +1,12 @@ # 1. Disable pointer compression (limits the maximum number of WasmVMs). # 2. Don't expose Wasm C API (only Wasm C++ API). +# 3. Fix gcc build error by disabling nonnull warning. diff --git a/BUILD.bazel b/BUILD.bazel -index 5fb10d3940..a19930d36e 100644 +index 4e89f90e7e..3fcb38b3f3 100644 --- a/BUILD.bazel +++ b/BUILD.bazel -@@ -161,7 +161,7 @@ v8_int( +@@ -157,7 +157,7 @@ v8_int( # If no explicit value for v8_enable_pointer_compression, we set it to 'none'. v8_string( name = "v8_enable_pointer_compression", @@ -14,11 +15,23 @@ index 5fb10d3940..a19930d36e 100644 ) # Default setting for v8_enable_pointer_compression. +diff --git a/bazel/defs.bzl b/bazel/defs.bzl +index e957c0fad3..063627b72b 100644 +--- a/bazel/defs.bzl ++++ b/bazel/defs.bzl +@@ -131,6 +131,7 @@ def _default_args(): + "-Wno-redundant-move", + "-Wno-return-type", + "-Wno-stringop-overflow", ++ "-Wno-nonnull", + # Use GNU dialect, because GCC doesn't allow using + # ##__VA_ARGS__ when in standards-conforming mode. + "-std=gnu++17", diff --git a/src/wasm/c-api.cc b/src/wasm/c-api.cc -index ce3f569fd5..dc8a4c4f6a 100644 +index 4473e205c0..65a6ec7e1d 100644 --- a/src/wasm/c-api.cc +++ b/src/wasm/c-api.cc -@@ -2238,6 +2238,8 @@ auto Instance::exports() const -> ownvec { +@@ -2247,6 +2247,8 @@ auto Instance::exports() const -> ownvec { } // namespace wasm @@ -27,7 +40,7 @@ index ce3f569fd5..dc8a4c4f6a 100644 // BEGIN FILE wasm-c.cc extern "C" { -@@ -3257,3 +3259,5 @@ wasm_instance_t* wasm_frame_instance(const wasm_frame_t* frame) { +@@ -3274,3 +3276,5 @@ wasm_instance_t* wasm_frame_instance(const wasm_frame_t* frame) { #undef WASM_DEFINE_SHARABLE_REF } // extern "C" From 5574daf453888e50e7f5ef53e05ad425a0b7fb5c Mon Sep 17 00:00:00 2001 From: martijneken Date: Tue, 9 May 2023 10:37:13 -0400 Subject: [PATCH 239/287] Test an example stream context with a logging plugin (#348) * Allow StreamContext testing via TestContext Signed-off-by: Martijn Stevenson * Test an example Stream Context. HTTP handlers, logging only, no headers. Signed-off-by: Martijn Stevenson * Add missing license header. Signed-off-by: Martijn Stevenson * Attempt to fix clang-tidy Signed-off-by: Martijn Stevenson * Make newVm a static method for broader utility. Signed-off-by: Martijn Stevenson * Code review cleanups. Signed-off-by: Martijn Stevenson * Remove unnecessary pointer / heap allocation Signed-off-by: Martijn Stevenson --------- Signed-off-by: Martijn Stevenson --- test/BUILD | 15 ++++++++ test/logging_test.cc | 69 ++++++++++++++++++++++++++++++++++ test/test_data/BUILD | 5 +++ test/test_data/http_logging.cc | 37 ++++++++++++++++++ test/utility.h | 23 +++++++----- test/wasm_test.cc | 17 +++++---- 6 files changed, 148 insertions(+), 18 deletions(-) create mode 100644 test/logging_test.cc create mode 100644 test/test_data/http_logging.cc diff --git a/test/BUILD b/test/BUILD index a922bbfbc..61973ce17 100644 --- a/test/BUILD +++ b/test/BUILD @@ -117,6 +117,21 @@ cc_test( ], ) +cc_test( + name = "logging_test", + srcs = ["logging_test.cc"], + data = [ + "//test/test_data:http_logging.wasm", + ], + linkstatic = 1, + deps = [ + ":utility_lib", + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + cc_test( name = "security_test", srcs = ["security_test.cc"], diff --git a/test/logging_test.cc b/test/logging_test.cc new file mode 100644 index 000000000..e4cbdcdca --- /dev/null +++ b/test/logging_test.cc @@ -0,0 +1,69 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "gtest/gtest.h" +#include "include/proxy-wasm/wasm.h" +#include "test/utility.h" + +namespace proxy_wasm { + +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), + [](const testing::TestParamInfo &info) { + return info.param; + }); + +// TestVm is parameterized for each engine and creates a VM on construction. +TEST_P(TestVm, HttpLogging) { + // Read the wasm source. + auto source = readTestWasmFile("http_logging.wasm"); + ASSERT_FALSE(source.empty()); + + // Create a WasmBase and load the plugin. + auto wasm = std::make_shared(std::move(vm_)); + ASSERT_TRUE(wasm->load(source, /*allow_precompiled=*/false)); + ASSERT_TRUE(wasm->initialize()); + + // Create a plugin. + const auto plugin = std::make_shared( + /*name=*/"test", /*root_id=*/"", /*vm_id=*/"", + /*engine=*/wasm->wasm_vm()->getEngineName(), /*plugin_config=*/"", + /*fail_open=*/false, /*key=*/""); + + // Create root context, call onStart(). + ContextBase *root_context = wasm->start(plugin); + ASSERT_TRUE(root_context != nullptr); + + // On the root context, call onConfigure(). + ASSERT_TRUE(wasm->configure(root_context, plugin)); + + // Create a stream context. + { + auto wasm_handle = std::make_shared(wasm); + auto plugin_handle = std::make_shared(wasm_handle, plugin); + auto stream_context = TestContext(wasm.get(), root_context->id(), plugin_handle); + stream_context.onCreate(); + EXPECT_TRUE(stream_context.isLogged("onCreate called")); + stream_context.onRequestHeaders(/*headers=*/0, /*end_of_stream=*/false); + EXPECT_TRUE(stream_context.isLogged("onRequestHeaders called")); + stream_context.onResponseHeaders(/*headers=*/0, /*end_of_stream=*/false); + EXPECT_TRUE(stream_context.isLogged("onResponseHeaders called")); + stream_context.onDone(); + EXPECT_TRUE(stream_context.isLogged("onDone called")); + stream_context.onDelete(); + EXPECT_TRUE(stream_context.isLogged("onDelete called")); + } + EXPECT_FALSE(wasm->isFailed()); +} + +} // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD index d730b4bfc..bd70b8eb9 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -84,3 +84,8 @@ proxy_wasm_cc_binary( name = "canary_check.wasm", srcs = ["canary_check.cc"], ) + +proxy_wasm_cc_binary( + name = "http_logging.wasm", + srcs = ["http_logging.cc"], +) diff --git a/test/test_data/http_logging.cc b/test/test_data/http_logging.cc new file mode 100644 index 000000000..e25b410c2 --- /dev/null +++ b/test/test_data/http_logging.cc @@ -0,0 +1,37 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "proxy_wasm_intrinsics.h" + +class LoggingContext : public Context { +public: + explicit LoggingContext(uint32_t id, RootContext *root) : Context(id, root) {} + + void onCreate() override { LOG_INFO("onCreate called"); } + void onDelete() override { LOG_INFO("onDelete called"); } + void onDone() override { LOG_INFO("onDone called"); } + + FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) override { + LOG_INFO("onRequestHeaders called"); + return FilterHeadersStatus::Continue; + } + + FilterHeadersStatus onResponseHeaders(uint32_t headers, bool end_of_stream) override { + LOG_INFO("onResponseHeaders called"); + return FilterHeadersStatus::Continue; + } +}; + +static RegisterContextFactory register_StaticContext(CONTEXT_FACTORY(LoggingContext), + ROOT_FACTORY(RootContext)); diff --git a/test/utility.h b/test/utility.h index 06114e2c3..27b3b0493 100644 --- a/test/utility.h +++ b/test/utility.h @@ -93,6 +93,9 @@ class TestContext : public ContextBase { TestContext(WasmBase *wasm) : ContextBase(wasm) {} TestContext(WasmBase *wasm, const std::shared_ptr &plugin) : ContextBase(wasm, plugin) {} + TestContext(WasmBase *wasm, uint32_t parent_context_id, + std::shared_ptr &plugin_handle) + : ContextBase(wasm, parent_context_id, plugin_handle) {} WasmResult log(uint32_t /*log_level*/, std::string_view message) override { auto new_log = std::string(message) + "\n"; @@ -156,39 +159,39 @@ class TestVm : public testing::TestWithParam { public: TestVm() { engine_ = GetParam(); - vm_ = newVm(); + vm_ = makeVm(engine_); } - std::unique_ptr newVm() { + static std::unique_ptr makeVm(const std::string &engine) { std::unique_ptr vm; - if (engine_.empty()) { + if (engine.empty()) { ADD_FAILURE() << "engine must not be empty"; #if defined(PROXY_WASM_HOST_ENGINE_V8) - } else if (engine_ == "v8") { + } else if (engine == "v8") { vm = proxy_wasm::createV8Vm(); #endif #if defined(PROXY_WASM_HOST_ENGINE_WAVM) - } else if (engine_ == "wavm") { + } else if (engine == "wavm") { vm = proxy_wasm::createWavmVm(); #endif #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) - } else if (engine_ == "wasmtime") { + } else if (engine == "wasmtime") { vm = proxy_wasm::createWasmtimeVm(); #endif #if defined(PROXY_WASM_HOST_ENGINE_WASMEDGE) - } else if (engine_ == "wasmedge") { + } else if (engine == "wasmedge") { vm = proxy_wasm::createWasmEdgeVm(); #endif #if defined(PROXY_WASM_HOST_ENGINE_WAMR) - } else if (engine_ == "wamr") { + } else if (engine == "wamr") { vm = proxy_wasm::createWamrVm(); #endif } else { - ADD_FAILURE() << "compiled without support for the requested \"" << engine_ << "\" engine"; + ADD_FAILURE() << "compiled without support for the requested \"" << engine << "\" engine"; } vm->integration() = std::make_unique(); return vm; - }; + } std::unique_ptr vm_; std::string engine_; diff --git a/test/wasm_test.cc b/test/wasm_test.cc index 387348e8d..ad0e16ac3 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -43,7 +43,7 @@ TEST_P(TestVm, GetOrCreateThreadLocalWasmFailCallbacks) { // Define callbacks. WasmHandleFactory wasm_handle_factory = [this, vm_id, vm_config](std::string_view vm_key) -> std::shared_ptr { - auto base_wasm = std::make_shared(newVm(), vm_id, vm_config, vm_key, + auto base_wasm = std::make_shared(makeVm(engine_), vm_id, vm_config, vm_key, std::unordered_map{}, AllowedCapabilitiesMap{}); return std::make_shared(base_wasm); @@ -52,8 +52,8 @@ TEST_P(TestVm, GetOrCreateThreadLocalWasmFailCallbacks) { WasmHandleCloneFactory wasm_handle_clone_factory = [this](const std::shared_ptr &base_wasm_handle) -> std::shared_ptr { - auto wasm = std::make_shared(base_wasm_handle, - [this]() -> std::unique_ptr { return newVm(); }); + auto wasm = std::make_shared( + base_wasm_handle, [this]() -> std::unique_ptr { return makeVm(engine_); }); return std::make_shared(wasm); }; @@ -133,8 +133,8 @@ TEST_P(TestVm, AlwaysApplyCanary) { WasmHandleCloneFactory wasm_handle_clone_factory_for_canary = [&canary_count, this](const std::shared_ptr &base_wasm_handle) -> std::shared_ptr { - auto wasm = std::make_shared(base_wasm_handle, - [this]() -> std::unique_ptr { return newVm(); }); + auto wasm = std::make_shared( + base_wasm_handle, [this]() -> std::unique_ptr { return makeVm(engine_); }); canary_count++; return std::make_shared(wasm); }; @@ -150,8 +150,9 @@ TEST_P(TestVm, AlwaysApplyCanary) { WasmHandleFactory wasm_handle_factory_baseline = [this, vm_ids, vm_configs](std::string_view vm_key) -> std::shared_ptr { - auto base_wasm = std::make_shared( - newVm(), std::unordered_map(), vm_ids[0], vm_configs[0], vm_key); + auto base_wasm = + std::make_shared(makeVm(engine_), std::unordered_map(), + vm_ids[0], vm_configs[0], vm_key); return std::make_shared(base_wasm); }; @@ -184,7 +185,7 @@ TEST_P(TestVm, AlwaysApplyCanary) { [this, vm_id, vm_config](std::string_view vm_key) -> std::shared_ptr { auto base_wasm = std::make_shared( - newVm(), std::unordered_map(), vm_id, vm_config, + makeVm(engine_), std::unordered_map(), vm_id, vm_config, vm_key); return std::make_shared(base_wasm); }; From e1fe5e99eedfb517bea92aee3f13f442d4bfa3b4 Mon Sep 17 00:00:00 2001 From: Kuat Date: Wed, 10 May 2023 17:35:41 -0700 Subject: [PATCH 240/287] Cache canary results. (#351) Signed-off-by: Kuat Yessenov --- include/proxy-wasm/wasm.h | 1 + src/wasm.cc | 6 ++++++ test/wasm_test.cc | 14 ++++++++++---- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 23ed3c1da..1a785a8f9 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -337,6 +337,7 @@ class WasmHandleBase : public std::enable_shared_from_this { protected: std::shared_ptr wasm_base_; + std::unordered_map plugin_canary_cache_; }; std::string makeVmKey(std::string_view vm_id, std::string_view configuration, diff --git a/src/wasm.cc b/src/wasm.cc index 5519b3e77..a7a22fc9c 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -472,6 +472,10 @@ bool WasmHandleBase::canary(const std::shared_ptr &plugin, if (this->wasm() == nullptr) { return false; } + auto it = plugin_canary_cache_.find(plugin->key()); + if (it != plugin_canary_cache_.end()) { + return it->second; + } auto configuration_canary_handle = clone_factory(shared_from_this()); if (!configuration_canary_handle) { this->wasm()->fail(FailState::UnableToCloneVm, "Failed to clone Base Wasm"); @@ -490,9 +494,11 @@ bool WasmHandleBase::canary(const std::shared_ptr &plugin, if (!configuration_canary_handle->wasm()->configure(root_context, plugin)) { configuration_canary_handle->wasm()->fail(FailState::ConfigureFailed, "Failed to configure base Wasm plugin"); + plugin_canary_cache_[plugin->key()] = false; return false; } configuration_canary_handle->kill(); + plugin_canary_cache_[plugin->key()] = true; return true; } diff --git a/test/wasm_test.cc b/test/wasm_test.cc index ad0e16ac3..b88732698 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -172,6 +172,7 @@ TEST_P(TestVm, AlwaysApplyCanary) { // For each create Wasm, canary should be done. EXPECT_EQ(canary_count, 1); + bool first = true; std::unordered_set> reference_holder; for (const auto &root_id : root_ids) { @@ -196,8 +197,15 @@ TEST_P(TestVm, AlwaysApplyCanary) { auto wasm_handle_comp = createWasm(vm_key, source, plugin_comp, wasm_handle_factory_comp, wasm_handle_clone_factory_for_canary, false); - // For each create Wasm, canary should be done. - EXPECT_EQ(canary_count, 1); + // Validate that canarying is cached for the first baseline plugin variant. + if (first) { + first = false; + EXPECT_EQ(canary_count, 0); + } else { + // For each create Wasm, canary should be done. + EXPECT_EQ(canary_count, 1); + EXPECT_TRUE(TestContext::isGlobalLogged("onConfigure: " + root_id)); + } if (plugin_config.empty()) { // canary_check.wasm should raise the error at `onConfigure` in canary when the @@ -212,8 +220,6 @@ TEST_P(TestVm, AlwaysApplyCanary) { // destroyed for each iteration. reference_holder.insert(wasm_handle_comp); - EXPECT_TRUE(TestContext::isGlobalLogged("onConfigure: " + root_id)); - // Wasm VM is unique for vm_key. if (vm_key == vm_key_baseline) { EXPECT_EQ(wasm_handle_baseline->wasm(), wasm_handle_comp->wasm()); From cbee7252cd1569cafde8f81c017e9a0e39ecb527 Mon Sep 17 00:00:00 2001 From: phlax Date: Tue, 30 May 2023 22:34:35 +0100 Subject: [PATCH 241/287] Update rules_rust to v0.22.0 (with Rust v1.69.0). (#354) Signed-off-by: Ryan Northey --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index eaf3066fd..b96b972be 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -74,10 +74,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_rust", - sha256 = "c8a84a01bff4be4c7a8beefbc12e713ff296fed2110c30572a44205856594cfc", - strip_prefix = "rules_rust-0.19.0", + sha256 = "88a6911bf60c44710407cc718668ce79a4a339e1310b47f306aa0f1beadc6895", + strip_prefix = "rules_rust-0.22.0", # NOTE: Update Rust version in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/0.19.0.tar.gz", + url = "https://github.com/bazelbuild/rules_rust/archive/0.22.0.tar.gz", patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], patch_args = ["-p1"], ) From 5d76116c449d6892b298b7ae79a84ef1cf5752bf Mon Sep 17 00:00:00 2001 From: phlax Date: Thu, 1 Jun 2023 07:59:08 +0100 Subject: [PATCH 242/287] wasmtime: update to v9.0.3. (#355) Signed-off-by: Ryan Northey --- bazel/cargo/wasmtime/BUILD.bazel | 8 +- bazel/cargo/wasmtime/Cargo.raze.lock | 428 +++++----- bazel/cargo/wasmtime/Cargo.toml | 13 +- bazel/cargo/wasmtime/crates.bzl | 752 ++++++++++-------- ...7.0.bazel => BUILD.addr2line-0.19.0.bazel} | 4 +- ...sh-0.7.6.bazel => BUILD.ahash-0.8.3.bazel} | 58 +- ...0.bazel => BUILD.aho-corasick-1.0.1.bazel} | 5 +- ...1.0.70.bazel => BUILD.anyhow-1.0.71.bazel} | 4 +- .../remote/BUILD.arbitrary-1.3.0.bazel | 62 ++ .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 2 +- .../remote/BUILD.bitflags-2.3.1.bazel | 66 ++ ....12.0.bazel => BUILD.bumpalo-3.13.0.bazel} | 2 +- ...l => BUILD.cranelift-bforest-0.96.3.bazel} | 4 +- ...l => BUILD.cranelift-codegen-0.96.3.bazel} | 28 +- ...BUILD.cranelift-codegen-meta-0.96.3.bazel} | 4 +- ...ILD.cranelift-codegen-shared-0.96.3.bazel} | 2 +- .../BUILD.cranelift-control-0.96.3.bazel | 55 ++ ...el => BUILD.cranelift-entity-0.96.3.bazel} | 4 +- ... => BUILD.cranelift-frontend-0.96.3.bazel} | 8 +- ...azel => BUILD.cranelift-isle-0.96.3.bazel} | 4 +- ...el => BUILD.cranelift-native-0.96.3.bazel} | 8 +- ...azel => BUILD.cranelift-wasm-0.96.3.bazel} | 14 +- .../wasmtime/remote/BUILD.debugid-0.8.0.bazel | 61 ++ ....3.bazel => BUILD.env_logger-0.10.0.bazel} | 30 +- ...no-0.2.8.bazel => BUILD.errno-0.3.1.bazel} | 10 +- .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 2 +- ...UILD.fxprof-processed-profile-0.6.0.bazel} | 23 +- ....2.8.bazel => BUILD.getrandom-0.2.9.bazel} | 6 +- ...-0.26.2.bazel => BUILD.gimli-0.27.2.bazel} | 4 +- .../remote/BUILD.hashbrown-0.12.3.bazel | 4 - .../remote/BUILD.hashbrown-0.13.2.bazel | 75 ++ .../wasmtime/remote/BUILD.idna-0.3.0.bazel | 2 +- ...1.9.2.bazel => BUILD.indexmap-1.9.3.bazel} | 6 +- ....bazel => BUILD.io-lifetimes-1.0.11.bazel} | 12 +- ...14.bazel => BUILD.is-terminal-0.4.7.bazel} | 18 +- ...bi-0.1.19.bazel => BUILD.itoa-1.0.6.bazel} | 12 +- ...0.2.140.bazel => BUILD.libc-0.2.144.bazel} | 4 +- ....bazel => BUILD.linux-raw-sys-0.3.8.bazel} | 2 +- ...og-0.4.17.bazel => BUILD.log-0.4.18.bazel} | 5 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- ...fd-0.6.2.bazel => BUILD.memfd-0.6.3.bazel} | 4 +- ....6.5.bazel => BUILD.memoffset-0.8.0.bazel} | 4 +- ...0.29.0.bazel => BUILD.object-0.30.3.bazel} | 6 +- ...7.1.bazel => BUILD.once_cell-1.17.2.bazel} | 3 +- ...2.bazel => BUILD.proc-macro2-1.0.59.bazel} | 6 +- ...-1.0.26.bazel => BUILD.quote-1.0.28.bazel} | 6 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 2 +- .../remote/BUILD.rand_core-0.6.4.bazel | 2 +- ....5.1.bazel => BUILD.regalloc2-0.8.1.bazel} | 10 +- ...ex-1.7.1.bazel => BUILD.regex-1.8.3.bazel} | 8 +- ...8.bazel => BUILD.regex-syntax-0.7.2.bazel} | 4 +- ...azel => BUILD.rustc-demangle-0.1.23.bazel} | 2 +- .../remote/BUILD.rustc-hash-1.1.0.bazel | 54 ++ ...36.10.bazel => BUILD.rustix-0.37.19.bazel} | 22 +- .../wasmtime/remote/BUILD.ryu-1.0.13.bazel | 72 ++ ....0.157.bazel => BUILD.serde-1.0.163.bazel} | 6 +- .../remote/BUILD.serde_derive-1.0.157.bazel | 89 --- .../remote/BUILD.serde_derive-1.0.163.bazel | 58 ++ .../remote/BUILD.serde_json-1.0.96.bazel | 105 +++ ...bazel => BUILD.slice-group-by-0.3.1.bazel} | 4 +- ...syn-2.0.2.bazel => BUILD.syn-2.0.18.bazel} | 8 +- ...azel => BUILD.target-lexicon-0.12.7.bazel} | 4 +- .../remote/BUILD.thiserror-impl-1.0.40.bazel | 6 +- ....bazel => BUILD.unicode-bidi-0.3.13.bazel} | 2 +- ....bazel => BUILD.unicode-ident-1.0.9.bazel} | 2 +- .../wasmtime/remote/BUILD.uuid-1.3.3.bazel | 72 ++ ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 2 - ...0.bazel => BUILD.wasmparser-0.103.0.bazel} | 6 +- ...6.0.1.bazel => BUILD.wasmtime-9.0.3.bazel} | 37 +- ... => BUILD.wasmtime-asm-macros-9.0.3.bazel} | 2 +- .../BUILD.wasmtime-c-api-macros-0.0.0.bazel | 4 +- ...l => BUILD.wasmtime-cranelift-9.0.3.bazel} | 28 +- ...UILD.wasmtime-cranelift-shared-9.0.3.bazel | 62 ++ ...zel => BUILD.wasmtime-environ-9.0.3.bazel} | 22 +- ...1.bazel => BUILD.wasmtime-jit-9.0.3.bazel} | 26 +- ...l => BUILD.wasmtime-jit-debug-9.0.3.bazel} | 4 +- ...wasmtime-jit-icache-coherence-9.0.3.bazel} | 6 +- ...zel => BUILD.wasmtime-runtime-9.0.3.bazel} | 28 +- ...bazel => BUILD.wasmtime-types-9.0.3.bazel} | 8 +- .../wasmtime/remote/BUILD.winapi-0.3.9.bazel | 4 - .../remote/BUILD.windows-sys-0.45.0.bazel | 96 --- ...0.bazel => BUILD.windows-sys-0.48.0.bazel} | 29 +- ...zel => BUILD.windows-targets-0.48.0.bazel} | 19 +- ...UILD.windows_aarch64_gnullvm-0.48.0.bazel} | 4 +- ...> BUILD.windows_aarch64_msvc-0.48.0.bazel} | 4 +- ...el => BUILD.windows_i686_gnu-0.48.0.bazel} | 4 +- ...l => BUILD.windows_i686_msvc-0.48.0.bazel} | 4 +- ... => BUILD.windows_x86_64_gnu-0.48.0.bazel} | 4 +- ...BUILD.windows_x86_64_gnullvm-0.48.0.bazel} | 4 +- ...=> BUILD.windows_x86_64_msvc-0.48.0.bazel} | 4 +- bazel/repositories.bzl | 6 +- 91 files changed, 1739 insertions(+), 1052 deletions(-) rename bazel/cargo/wasmtime/remote/{BUILD.addr2line-0.17.0.bazel => BUILD.addr2line-0.19.0.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.ahash-0.7.6.bazel => BUILD.ahash-0.8.3.bazel} (57%) rename bazel/cargo/wasmtime/remote/{BUILD.aho-corasick-0.7.20.bazel => BUILD.aho-corasick-1.0.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.anyhow-1.0.70.bazel => BUILD.anyhow-1.0.71.bazel} (98%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.bumpalo-3.12.0.bazel => BUILD.bumpalo-3.13.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.93.1.bazel => BUILD.cranelift-bforest-0.96.3.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.93.1.bazel => BUILD.cranelift-codegen-0.96.3.bazel} (73%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.93.1.bazel => BUILD.cranelift-codegen-meta-0.96.3.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.93.1.bazel => BUILD.cranelift-codegen-shared-0.96.3.bazel} (97%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.93.1.bazel => BUILD.cranelift-entity-0.96.3.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.93.1.bazel => BUILD.cranelift-frontend-0.96.3.bazel} (85%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-isle-0.93.1.bazel => BUILD.cranelift-isle-0.96.3.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.93.1.bazel => BUILD.cranelift-native-0.96.3.bazel} (87%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.93.1.bazel => BUILD.cranelift-wasm-0.96.3.bazel} (77%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.env_logger-0.9.3.bazel => BUILD.env_logger-0.10.0.bazel} (65%) rename bazel/cargo/wasmtime/remote/{BUILD.errno-0.2.8.bazel => BUILD.errno-0.3.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.arrayvec-0.7.2.bazel => BUILD.fxprof-processed-profile-0.6.0.bazel} (68%) rename bazel/cargo/wasmtime/remote/{BUILD.getrandom-0.2.8.bazel => BUILD.getrandom-0.2.9.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.gimli-0.26.2.bazel => BUILD.gimli-0.27.2.bazel} (95%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel rename bazel/cargo/wasmtime/remote/{BUILD.indexmap-1.9.2.bazel => BUILD.indexmap-1.9.3.bazel} (96%) rename bazel/cargo/wasmtime/remote/{BUILD.io-lifetimes-1.0.8.bazel => BUILD.io-lifetimes-1.0.11.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.atty-0.2.14.bazel => BUILD.is-terminal-0.4.7.bazel} (85%) rename bazel/cargo/wasmtime/remote/{BUILD.hermit-abi-0.1.19.bazel => BUILD.itoa-1.0.6.bazel} (84%) rename bazel/cargo/wasmtime/remote/{BUILD.libc-0.2.140.bazel => BUILD.libc-0.2.144.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.linux-raw-sys-0.1.4.bazel => BUILD.linux-raw-sys-0.3.8.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.log-0.4.17.bazel => BUILD.log-0.4.18.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.memfd-0.6.2.bazel => BUILD.memfd-0.6.3.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.memoffset-0.6.5.bazel => BUILD.memoffset-0.8.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.object-0.29.0.bazel => BUILD.object-0.30.3.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.once_cell-1.17.1.bazel => BUILD.once_cell-1.17.2.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.proc-macro2-1.0.52.bazel => BUILD.proc-macro2-1.0.59.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.quote-1.0.26.bazel => BUILD.quote-1.0.28.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.regalloc2-0.5.1.bazel => BUILD.regalloc2-0.8.1.bazel} (82%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-1.7.1.bazel => BUILD.regex-1.8.3.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.regex-syntax-0.6.28.bazel => BUILD.regex-syntax-0.7.2.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.rustc-demangle-0.1.21.bazel => BUILD.rustc-demangle-0.1.23.bazel} (97%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.rustix-0.36.10.bazel => BUILD.rustix-0.37.19.bazel} (94%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel rename bazel/cargo/wasmtime/remote/{BUILD.serde-1.0.157.bazel => BUILD.serde-1.0.163.bazel} (94%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.157.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel rename bazel/cargo/wasmtime/remote/{BUILD.slice-group-by-0.3.0.bazel => BUILD.slice-group-by-0.3.1.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.syn-2.0.2.bazel => BUILD.syn-2.0.18.bazel} (94%) rename bazel/cargo/wasmtime/remote/{BUILD.target-lexicon-0.12.6.bazel => BUILD.target-lexicon-0.12.7.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.unicode-bidi-0.3.12.bazel => BUILD.unicode-bidi-0.3.13.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.unicode-ident-1.0.8.bazel => BUILD.unicode-ident-1.0.9.bazel} (98%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmparser-0.100.0.bazel => BUILD.wasmparser-0.103.0.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-6.0.1.bazel => BUILD.wasmtime-9.0.3.bazel} (70%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-asm-macros-6.0.1.bazel => BUILD.wasmtime-asm-macros-9.0.3.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-6.0.1.bazel => BUILD.wasmtime-cranelift-9.0.3.bazel} (57%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-6.0.1.bazel => BUILD.wasmtime-environ-9.0.3.bazel} (68%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-6.0.1.bazel => BUILD.wasmtime-jit-9.0.3.bazel} (69%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-6.0.1.bazel => BUILD.wasmtime-jit-debug-9.0.3.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel => BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-6.0.1.bazel => BUILD.wasmtime-runtime-9.0.3.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-6.0.1.bazel => BUILD.wasmtime-types-9.0.3.bazel} (85%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows-sys-0.42.0.bazel => BUILD.windows-sys-0.48.0.bazel} (70%) rename bazel/cargo/wasmtime/remote/{BUILD.windows-targets-0.42.2.bazel => BUILD.windows-targets-0.48.0.bazel} (66%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_aarch64_gnullvm-0.42.2.bazel => BUILD.windows_aarch64_gnullvm-0.48.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_aarch64_msvc-0.42.2.bazel => BUILD.windows_aarch64_msvc-0.48.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_i686_gnu-0.42.2.bazel => BUILD.windows_i686_gnu-0.48.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_i686_msvc-0.42.2.bazel => BUILD.windows_i686_msvc-0.48.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_x86_64_gnu-0.42.2.bazel => BUILD.windows_x86_64_gnu-0.48.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_x86_64_gnullvm-0.42.2.bazel => BUILD.windows_x86_64_gnullvm-0.48.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.windows_x86_64_msvc-0.42.2.bazel => BUILD.windows_x86_64_msvc-0.48.0.bazel} (97%) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index f09d38542..75c6a1d79 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -14,7 +14,7 @@ licenses([ # Aliased targets alias( name = "anyhow", - actual = "@wasmtime__anyhow__1_0_70//:anyhow", + actual = "@wasmtime__anyhow__1_0_71//:anyhow", tags = [ "cargo-raze", "manual", @@ -23,7 +23,7 @@ alias( alias( name = "env_logger", - actual = "@wasmtime__env_logger__0_9_3//:env_logger", + actual = "@wasmtime__env_logger__0_10_0//:env_logger", tags = [ "cargo-raze", "manual", @@ -32,7 +32,7 @@ alias( alias( name = "once_cell", - actual = "@wasmtime__once_cell__1_17_1//:once_cell", + actual = "@wasmtime__once_cell__1_17_2//:once_cell", tags = [ "cargo-raze", "manual", @@ -41,7 +41,7 @@ alias( alias( name = "wasmtime", - actual = "@wasmtime__wasmtime__6_0_1//:wasmtime", + actual = "@wasmtime__wasmtime__9_0_3//:wasmtime", tags = [ "cargo-raze", "manual", diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.raze.lock index 14c6bbdf2..6c0f7a2bd 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.raze.lock @@ -2,55 +2,44 @@ # It is not intended for manual editing. [[package]] name = "addr2line" -version = "0.17.0" +version = "0.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b" +checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" dependencies = [ "gimli", ] [[package]] name = "ahash" -version = "0.7.6" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" +checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" dependencies = [ - "getrandom", + "cfg-if", "once_cell", "version_check", ] [[package]] name = "aho-corasick" -version = "0.7.20" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac" +checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.70" +version = "1.0.71" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7de8ce5e0f9f8d88245311066a578d72b7af3e7088f32783804676302df237e4" +checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" [[package]] -name = "arrayvec" -version = "0.7.2" +name = "arbitrary" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6" - -[[package]] -name = "atty" -version = "0.2.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8" -dependencies = [ - "hermit-abi 0.1.19", - "libc", - "winapi", -] +checksum = "e2d098ff73c1ca148721f37baad5ea6a465a13f9573aba8641fbbbae8164a54e" [[package]] name = "autocfg" @@ -73,11 +62,17 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" +[[package]] +name = "bitflags" +version = "2.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84" + [[package]] name = "bumpalo" -version = "3.12.0" +version = "3.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535" +checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" [[package]] name = "byteorder" @@ -108,28 +103,28 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7379abaacee0f14abf3204a7606118f0465785252169d186337bcb75030815a" +checksum = "9c064a534a914eb6709d198525321a386dad50627aecfaf64053f369993a3e5a" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9489fa336927df749631f1008007ced2871068544f40a202ce6d93fbf2366a7b" +checksum = "619ed4d24acef0bd58b16a1be39077c0b36c65782e6c933892439af5e799110e" dependencies = [ - "arrayvec", "bumpalo", "cranelift-bforest", "cranelift-codegen-meta", "cranelift-codegen-shared", + "cranelift-control", "cranelift-entity", "cranelift-isle", "gimli", - "hashbrown", + "hashbrown 0.13.2", "log", "regalloc2", "smallvec", @@ -138,33 +133,42 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05bbb67da91ec721ed57cef2f7c5ef7728e1cd9bde9ffd3ef8601022e73e3239" +checksum = "c777ce22678ae1869f990b2f31e0cd7ca109049213bfc0baf3e2205a18b21ebb" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418ecb2f36032f6665dc1a5e2060a143dbab41d83b784882e97710e890a7a16d" +checksum = "eb65884d17a1fa55990dd851c43c140afb4c06c3312cf42cfa1222c3b23f9561" + +[[package]] +name = "cranelift-control" +version = "0.96.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9a0cea8abc90934d0a7ee189a29fd35fecd5c40f59ae7e6aab1805e8ab1a535e" +dependencies = [ + "arbitrary", +] [[package]] name = "cranelift-entity" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7cf583f7b093f291005f9fb1323e2c37f6ee4c7909e39ce016b2e8360d461705" +checksum = "c2e50bebc05f2401a1320169314b62f91ad811ef20163cac00151d78e0684d4c" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b66bf9e916f57fbbd0f7703ec6286f4624866bf45000111627c70d272c8dda1" +checksum = "7b82ccfe704d53f669791399d417928410785132d809ec46f5e2ce069e9d17c8" dependencies = [ "cranelift-codegen", "log", @@ -174,15 +178,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "649782a39ce99798dd6b4029e2bb318a2fbeaade1b4fa25330763c10c65bc358" +checksum = "a2515d8e7836f9198b160b2c80aaa1f586d7749d57d6065af86223fb65b7e2c3" [[package]] name = "cranelift-native" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "937e021e089c51f9749d09e7ad1c4f255c2f8686cb8c3df63a34b3ec9921bc41" +checksum = "bcb47ffdcdac7e9fed6e4a618939773a4dc4a412fa7da9e701ae667431a10af3" dependencies = [ "cranelift-codegen", "libc", @@ -191,9 +195,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.93.1" +version = "0.96.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d850cf6775477747c9dfda9ae23355dd70512ffebc70cf82b85a5b111ae668b5" +checksum = "852390f92c3eaa457e42be44d174ff5abbbcd10062d5963bda8ffb2505e73a71" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -214,6 +218,15 @@ dependencies = [ "cfg-if", ] +[[package]] +name = "debugid" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d" +dependencies = [ + "uuid", +] + [[package]] name = "either" version = "1.8.1" @@ -222,12 +235,12 @@ checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" [[package]] name = "env_logger" -version = "0.9.3" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7" +checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" dependencies = [ - "atty", "humantime", + "is-terminal", "log", "regex", "termcolor", @@ -235,13 +248,13 @@ dependencies = [ [[package]] name = "errno" -version = "0.2.8" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1" +checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" dependencies = [ "errno-dragonfly", "libc", - "winapi", + "windows-sys", ] [[package]] @@ -278,11 +291,24 @@ dependencies = [ "byteorder", ] +[[package]] +name = "fxprof-processed-profile" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd" +dependencies = [ + "bitflags 2.3.1", + "debugid", + "fxhash", + "serde", + "serde_json", +] + [[package]] name = "getrandom" -version = "0.2.8" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31" +checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" dependencies = [ "cfg-if", "libc", @@ -291,9 +317,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.26.2" +version = "0.27.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d" +checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" dependencies = [ "fallible-iterator", "indexmap", @@ -305,17 +331,14 @@ name = "hashbrown" version = "0.12.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" -dependencies = [ - "ahash", -] [[package]] -name = "hermit-abi" -version = "0.1.19" +name = "hashbrown" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" dependencies = [ - "libc", + "ahash", ] [[package]] @@ -342,24 +365,36 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.2" +version = "1.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399" +checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" dependencies = [ "autocfg", - "hashbrown", + "hashbrown 0.12.3", "serde", ] [[package]] name = "io-lifetimes" -version = "1.0.8" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dd6da19f25979c7270e70fa95ab371ec3b701cd0eefc47667a09785b3c59155" +checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ - "hermit-abi 0.3.1", + "hermit-abi", "libc", - "windows-sys 0.45.0", + "windows-sys", +] + +[[package]] +name = "is-terminal" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" +dependencies = [ + "hermit-abi", + "io-lifetimes", + "rustix", + "windows-sys", ] [[package]] @@ -371,26 +406,29 @@ dependencies = [ "either", ] +[[package]] +name = "itoa" +version = "1.0.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" + [[package]] name = "libc" -version = "0.2.140" +version = "0.2.144" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c" +checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" [[package]] name = "linux-raw-sys" -version = "0.1.4" +version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4" +checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" [[package]] name = "log" -version = "0.4.17" +version = "0.4.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e" -dependencies = [ - "cfg-if", -] +checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" [[package]] name = "mach" @@ -409,39 +447,39 @@ checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" [[package]] name = "memfd" -version = "0.6.2" +version = "0.6.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb" +checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" dependencies = [ "rustix", ] [[package]] name = "memoffset" -version = "0.6.5" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce" +checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" dependencies = [ "autocfg", ] [[package]] name = "object" -version = "0.29.0" +version = "0.30.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53" +checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" dependencies = [ "crc32fast", - "hashbrown", + "hashbrown 0.13.2", "indexmap", "memchr", ] [[package]] name = "once_cell" -version = "1.17.1" +version = "1.17.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3" +checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" [[package]] name = "paste" @@ -463,9 +501,9 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "proc-macro2" -version = "1.0.52" +version = "1.0.59" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d0e1ae9e836cc3beddd63db0df682593d7e2d3d891ae8c9083d2113e1744224" +checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" dependencies = [ "unicode-ident", ] @@ -481,9 +519,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.26" +version = "1.0.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc" +checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" dependencies = [ "proc-macro2", ] @@ -520,21 +558,22 @@ dependencies = [ [[package]] name = "regalloc2" -version = "0.5.1" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "300d4fbfb40c1c66a78ba3ddd41c1110247cf52f97b87d0f2fc9209bd49b030c" +checksum = "d4a52e724646c6c0800fc456ec43b4165d2f91fba88ceaca06d9e0b400023478" dependencies = [ - "fxhash", + "hashbrown 0.13.2", "log", + "rustc-hash", "slice-group-by", "smallvec", ] [[package]] name = "regex" -version = "1.7.1" +version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733" +checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" dependencies = [ "aho-corasick", "memchr", @@ -543,55 +582,78 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.28" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" +checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "rustc-demangle" -version = "0.1.21" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342" +checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" + +[[package]] +name = "rustc-hash" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.36.10" +version = "0.37.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fe885c3a125aa45213b68cc1472a49880cb5923dc23f522ad2791b882228778" +checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" dependencies = [ - "bitflags", + "bitflags 1.3.2", "errno", "io-lifetimes", "libc", "linux-raw-sys", - "windows-sys 0.45.0", + "windows-sys", ] +[[package]] +name = "ryu" +version = "1.0.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" + [[package]] name = "serde" -version = "1.0.157" +version = "1.0.163" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707de5fcf5df2b5788fca98dd7eab490bc2fd9b7ef1404defc462833b83f25ca" +checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.157" +version = "1.0.163" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78997f4555c22a7971214540c4a661291970619afd56de19f77e0de86296e1e5" +checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" dependencies = [ "proc-macro2", "quote", "syn", ] +[[package]] +name = "serde_json" +version = "1.0.96" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +dependencies = [ + "itoa", + "ryu", + "serde", +] + [[package]] name = "slice-group-by" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec" +checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "smallvec" @@ -607,9 +669,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "2.0.2" +version = "2.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59d3276aee1fa0c33612917969b5172b5be2db051232a6e4826f1a1a9191b045" +checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" dependencies = [ "proc-macro2", "quote", @@ -618,9 +680,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.6" +version = "0.12.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5" +checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" [[package]] name = "termcolor" @@ -668,15 +730,15 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "unicode-bidi" -version = "0.3.12" +version = "0.3.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d502c968c6a838ead8e69b2ee18ec708802f99db92a0d156705ec9ef801993b" +checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" [[package]] name = "unicode-ident" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4" +checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" [[package]] name = "unicode-normalization" @@ -698,6 +760,12 @@ dependencies = [ "percent-encoding", ] +[[package]] +name = "uuid" +version = "1.3.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "345444e32442451b267fc254ae85a209c64be56d2890e601a0c37ff0c3c5ecd2" + [[package]] name = "version_check" version = "0.9.4" @@ -712,9 +780,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasmparser" -version = "0.100.0" +version = "0.103.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64b20236ab624147dfbb62cf12a19aaf66af0e41b8398838b66e997d07d269d4" +checksum = "2c437373cac5ea84f1113d648d51f71751ffbe3d90c00ae67618cf20d0b5ee7b" dependencies = [ "indexmap", "url", @@ -722,13 +790,15 @@ dependencies = [ [[package]] name = "wasmtime" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6e89f9819523447330ffd70367ef4a18d8c832e24e8150fe054d1d912841632" +checksum = "aa0f72886c3264eb639f50188d1eb98b975564130292fea8deb4facf91ca7258" dependencies = [ "anyhow", "bincode", + "bumpalo", "cfg-if", + "fxprof-processed-profile", "indexmap", "libc", "log", @@ -737,27 +807,28 @@ dependencies = [ "paste", "psm", "serde", + "serde_json", "target-lexicon", "wasmparser", "wasmtime-cranelift", "wasmtime-environ", "wasmtime-jit", "wasmtime-runtime", - "windows-sys 0.42.0", + "windows-sys", ] [[package]] name = "wasmtime-asm-macros" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bd3a5e46c198032da934469f3a6e48649d1f9142438e4fd4617b68a35644b8a" +checksum = "a18391ed41ca957eecdbe64c51879b75419cbc52e2d8663fe82945b28b4f19da" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-c-api-bazel" -version = "2.0.2" +version = "9.0.3" dependencies = [ "anyhow", "env_logger", @@ -769,7 +840,7 @@ dependencies = [ [[package]] name = "wasmtime-c-api-macros" version = "0.0.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v6.0.1#b6bc33da2bcb466d377fb02f5aa764a667d08e0a" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v9.0.3#271b605e8d3d44c5d0a39bb4e65c3efb3869ff74" dependencies = [ "proc-macro2", "quote", @@ -777,12 +848,13 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59b2c92a08c0db6efffd88fdc97d7aa9c7c63b03edb0971dbca745469f820e8c" +checksum = "a2495036d05eb1e79ecf22e092eeacd279dcf24b4fcab77fb4cf8ef9bd42c3ea" dependencies = [ "anyhow", "cranelift-codegen", + "cranelift-control", "cranelift-entity", "cranelift-frontend", "cranelift-native", @@ -793,14 +865,31 @@ dependencies = [ "target-lexicon", "thiserror", "wasmparser", + "wasmtime-cranelift-shared", + "wasmtime-environ", +] + +[[package]] +name = "wasmtime-cranelift-shared" +version = "9.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef677f7b0d3f3b73275675486d791f1e85e7c24afe8dd367c6b9950028906330" +dependencies = [ + "anyhow", + "cranelift-codegen", + "cranelift-control", + "cranelift-native", + "gimli", + "object", + "target-lexicon", "wasmtime-environ", ] [[package]] name = "wasmtime-environ" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a6db9fc52985ba06ca601f2ff0ff1f526c5d724c7ac267b47326304b0c97883" +checksum = "2d03356374ffafa881c5f972529d2bb11ce48fe2736285e2b0ad72c6d554257b" dependencies = [ "anyhow", "cranelift-entity", @@ -817,9 +906,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b77e3a52cd84d0f7f18554afa8060cfe564ccac61e3b0802d3fd4084772fa5f6" +checksum = "e5374f0d2ee0069391dd9348f148802846b2b3e0af650385f9c56b3012d3c5d1" dependencies = [ "addr2line", "anyhow", @@ -835,34 +924,34 @@ dependencies = [ "wasmtime-environ", "wasmtime-jit-icache-coherence", "wasmtime-runtime", - "windows-sys 0.42.0", + "windows-sys", ] [[package]] name = "wasmtime-jit-debug" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0245e8a9347017c7185a72e215218a802ff561545c242953c11ba00fccc930f" +checksum = "102653b177225bfdd2da41cc385965d4bf6bc10cf14ec7b306bc9b015fb01c22" dependencies = [ "once_cell", ] [[package]] name = "wasmtime-jit-icache-coherence" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67d412e9340ab1c83867051d8d1d7c90aa8c9afc91da086088068e2734e25064" +checksum = "374ff63b3eb41db57c56682a9ef7737d2c9efa801f5dbf9da93941c9dd436a06" dependencies = [ "cfg-if", "libc", - "windows-sys 0.42.0", + "windows-sys", ] [[package]] name = "wasmtime-runtime" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d594e791b5fdd4dbaf8cf7ae62f2e4ff85018ce90f483ca6f42947688e48827d" +checksum = "9b1b832f19099066ebd26e683121d331f12cf98f158eac0f889972854413b46f" dependencies = [ "anyhow", "cc", @@ -879,14 +968,14 @@ dependencies = [ "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", - "windows-sys 0.42.0", + "windows-sys", ] [[package]] name = "wasmtime-types" -version = "6.0.1" +version = "9.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6688d6f96d4dbc1f89fab626c56c1778936d122b5f4ae7a57c2eb42b8d982e2" +checksum = "9c574221440e05bbb04efa09786d049401be2eb10081ecf43eb72fbd637bd12f" dependencies = [ "cranelift-entity", "serde", @@ -927,33 +1016,18 @@ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" [[package]] name = "windows-sys" -version = "0.42.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7" -dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", -] - -[[package]] -name = "windows-sys" -version = "0.45.0" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ "windows-targets", ] [[package]] name = "windows-targets" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" dependencies = [ "windows_aarch64_gnullvm", "windows_aarch64_msvc", @@ -966,42 +1040,42 @@ dependencies = [ [[package]] name = "windows_aarch64_gnullvm" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" +checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" [[package]] name = "windows_aarch64_msvc" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" +checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" [[package]] name = "windows_i686_gnu" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" +checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" [[package]] name = "windows_i686_msvc" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" +checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" [[package]] name = "windows_x86_64_gnu" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" +checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" [[package]] name = "windows_x86_64_gnullvm" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" +checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" [[package]] name = "windows_x86_64_msvc" -version = "0.42.2" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" +checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index f4199812e..238b91609 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,17 +1,18 @@ [package] -edition = "2018" +edition = "2021" name = "wasmtime-c-api-bazel" -version = "2.0.2" +version = "9.0.3" +rust-version = "1.66.0" [lib] path = "fake_lib.rs" [dependencies] -env_logger = "0.9" +env_logger = "0.10" anyhow = "1.0" -once_cell = "1.3" -wasmtime = {version = "6.0.1", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v6.0.1"} +once_cell = "1.12" +wasmtime = {version = "9.0.3", default-features = false, features = ['cranelift']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v9.0.3"} [package.metadata.raze] rust_rules_workspace_name = "rules_rust" diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl index 1a65f92eb..1c0e575af 100644 --- a/bazel/cargo/wasmtime/crates.bzl +++ b/bazel/cargo/wasmtime/crates.bzl @@ -13,62 +13,52 @@ def wasmtime_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" maybe( http_archive, - name = "wasmtime__addr2line__0_17_0", - url = "https://crates.io/api/v1/crates/addr2line/0.17.0/download", + name = "wasmtime__addr2line__0_19_0", + url = "https://crates.io/api/v1/crates/addr2line/0.19.0/download", type = "tar.gz", - sha256 = "b9ecd88a8c8378ca913a680cd98f0f13ac67383d35993f86c90a70e3f137816b", - strip_prefix = "addr2line-0.17.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.addr2line-0.17.0.bazel"), + sha256 = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97", + strip_prefix = "addr2line-0.19.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.addr2line-0.19.0.bazel"), ) maybe( http_archive, - name = "wasmtime__ahash__0_7_6", - url = "https://crates.io/api/v1/crates/ahash/0.7.6/download", + name = "wasmtime__ahash__0_8_3", + url = "https://crates.io/api/v1/crates/ahash/0.8.3/download", type = "tar.gz", - sha256 = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47", - strip_prefix = "ahash-0.7.6", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ahash-0.7.6.bazel"), + sha256 = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f", + strip_prefix = "ahash-0.8.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ahash-0.8.3.bazel"), ) maybe( http_archive, - name = "wasmtime__aho_corasick__0_7_20", - url = "https://crates.io/api/v1/crates/aho-corasick/0.7.20/download", + name = "wasmtime__aho_corasick__1_0_1", + url = "https://crates.io/api/v1/crates/aho-corasick/1.0.1/download", type = "tar.gz", - sha256 = "cc936419f96fa211c1b9166887b38e5e40b19958e5b895be7c1f93adec7071ac", - strip_prefix = "aho-corasick-0.7.20", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-0.7.20.bazel"), + sha256 = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04", + strip_prefix = "aho-corasick-1.0.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-1.0.1.bazel"), ) maybe( http_archive, - name = "wasmtime__anyhow__1_0_70", - url = "https://crates.io/api/v1/crates/anyhow/1.0.70/download", + name = "wasmtime__anyhow__1_0_71", + url = "https://crates.io/api/v1/crates/anyhow/1.0.71/download", type = "tar.gz", - sha256 = "7de8ce5e0f9f8d88245311066a578d72b7af3e7088f32783804676302df237e4", - strip_prefix = "anyhow-1.0.70", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.70.bazel"), + sha256 = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8", + strip_prefix = "anyhow-1.0.71", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.71.bazel"), ) maybe( http_archive, - name = "wasmtime__arrayvec__0_7_2", - url = "https://crates.io/api/v1/crates/arrayvec/0.7.2/download", + name = "wasmtime__arbitrary__1_3_0", + url = "https://crates.io/api/v1/crates/arbitrary/1.3.0/download", type = "tar.gz", - sha256 = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6", - strip_prefix = "arrayvec-0.7.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.arrayvec-0.7.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__atty__0_2_14", - url = "https://crates.io/api/v1/crates/atty/0.2.14/download", - type = "tar.gz", - sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", - strip_prefix = "atty-0.2.14", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.atty-0.2.14.bazel"), + sha256 = "e2d098ff73c1ca148721f37baad5ea6a465a13f9573aba8641fbbbae8164a54e", + strip_prefix = "arbitrary-1.3.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.arbitrary-1.3.0.bazel"), ) maybe( @@ -103,18 +93,28 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__bumpalo__3_12_0", - url = "https://crates.io/api/v1/crates/bumpalo/3.12.0/download", + name = "wasmtime__bitflags__2_3_1", + url = "https://crates.io/api/v1/crates/bitflags/2.3.1/download", type = "tar.gz", - sha256 = "0d261e256854913907f67ed06efbc3338dfe6179796deefc1ff763fc1aee5535", - strip_prefix = "bumpalo-3.12.0", + sha256 = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84", + strip_prefix = "bitflags-2.3.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bitflags-2.3.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__bumpalo__3_13_0", + url = "https://crates.io/api/v1/crates/bumpalo/3.13.0/download", + type = "tar.gz", + sha256 = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1", + strip_prefix = "bumpalo-3.13.0", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:bumpalo.patch", ], patch_args = [ "-p1", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bumpalo-3.12.0.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bumpalo-3.13.0.bazel"), ) maybe( @@ -159,98 +159,108 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__cranelift_bforest__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.93.1/download", + name = "wasmtime__cranelift_bforest__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-bforest/0.96.3/download", + type = "tar.gz", + sha256 = "9c064a534a914eb6709d198525321a386dad50627aecfaf64053f369993a3e5a", + strip_prefix = "cranelift-bforest-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.96.3.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__cranelift_codegen__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-codegen/0.96.3/download", type = "tar.gz", - sha256 = "a7379abaacee0f14abf3204a7606118f0465785252169d186337bcb75030815a", - strip_prefix = "cranelift-bforest-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.93.1.bazel"), + sha256 = "619ed4d24acef0bd58b16a1be39077c0b36c65782e6c933892439af5e799110e", + strip_prefix = "cranelift-codegen-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.93.1/download", + name = "wasmtime__cranelift_codegen_meta__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.96.3/download", type = "tar.gz", - sha256 = "9489fa336927df749631f1008007ced2871068544f40a202ce6d93fbf2366a7b", - strip_prefix = "cranelift-codegen-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.93.1.bazel"), + sha256 = "c777ce22678ae1869f990b2f31e0cd7ca109049213bfc0baf3e2205a18b21ebb", + strip_prefix = "cranelift-codegen-meta-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_meta__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.93.1/download", + name = "wasmtime__cranelift_codegen_shared__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.96.3/download", type = "tar.gz", - sha256 = "05bbb67da91ec721ed57cef2f7c5ef7728e1cd9bde9ffd3ef8601022e73e3239", - strip_prefix = "cranelift-codegen-meta-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.93.1.bazel"), + sha256 = "eb65884d17a1fa55990dd851c43c140afb4c06c3312cf42cfa1222c3b23f9561", + strip_prefix = "cranelift-codegen-shared-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_codegen_shared__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.93.1/download", + name = "wasmtime__cranelift_control__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-control/0.96.3/download", type = "tar.gz", - sha256 = "418ecb2f36032f6665dc1a5e2060a143dbab41d83b784882e97710e890a7a16d", - strip_prefix = "cranelift-codegen-shared-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.93.1.bazel"), + sha256 = "9a0cea8abc90934d0a7ee189a29fd35fecd5c40f59ae7e6aab1805e8ab1a535e", + strip_prefix = "cranelift-control-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-control-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_entity__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.93.1/download", + name = "wasmtime__cranelift_entity__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-entity/0.96.3/download", type = "tar.gz", - sha256 = "7cf583f7b093f291005f9fb1323e2c37f6ee4c7909e39ce016b2e8360d461705", - strip_prefix = "cranelift-entity-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.93.1.bazel"), + sha256 = "c2e50bebc05f2401a1320169314b62f91ad811ef20163cac00151d78e0684d4c", + strip_prefix = "cranelift-entity-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_frontend__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.93.1/download", + name = "wasmtime__cranelift_frontend__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-frontend/0.96.3/download", type = "tar.gz", - sha256 = "0b66bf9e916f57fbbd0f7703ec6286f4624866bf45000111627c70d272c8dda1", - strip_prefix = "cranelift-frontend-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.93.1.bazel"), + sha256 = "7b82ccfe704d53f669791399d417928410785132d809ec46f5e2ce069e9d17c8", + strip_prefix = "cranelift-frontend-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_isle__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-isle/0.93.1/download", + name = "wasmtime__cranelift_isle__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-isle/0.96.3/download", type = "tar.gz", - sha256 = "649782a39ce99798dd6b4029e2bb318a2fbeaade1b4fa25330763c10c65bc358", - strip_prefix = "cranelift-isle-0.93.1", + sha256 = "a2515d8e7836f9198b160b2c80aaa1f586d7749d57d6065af86223fb65b7e2c3", + strip_prefix = "cranelift-isle-0.96.3", patches = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", ], patch_args = [ "-p4", ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.93.1.bazel"), + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_native__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-native/0.93.1/download", + name = "wasmtime__cranelift_native__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-native/0.96.3/download", type = "tar.gz", - sha256 = "937e021e089c51f9749d09e7ad1c4f255c2f8686cb8c3df63a34b3ec9921bc41", - strip_prefix = "cranelift-native-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.93.1.bazel"), + sha256 = "bcb47ffdcdac7e9fed6e4a618939773a4dc4a412fa7da9e701ae667431a10af3", + strip_prefix = "cranelift-native-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.96.3.bazel"), ) maybe( http_archive, - name = "wasmtime__cranelift_wasm__0_93_1", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.93.1/download", + name = "wasmtime__cranelift_wasm__0_96_3", + url = "https://crates.io/api/v1/crates/cranelift-wasm/0.96.3/download", type = "tar.gz", - sha256 = "d850cf6775477747c9dfda9ae23355dd70512ffebc70cf82b85a5b111ae668b5", - strip_prefix = "cranelift-wasm-0.93.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.93.1.bazel"), + sha256 = "852390f92c3eaa457e42be44d174ff5abbbcd10062d5963bda8ffb2505e73a71", + strip_prefix = "cranelift-wasm-0.96.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.96.3.bazel"), ) maybe( @@ -263,6 +273,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.3.2.bazel"), ) + maybe( + http_archive, + name = "wasmtime__debugid__0_8_0", + url = "https://crates.io/api/v1/crates/debugid/0.8.0/download", + type = "tar.gz", + sha256 = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d", + strip_prefix = "debugid-0.8.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.debugid-0.8.0.bazel"), + ) + maybe( http_archive, name = "wasmtime__either__1_8_1", @@ -275,22 +295,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__env_logger__0_9_3", - url = "https://crates.io/api/v1/crates/env_logger/0.9.3/download", + name = "wasmtime__env_logger__0_10_0", + url = "https://crates.io/api/v1/crates/env_logger/0.10.0/download", type = "tar.gz", - sha256 = "a12e6657c4c97ebab115a42dcee77225f7f482cdd841cf7088c657a42e9e00e7", - strip_prefix = "env_logger-0.9.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.9.3.bazel"), + sha256 = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0", + strip_prefix = "env_logger-0.10.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.10.0.bazel"), ) maybe( http_archive, - name = "wasmtime__errno__0_2_8", - url = "https://crates.io/api/v1/crates/errno/0.2.8/download", + name = "wasmtime__errno__0_3_1", + url = "https://crates.io/api/v1/crates/errno/0.3.1/download", type = "tar.gz", - sha256 = "f639046355ee4f37944e44f60642c6f3a7efa3cf6b78c78a0d989a8ce6c396a1", - strip_prefix = "errno-0.2.8", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.errno-0.2.8.bazel"), + sha256 = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a", + strip_prefix = "errno-0.3.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.errno-0.3.1.bazel"), ) maybe( @@ -335,22 +355,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__getrandom__0_2_8", - url = "https://crates.io/api/v1/crates/getrandom/0.2.8/download", + name = "wasmtime__fxprof_processed_profile__0_6_0", + url = "https://crates.io/api/v1/crates/fxprof-processed-profile/0.6.0/download", + type = "tar.gz", + sha256 = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd", + strip_prefix = "fxprof-processed-profile-0.6.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.fxprof-processed-profile-0.6.0.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__getrandom__0_2_9", + url = "https://crates.io/api/v1/crates/getrandom/0.2.9/download", type = "tar.gz", - sha256 = "c05aeb6a22b8f62540c194aac980f2115af067bfe15a0734d7277a768d396b31", - strip_prefix = "getrandom-0.2.8", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.8.bazel"), + sha256 = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4", + strip_prefix = "getrandom-0.2.9", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.9.bazel"), ) maybe( http_archive, - name = "wasmtime__gimli__0_26_2", - url = "https://crates.io/api/v1/crates/gimli/0.26.2/download", + name = "wasmtime__gimli__0_27_2", + url = "https://crates.io/api/v1/crates/gimli/0.27.2/download", type = "tar.gz", - sha256 = "22030e2c5a68ec659fde1e949a745124b48e6fa8b045b7ed5bd1fe4ccc5c4e5d", - strip_prefix = "gimli-0.26.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.gimli-0.26.2.bazel"), + sha256 = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4", + strip_prefix = "gimli-0.27.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.gimli-0.27.2.bazel"), ) maybe( @@ -365,12 +395,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__hermit_abi__0_1_19", - url = "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download", + name = "wasmtime__hashbrown__0_13_2", + url = "https://crates.io/api/v1/crates/hashbrown/0.13.2/download", type = "tar.gz", - sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", - strip_prefix = "hermit-abi-0.1.19", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hermit-abi-0.1.19.bazel"), + sha256 = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e", + strip_prefix = "hashbrown-0.13.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.13.2.bazel"), ) maybe( @@ -405,22 +435,32 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__indexmap__1_9_2", - url = "https://crates.io/api/v1/crates/indexmap/1.9.2/download", + name = "wasmtime__indexmap__1_9_3", + url = "https://crates.io/api/v1/crates/indexmap/1.9.3/download", type = "tar.gz", - sha256 = "1885e79c1fc4b10f0e172c475f458b7f7b93061064d98c3293e98c5ba0c8b399", - strip_prefix = "indexmap-1.9.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.2.bazel"), + sha256 = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99", + strip_prefix = "indexmap-1.9.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.3.bazel"), ) maybe( http_archive, - name = "wasmtime__io_lifetimes__1_0_8", - url = "https://crates.io/api/v1/crates/io-lifetimes/1.0.8/download", + name = "wasmtime__io_lifetimes__1_0_11", + url = "https://crates.io/api/v1/crates/io-lifetimes/1.0.11/download", type = "tar.gz", - sha256 = "0dd6da19f25979c7270e70fa95ab371ec3b701cd0eefc47667a09785b3c59155", - strip_prefix = "io-lifetimes-1.0.8", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-1.0.8.bazel"), + sha256 = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2", + strip_prefix = "io-lifetimes-1.0.11", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-1.0.11.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__is_terminal__0_4_7", + url = "https://crates.io/api/v1/crates/is-terminal/0.4.7/download", + type = "tar.gz", + sha256 = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f", + strip_prefix = "is-terminal-0.4.7", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.is-terminal-0.4.7.bazel"), ) maybe( @@ -435,32 +475,42 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__libc__0_2_140", - url = "https://crates.io/api/v1/crates/libc/0.2.140/download", + name = "wasmtime__itoa__1_0_6", + url = "https://crates.io/api/v1/crates/itoa/1.0.6/download", type = "tar.gz", - sha256 = "99227334921fae1a979cf0bfdfcc6b3e5ce376ef57e16fb6fb3ea2ed6095f80c", - strip_prefix = "libc-0.2.140", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.140.bazel"), + sha256 = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6", + strip_prefix = "itoa-1.0.6", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.itoa-1.0.6.bazel"), ) maybe( http_archive, - name = "wasmtime__linux_raw_sys__0_1_4", - url = "https://crates.io/api/v1/crates/linux-raw-sys/0.1.4/download", + name = "wasmtime__libc__0_2_144", + url = "https://crates.io/api/v1/crates/libc/0.2.144/download", type = "tar.gz", - sha256 = "f051f77a7c8e6957c0696eac88f26b0117e54f52d3fc682ab19397a8812846a4", - strip_prefix = "linux-raw-sys-0.1.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.1.4.bazel"), + sha256 = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1", + strip_prefix = "libc-0.2.144", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.144.bazel"), ) maybe( http_archive, - name = "wasmtime__log__0_4_17", - url = "https://crates.io/api/v1/crates/log/0.4.17/download", + name = "wasmtime__linux_raw_sys__0_3_8", + url = "https://crates.io/api/v1/crates/linux-raw-sys/0.3.8/download", type = "tar.gz", - sha256 = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e", - strip_prefix = "log-0.4.17", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.17.bazel"), + sha256 = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519", + strip_prefix = "linux-raw-sys-0.3.8", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.3.8.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__log__0_4_18", + url = "https://crates.io/api/v1/crates/log/0.4.18/download", + type = "tar.gz", + sha256 = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de", + strip_prefix = "log-0.4.18", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.18.bazel"), ) maybe( @@ -485,42 +535,42 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__memfd__0_6_2", - url = "https://crates.io/api/v1/crates/memfd/0.6.2/download", + name = "wasmtime__memfd__0_6_3", + url = "https://crates.io/api/v1/crates/memfd/0.6.3/download", type = "tar.gz", - sha256 = "b20a59d985586e4a5aef64564ac77299f8586d8be6cf9106a5a40207e8908efb", - strip_prefix = "memfd-0.6.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memfd-0.6.2.bazel"), + sha256 = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e", + strip_prefix = "memfd-0.6.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memfd-0.6.3.bazel"), ) maybe( http_archive, - name = "wasmtime__memoffset__0_6_5", - url = "https://crates.io/api/v1/crates/memoffset/0.6.5/download", + name = "wasmtime__memoffset__0_8_0", + url = "https://crates.io/api/v1/crates/memoffset/0.8.0/download", type = "tar.gz", - sha256 = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce", - strip_prefix = "memoffset-0.6.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.6.5.bazel"), + sha256 = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1", + strip_prefix = "memoffset-0.8.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.8.0.bazel"), ) maybe( http_archive, - name = "wasmtime__object__0_29_0", - url = "https://crates.io/api/v1/crates/object/0.29.0/download", + name = "wasmtime__object__0_30_3", + url = "https://crates.io/api/v1/crates/object/0.30.3/download", type = "tar.gz", - sha256 = "21158b2c33aa6d4561f1c0a6ea283ca92bc54802a93b263e910746d679a7eb53", - strip_prefix = "object-0.29.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.29.0.bazel"), + sha256 = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439", + strip_prefix = "object-0.30.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.30.3.bazel"), ) maybe( http_archive, - name = "wasmtime__once_cell__1_17_1", - url = "https://crates.io/api/v1/crates/once_cell/1.17.1/download", + name = "wasmtime__once_cell__1_17_2", + url = "https://crates.io/api/v1/crates/once_cell/1.17.2/download", type = "tar.gz", - sha256 = "b7e5500299e16ebb147ae15a00a942af264cf3688f47923b8fc2cd5858f23ad3", - strip_prefix = "once_cell-1.17.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.17.1.bazel"), + sha256 = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b", + strip_prefix = "once_cell-1.17.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.17.2.bazel"), ) maybe( @@ -555,12 +605,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__proc_macro2__1_0_52", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.52/download", + name = "wasmtime__proc_macro2__1_0_59", + url = "https://crates.io/api/v1/crates/proc-macro2/1.0.59/download", type = "tar.gz", - sha256 = "1d0e1ae9e836cc3beddd63db0df682593d7e2d3d891ae8c9083d2113e1744224", - strip_prefix = "proc-macro2-1.0.52", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.52.bazel"), + sha256 = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b", + strip_prefix = "proc-macro2-1.0.59", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.59.bazel"), ) maybe( @@ -575,12 +625,12 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__quote__1_0_26", - url = "https://crates.io/api/v1/crates/quote/1.0.26/download", + name = "wasmtime__quote__1_0_28", + url = "https://crates.io/api/v1/crates/quote/1.0.28/download", type = "tar.gz", - sha256 = "4424af4bf778aae2051a77b60283332f386554255d722233d09fbfc7e30da2fc", - strip_prefix = "quote-1.0.26", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.26.bazel"), + sha256 = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488", + strip_prefix = "quote-1.0.28", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.28.bazel"), ) maybe( @@ -615,82 +665,112 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__regalloc2__0_5_1", - url = "https://crates.io/api/v1/crates/regalloc2/0.5.1/download", + name = "wasmtime__regalloc2__0_8_1", + url = "https://crates.io/api/v1/crates/regalloc2/0.8.1/download", + type = "tar.gz", + sha256 = "d4a52e724646c6c0800fc456ec43b4165d2f91fba88ceaca06d9e0b400023478", + strip_prefix = "regalloc2-0.8.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.8.1.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__regex__1_8_3", + url = "https://crates.io/api/v1/crates/regex/1.8.3/download", + type = "tar.gz", + sha256 = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390", + strip_prefix = "regex-1.8.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.8.3.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__regex_syntax__0_7_2", + url = "https://crates.io/api/v1/crates/regex-syntax/0.7.2/download", + type = "tar.gz", + sha256 = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78", + strip_prefix = "regex-syntax-0.7.2", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.7.2.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__rustc_demangle__0_1_23", + url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.23/download", type = "tar.gz", - sha256 = "300d4fbfb40c1c66a78ba3ddd41c1110247cf52f97b87d0f2fc9209bd49b030c", - strip_prefix = "regalloc2-0.5.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.5.1.bazel"), + sha256 = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76", + strip_prefix = "rustc-demangle-0.1.23", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-demangle-0.1.23.bazel"), ) maybe( http_archive, - name = "wasmtime__regex__1_7_1", - url = "https://crates.io/api/v1/crates/regex/1.7.1/download", + name = "wasmtime__rustc_hash__1_1_0", + url = "https://crates.io/api/v1/crates/rustc-hash/1.1.0/download", type = "tar.gz", - sha256 = "48aaa5748ba571fb95cd2c85c09f629215d3a6ece942baa100950af03a34f733", - strip_prefix = "regex-1.7.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.7.1.bazel"), + sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", + strip_prefix = "rustc-hash-1.1.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-hash-1.1.0.bazel"), ) maybe( http_archive, - name = "wasmtime__regex_syntax__0_6_28", - url = "https://crates.io/api/v1/crates/regex-syntax/0.6.28/download", + name = "wasmtime__rustix__0_37_19", + url = "https://crates.io/api/v1/crates/rustix/0.37.19/download", type = "tar.gz", - sha256 = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848", - strip_prefix = "regex-syntax-0.6.28", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.6.28.bazel"), + sha256 = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d", + strip_prefix = "rustix-0.37.19", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.37.19.bazel"), ) maybe( http_archive, - name = "wasmtime__rustc_demangle__0_1_21", - url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.21/download", + name = "wasmtime__ryu__1_0_13", + url = "https://crates.io/api/v1/crates/ryu/1.0.13/download", type = "tar.gz", - sha256 = "7ef03e0a2b150c7a90d01faf6254c9c48a41e95fb2a8c2ac1c6f0d2b9aefc342", - strip_prefix = "rustc-demangle-0.1.21", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-demangle-0.1.21.bazel"), + sha256 = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041", + strip_prefix = "ryu-1.0.13", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ryu-1.0.13.bazel"), ) maybe( http_archive, - name = "wasmtime__rustix__0_36_10", - url = "https://crates.io/api/v1/crates/rustix/0.36.10/download", + name = "wasmtime__serde__1_0_163", + url = "https://crates.io/api/v1/crates/serde/1.0.163/download", type = "tar.gz", - sha256 = "2fe885c3a125aa45213b68cc1472a49880cb5923dc23f522ad2791b882228778", - strip_prefix = "rustix-0.36.10", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.36.10.bazel"), + sha256 = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2", + strip_prefix = "serde-1.0.163", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.163.bazel"), ) maybe( http_archive, - name = "wasmtime__serde__1_0_157", - url = "https://crates.io/api/v1/crates/serde/1.0.157/download", + name = "wasmtime__serde_derive__1_0_163", + url = "https://crates.io/api/v1/crates/serde_derive/1.0.163/download", type = "tar.gz", - sha256 = "707de5fcf5df2b5788fca98dd7eab490bc2fd9b7ef1404defc462833b83f25ca", - strip_prefix = "serde-1.0.157", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.157.bazel"), + sha256 = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e", + strip_prefix = "serde_derive-1.0.163", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.163.bazel"), ) maybe( http_archive, - name = "wasmtime__serde_derive__1_0_157", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.157/download", + name = "wasmtime__serde_json__1_0_96", + url = "https://crates.io/api/v1/crates/serde_json/1.0.96/download", type = "tar.gz", - sha256 = "78997f4555c22a7971214540c4a661291970619afd56de19f77e0de86296e1e5", - strip_prefix = "serde_derive-1.0.157", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.157.bazel"), + sha256 = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1", + strip_prefix = "serde_json-1.0.96", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_json-1.0.96.bazel"), ) maybe( http_archive, - name = "wasmtime__slice_group_by__0_3_0", - url = "https://crates.io/api/v1/crates/slice-group-by/0.3.0/download", + name = "wasmtime__slice_group_by__0_3_1", + url = "https://crates.io/api/v1/crates/slice-group-by/0.3.1/download", type = "tar.gz", - sha256 = "03b634d87b960ab1a38c4fe143b508576f075e7c978bfad18217645ebfdfa2ec", - strip_prefix = "slice-group-by-0.3.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.slice-group-by-0.3.0.bazel"), + sha256 = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7", + strip_prefix = "slice-group-by-0.3.1", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.slice-group-by-0.3.1.bazel"), ) maybe( @@ -715,22 +795,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__syn__2_0_2", - url = "https://crates.io/api/v1/crates/syn/2.0.2/download", + name = "wasmtime__syn__2_0_18", + url = "https://crates.io/api/v1/crates/syn/2.0.18/download", type = "tar.gz", - sha256 = "59d3276aee1fa0c33612917969b5172b5be2db051232a6e4826f1a1a9191b045", - strip_prefix = "syn-2.0.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-2.0.2.bazel"), + sha256 = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e", + strip_prefix = "syn-2.0.18", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-2.0.18.bazel"), ) maybe( http_archive, - name = "wasmtime__target_lexicon__0_12_6", - url = "https://crates.io/api/v1/crates/target-lexicon/0.12.6/download", + name = "wasmtime__target_lexicon__0_12_7", + url = "https://crates.io/api/v1/crates/target-lexicon/0.12.7/download", type = "tar.gz", - sha256 = "8ae9980cab1db3fceee2f6c6f643d5d8de2997c58ee8d25fb0cc8a9e9e7348e5", - strip_prefix = "target-lexicon-0.12.6", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.6.bazel"), + sha256 = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5", + strip_prefix = "target-lexicon-0.12.7", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.7.bazel"), ) maybe( @@ -785,22 +865,22 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__unicode_bidi__0_3_12", - url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.12/download", + name = "wasmtime__unicode_bidi__0_3_13", + url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.13/download", type = "tar.gz", - sha256 = "7d502c968c6a838ead8e69b2ee18ec708802f99db92a0d156705ec9ef801993b", - strip_prefix = "unicode-bidi-0.3.12", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-bidi-0.3.12.bazel"), + sha256 = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460", + strip_prefix = "unicode-bidi-0.3.13", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-bidi-0.3.13.bazel"), ) maybe( http_archive, - name = "wasmtime__unicode_ident__1_0_8", - url = "https://crates.io/api/v1/crates/unicode-ident/1.0.8/download", + name = "wasmtime__unicode_ident__1_0_9", + url = "https://crates.io/api/v1/crates/unicode-ident/1.0.9/download", type = "tar.gz", - sha256 = "e5464a87b239f13a63a501f2701565754bae92d243d4bb7eb12f6d57d2269bf4", - strip_prefix = "unicode-ident-1.0.8", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.8.bazel"), + sha256 = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0", + strip_prefix = "unicode-ident-1.0.9", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.9.bazel"), ) maybe( @@ -823,6 +903,16 @@ def wasmtime_fetch_remote_crates(): build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.url-2.3.1.bazel"), ) + maybe( + http_archive, + name = "wasmtime__uuid__1_3_3", + url = "https://crates.io/api/v1/crates/uuid/1.3.3/download", + type = "tar.gz", + sha256 = "345444e32442451b267fc254ae85a209c64be56d2890e601a0c37ff0c3c5ecd2", + strip_prefix = "uuid-1.3.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.uuid-1.3.3.bazel"), + ) + maybe( http_archive, name = "wasmtime__version_check__0_9_4", @@ -845,111 +935,121 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__wasmparser__0_100_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.100.0/download", + name = "wasmtime__wasmparser__0_103_0", + url = "https://crates.io/api/v1/crates/wasmparser/0.103.0/download", type = "tar.gz", - sha256 = "64b20236ab624147dfbb62cf12a19aaf66af0e41b8398838b66e997d07d269d4", - strip_prefix = "wasmparser-0.100.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.100.0.bazel"), + sha256 = "2c437373cac5ea84f1113d648d51f71751ffbe3d90c00ae67618cf20d0b5ee7b", + strip_prefix = "wasmparser-0.103.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.103.0.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime/6.0.1/download", + name = "wasmtime__wasmtime__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime/9.0.3/download", type = "tar.gz", - sha256 = "f6e89f9819523447330ffd70367ef4a18d8c832e24e8150fe054d1d912841632", - strip_prefix = "wasmtime-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-6.0.1.bazel"), + sha256 = "aa0f72886c3264eb639f50188d1eb98b975564130292fea8deb4facf91ca7258", + strip_prefix = "wasmtime-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-9.0.3.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_asm_macros__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/6.0.1/download", + name = "wasmtime__wasmtime_asm_macros__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/9.0.3/download", type = "tar.gz", - sha256 = "9bd3a5e46c198032da934469f3a6e48649d1f9142438e4fd4617b68a35644b8a", - strip_prefix = "wasmtime-asm-macros-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-6.0.1.bazel"), + sha256 = "a18391ed41ca957eecdbe64c51879b75419cbc52e2d8663fe82945b28b4f19da", + strip_prefix = "wasmtime-asm-macros-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-9.0.3.bazel"), ) maybe( new_git_repository, name = "wasmtime__wasmtime_c_api_macros__0_0_0", remote = "https://github.com/bytecodealliance/wasmtime", - commit = "b6bc33da2bcb466d377fb02f5aa764a667d08e0a", + commit = "271b605e8d3d44c5d0a39bb4e65c3efb3869ff74", build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.0.0.bazel"), init_submodules = True, ) maybe( http_archive, - name = "wasmtime__wasmtime_cranelift__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/6.0.1/download", + name = "wasmtime__wasmtime_cranelift__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift/9.0.3/download", + type = "tar.gz", + sha256 = "a2495036d05eb1e79ecf22e092eeacd279dcf24b4fcab77fb4cf8ef9bd42c3ea", + strip_prefix = "wasmtime-cranelift-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-9.0.3.bazel"), + ) + + maybe( + http_archive, + name = "wasmtime__wasmtime_cranelift_shared__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-cranelift-shared/9.0.3/download", type = "tar.gz", - sha256 = "59b2c92a08c0db6efffd88fdc97d7aa9c7c63b03edb0971dbca745469f820e8c", - strip_prefix = "wasmtime-cranelift-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-6.0.1.bazel"), + sha256 = "ef677f7b0d3f3b73275675486d791f1e85e7c24afe8dd367c6b9950028906330", + strip_prefix = "wasmtime-cranelift-shared-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-shared-9.0.3.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_environ__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-environ/6.0.1/download", + name = "wasmtime__wasmtime_environ__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-environ/9.0.3/download", type = "tar.gz", - sha256 = "9a6db9fc52985ba06ca601f2ff0ff1f526c5d724c7ac267b47326304b0c97883", - strip_prefix = "wasmtime-environ-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-6.0.1.bazel"), + sha256 = "2d03356374ffafa881c5f972529d2bb11ce48fe2736285e2b0ad72c6d554257b", + strip_prefix = "wasmtime-environ-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-9.0.3.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit/6.0.1/download", + name = "wasmtime__wasmtime_jit__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-jit/9.0.3/download", type = "tar.gz", - sha256 = "b77e3a52cd84d0f7f18554afa8060cfe564ccac61e3b0802d3fd4084772fa5f6", - strip_prefix = "wasmtime-jit-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-6.0.1.bazel"), + sha256 = "e5374f0d2ee0069391dd9348f148802846b2b3e0af650385f9c56b3012d3c5d1", + strip_prefix = "wasmtime-jit-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-9.0.3.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_debug__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/6.0.1/download", + name = "wasmtime__wasmtime_jit_debug__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/9.0.3/download", type = "tar.gz", - sha256 = "d0245e8a9347017c7185a72e215218a802ff561545c242953c11ba00fccc930f", - strip_prefix = "wasmtime-jit-debug-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-6.0.1.bazel"), + sha256 = "102653b177225bfdd2da41cc385965d4bf6bc10cf14ec7b306bc9b015fb01c22", + strip_prefix = "wasmtime-jit-debug-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-9.0.3.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_jit_icache_coherence__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-jit-icache-coherence/6.0.1/download", + name = "wasmtime__wasmtime_jit_icache_coherence__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-jit-icache-coherence/9.0.3/download", type = "tar.gz", - sha256 = "67d412e9340ab1c83867051d8d1d7c90aa8c9afc91da086088068e2734e25064", - strip_prefix = "wasmtime-jit-icache-coherence-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel"), + sha256 = "374ff63b3eb41db57c56682a9ef7737d2c9efa801f5dbf9da93941c9dd436a06", + strip_prefix = "wasmtime-jit-icache-coherence-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_runtime__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/6.0.1/download", + name = "wasmtime__wasmtime_runtime__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-runtime/9.0.3/download", type = "tar.gz", - sha256 = "d594e791b5fdd4dbaf8cf7ae62f2e4ff85018ce90f483ca6f42947688e48827d", - strip_prefix = "wasmtime-runtime-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-6.0.1.bazel"), + sha256 = "9b1b832f19099066ebd26e683121d331f12cf98f158eac0f889972854413b46f", + strip_prefix = "wasmtime-runtime-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-9.0.3.bazel"), ) maybe( http_archive, - name = "wasmtime__wasmtime_types__6_0_1", - url = "https://crates.io/api/v1/crates/wasmtime-types/6.0.1/download", + name = "wasmtime__wasmtime_types__9_0_3", + url = "https://crates.io/api/v1/crates/wasmtime-types/9.0.3/download", type = "tar.gz", - sha256 = "a6688d6f96d4dbc1f89fab626c56c1778936d122b5f4ae7a57c2eb42b8d982e2", - strip_prefix = "wasmtime-types-6.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-6.0.1.bazel"), + sha256 = "9c574221440e05bbb04efa09786d049401be2eb10081ecf43eb72fbd637bd12f", + strip_prefix = "wasmtime-types-9.0.3", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-9.0.3.bazel"), ) maybe( @@ -994,100 +1094,90 @@ def wasmtime_fetch_remote_crates(): maybe( http_archive, - name = "wasmtime__windows_sys__0_42_0", - url = "https://crates.io/api/v1/crates/windows-sys/0.42.0/download", - type = "tar.gz", - sha256 = "5a3e1820f08b8513f676f7ab6c1f99ff312fb97b553d30ff4dd86f9f15728aa7", - strip_prefix = "windows-sys-0.42.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.42.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_sys__0_45_0", - url = "https://crates.io/api/v1/crates/windows-sys/0.45.0/download", + name = "wasmtime__windows_sys__0_48_0", + url = "https://crates.io/api/v1/crates/windows-sys/0.48.0/download", type = "tar.gz", - sha256 = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0", - strip_prefix = "windows-sys-0.45.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.45.0.bazel"), + sha256 = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9", + strip_prefix = "windows-sys-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_targets__0_42_2", - url = "https://crates.io/api/v1/crates/windows-targets/0.42.2/download", + name = "wasmtime__windows_targets__0_48_0", + url = "https://crates.io/api/v1/crates/windows-targets/0.48.0/download", type = "tar.gz", - sha256 = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071", - strip_prefix = "windows-targets-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.42.2.bazel"), + sha256 = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5", + strip_prefix = "windows-targets-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_aarch64_gnullvm__0_42_2", - url = "https://crates.io/api/v1/crates/windows_aarch64_gnullvm/0.42.2/download", + name = "wasmtime__windows_aarch64_gnullvm__0_48_0", + url = "https://crates.io/api/v1/crates/windows_aarch64_gnullvm/0.48.0/download", type = "tar.gz", - sha256 = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8", - strip_prefix = "windows_aarch64_gnullvm-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.42.2.bazel"), + sha256 = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc", + strip_prefix = "windows_aarch64_gnullvm-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_aarch64_msvc__0_42_2", - url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.42.2/download", + name = "wasmtime__windows_aarch64_msvc__0_48_0", + url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.48.0/download", type = "tar.gz", - sha256 = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43", - strip_prefix = "windows_aarch64_msvc-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.42.2.bazel"), + sha256 = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3", + strip_prefix = "windows_aarch64_msvc-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_i686_gnu__0_42_2", - url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.42.2/download", + name = "wasmtime__windows_i686_gnu__0_48_0", + url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.48.0/download", type = "tar.gz", - sha256 = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f", - strip_prefix = "windows_i686_gnu-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.42.2.bazel"), + sha256 = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241", + strip_prefix = "windows_i686_gnu-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_i686_msvc__0_42_2", - url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.42.2/download", + name = "wasmtime__windows_i686_msvc__0_48_0", + url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.48.0/download", type = "tar.gz", - sha256 = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060", - strip_prefix = "windows_i686_msvc-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.42.2.bazel"), + sha256 = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00", + strip_prefix = "windows_i686_msvc-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_gnu__0_42_2", - url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.42.2/download", + name = "wasmtime__windows_x86_64_gnu__0_48_0", + url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.48.0/download", type = "tar.gz", - sha256 = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36", - strip_prefix = "windows_x86_64_gnu-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.42.2.bazel"), + sha256 = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1", + strip_prefix = "windows_x86_64_gnu-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_gnullvm__0_42_2", - url = "https://crates.io/api/v1/crates/windows_x86_64_gnullvm/0.42.2/download", + name = "wasmtime__windows_x86_64_gnullvm__0_48_0", + url = "https://crates.io/api/v1/crates/windows_x86_64_gnullvm/0.48.0/download", type = "tar.gz", - sha256 = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3", - strip_prefix = "windows_x86_64_gnullvm-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.42.2.bazel"), + sha256 = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953", + strip_prefix = "windows_x86_64_gnullvm-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.48.0.bazel"), ) maybe( http_archive, - name = "wasmtime__windows_x86_64_msvc__0_42_2", - url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.42.2/download", + name = "wasmtime__windows_x86_64_msvc__0_48_0", + url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.48.0/download", type = "tar.gz", - sha256 = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0", - strip_prefix = "windows_x86_64_msvc-0.42.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.42.2.bazel"), + sha256 = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a", + strip_prefix = "windows_x86_64_msvc-0.48.0", + build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.48.0.bazel"), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel index 7c243418c..73f138c50 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.17.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=addr2line", "manual", ], - version = "0.17.0", + version = "0.19.0", # buildifier: leave-alone deps = [ - "@wasmtime__gimli__0_26_2//:gimli", + "@wasmtime__gimli__0_27_2//:gimli", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.3.bazel similarity index 57% rename from bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel rename to bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.3.bazel index b379a904b..7e977ad0f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.7.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.3.bazel @@ -54,36 +54,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.7.6", + version = "0.8.3", visibility = ["//visibility:private"], deps = [ "@wasmtime__version_check__0_9_4//:version_check", ] + selects.with_or({ - # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(not(all(target_arch = "arm", target_os = "none"))) ( "@rules_rust//rust/platform:i686-apple-darwin", @@ -134,37 +109,12 @@ rust_library( "crate-name=ahash", "manual", ], - version = "0.7.6", + version = "0.8.3", # buildifier: leave-alone deps = [ ":ahash_build_script", + "@wasmtime__cfg_if__1_0_0//:cfg_if", ] + selects.with_or({ - # cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__getrandom__0_2_8//:getrandom", - ], - "//conditions:default": [], - }) + selects.with_or({ # cfg(not(all(target_arch = "arm", target_os = "none"))) ( "@rules_rust//rust/platform:i686-apple-darwin", @@ -188,7 +138,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__once_cell__1_17_1//:once_cell", + "@wasmtime__once_cell__1_17_2//:once_cell", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.20.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.0.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.20.bazel rename to bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.0.1.bazel index ff04b2e8d..4a79e3ab4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-0.7.20.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.0.1.bazel @@ -36,11 +36,12 @@ rust_library( srcs = glob(["**/*.rs"]), crate_features = [ "default", + "perf-literal", "std", ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -49,7 +50,7 @@ rust_library( "crate-name=aho_corasick", "manual", ], - version = "0.7.20", + version = "1.0.1", # buildifier: leave-alone deps = [ "@wasmtime__memchr__2_5_0//:memchr", diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.70.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.71.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.70.bazel rename to bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.71.bazel index 40857df25..daab391ba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.70.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.71.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.70", + version = "1.0.71", visibility = ["//visibility:private"], deps = [ ], @@ -80,7 +80,7 @@ rust_library( "crate-name=anyhow", "manual", ], - version = "1.0.70", + version = "1.0.71", # buildifier: leave-alone deps = [ ":anyhow_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel new file mode 100644 index 000000000..11b617235 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "derive_enum" with type "example" omitted + +rust_library( + name = "arbitrary", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=arbitrary", + "manual", + ], + version = "1.3.0", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "bound" with type "test" omitted + +# Unsupported target "derive" with type "test" omitted + +# Unsupported target "path" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index dd1fe52c6..11634c902 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -50,7 +50,7 @@ rust_library( version = "1.3.3", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__serde__1_0_163//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel new file mode 100644 index 000000000..d56fc5b69 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel @@ -0,0 +1,66 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "parse" with type "bench" omitted + +# Unsupported target "custom_bits_type" with type "example" omitted + +# Unsupported target "custom_derive" with type "example" omitted + +# Unsupported target "fmt" with type "example" omitted + +# Unsupported target "macro_free" with type "example" omitted + +# Unsupported target "serde" with type "example" omitted + +rust_library( + name = "bitflags", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=bitflags", + "manual", + ], + version = "2.3.1", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.12.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.13.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.12.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.13.0.bazel index b9c5b13c1..addf3ceeb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.12.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.13.0.bazel @@ -50,7 +50,7 @@ rust_library( "crate-name=bumpalo", "manual", ], - version = "3.12.0", + version = "3.13.0", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.3.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.3.bazel index 4add29b59..65c2d43b7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.3.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-bforest", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", + "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.3.bazel similarity index 73% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.3.bazel index 2dabba129..f63699ba9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.3.bazel @@ -59,11 +59,11 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.93.1", + version = "0.96.3", visibility = ["//visibility:private"], deps = [ - "@wasmtime__cranelift_codegen_meta__0_93_1//:cranelift_codegen_meta", - "@wasmtime__cranelift_isle__0_93_1//:cranelift_isle", + "@wasmtime__cranelift_codegen_meta__0_96_3//:cranelift_codegen_meta", + "@wasmtime__cranelift_isle__0_96_3//:cranelift_isle", ], ) @@ -90,20 +90,20 @@ rust_library( "crate-name=cranelift-codegen", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ ":cranelift_codegen_build_script", - "@wasmtime__arrayvec__0_7_2//:arrayvec", - "@wasmtime__bumpalo__3_12_0//:bumpalo", - "@wasmtime__cranelift_bforest__0_93_1//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_93_1//:cranelift_codegen_shared", - "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", - "@wasmtime__gimli__0_26_2//:gimli", - "@wasmtime__hashbrown__0_12_3//:hashbrown", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__regalloc2__0_5_1//:regalloc2", + "@wasmtime__bumpalo__3_13_0//:bumpalo", + "@wasmtime__cranelift_bforest__0_96_3//:cranelift_bforest", + "@wasmtime__cranelift_codegen_shared__0_96_3//:cranelift_codegen_shared", + "@wasmtime__cranelift_control__0_96_3//:cranelift_control", + "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", + "@wasmtime__gimli__0_27_2//:gimli", + "@wasmtime__hashbrown__0_13_2//:hashbrown", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__regalloc2__0_8_1//:regalloc2", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.3.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.3.bazel index 3ff1556f6..2a2d76269 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.3.bazel @@ -47,9 +47,9 @@ rust_library( "crate-name=cranelift-codegen-meta", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen_shared__0_93_1//:cranelift_codegen_shared", + "@wasmtime__cranelift_codegen_shared__0_96_3//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.3.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.3.bazel index eab3b03cb..b8e4fc347 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.3.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=cranelift-codegen-shared", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel new file mode 100644 index 000000000..0122eef74 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel @@ -0,0 +1,55 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "cranelift_control", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=cranelift-control", + "manual", + ], + version = "0.96.3", + # buildifier: leave-alone + deps = [ + "@wasmtime__arbitrary__1_3_0//:arbitrary", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.3.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.3.bazel index fb5ef6fe1..e18207ff2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.3.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=cranelift-entity", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__serde__1_0_163//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.3.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.3.bazel index 88d24eba2..cf03acad5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.3.bazel @@ -49,12 +49,12 @@ rust_library( "crate-name=cranelift-frontend", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", - "@wasmtime__log__0_4_17//:log", + "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", + "@wasmtime__log__0_4_18//:log", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.3.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.3.bazel index d81b52602..fade87679 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.3.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.93.1", + version = "0.96.3", visibility = ["//visibility:private"], deps = [ ], @@ -78,7 +78,7 @@ rust_library( "crate-name=cranelift-isle", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ ":cranelift_isle_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.3.bazel similarity index 87% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.3.bazel index b34a8ce62..d74c69aef 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.3.bazel @@ -51,17 +51,17 @@ rust_library( "crate-name=cranelift-native", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", - "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", ] + selects.with_or({ # cfg(any(target_arch = "s390x", target_arch = "riscv64")) ( "@rules_rust//rust/platform:s390x-unknown-linux-gnu", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.93.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.3.bazel similarity index 77% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.93.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.3.bazel index cfed43381..267b36992 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.93.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.3.bazel @@ -49,17 +49,17 @@ rust_library( "crate-name=cranelift-wasm", "manual", ], - version = "0.93.1", + version = "0.96.3", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_93_1//:cranelift_frontend", + "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", + "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_96_3//:cranelift_frontend", "@wasmtime__itertools__0_10_5//:itertools", - "@wasmtime__log__0_4_17//:log", + "@wasmtime__log__0_4_18//:log", "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__wasmparser__0_100_0//:wasmparser", - "@wasmtime__wasmtime_types__6_0_1//:wasmtime_types", + "@wasmtime__wasmparser__0_103_0//:wasmparser", + "@wasmtime__wasmtime_types__9_0_3//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel new file mode 100644 index 000000000..8b82dd4d8 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel @@ -0,0 +1,61 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "debugid", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=debugid", + "manual", + ], + version = "0.8.0", + # buildifier: leave-alone + deps = [ + "@wasmtime__uuid__1_3_3//:uuid", + ], +) + +# Unsupported target "test_codeid" with type "test" omitted + +# Unsupported target "test_debugid" with type "test" omitted + +# Unsupported target "test_serde" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.0.bazel similarity index 65% rename from bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.0.bazel index 215e96b3f..4062aca95 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.9.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.0.bazel @@ -31,19 +31,35 @@ licenses([ # Generated Targets +# Unsupported target "custom_default_format" with type "example" omitted + +# Unsupported target "custom_format" with type "example" omitted + +# Unsupported target "custom_logger" with type "example" omitted + +# Unsupported target "default" with type "example" omitted + +# Unsupported target "direct_logger" with type "example" omitted + +# Unsupported target "filters_from_code" with type "example" omitted + +# Unsupported target "in_tests" with type "example" omitted + +# Unsupported target "syslog_friendly_format" with type "example" omitted + rust_library( name = "env_logger", srcs = glob(["**/*.rs"]), crate_features = [ - "atty", + "auto-color", + "color", "default", "humantime", "regex", - "termcolor", ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -52,13 +68,13 @@ rust_library( "crate-name=env_logger", "manual", ], - version = "0.9.3", + version = "0.10.0", # buildifier: leave-alone deps = [ - "@wasmtime__atty__0_2_14//:atty", "@wasmtime__humantime__2_1_0//:humantime", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__regex__1_7_1//:regex", + "@wasmtime__is_terminal__0_4_7//:is_terminal", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__regex__1_8_3//:regex", "@wasmtime__termcolor__1_2_0//:termcolor", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel rename to bazel/cargo/wasmtime/remote/BUILD.errno-0.3.1.bazel index 59e11e6bc..9ee18c7bc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.1.bazel @@ -40,7 +40,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], @@ -49,12 +49,12 @@ rust_library( "crate-name=errno", "manual", ], - version = "0.2.8", + version = "0.3.1", # buildifier: leave-alone deps = [ ] + selects.with_or({ + # cfg(unix) ( - "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", @@ -72,7 +72,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -81,7 +81,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__winapi__0_3_9//:winapi", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel index c478a7433..0dd94b45b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel @@ -81,6 +81,6 @@ rust_library( # buildifier: leave-alone deps = [ ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.arrayvec-0.7.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel similarity index 68% rename from bazel/cargo/wasmtime/remote/BUILD.arrayvec-0.7.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel index 5f9410f59..06a2b8534 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.arrayvec-0.7.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel @@ -31,34 +31,31 @@ licenses([ # Generated Targets -# Unsupported target "arraystring" with type "bench" omitted - -# Unsupported target "extend" with type "bench" omitted - rust_library( - name = "arrayvec", + name = "fxprof_processed_profile", srcs = glob(["**/*.rs"]), crate_features = [ - "default", - "std", ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-raze", - "crate-name=arrayvec", + "crate-name=fxprof-processed-profile", "manual", ], - version = "0.7.2", + version = "0.6.0", # buildifier: leave-alone deps = [ + "@wasmtime__bitflags__2_3_1//:bitflags", + "@wasmtime__debugid__0_8_0//:debugid", + "@wasmtime__fxhash__0_2_1//:fxhash", + "@wasmtime__serde__1_0_163//:serde", + "@wasmtime__serde_json__1_0_96//:serde_json", ], ) -# Unsupported target "serde" with type "test" omitted - -# Unsupported target "tests" with type "test" omitted +# Unsupported target "integration_tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.9.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel rename to bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.9.bazel index db7fdded6..cb3dffab4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.9.bazel @@ -31,7 +31,7 @@ licenses([ # Generated Targets -# Unsupported target "mod" with type "bench" omitted +# Unsupported target "buffer" with type "bench" omitted rust_library( name = "getrandom", @@ -52,7 +52,7 @@ rust_library( "crate-name=getrandom", "manual", ], - version = "0.2.8", + version = "0.2.9", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", @@ -84,7 +84,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.2.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.2.bazel index 31b8cc147..e6878f68d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.26.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.2.bazel @@ -64,11 +64,11 @@ rust_library( "crate-name=gimli", "manual", ], - version = "0.26.2", + version = "0.27.2", # buildifier: leave-alone deps = [ "@wasmtime__fallible_iterator__0_2_0//:fallible_iterator", - "@wasmtime__indexmap__1_9_2//:indexmap", + "@wasmtime__indexmap__1_9_3//:indexmap", "@wasmtime__stable_deref_trait__1_2_0//:stable_deref_trait", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index 39778cd98..3b0fce03b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -39,9 +39,6 @@ rust_library( name = "hashbrown", srcs = glob(["**/*.rs"]), crate_features = [ - "ahash", - "default", - "inline-more", "raw", ], crate_root = "src/lib.rs", @@ -58,7 +55,6 @@ rust_library( version = "0.12.3", # buildifier: leave-alone deps = [ - "@wasmtime__ahash__0_7_6//:ahash", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel new file mode 100644 index 000000000..2fe74c582 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel @@ -0,0 +1,75 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "insert_unique_unchecked" with type "bench" omitted + +rust_library( + name = "hashbrown", + srcs = glob(["**/*.rs"]), + crate_features = [ + "ahash", + "default", + "inline-more", + "raw", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=hashbrown", + "manual", + ], + version = "0.13.2", + # buildifier: leave-alone + deps = [ + "@wasmtime__ahash__0_8_3//:ahash", + ], +) + +# Unsupported target "equivalent_trait" with type "test" omitted + +# Unsupported target "hasher" with type "test" omitted + +# Unsupported target "raw" with type "test" omitted + +# Unsupported target "rayon" with type "test" omitted + +# Unsupported target "serde" with type "test" omitted + +# Unsupported target "set" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel index e090f874d..94ae97767 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel @@ -52,7 +52,7 @@ rust_library( version = "0.3.0", # buildifier: leave-alone deps = [ - "@wasmtime__unicode_bidi__0_3_12//:unicode_bidi", + "@wasmtime__unicode_bidi__0_3_13//:unicode_bidi", "@wasmtime__unicode_normalization__0_1_22//:unicode_normalization", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel index debb87520..525133f4c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.9.2", + version = "1.9.3", visibility = ["//visibility:private"], deps = [ "@wasmtime__autocfg__1_1_0//:autocfg", @@ -87,12 +87,12 @@ rust_library( "crate-name=indexmap", "manual", ], - version = "1.9.2", + version = "1.9.3", # buildifier: leave-alone deps = [ ":indexmap_build_script", "@wasmtime__hashbrown__0_12_3//:hashbrown", - "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__serde__1_0_163//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.8.bazel rename to bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel index 730a93a57..43802d438 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel @@ -44,6 +44,7 @@ cargo_build_script( }, crate_features = [ "close", + "default", "hermit-abi", "libc", "windows-sys", @@ -58,7 +59,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.8", + version = "1.0.11", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -91,7 +92,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_45_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), @@ -104,6 +105,7 @@ rust_library( }, crate_features = [ "close", + "default", "hermit-abi", "libc", "windows-sys", @@ -119,7 +121,7 @@ rust_library( "crate-name=io-lifetimes", "manual", ], - version = "1.0.8", + version = "1.0.11", # buildifier: leave-alone deps = [ ":io_lifetimes_build_script", @@ -145,7 +147,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -154,7 +156,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_45_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.7.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel rename to bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.7.bazel index 4328e3654..4d2c9d0a7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.7.bazel @@ -31,10 +31,8 @@ licenses([ # Generated Targets -# Unsupported target "atty" with type "example" omitted - rust_library( - name = "atty", + name = "is_terminal", srcs = glob(["**/*.rs"]), aliases = { }, @@ -42,20 +40,21 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2015", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-raze", - "crate-name=atty", + "crate-name=is-terminal", "manual", ], - version = "0.2.14", + version = "0.4.7", # buildifier: leave-alone deps = [ + "@wasmtime__io_lifetimes__1_0_11//:io_lifetimes", ] + selects.with_or({ - # cfg(unix) + # cfg(not(any(windows, target_os = "hermit", target_os = "unknown"))) ( "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-unknown-linux-gnu", @@ -70,11 +69,12 @@ rust_library( "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", + "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__rustix__0_37_19//:rustix", ], "//conditions:default": [], }) + selects.with_or({ @@ -83,7 +83,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__winapi__0_3_9//:winapi", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.6.bazel similarity index 84% rename from bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel rename to bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.6.bazel index fb457e180..74dfc920f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.6.bazel @@ -31,11 +31,12 @@ licenses([ # Generated Targets +# Unsupported target "bench" with type "bench" omitted + rust_library( - name = "hermit_abi", + name = "itoa", srcs = glob(["**/*.rs"]), crate_features = [ - "default", ], crate_root = "src/lib.rs", data = [], @@ -45,12 +46,13 @@ rust_library( ], tags = [ "cargo-raze", - "crate-name=hermit-abi", + "crate-name=itoa", "manual", ], - version = "0.1.19", + version = "1.0.6", # buildifier: leave-alone deps = [ - "@wasmtime__libc__0_2_140//:libc", ], ) + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.140.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.144.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.libc-0.2.140.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libc-0.2.144.bazel index 99968d55e..b4e82c6cb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.140.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.144.bazel @@ -57,7 +57,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.2.140", + version = "0.2.144", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=libc", "manual", ], - version = "0.2.140", + version = "0.2.144", # buildifier: leave-alone deps = [ ":libc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.1.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.1.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel index bc2f28994..27b66b6b9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.1.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel @@ -51,7 +51,7 @@ rust_library( "crate-name=linux-raw-sys", "manual", ], - version = "0.1.4", + version = "0.3.8", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.18.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.log-0.4.17.bazel rename to bazel/cargo/wasmtime/remote/BUILD.log-0.4.18.bazel index ae8c3f762..35e51e188 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.17.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.18.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.4.17", + version = "0.4.18", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,10 @@ rust_library( "crate-name=log", "manual", ], - version = "0.4.17", + version = "0.4.18", # buildifier: leave-alone deps = [ ":log_build_script", - "@wasmtime__cfg_if__1_0_0//:cfg_if", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index 9a3abd783..9c7ee4760 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -64,7 +64,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:x86_64-apple-ios", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.3.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.3.bazel index b01f05c3a..c7e332e52 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.3.bazel @@ -49,10 +49,10 @@ rust_library( "crate-name=memfd", "manual", ], - version = "0.6.2", + version = "0.6.3", # buildifier: leave-alone deps = [ - "@wasmtime__rustix__0_36_10//:rustix", + "@wasmtime__rustix__0_37_19//:rustix", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel index 0c4b891cc..03ea77b66 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.6.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.6.5", + version = "0.8.0", visibility = ["//visibility:private"], deps = [ "@wasmtime__autocfg__1_1_0//:autocfg", @@ -79,7 +79,7 @@ rust_library( "crate-name=memoffset", "manual", ], - version = "0.6.5", + version = "0.8.0", # buildifier: leave-alone deps = [ ":memoffset_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.3.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.object-0.30.3.bazel index 6dd14d8f5..9f5417374 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.29.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.3.bazel @@ -59,12 +59,12 @@ rust_library( "crate-name=object", "manual", ], - version = "0.29.0", + version = "0.30.3", # buildifier: leave-alone deps = [ "@wasmtime__crc32fast__1_3_2//:crc32fast", - "@wasmtime__hashbrown__0_12_3//:hashbrown", - "@wasmtime__indexmap__1_9_2//:indexmap", + "@wasmtime__hashbrown__0_13_2//:hashbrown", + "@wasmtime__indexmap__1_9_3//:indexmap", "@wasmtime__memchr__2_5_0//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.2.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.2.bazel index d1c56af71..fdce70f3d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.2.bazel @@ -53,6 +53,7 @@ rust_library( "default", "race", "std", + "unstable", ], crate_root = "src/lib.rs", data = [], @@ -65,7 +66,7 @@ rust_library( "crate-name=once_cell", "manual", ], - version = "1.17.1", + version = "1.17.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.52.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.59.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.52.bazel rename to bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.59.bazel index f4073eac9..4a7669582 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.52.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.59.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.52", + version = "1.0.59", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=proc-macro2", "manual", ], - version = "1.0.52", + version = "1.0.59", # buildifier: leave-alone deps = [ ":proc_macro2_build_script", - "@wasmtime__unicode_ident__1_0_8//:unicode_ident", + "@wasmtime__unicode_ident__1_0_9//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.26.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.28.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.quote-1.0.26.bazel rename to bazel/cargo/wasmtime/remote/BUILD.quote-1.0.28.bazel index c5e62bf4a..f7ec518fc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.26.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.28.bazel @@ -56,7 +56,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.26", + version = "1.0.28", visibility = ["//visibility:private"], deps = [ ], @@ -80,11 +80,11 @@ rust_library( "crate-name=quote", "manual", ], - version = "1.0.26", + version = "1.0.28", # buildifier: leave-alone deps = [ ":quote_build_script", - "@wasmtime__proc_macro2__1_0_52//:proc_macro2", + "@wasmtime__proc_macro2__1_0_59//:proc_macro2", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 73e341553..963fc2f11 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -82,7 +82,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel index a1545219b..cbe1ac88f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel @@ -53,6 +53,6 @@ rust_library( version = "0.6.4", # buildifier: leave-alone deps = [ - "@wasmtime__getrandom__0_2_8//:getrandom", + "@wasmtime__getrandom__0_2_9//:getrandom", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.5.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel similarity index 82% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.5.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel index fd1efce15..47c5f5a0f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.5.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel @@ -37,6 +37,7 @@ rust_library( crate_features = [ "checker", "default", + "std", ], crate_root = "src/lib.rs", data = [], @@ -49,12 +50,13 @@ rust_library( "crate-name=regalloc2", "manual", ], - version = "0.5.1", + version = "0.8.1", # buildifier: leave-alone deps = [ - "@wasmtime__fxhash__0_2_1//:fxhash", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__slice_group_by__0_3_0//:slice_group_by", + "@wasmtime__hashbrown__0_13_2//:hashbrown", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__rustc_hash__1_1_0//:rustc_hash", + "@wasmtime__slice_group_by__0_3_1//:slice_group_by", "@wasmtime__smallvec__1_10_0//:smallvec", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.8.3.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.regex-1.7.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-1.8.3.bazel index 0b55e3434..61f812023 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.7.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.8.3.bazel @@ -58,7 +58,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -67,12 +67,12 @@ rust_library( "crate-name=regex", "manual", ], - version = "1.7.1", + version = "1.8.3", # buildifier: leave-alone deps = [ - "@wasmtime__aho_corasick__0_7_20//:aho_corasick", + "@wasmtime__aho_corasick__1_0_1//:aho_corasick", "@wasmtime__memchr__2_5_0//:memchr", - "@wasmtime__regex_syntax__0_6_28//:regex_syntax", + "@wasmtime__regex_syntax__0_7_2//:regex_syntax", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.28.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.7.2.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.28.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.7.2.bazel index aab040ca3..aa703a39d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.6.28.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.7.2.bazel @@ -40,7 +40,7 @@ rust_library( ], crate_root = "src/lib.rs", data = [], - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], @@ -49,7 +49,7 @@ rust_library( "crate-name=regex-syntax", "manual", ], - version = "0.6.28", + version = "0.7.2", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.23.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.21.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.23.bazel index 2b062d029..961a591ce 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.23.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=rustc-demangle", "manual", ], - version = "0.1.21", + version = "0.1.23", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel new file mode 100644 index 000000000..fe125ad9c --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel @@ -0,0 +1,54 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +rust_library( + name = "rustc_hash", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=rustc-hash", + "manual", + ], + version = "1.1.0", + # buildifier: leave-alone + deps = [ + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.36.10.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.19.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.rustix-0.36.10.bazel rename to bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.19.bazel index 9c0fededf..358429af6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.36.10.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.19.bazel @@ -49,6 +49,7 @@ cargo_build_script( "libc", "mm", "std", + "termios", "use-libc-auxv", ], crate_root = "build.rs", @@ -62,7 +63,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.36.10", + version = "0.37.19", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_79//:cc", @@ -79,7 +80,7 @@ cargo_build_script( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_1_4//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_3_8//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -110,7 +111,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_45_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), @@ -122,7 +123,7 @@ rust_library( name = "rustix", srcs = glob(["**/*.rs"]), aliases = { - "@wasmtime__errno__0_2_8//:errno": "libc_errno", + "@wasmtime__errno__0_3_1//:errno": "libc_errno", }, crate_features = [ "default", @@ -131,6 +132,7 @@ rust_library( "libc", "mm", "std", + "termios", "use-libc-auxv", ], crate_root = "src/lib.rs", @@ -145,12 +147,12 @@ rust_library( "crate-name=rustix", "manual", ], - version = "0.36.10", + version = "0.37.19", # buildifier: leave-alone deps = [ ":rustix_build_script", "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__1_0_8//:io_lifetimes", + "@wasmtime__io_lifetimes__1_0_11//:io_lifetimes", ] + selects.with_or({ # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) ( @@ -164,7 +166,7 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", ): [ - "@wasmtime__linux_raw_sys__0_1_4//:linux_raw_sys", + "@wasmtime__linux_raw_sys__0_3_8//:linux_raw_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -191,7 +193,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -214,7 +216,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__errno__0_2_8//:errno", + "@wasmtime__errno__0_3_1//:errno", ], "//conditions:default": [], }) + selects.with_or({ @@ -223,7 +225,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_45_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel new file mode 100644 index 000000000..181285685 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel @@ -0,0 +1,72 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR BSL-1.0" +]) + +# Generated Targets + +# Unsupported target "bench" with type "bench" omitted + +# Unsupported target "upstream_benchmark" with type "example" omitted + +rust_library( + name = "ryu", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=ryu", + "manual", + ], + version = "1.0.13", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "common_test" with type "test" omitted + +# Unsupported target "d2s_table_test" with type "test" omitted + +# Unsupported target "d2s_test" with type "test" omitted + +# Unsupported target "exhaustive" with type "test" omitted + +# Unsupported target "f2s_test" with type "test" omitted + +# Unsupported target "s2d_test" with type "test" omitted + +# Unsupported target "s2f_test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.157.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.163.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.serde-1.0.157.bazel rename to bazel/cargo/wasmtime/remote/BUILD.serde-1.0.163.bazel index 622ff00ae..1922368ce 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.157.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.163.bazel @@ -58,7 +58,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "1.0.157", + version = "1.0.163", visibility = ["//visibility:private"], deps = [ ], @@ -77,7 +77,7 @@ rust_library( data = [], edition = "2015", proc_macro_deps = [ - "@wasmtime__serde_derive__1_0_157//:serde_derive", + "@wasmtime__serde_derive__1_0_163//:serde_derive", ], rustc_flags = [ "--cap-lints=allow", @@ -87,7 +87,7 @@ rust_library( "crate-name=serde", "manual", ], - version = "1.0.157", + version = "1.0.163", # buildifier: leave-alone deps = [ ":serde_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.157.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.157.bazel deleted file mode 100644 index 1a3d98271..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.157.bazel +++ /dev/null @@ -1,89 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "serde_derive_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.157", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_proc_macro( - name = "serde_derive", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=serde_derive", - "manual", - ], - version = "1.0.157", - # buildifier: leave-alone - deps = [ - ":serde_derive_build_script", - "@wasmtime__proc_macro2__1_0_52//:proc_macro2", - "@wasmtime__quote__1_0_26//:quote", - "@wasmtime__syn__2_0_2//:syn", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel new file mode 100644 index 000000000..5e8df1db1 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel @@ -0,0 +1,58 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets + +rust_proc_macro( + name = "serde_derive", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=serde_derive", + "manual", + ], + version = "1.0.163", + # buildifier: leave-alone + deps = [ + "@wasmtime__proc_macro2__1_0_59//:proc_macro2", + "@wasmtime__quote__1_0_28//:quote", + "@wasmtime__syn__2_0_18//:syn", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel new file mode 100644 index 000000000..a40a46285 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel @@ -0,0 +1,105 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # MIT from expression "MIT OR Apache-2.0" +]) + +# Generated Targets +# buildifier: disable=out-of-order-load +# buildifier: disable=load-on-top +load( + "@rules_rust//cargo:cargo_build_script.bzl", + "cargo_build_script", +) + +cargo_build_script( + name = "serde_json_build_script", + srcs = glob(["**/*.rs"]), + build_script_env = { + }, + crate_features = [ + "default", + "std", + ], + crate_root = "build.rs", + data = glob(["**"]), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "manual", + ], + version = "1.0.96", + visibility = ["//visibility:private"], + deps = [ + ], +) + +rust_library( + name = "serde_json", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=serde_json", + "manual", + ], + version = "1.0.96", + # buildifier: leave-alone + deps = [ + ":serde_json_build_script", + "@wasmtime__itoa__1_0_6//:itoa", + "@wasmtime__ryu__1_0_13//:ryu", + "@wasmtime__serde__1_0_163//:serde", + ], +) + +# Unsupported target "compiletest" with type "test" omitted + +# Unsupported target "debug" with type "test" omitted + +# Unsupported target "lexical" with type "test" omitted + +# Unsupported target "map" with type "test" omitted + +# Unsupported target "regression" with type "test" omitted + +# Unsupported target "stream" with type "test" omitted + +# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel index 6e370df41..a9d7a87f1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel @@ -35,8 +35,6 @@ rust_library( name = "slice_group_by", srcs = glob(["**/*.rs"]), crate_features = [ - "default", - "std", ], crate_root = "src/lib.rs", data = [], @@ -49,7 +47,7 @@ rust_library( "crate-name=slice-group-by", "manual", ], - version = "0.3.0", + version = "0.3.1", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.18.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.syn-2.0.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.syn-2.0.18.bazel index 1f51d9b70..9d1d35631 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.18.bazel @@ -58,12 +58,12 @@ rust_library( "crate-name=syn", "manual", ], - version = "2.0.2", + version = "2.0.18", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_52//:proc_macro2", - "@wasmtime__quote__1_0_26//:quote", - "@wasmtime__unicode_ident__1_0_8//:unicode_ident", + "@wasmtime__proc_macro2__1_0_59//:proc_macro2", + "@wasmtime__quote__1_0_28//:quote", + "@wasmtime__unicode_ident__1_0_9//:unicode_ident", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.7.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.6.bazel rename to bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.7.bazel index b3441d7df..598efd675 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.7.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.12.6", + version = "0.12.7", visibility = ["//visibility:private"], deps = [ ], @@ -82,7 +82,7 @@ rust_library( "crate-name=target-lexicon", "manual", ], - version = "0.12.6", + version = "0.12.7", # buildifier: leave-alone deps = [ ":target_lexicon_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel index c97322f9c..d62ae3059 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel @@ -50,8 +50,8 @@ rust_proc_macro( version = "1.0.40", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_52//:proc_macro2", - "@wasmtime__quote__1_0_26//:quote", - "@wasmtime__syn__2_0_2//:syn", + "@wasmtime__proc_macro2__1_0_59//:proc_macro2", + "@wasmtime__quote__1_0_28//:quote", + "@wasmtime__syn__2_0_18//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.13.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.12.bazel rename to bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.13.bazel index 2fedefab0..e16635d9d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.13.bazel @@ -50,7 +50,7 @@ rust_library( "crate-name=unicode_bidi", "manual", ], - version = "0.3.12", + version = "0.3.13", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.9.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.8.bazel rename to bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.9.bazel index c8da47e31..a6425e1a6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.9.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=unicode-ident", "manual", ], - version = "1.0.8", + version = "1.0.9", # buildifier: leave-alone deps = [ ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel new file mode 100644 index 000000000..da9581211 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel @@ -0,0 +1,72 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" +]) + +# Generated Targets + +# Unsupported target "format_str" with type "bench" omitted + +# Unsupported target "parse_str" with type "bench" omitted + +# Unsupported target "v4" with type "bench" omitted + +# Unsupported target "random_uuid" with type "example" omitted + +# Unsupported target "sortable_uuid" with type "example" omitted + +# Unsupported target "uuid_macro" with type "example" omitted + +# Unsupported target "windows_guid" with type "example" omitted + +rust_library( + name = "uuid", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + data = [], + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=uuid", + "manual", + ], + version = "1.3.3", + # buildifier: leave-alone + deps = [ + ], +) + +# Unsupported target "macros" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index ff55f34da..267bfa470 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -35,8 +35,6 @@ rust_library( name = "wasi", srcs = glob(["**/*.rs"]), crate_features = [ - "default", - "std", ], crate_root = "src/lib.rs", data = [], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.100.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.100.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel index 3e38b00ff..b4306c8fe 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.100.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel @@ -51,10 +51,12 @@ rust_library( "crate-name=wasmparser", "manual", ], - version = "0.100.0", + version = "0.103.0", # buildifier: leave-alone deps = [ - "@wasmtime__indexmap__1_9_2//:indexmap", + "@wasmtime__indexmap__1_9_3//:indexmap", "@wasmtime__url__2_3_1//:url", ], ) + +# Unsupported target "big-module" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.3.bazel similarity index 70% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.3.bazel index 967d14997..4cb39da59 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.3.bazel @@ -55,7 +55,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "6.0.1", + version = "9.0.3", visibility = ["//visibility:private"], deps = [ ] + selects.with_or({ @@ -64,7 +64,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_42_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), @@ -92,33 +92,36 @@ rust_library( "crate-name=wasmtime", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ ":wasmtime_build_script", - "@wasmtime__anyhow__1_0_70//:anyhow", + "@wasmtime__anyhow__1_0_71//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", + "@wasmtime__bumpalo__3_13_0//:bumpalo", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_9_2//:indexmap", - "@wasmtime__libc__0_2_140//:libc", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_29_0//:object", - "@wasmtime__once_cell__1_17_1//:once_cell", + "@wasmtime__fxprof_processed_profile__0_6_0//:fxprof_processed_profile", + "@wasmtime__indexmap__1_9_3//:indexmap", + "@wasmtime__libc__0_2_144//:libc", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__object__0_30_3//:object", + "@wasmtime__once_cell__1_17_2//:once_cell", "@wasmtime__psm__0_1_21//:psm", - "@wasmtime__serde__1_0_157//:serde", - "@wasmtime__target_lexicon__0_12_6//:target_lexicon", - "@wasmtime__wasmparser__0_100_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__6_0_1//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit__6_0_1//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__6_0_1//:wasmtime_runtime", + "@wasmtime__serde__1_0_163//:serde", + "@wasmtime__serde_json__1_0_96//:serde_json", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", + "@wasmtime__wasmparser__0_103_0//:wasmparser", + "@wasmtime__wasmtime_cranelift__9_0_3//:wasmtime_cranelift", + "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", + "@wasmtime__wasmtime_jit__9_0_3//:wasmtime_jit", + "@wasmtime__wasmtime_runtime__9_0_3//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_42_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.3.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.3.bazel index 089e9fb50..0079829ac 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.3.bazel @@ -47,7 +47,7 @@ rust_library( "crate-name=wasmtime-asm-macros", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel index dd3a77432..eff79e771 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel @@ -50,7 +50,7 @@ rust_proc_macro( version = "0.0.0", # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_52//:proc_macro2", - "@wasmtime__quote__1_0_26//:quote", + "@wasmtime__proc_macro2__1_0_59//:proc_macro2", + "@wasmtime__quote__1_0_28//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.3.bazel similarity index 57% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.3.bazel index f2760f00a..5b10ca85c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.3.bazel @@ -47,21 +47,23 @@ rust_library( "crate-name=wasmtime-cranelift", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_70//:anyhow", - "@wasmtime__cranelift_codegen__0_93_1//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_93_1//:cranelift_frontend", - "@wasmtime__cranelift_native__0_93_1//:cranelift_native", - "@wasmtime__cranelift_wasm__0_93_1//:cranelift_wasm", - "@wasmtime__gimli__0_26_2//:gimli", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_29_0//:object", - "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__anyhow__1_0_71//:anyhow", + "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", + "@wasmtime__cranelift_control__0_96_3//:cranelift_control", + "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", + "@wasmtime__cranelift_frontend__0_96_3//:cranelift_frontend", + "@wasmtime__cranelift_native__0_96_3//:cranelift_native", + "@wasmtime__cranelift_wasm__0_96_3//:cranelift_wasm", + "@wasmtime__gimli__0_27_2//:gimli", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__object__0_30_3//:object", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", "@wasmtime__thiserror__1_0_40//:thiserror", - "@wasmtime__wasmparser__0_100_0//:wasmparser", - "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", + "@wasmtime__wasmparser__0_103_0//:wasmparser", + "@wasmtime__wasmtime_cranelift_shared__9_0_3//:wasmtime_cranelift_shared", + "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel new file mode 100644 index 000000000..bcfe1dd16 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel @@ -0,0 +1,62 @@ +""" +@generated +cargo-raze crate build file. + +DO NOT EDIT! Replaced on runs of cargo-raze +""" + +# buildifier: disable=load +load("@bazel_skylib//lib:selects.bzl", "selects") + +# buildifier: disable=load +load( + "@rules_rust//rust:defs.bzl", + "rust_binary", + "rust_library", + "rust_proc_macro", + "rust_test", +) + +package(default_visibility = [ + # Public for visibility by "@raze__crate__version//" targets. + # + # Prefer access through "//bazel/cargo/wasmtime", which limits external + # visibility to explicit Cargo.toml dependencies. + "//visibility:public", +]) + +licenses([ + "notice", # Apache-2.0 from expression "Apache-2.0" +]) + +# Generated Targets + +rust_library( + name = "wasmtime_cranelift_shared", + srcs = glob(["**/*.rs"]), + crate_features = [ + ], + crate_root = "src/lib.rs", + data = [], + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-raze", + "crate-name=wasmtime-cranelift-shared", + "manual", + ], + version = "9.0.3", + # buildifier: leave-alone + deps = [ + "@wasmtime__anyhow__1_0_71//:anyhow", + "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", + "@wasmtime__cranelift_control__0_96_3//:cranelift_control", + "@wasmtime__cranelift_native__0_96_3//:cranelift_native", + "@wasmtime__gimli__0_27_2//:gimli", + "@wasmtime__object__0_30_3//:object", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", + "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.3.bazel similarity index 68% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.3.bazel index cf4ab44de..d16a2ca36 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.3.bazel @@ -49,19 +49,19 @@ rust_library( "crate-name=wasmtime-environ", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ - "@wasmtime__anyhow__1_0_70//:anyhow", - "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", - "@wasmtime__gimli__0_26_2//:gimli", - "@wasmtime__indexmap__1_9_2//:indexmap", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_29_0//:object", - "@wasmtime__serde__1_0_157//:serde", - "@wasmtime__target_lexicon__0_12_6//:target_lexicon", + "@wasmtime__anyhow__1_0_71//:anyhow", + "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", + "@wasmtime__gimli__0_27_2//:gimli", + "@wasmtime__indexmap__1_9_3//:indexmap", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__object__0_30_3//:object", + "@wasmtime__serde__1_0_163//:serde", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", "@wasmtime__thiserror__1_0_40//:thiserror", - "@wasmtime__wasmparser__0_100_0//:wasmparser", - "@wasmtime__wasmtime_types__6_0_1//:wasmtime_types", + "@wasmtime__wasmparser__0_103_0//:wasmparser", + "@wasmtime__wasmtime_types__9_0_3//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.3.bazel similarity index 69% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.3.bazel index 51468d281..7080c14c6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.3.bazel @@ -49,30 +49,30 @@ rust_library( "crate-name=wasmtime-jit", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ - "@wasmtime__addr2line__0_17_0//:addr2line", - "@wasmtime__anyhow__1_0_70//:anyhow", + "@wasmtime__addr2line__0_19_0//:addr2line", + "@wasmtime__anyhow__1_0_71//:anyhow", "@wasmtime__bincode__1_3_3//:bincode", "@wasmtime__cfg_if__1_0_0//:cfg_if", "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", - "@wasmtime__gimli__0_26_2//:gimli", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__object__0_29_0//:object", - "@wasmtime__rustc_demangle__0_1_21//:rustc_demangle", - "@wasmtime__serde__1_0_157//:serde", - "@wasmtime__target_lexicon__0_12_6//:target_lexicon", - "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit_icache_coherence__6_0_1//:wasmtime_jit_icache_coherence", - "@wasmtime__wasmtime_runtime__6_0_1//:wasmtime_runtime", + "@wasmtime__gimli__0_27_2//:gimli", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__object__0_30_3//:object", + "@wasmtime__rustc_demangle__0_1_23//:rustc_demangle", + "@wasmtime__serde__1_0_163//:serde", + "@wasmtime__target_lexicon__0_12_7//:target_lexicon", + "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", + "@wasmtime__wasmtime_jit_icache_coherence__9_0_3//:wasmtime_jit_icache_coherence", + "@wasmtime__wasmtime_runtime__9_0_3//:wasmtime_runtime", ] + selects.with_or({ # cfg(target_os = "windows") ( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_42_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.3.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.3.bazel index 152481ac3..dfdbdd6bb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.3.bazel @@ -49,9 +49,9 @@ rust_library( "crate-name=wasmtime-jit-debug", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ - "@wasmtime__once_cell__1_17_1//:once_cell", + "@wasmtime__once_cell__1_17_2//:once_cell", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel index e54901d2e..1c9322173 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel @@ -49,7 +49,7 @@ rust_library( "crate-name=wasmtime-jit-icache-coherence", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ "@wasmtime__cfg_if__1_0_0//:cfg_if", @@ -71,7 +71,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__libc__0_2_140//:libc", + "@wasmtime__libc__0_2_144//:libc", ], "//conditions:default": [], }) + selects.with_or({ @@ -80,7 +80,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_42_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.3.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.3.bazel index 0980b7f62..bff1668a1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.3.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "6.0.1", + version = "9.0.3", visibility = ["//visibility:private"], deps = [ "@wasmtime__cc__1_0_79//:cc", @@ -73,7 +73,7 @@ cargo_build_script( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_42_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -122,21 +122,21 @@ rust_library( "crate-name=wasmtime-runtime", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ ":wasmtime_runtime_build_script", - "@wasmtime__anyhow__1_0_70//:anyhow", + "@wasmtime__anyhow__1_0_71//:anyhow", "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_9_2//:indexmap", - "@wasmtime__libc__0_2_140//:libc", - "@wasmtime__log__0_4_17//:log", - "@wasmtime__memfd__0_6_2//:memfd", - "@wasmtime__memoffset__0_6_5//:memoffset", + "@wasmtime__indexmap__1_9_3//:indexmap", + "@wasmtime__libc__0_2_144//:libc", + "@wasmtime__log__0_4_18//:log", + "@wasmtime__memfd__0_6_3//:memfd", + "@wasmtime__memoffset__0_8_0//:memoffset", "@wasmtime__rand__0_8_5//:rand", - "@wasmtime__wasmtime_asm_macros__6_0_1//:wasmtime_asm_macros", - "@wasmtime__wasmtime_environ__6_0_1//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__6_0_1//:wasmtime_jit_debug", + "@wasmtime__wasmtime_asm_macros__9_0_3//:wasmtime_asm_macros", + "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", + "@wasmtime__wasmtime_jit_debug__9_0_3//:wasmtime_jit_debug", ] + selects.with_or({ # cfg(target_os = "macos") ( @@ -153,7 +153,7 @@ rust_library( "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_sys__0_42_0//:windows_sys", + "@wasmtime__windows_sys__0_48_0//:windows_sys", ], "//conditions:default": [], }) + selects.with_or({ @@ -176,7 +176,7 @@ rust_library( "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", ): [ - "@wasmtime__rustix__0_36_10//:rustix", + "@wasmtime__rustix__0_37_19//:rustix", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-6.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.3.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-6.0.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.3.bazel index c1157ae3f..939447e25 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-6.0.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.3.bazel @@ -47,12 +47,12 @@ rust_library( "crate-name=wasmtime-types", "manual", ], - version = "6.0.1", + version = "9.0.3", # buildifier: leave-alone deps = [ - "@wasmtime__cranelift_entity__0_93_1//:cranelift_entity", - "@wasmtime__serde__1_0_157//:serde", + "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", + "@wasmtime__serde__1_0_163//:serde", "@wasmtime__thiserror__1_0_40//:thiserror", - "@wasmtime__wasmparser__0_100_0//:wasmparser", + "@wasmtime__wasmparser__0_103_0//:wasmparser", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel index 51c9c7277..e965c839b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel @@ -46,9 +46,7 @@ cargo_build_script( "consoleapi", "errhandlingapi", "fileapi", - "minwinbase", "minwindef", - "ntdef", "processenv", "std", "winbase", @@ -79,9 +77,7 @@ rust_library( "consoleapi", "errhandlingapi", "fileapi", - "minwinbase", "minwindef", - "ntdef", "processenv", "std", "winbase", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel deleted file mode 100644 index 26c3fcb0c..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.45.0.bazel +++ /dev/null @@ -1,96 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "windows_sys", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "Win32", - "Win32_Foundation", - "Win32_NetworkManagement", - "Win32_NetworkManagement_IpHelper", - "Win32_Networking", - "Win32_Networking_WinSock", - "Win32_Security", - "Win32_Storage", - "Win32_Storage_FileSystem", - "Win32_System", - "Win32_System_IO", - "Win32_System_Threading", - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows-sys", - "manual", - ], - version = "0.45.0", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(not(windows_raw_dylib)) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__windows_targets__0_42_2//:windows_targets", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel similarity index 70% rename from bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel index 668f95552..96f4b2cce 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.42.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel @@ -34,17 +34,21 @@ licenses([ rust_library( name = "windows_sys", srcs = glob(["**/*.rs"]), - aliases = { - }, crate_features = [ "Win32", "Win32_Foundation", + "Win32_NetworkManagement", + "Win32_NetworkManagement_IpHelper", + "Win32_Networking", + "Win32_Networking_WinSock", "Win32_Security", "Win32_Storage", "Win32_Storage_FileSystem", "Win32_System", + "Win32_System_Console", "Win32_System_Diagnostics", "Win32_System_Diagnostics_Debug", + "Win32_System_IO", "Win32_System_Kernel", "Win32_System_Memory", "Win32_System_SystemInformation", @@ -62,24 +66,9 @@ rust_library( "crate-name=windows-sys", "manual", ], - version = "0.42.0", + version = "0.48.0", # buildifier: leave-alone deps = [ - ] + selects.with_or({ - # i686-pc-windows-msvc - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - ): [ - "@wasmtime__windows_i686_msvc__0_42_2//:windows_i686_msvc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # x86_64-pc-windows-msvc - ( - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_x86_64_msvc__0_42_2//:windows_x86_64_msvc", - ], - "//conditions:default": [], - }), + "@wasmtime__windows_targets__0_48_0//:windows_targets", + ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.0.bazel similarity index 66% rename from bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.0.bazel index 3ca4c07b1..677d0a5f9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.0.bazel @@ -49,23 +49,32 @@ rust_library( "crate-name=windows-targets", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ] + selects.with_or({ - # i686-pc-windows-msvc + # cfg(all(target_arch = "x86", target_env = "gnu", not(windows_raw_dylib))) + ( + "@rules_rust//rust/platform:i686-unknown-linux-gnu", + "@rules_rust//rust/platform:i686-linux-android", + ): [ + "@wasmtime__windows_i686_gnu__0_48_0//:windows_i686_gnu", + ], + "//conditions:default": [], + }) + selects.with_or({ + # cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib))) ( "@rules_rust//rust/platform:i686-pc-windows-msvc", ): [ - "@wasmtime__windows_i686_msvc__0_42_2//:windows_i686_msvc", + "@wasmtime__windows_i686_msvc__0_48_0//:windows_i686_msvc", ], "//conditions:default": [], }) + selects.with_or({ - # x86_64-pc-windows-msvc + # cfg(all(target_arch = "x86_64", target_env = "msvc", not(windows_raw_dylib))) ( "@rules_rust//rust/platform:x86_64-pc-windows-msvc", ): [ - "@wasmtime__windows_x86_64_msvc__0_42_2//:windows_x86_64_msvc", + "@wasmtime__windows_x86_64_msvc__0_48_0//:windows_x86_64_msvc", ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.0.bazel index e14ccd98d..1c7e25989 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.2", + version = "0.48.0", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_aarch64_gnullvm", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ":windows_aarch64_gnullvm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.0.bazel index 0b6e1c95a..b45c4897a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.2", + version = "0.48.0", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_aarch64_msvc", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ":windows_aarch64_msvc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.0.bazel index 85ba0eb67..2edb92dda 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.2", + version = "0.48.0", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_i686_gnu", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ":windows_i686_gnu_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.0.bazel index 36329428f..bb3f4205e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.2", + version = "0.48.0", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_i686_msvc", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ":windows_i686_msvc_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.0.bazel index 937caf0a7..3cc37d15f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.2", + version = "0.48.0", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_x86_64_gnu", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ":windows_x86_64_gnu_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.0.bazel index af44a2694..b9f924bb6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.2", + version = "0.48.0", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_x86_64_gnullvm", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ":windows_x86_64_gnullvm_build_script", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.0.bazel index c93c72615..ed1844cb8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.42.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.0.bazel @@ -54,7 +54,7 @@ cargo_build_script( "cargo-raze", "manual", ], - version = "0.42.2", + version = "0.48.0", visibility = ["//visibility:private"], deps = [ ], @@ -76,7 +76,7 @@ rust_library( "crate-name=windows_x86_64_msvc", "manual", ], - version = "0.42.2", + version = "0.48.0", # buildifier: leave-alone deps = [ ":windows_x86_64_msvc_build_script", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index b96b972be..106069511 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -201,9 +201,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "7ed6359faa385c40fc77e324301e5c70c7fdaeeca8a5ab58e25b1f75035b2cd6", - strip_prefix = "wasmtime-6.0.1", - url = "https://github.com/bytecodealliance/wasmtime/archive/v6.0.1.tar.gz", + sha256 = "917da461249b11a3176a39573723f78c627259576d0ca10b00d6e7f7fa047081", + strip_prefix = "wasmtime-9.0.3", + url = "https://github.com/bytecodealliance/wasmtime/archive/v9.0.3.tar.gz", ) maybe( From f2911835110bb661d125a1e678cea301a6887b3e Mon Sep 17 00:00:00 2001 From: phlax Date: Sat, 10 Jun 2023 07:55:26 +0100 Subject: [PATCH 243/287] Auto-cancel old GitHub Actions workflows. (#356) Signed-off-by: Ryan Northey --- .github/workflows/format.yml | 5 +++++ .github/workflows/test.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 1065c0519..a09aa7a64 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -31,6 +31,11 @@ on: schedule: - cron: '0 0 * * *' +concurrency: + + group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }} + cancel-in-progress: true + jobs: addlicense: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed4a1b72d..5d311c819 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,11 @@ on: schedule: - cron: '0 0 * * *' +concurrency: + + group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }} + cancel-in-progress: true + jobs: test_data: From 7540de71d3055c0698d621abf70769bb4aa1070e Mon Sep 17 00:00:00 2001 From: phlax Date: Thu, 22 Jun 2023 18:30:43 +0100 Subject: [PATCH 244/287] Update rules_rust to v0.24.1 (with Rust v1.70.0). (#358) Signed-off-by: Ryan Northey --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 106069511..8a083eed0 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -74,10 +74,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_rust", - sha256 = "88a6911bf60c44710407cc718668ce79a4a339e1310b47f306aa0f1beadc6895", - strip_prefix = "rules_rust-0.22.0", + sha256 = "e3fe2a255589d128c5e59e407ee57c832533f25ce14cc23605d368cf507ce08d", + strip_prefix = "rules_rust-0.24.1", # NOTE: Update Rust version in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/0.22.0.tar.gz", + url = "https://github.com/bazelbuild/rules_rust/archive/0.24.1.tar.gz", patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], patch_args = ["-p1"], ) From c932df12c9db59d331dcb1020174d5f911f67244 Mon Sep 17 00:00:00 2001 From: Maxim Philippov Date: Mon, 3 Jul 2023 19:29:11 +0300 Subject: [PATCH 245/287] Use SHA256 hash for plugin cache (#359) Use SHA256 hash for plugin cache key. Otherwise, a raw plugin config (concatenated with root ID and key) is stored in the key which may cause unnecessary memory consumption. Signed-off-by: Maxim Philippov --- BUILD | 2 ++ include/proxy-wasm/context.h | 6 ++-- src/context.cc | 6 ++++ src/hash.cc | 54 ++++++++++++++++++++++++++++++++++++ src/hash.h | 27 ++++++++++++++++++ src/wasm.cc | 27 ++---------------- 6 files changed, 95 insertions(+), 27 deletions(-) create mode 100644 src/hash.cc create mode 100644 src/hash.h diff --git a/BUILD b/BUILD index 69c9bdae5..f29f4de85 100644 --- a/BUILD +++ b/BUILD @@ -66,6 +66,8 @@ cc_library( "src/bytecode_util.cc", "src/context.cc", "src/exports.cc", + "src/hash.cc", + "src/hash.h", "src/pairs_util.cc", "src/shared_data.cc", "src/shared_data.h", diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 652b86b6e..ab99cad70 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -23,6 +23,7 @@ #include #include #include +#include #include #include "include/proxy-wasm/context_interface.h" @@ -53,8 +54,7 @@ struct PluginBase { std::string_view key) : name_(std::string(name)), root_id_(std::string(root_id)), vm_id_(std::string(vm_id)), engine_(std::string(engine)), plugin_configuration_(plugin_configuration), - fail_open_(fail_open), - key_(root_id_ + "||" + plugin_configuration_ + "||" + std::string(key)), + fail_open_(fail_open), key_(makePluginKey(root_id, plugin_configuration, key)), log_prefix_(makeLogPrefix()) {} const std::string name_; @@ -69,6 +69,8 @@ struct PluginBase { private: std::string makeLogPrefix() const; + static std::string makePluginKey(std::string_view root_id, std::string_view plugin_configuration, + std::string_view key); const std::string key_; const std::string log_prefix_; diff --git a/src/context.cc b/src/context.cc index 29037ae43..5353a52a5 100644 --- a/src/context.cc +++ b/src/context.cc @@ -22,6 +22,7 @@ #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/wasm.h" +#include "src/hash.h" #include "src/shared_data.h" #include "src/shared_queue.h" @@ -85,6 +86,11 @@ std::string PluginBase::makeLogPrefix() const { return prefix; } +std::string PluginBase::makePluginKey(std::string_view root_id, + std::string_view plugin_configuration, std::string_view key) { + return Sha256String({root_id, "||", plugin_configuration, "||", key}); +} + ContextBase::ContextBase() : parent_context_(this) {} ContextBase::ContextBase(WasmBase *wasm) : wasm_(wasm), parent_context_(this) { diff --git a/src/hash.cc b/src/hash.cc new file mode 100644 index 000000000..f2d1ded13 --- /dev/null +++ b/src/hash.cc @@ -0,0 +1,54 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "src/hash.h" + +#include +#include + +#include + +namespace proxy_wasm { + +namespace { + +std::string BytesToHex(const std::vector &bytes) { + static const char *const hex = "0123456789ABCDEF"; + std::string result; + result.reserve(bytes.size() * 2); + for (auto byte : bytes) { + result.push_back(hex[byte >> 4]); + result.push_back(hex[byte & 0xf]); + } + return result; +} + +} // namespace + +std::vector Sha256(const std::vector &parts) { + uint8_t sha256[SHA256_DIGEST_LENGTH]; + SHA256_CTX sha_ctx; + SHA256_Init(&sha_ctx); + for (auto part : parts) { + SHA256_Update(&sha_ctx, part.data(), part.size()); + } + SHA256_Final(sha256, &sha_ctx); + return std::vector(std::begin(sha256), std::end(sha256)); +} + +std::string Sha256String(const std::vector &parts) { + return BytesToHex(Sha256(parts)); +} + +} // namespace proxy_wasm \ No newline at end of file diff --git a/src/hash.h b/src/hash.h new file mode 100644 index 000000000..40d03e9d4 --- /dev/null +++ b/src/hash.h @@ -0,0 +1,27 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include +#include + +#include + +namespace proxy_wasm { + +std::vector Sha256(const std::vector &parts); +std::string Sha256String(const std::vector &parts); + +} // namespace proxy_wasm diff --git a/src/wasm.cc b/src/wasm.cc index a7a22fc9c..15127c99a 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -27,11 +27,10 @@ #include #include -#include - #include "include/proxy-wasm/bytecode_util.h" #include "include/proxy-wasm/signature_util.h" #include "include/proxy-wasm/vm_id_handle.h" +#include "src/hash.h" namespace proxy_wasm { @@ -44,33 +43,11 @@ thread_local std::unordered_map> lo std::mutex base_wasms_mutex; std::unordered_map> *base_wasms = nullptr; -std::vector Sha256(const std::vector &parts) { - uint8_t sha256[SHA256_DIGEST_LENGTH]; - SHA256_CTX sha_ctx; - SHA256_Init(&sha_ctx); - for (auto part : parts) { - SHA256_Update(&sha_ctx, part.data(), part.size()); - } - SHA256_Final(sha256, &sha_ctx); - return std::vector(std::begin(sha256), std::end(sha256)); -} - -std::string BytesToHex(const std::vector &bytes) { - static const char *const hex = "0123456789ABCDEF"; - std::string result; - result.reserve(bytes.size() * 2); - for (auto byte : bytes) { - result.push_back(hex[byte >> 4]); - result.push_back(hex[byte & 0xf]); - } - return result; -} - } // namespace std::string makeVmKey(std::string_view vm_id, std::string_view vm_configuration, std::string_view code) { - return BytesToHex(Sha256({vm_id, vm_configuration, code})); + return Sha256String({vm_id, "||", vm_configuration, "||", code}); } class WasmBase::ShutdownHandle { From 8771886aa0b20a865a29d2731ba1b870e19612eb Mon Sep 17 00:00:00 2001 From: Takeshi Yoneda Date: Tue, 11 Jul 2023 12:31:47 +0900 Subject: [PATCH 246/287] Remove @mathetake from CODEOWNERS. (#360) Signed-off-by: Takeshi Yoneda --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index 2bbe6fa17..f1f3bca02 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @PiotrSikora @mathetake +* @PiotrSikora From 25daf5e9b7fe25595cee966d09fcb750fcf7c5d7 Mon Sep 17 00:00:00 2001 From: Yi-Ying He Date: Wed, 12 Jul 2023 02:12:52 +0800 Subject: [PATCH 247/287] wasmedge: update to v0.13.1. (#361) Signed-off-by: YiYing He --- bazel/repositories.bzl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 8a083eed0..57d12a2d3 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -185,9 +185,9 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_wasmedge_wasmedge", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmedge.BUILD", - sha256 = "65d95e5f83d25ab09fa9a29369f578838e8a519fb170704d0f5896187364429b", - strip_prefix = "WasmEdge-proxy-wasm-0.11.2", - url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.11.2.tar.gz", + sha256 = "7ab8a0df37c8d282ecff72d0f0bff8db63fd92df1645d5a014a9dbed4b7f9025", + strip_prefix = "WasmEdge-proxy-wasm-0.13.1", + url = "https://github.com/WasmEdge/WasmEdge/archive/refs/tags/proxy-wasm/0.13.1.tar.gz", ) native.bind( From 356ea6eda6a25723f2af81c0bdd8ddf38413d0bb Mon Sep 17 00:00:00 2001 From: Maxim Philippov Date: Fri, 14 Jul 2023 22:29:57 +0300 Subject: [PATCH 248/287] Fix memory leak in thread-local VM & plugin caches (#357) * Fix memory leak in thread-local VM & plugin caches Since VM and plugin thread-local cache keys include volatile parts (namely VM configuration, code and plugin configuration), their reconfiguration/update (e.g. with Envoy ADS protocol) might lead to memory leak by leaving those thread-local map stale keys behind. The current cleanup method is insufficient, as it accounts only for cache hit case. Signed-off-by: Maxim Philippov * Use key queues for a bounded stale entries cleanup in local caches Signed-off-by: Maxim Philippov * Linter fixes Signed-off-by: Maxim Philippov * Fix code formatting Signed-off-by: Maxim Philippov * Addressed code style comments Signed-off-by: Maxim Philippov * Made getThreadLocalWasm more similar to other funcs Signed-off-by: Maxim Philippov * Erase stale cache entries whenever we can Signed-off-by: Maxim Philippov * Fix casing in comment Signed-off-by: Maxim Philippov --------- Signed-off-by: Maxim Philippov --- src/wasm.cc | 73 +++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 59 insertions(+), 14 deletions(-) diff --git a/src/wasm.cc b/src/wasm.cc index 15127c99a..9d2566fc1 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include @@ -36,13 +37,56 @@ namespace proxy_wasm { namespace { -// Map from Wasm Key to the local Wasm instance. +// Map from Wasm key to the thread-local Wasm instance. thread_local std::unordered_map> local_wasms; +// Wasm key queue to track stale entries in `local_wasms`. +thread_local std::queue local_wasms_keys; + +// Map from plugin key to the thread-local plugin instance. thread_local std::unordered_map> local_plugins; +// Plugin key queue to track stale entries in `local_plugins`. +thread_local std::queue local_plugins_keys; + +// Check no more than `MAX_LOCAL_CACHE_GC_CHUNK_SIZE` cache entries at a time during stale entries +// cleanup. +const size_t MAX_LOCAL_CACHE_GC_CHUNK_SIZE = 64; + // Map from Wasm Key to the base Wasm instance, using a pointer to avoid the initialization fiasco. std::mutex base_wasms_mutex; std::unordered_map> *base_wasms = nullptr; +void cacheLocalWasm(const std::string &key, const std::shared_ptr &wasm_handle) { + local_wasms[key] = wasm_handle; + local_wasms_keys.emplace(key); +} + +void cacheLocalPlugin(const std::string &key, + const std::shared_ptr &plugin_handle) { + local_plugins[key] = plugin_handle; + local_plugins_keys.emplace(key); +} + +template +void removeStaleLocalCacheEntries(std::unordered_map> &cache, + std::queue &keys) { + auto num_keys_to_check = std::min(MAX_LOCAL_CACHE_GC_CHUNK_SIZE, keys.size()); + for (size_t i = 0; i < num_keys_to_check; i++) { + std::string key(keys.front()); + keys.pop(); + + const auto it = cache.find(key); + if (it == cache.end()) { + continue; + } + + if (it->second.expired()) { + cache.erase(it); + } else { + keys.push(std::move(key)); + } + } +} + } // namespace std::string makeVmKey(std::string_view vm_id, std::string_view vm_configuration, @@ -525,14 +569,15 @@ std::shared_ptr createWasm(const std::string &vm_key, const std: std::shared_ptr getThreadLocalWasm(std::string_view vm_key) { auto it = local_wasms.find(std::string(vm_key)); - if (it == local_wasms.end()) { - return nullptr; - } - auto wasm = it->second.lock(); - if (!wasm) { - local_wasms.erase(std::string(vm_key)); + if (it != local_wasms.end()) { + auto wasm = it->second.lock(); + if (wasm) { + return wasm; + } + local_wasms.erase(it); } - return wasm; + removeStaleLocalCacheEntries(local_wasms, local_wasms_keys); + return nullptr; } static std::shared_ptr @@ -546,9 +591,9 @@ getOrCreateThreadLocalWasm(const std::shared_ptr &base_handle, if (wasm_handle) { return wasm_handle; } - // Remove stale entry. - local_wasms.erase(vm_key); + local_wasms.erase(it); } + removeStaleLocalCacheEntries(local_wasms, local_wasms_keys); // Create and initialize new thread-local WasmVM. auto wasm_handle = clone_factory(base_handle); if (!wasm_handle) { @@ -560,7 +605,7 @@ getOrCreateThreadLocalWasm(const std::shared_ptr &base_handle, base_handle->wasm()->fail(FailState::UnableToInitializeCode, "Failed to initialize Wasm code"); return nullptr; } - local_wasms[vm_key] = wasm_handle; + cacheLocalWasm(vm_key, wasm_handle); wasm_handle->wasm()->wasm_vm()->addFailCallback([vm_key](proxy_wasm::FailState fail_state) { if (fail_state == proxy_wasm::FailState::RuntimeError) { // If VM failed, erase the entry so that: @@ -583,9 +628,9 @@ std::shared_ptr getOrCreateThreadLocalPlugin( if (plugin_handle) { return plugin_handle; } - // Remove stale entry. - local_plugins.erase(key); + local_plugins.erase(it); } + removeStaleLocalCacheEntries(local_plugins, local_plugins_keys); // Get thread-local WasmVM. auto wasm_handle = getOrCreateThreadLocalWasm(base_handle, clone_factory); if (!wasm_handle) { @@ -603,7 +648,7 @@ std::shared_ptr getOrCreateThreadLocalPlugin( return nullptr; } auto plugin_handle = plugin_factory(wasm_handle, plugin); - local_plugins[key] = plugin_handle; + cacheLocalPlugin(key, plugin_handle); wasm_handle->wasm()->wasm_vm()->addFailCallback([key](proxy_wasm::FailState fail_state) { if (fail_state == proxy_wasm::FailState::RuntimeError) { // If VM failed, erase the entry so that: From b7e690703c7f26707438a2f1ebd7c197bc8f0296 Mon Sep 17 00:00:00 2001 From: Maxim Philippov Date: Mon, 31 Jul 2023 05:44:14 +0200 Subject: [PATCH 249/287] Added tests for thread-local caches cleanup. (#362) Signed-off-by: Maxim Philippov --- BUILD | 1 + src/wasm.cc | 20 ++++++++++++ src/wasm.h | 25 +++++++++++++++ test/wasm_test.cc | 82 +++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 128 insertions(+) create mode 100644 src/wasm.h diff --git a/BUILD b/BUILD index f29f4de85..8b3301990 100644 --- a/BUILD +++ b/BUILD @@ -76,6 +76,7 @@ cc_library( "src/signature_util.cc", "src/vm_id_handle.cc", "src/wasm.cc", + "src/wasm.h", ], hdrs = [ "include/proxy-wasm/bytecode_util.h", diff --git a/src/wasm.cc b/src/wasm.cc index 9d2566fc1..cb1dd9b3a 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -670,4 +670,24 @@ void clearWasmCachesForTesting() { } } +std::vector staleLocalPluginsKeysForTesting() { + std::vector keys; + for (const auto &kv : local_plugins) { + if (kv.second.expired()) { + keys.push_back(kv.first); + } + } + return keys; +} + +std::vector staleLocalWasmsKeysForTesting() { + std::vector keys; + for (const auto &kv : local_wasms) { + if (kv.second.expired()) { + keys.push_back(kv.first); + } + } + return keys; +} + } // namespace proxy_wasm diff --git a/src/wasm.h b/src/wasm.h new file mode 100644 index 000000000..882dbcd99 --- /dev/null +++ b/src/wasm.h @@ -0,0 +1,25 @@ +// Copyright 2023 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include +#include + +namespace proxy_wasm { + +std::vector staleLocalWasmsKeysForTesting(); +std::vector staleLocalPluginsKeysForTesting(); + +} // namespace proxy_wasm diff --git a/test/wasm_test.cc b/test/wasm_test.cc index b88732698..2a3e60cc4 100644 --- a/test/wasm_test.cc +++ b/test/wasm_test.cc @@ -20,6 +20,8 @@ #include "test/utility.h" +#include "src/wasm.h" + namespace proxy_wasm { INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), @@ -242,4 +244,84 @@ TEST_P(TestVm, AlwaysApplyCanary) { } } +// Check that there are no stale thread-local cache keys (eventually) +TEST_P(TestVm, CleanupThreadLocalCacheKeys) { + const auto *const plugin_name = "plugin_name"; + const auto *const root_id = "root_id"; + const auto *const vm_id = "vm_id"; + const auto *const vm_config = "vm_config"; + const auto *const plugin_config = "plugin_config"; + const auto fail_open = false; + + WasmHandleFactory wasm_handle_factory = + [this, vm_id, vm_config](std::string_view vm_key) -> std::shared_ptr { + auto base_wasm = std::make_shared(makeVm(engine_), vm_id, vm_config, vm_key, + std::unordered_map{}, + AllowedCapabilitiesMap{}); + return std::make_shared(base_wasm); + }; + + WasmHandleCloneFactory wasm_handle_clone_factory = + [this](const std::shared_ptr &base_wasm_handle) + -> std::shared_ptr { + auto wasm = std::make_shared( + base_wasm_handle, [this]() -> std::unique_ptr { return makeVm(engine_); }); + return std::make_shared(wasm); + }; + + PluginHandleFactory plugin_handle_factory = + [](const std::shared_ptr &base_wasm, + const std::shared_ptr &plugin) -> std::shared_ptr { + return std::make_shared(base_wasm, plugin); + }; + + // Read the minimal loadable binary. + auto source = readTestWasmFile("abi_export.wasm"); + + // Simulate a plugin lifetime. + const auto plugin1 = std::make_shared(plugin_name, root_id, vm_id, engine_, + plugin_config, fail_open, "plugin_1"); + auto base_wasm_handle1 = + createWasm("vm_1", source, plugin1, wasm_handle_factory, wasm_handle_clone_factory, false); + ASSERT_TRUE(base_wasm_handle1 && base_wasm_handle1->wasm()); + + auto local_plugin1 = getOrCreateThreadLocalPlugin( + base_wasm_handle1, plugin1, wasm_handle_clone_factory, plugin_handle_factory); + ASSERT_TRUE(local_plugin1 && local_plugin1->plugin()); + local_plugin1.reset(); + + auto stale_plugins_keys = staleLocalPluginsKeysForTesting(); + EXPECT_EQ(1, stale_plugins_keys.size()); + + // Now we create another plugin with a slightly different key and expect that there are no stale + // thread-local cache entries. + const auto plugin2 = std::make_shared(plugin_name, root_id, vm_id, engine_, + plugin_config, fail_open, "plugin_2"); + auto local_plugin2 = getOrCreateThreadLocalPlugin( + base_wasm_handle1, plugin2, wasm_handle_clone_factory, plugin_handle_factory); + ASSERT_TRUE(local_plugin2 && local_plugin2->plugin()); + + stale_plugins_keys = staleLocalPluginsKeysForTesting(); + EXPECT_TRUE(stale_plugins_keys.empty()); + + // Trigger deletion of the thread-local WasmVM cloned from base_wasm_handle1 by freeing objects + // referencing it. + local_plugin2.reset(); + + auto stale_wasms_keys = staleLocalWasmsKeysForTesting(); + EXPECT_EQ(1, stale_wasms_keys.size()); + + // Create another base WASM handle and invoke WASM thread-local cache key cleanup. + auto base_wasm_handle2 = + createWasm("vm_2", source, plugin2, wasm_handle_factory, wasm_handle_clone_factory, false); + ASSERT_TRUE(base_wasm_handle2 && base_wasm_handle2->wasm()); + + auto local_plugin3 = getOrCreateThreadLocalPlugin( + base_wasm_handle2, plugin2, wasm_handle_clone_factory, plugin_handle_factory); + ASSERT_TRUE(local_plugin3 && local_plugin3->plugin()); + + stale_wasms_keys = staleLocalWasmsKeysForTesting(); + EXPECT_TRUE(stale_wasms_keys.empty()); +} + } // namespace proxy_wasm From e200fee8af40918c41f3275cff090993e3b26940 Mon Sep 17 00:00:00 2001 From: Ivan Prisyazhnyy Date: Tue, 19 Dec 2023 16:26:47 +0100 Subject: [PATCH 250/287] fix a few missing includes and ::proxy_wasm namespace pollution with std {} (#365) * include: add missing dependencies Signed-off-by: Ivan Prisyazhnyy * fix: proxy_wasm namespace polution with std defs fixes: In file included from external/proxy_wasm_cpp_host/src/null/null.cc:17: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/null_vm.h:22: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/null_vm_plugin.h:18: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/wasm_vm.h:26: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/word.h:22: external/proxy_wasm_cpp_sdk/proxy_wasm_common.h:59:8: error: no type named 'string' in namespace 'proxy_wasm::std'; did you mean '::std::string'? inline std::string toString(WasmResult r) { ^~~~~~~~~~~ ::std::string The headers from https://github.com/proxy-wasm/proxy-wasm-cpp-sdk include C++ headers that pollute the current namespace with a partial definition of std{} namespace that then interferes with the names resolution inside of proxy_wasm as well as duplicates ::std defs. Signed-off-by: Ivan Prisyazhnyy * include: add missing includes to pairs_util and the test Signed-off-by: Ivan Prisyazhnyy * sdk.h/change: drop one redundant namespace hierarchy level to have +using WasmResult = internal::WasmResult; instead of -using WasmResult = internal::proxy_wasm::WasmResult; the patchset fixes: In file included from external/proxy_wasm_cpp_host/src/null/null.cc:17: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/null_vm.h:22: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/null_vm_plugin.h:18: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/wasm_vm.h:26: In file included from external/proxy_wasm_cpp_host/include/proxy-wasm/word.h:22: external/proxy_wasm_cpp_sdk/proxy_wasm_common.h:59:8: error: no type named 'string' in namespace 'proxy_wasm::std'; did you mean '::std::string'? inline std::string toString(WasmResult r) { ^~~~~~~~~~~ ::std::string The headers from https://github.com/proxy-wasm/proxy-wasm-cpp-sdk include C++ headers that pollute the current namespace with a partial definition of std{} namespace that then interferes with the names resolution inside of proxy_wasm as well as duplicates ::std defs. Signed-off-by: Ivan Prisyazhnyy --------- Signed-off-by: Ivan Prisyazhnyy --- BUILD | 1 + include/proxy-wasm/context.h | 4 +-- include/proxy-wasm/context_interface.h | 5 ++- include/proxy-wasm/pairs_util.h | 1 + include/proxy-wasm/sdk.h | 50 ++++++++++++++++++++++++++ include/proxy-wasm/vm_id_handle.h | 4 ++- include/proxy-wasm/wasm.h | 3 +- include/proxy-wasm/wasm_api_impl.h | 4 +-- include/proxy-wasm/wasm_vm.h | 4 +-- include/proxy-wasm/word.h | 4 +-- test/fuzz/pairs_util_fuzzer.cc | 1 + 11 files changed, 65 insertions(+), 16 deletions(-) create mode 100644 include/proxy-wasm/sdk.h diff --git a/BUILD b/BUILD index 8b3301990..66c3371d6 100644 --- a/BUILD +++ b/BUILD @@ -38,6 +38,7 @@ cc_library( name = "wasm_vm_headers", hdrs = [ "include/proxy-wasm/limits.h", + "include/proxy-wasm/sdk.h", "include/proxy-wasm/wasm_vm.h", "include/proxy-wasm/word.h", ], diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index ab99cad70..12937041f 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -26,13 +26,11 @@ #include #include +#include "include/proxy-wasm/sdk.h" #include "include/proxy-wasm/context_interface.h" namespace proxy_wasm { -#include "proxy_wasm_common.h" -#include "proxy_wasm_enums.h" - class PluginHandleBase; class WasmBase; class WasmVm; diff --git a/include/proxy-wasm/context_interface.h b/include/proxy-wasm/context_interface.h index 81973eed2..48fce76d9 100644 --- a/include/proxy-wasm/context_interface.h +++ b/include/proxy-wasm/context_interface.h @@ -25,10 +25,9 @@ #include #include -namespace proxy_wasm { +#include "include/proxy-wasm/sdk.h" -#include "proxy_wasm_common.h" -#include "proxy_wasm_enums.h" +namespace proxy_wasm { using Pairs = std::vector>; using PairsWithStringValues = std::vector>; diff --git a/include/proxy-wasm/pairs_util.h b/include/proxy-wasm/pairs_util.h index 54df2fd88..019c970ba 100644 --- a/include/proxy-wasm/pairs_util.h +++ b/include/proxy-wasm/pairs_util.h @@ -15,6 +15,7 @@ #pragma once +#include #include #include #include diff --git a/include/proxy-wasm/sdk.h b/include/proxy-wasm/sdk.h new file mode 100644 index 000000000..105854373 --- /dev/null +++ b/include/proxy-wasm/sdk.h @@ -0,0 +1,50 @@ +// Copyright 2016-2019 Envoy Project Authors +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#pragma once + +#include +#include + +namespace proxy_wasm { + +namespace internal { + +// isolate those includes to prevent ::proxy_wasm namespace pollution with std +// namespace definitions. +#include "proxy_wasm_common.h" +#include "proxy_wasm_enums.h" + +} // namespace internal + +// proxy_wasm_common.h +using WasmResult = internal::WasmResult; +using WasmHeaderMapType = internal::WasmHeaderMapType; +using WasmBufferType = internal::WasmBufferType; +using WasmBufferFlags = internal::WasmBufferFlags; +using WasmStreamType = internal::WasmStreamType; + +// proxy_wasm_enums.h +using LogLevel = internal::LogLevel; +using FilterStatus = internal::FilterStatus; +using FilterHeadersStatus = internal::FilterHeadersStatus; +using FilterMetadataStatus = internal::FilterMetadataStatus; +using FilterTrailersStatus = internal::FilterTrailersStatus; +using FilterDataStatus = internal::FilterDataStatus; +using GrpcStatus = internal::GrpcStatus; +using MetricType = internal::MetricType; +using CloseType = internal::CloseType; + +} // namespace proxy_wasm diff --git a/include/proxy-wasm/vm_id_handle.h b/include/proxy-wasm/vm_id_handle.h index 547eca229..16ebb4bf0 100644 --- a/include/proxy-wasm/vm_id_handle.h +++ b/include/proxy-wasm/vm_id_handle.h @@ -15,8 +15,10 @@ #pragma once #include -#include #include +#include +#include +#include #include namespace proxy_wasm { diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 1a785a8f9..9fa2bda1f 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -24,6 +24,7 @@ #include #include +#include "include/proxy-wasm/sdk.h" #include "include/proxy-wasm/context.h" #include "include/proxy-wasm/exports.h" #include "include/proxy-wasm/wasm_vm.h" @@ -31,8 +32,6 @@ namespace proxy_wasm { -#include "proxy_wasm_common.h" - class ContextBase; class WasmHandleBase; diff --git a/include/proxy-wasm/wasm_api_impl.h b/include/proxy-wasm/wasm_api_impl.h index 8bd9626ff..899af7e41 100644 --- a/include/proxy-wasm/wasm_api_impl.h +++ b/include/proxy-wasm/wasm_api_impl.h @@ -30,15 +30,13 @@ #include #include +#include "include/proxy-wasm/sdk.h" #include "include/proxy-wasm/exports.h" #include "include/proxy-wasm/word.h" namespace proxy_wasm { namespace null_plugin { -#include "proxy_wasm_enums.h" -#include "proxy_wasm_common.h" - #define WS(_x) Word(static_cast(_x)) #define WR(_x) Word(reinterpret_cast(_x)) diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index acf0ccf3b..a573212e0 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -19,16 +19,16 @@ #include #include #include +#include #include #include #include +#include "include/proxy-wasm/sdk.h" #include "include/proxy-wasm/word.h" namespace proxy_wasm { -#include "proxy_wasm_enums.h" - class ContextBase; // These are templates and its helper for constructing signatures of functions calling into Wasm diff --git a/include/proxy-wasm/word.h b/include/proxy-wasm/word.h index 90ea932df..bc0d23a8c 100644 --- a/include/proxy-wasm/word.h +++ b/include/proxy-wasm/word.h @@ -17,9 +17,9 @@ #include -namespace proxy_wasm { +#include "include/proxy-wasm/sdk.h" -#include "proxy_wasm_common.h" +namespace proxy_wasm { // Use byteswap functions only when compiling for big-endian platforms. #if defined(__BYTE_ORDER__) && defined(__ORDER_BIG_ENDIAN__) && \ diff --git a/test/fuzz/pairs_util_fuzzer.cc b/test/fuzz/pairs_util_fuzzer.cc index aaef0d099..84e7ca0f1 100644 --- a/test/fuzz/pairs_util_fuzzer.cc +++ b/test/fuzz/pairs_util_fuzzer.cc @@ -14,6 +14,7 @@ #include "include/proxy-wasm/pairs_util.h" +#include #include namespace proxy_wasm { From 9be9637b5d595483ddba218eb09879818a5e0ffc Mon Sep 17 00:00:00 2001 From: martijneken Date: Mon, 29 Jan 2024 00:01:36 -0500 Subject: [PATCH 251/287] Merge v8 patch from envoyproxy/envoy/pull/29425 (#383) This is a temporary build fix until pr#382 lands. Signed-off-by: Martijn Stevenson --- bazel/external/v8_include.patch | 41 +++++++++++++++++++++++++++++++++ bazel/repositories.bzl | 5 +++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 bazel/external/v8_include.patch diff --git a/bazel/external/v8_include.patch b/bazel/external/v8_include.patch new file mode 100644 index 000000000..0d0fe210c --- /dev/null +++ b/bazel/external/v8_include.patch @@ -0,0 +1,41 @@ +# fix include types for late clang (15.0.7) / gcc (13.2.1) +# for Arch linux / Fedora, like in +# In file included from external/v8/src/torque/torque.cc:5: +# In file included from external/v8/src/torque/source-positions.h:10: +# In file included from external/v8/src/torque/contextual.h:10: +# In file included from external/v8/src/base/macros.h:12: +# external/v8/src/base/logging.h:154:26: error: use of undeclared identifier 'uint16_t' + +diff --git a/src/base/logging.h b/src/base/logging.h +--- a/src/base/logging.h ++++ b/src/base/logging.h +@@ -5,6 +5,7 @@ + #ifndef V8_BASE_LOGGING_H_ + #define V8_BASE_LOGGING_H_ + ++#include + #include + #include + #include +diff --git a/src/base/macros.h b/src/base/macros.h +--- a/src/base/macros.h ++++ b/src/base/macros.h +@@ -5,6 +5,7 @@ + #ifndef V8_BASE_MACROS_H_ + #define V8_BASE_MACROS_H_ + ++#include + #include + #include + +diff --git a/src/inspector/v8-string-conversions.h b/src/inspector/v8-string-conversions.h +--- a/src/inspector/v8-string-conversions.h ++++ b/src/inspector/v8-string-conversions.h +@@ -5,6 +5,7 @@ + #ifndef V8_INSPECTOR_V8_STRING_CONVERSIONS_H_ + #define V8_INSPECTOR_V8_STRING_CONVERSIONS_H_ + ++#include + #include + + // Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 57d12a2d3..89b0900e5 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -130,7 +130,10 @@ def proxy_wasm_cpp_host_repositories(): commit = "6c8b357a84847a479cd329478522feefc1c3195a", remote = "https://chromium.googlesource.com/v8/v8", shallow_since = "1664374400 +0000", - patches = ["@proxy_wasm_cpp_host//bazel/external:v8.patch"], + patches = [ + "@proxy_wasm_cpp_host//bazel/external:v8.patch", + "@proxy_wasm_cpp_host//bazel/external:v8_include.patch", + ], patch_args = ["-p1"], ) From 284cd0ba952e0e0cf60f250c7e732a797afbbe4d Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Fri, 26 Apr 2024 19:28:11 -0400 Subject: [PATCH 252/287] Add @martijneken and @mpwarres to CODEOWNERS (#392) Signed-off-by: Michael Warres --- CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CODEOWNERS b/CODEOWNERS index f1f3bca02..ea6e586c2 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1,3 @@ * @PiotrSikora +* @martijneken +* @mpwarres From 7e00fee18c44aabc490a45a9b72d230643c0de34 Mon Sep 17 00:00:00 2001 From: martijneken Date: Mon, 29 Apr 2024 11:22:53 -0400 Subject: [PATCH 253/287] fix: CODEOWNERS format (#395) Signed-off-by: Martijn Stevenson --- CODEOWNERS | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index ea6e586c2..e0a504f38 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,3 +1 @@ -* @PiotrSikora -* @martijneken -* @mpwarres +* @PiotrSikora @martijneken @mpwarres From 265e9d8fbb687185092d4106eb745aaf9c5be110 Mon Sep 17 00:00:00 2001 From: martijneken Date: Mon, 29 Apr 2024 12:50:06 -0400 Subject: [PATCH 254/287] fix: buildifier complaint (#394) Signed-off-by: Martijn Stevenson --- BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD b/BUILD index 66c3371d6..215459eb2 100644 --- a/BUILD +++ b/BUILD @@ -12,7 +12,6 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@rules_cc//cc:defs.bzl", "cc_library") load( "@proxy_wasm_cpp_host//bazel:select.bzl", "proxy_wasm_select_engine_null", @@ -22,6 +21,7 @@ load( "proxy_wasm_select_engine_wasmtime", "proxy_wasm_select_engine_wavm", ) +load("@rules_cc//cc:defs.bzl", "cc_library") licenses(["notice"]) # Apache 2 From 04dfb94747e6462b65f7ed694e2d9c78ab207e11 Mon Sep 17 00:00:00 2001 From: martijneken Date: Mon, 29 Apr 2024 14:06:16 -0400 Subject: [PATCH 255/287] Update BoringSSL to 2023-08-28. (#391) * fix: Update boringssl to match Envoy (2022-02-07 -> 2023-08-28) Fixes build warning-as-error: ``` external/boringssl/src/crypto/x509/t_x509.c:326:18: error: variable 'l' set but not used [-Werror,-Wunused-but-set-variable] int ret = 0, l, i; ^ ``` Signed-off-by: Martijn Stevenson --- bazel/repositories.bzl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 89b0900e5..60a48548c 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -87,10 +87,10 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "boringssl", - # 2022-02-07 (master-with-bazel) - sha256 = "7dec97795a7ac7e3832228e4440ee06cceb18d3663f4580b0840e685281e28a0", - strip_prefix = "boringssl-eaa29f431f71b8121e1da76bcd3ddc2248238ade", - urls = ["https://github.com/google/boringssl/archive/eaa29f431f71b8121e1da76bcd3ddc2248238ade.tar.gz"], + # 2023-08-28 (master-with-bazel) + sha256 = "f1f421738e9ba39dd88daf8cf3096ddba9c53e2b6b41b32fff5a3ff82f4cd162", + strip_prefix = "boringssl-45cf810dbdbd767f09f8cb0b0fcccd342c39041f", + urls = ["https://github.com/google/boringssl/archive/45cf810dbdbd767f09f8cb0b0fcccd342c39041f.tar.gz"], ) maybe( From 611d5d94bb10aa5c30174e700d9031a33ba09d55 Mon Sep 17 00:00:00 2001 From: martijneken Date: Fri, 7 Jun 2024 14:20:53 -0400 Subject: [PATCH 256/287] fix: CI branch name master -> main (#398) Signed-off-by: Martijn Stevenson --- .github/workflows/format.yml | 8 ++++---- .github/workflows/test.yml | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index a09aa7a64..0d7003e95 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -18,13 +18,13 @@ on: pull_request: branches: - - master + - main - 'envoy-release/**' - 'istio-release/**' push: branches: - - master + - main - 'envoy-release/**' - 'istio-release/**' @@ -145,11 +145,11 @@ jobs: //... - name: Skip Bazel cache update - if: ${{ github.ref != 'refs/heads/master' }} + if: ${{ github.ref != 'refs/heads/main' }} run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV - name: Cleanup Bazel cache - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/main' }} run: | export OUTPUT=$(${{ matrix.run_under }} bazel info output_base) echo "===== BEFORE =====" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5d311c819..74e56f021 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,13 +18,13 @@ on: pull_request: branches: - - master + - main - 'envoy-release/**' - 'istio-release/**' push: branches: - - master + - main - 'envoy-release/**' - 'istio-release/**' @@ -83,11 +83,11 @@ jobs: retention-days: 3 - name: Skip Bazel cache update - if: ${{ github.ref != 'refs/heads/master' }} + if: ${{ github.ref != 'refs/heads/main' }} run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV - name: Cleanup Bazel cache - if: ${{ github.ref == 'refs/heads/master' }} + if: ${{ github.ref == 'refs/heads/main' }} run: | export OUTPUT=$(bazel info output_base) # Distfiles for Rust toolchains (350 MiB). @@ -341,11 +341,11 @@ jobs: //test:signature_util_test - name: Skip Bazel cache update - if: ${{ matrix.cache && github.ref != 'refs/heads/master' }} + if: ${{ matrix.cache && github.ref != 'refs/heads/main' }} run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV - name: Cleanup Bazel cache - if: ${{ matrix.cache && github.ref == 'refs/heads/master' }} + if: ${{ matrix.cache && github.ref == 'refs/heads/main' }} run: | export OUTPUT=$(${{ matrix.run_under }} bazel info output_base) echo "===== BEFORE =====" From b013a0dbabcd742c8d10f50825d8561a8e06c383 Mon Sep 17 00:00:00 2001 From: martijneken Date: Thu, 1 Aug 2024 12:16:39 -0400 Subject: [PATCH 257/287] fix: Bump Abseil to fix Linux build issues (#400) Bump Abseil to fix Linux build issues Pick up this fix: https://github.com/abseil/abseil-cpp/pull/1187 Bump past Envoy to pick up another fix found in fuzz tests: https://github.com/proxy-wasm/proxy-wasm-cpp-host/pull/399#issuecomment-2261871275 Signed-off-by: Martijn Stevenson --- bazel/repositories.bzl | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 60a48548c..12a375595 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -82,7 +82,21 @@ def proxy_wasm_cpp_host_repositories(): patch_args = ["-p1"], ) - # Core. + # Core deps. Keep them updated. + + # Note: we depend on Abseil via rules_fuzzing. Remove this pin when we update that. + # + # This is the latest LTS release, which picks up: + # - Build fix: https://github.com/abseil/abseil-cpp/pull/1187 + # - A bugfix found in local fuzzing: + # https://github.com/abseil/abseil-cpp/commit/e7858c73279d81cbc005d9c76a385ab535520635 + maybe( + http_archive, + name = "com_google_absl", + sha256 = "733726b8c3a6d39a4120d7e45ea8b41a434cdacde401cba500f14236c49b39dc", + strip_prefix = "abseil-cpp-20240116.2", + urls = ["https://github.com/abseil/abseil-cpp/archive/20240116.2.tar.gz"], + ) maybe( http_archive, From 330c459d0b1c721efd00a425cd4a2fb0b2c723fb Mon Sep 17 00:00:00 2001 From: martijneken Date: Thu, 1 Aug 2024 12:19:18 -0400 Subject: [PATCH 258/287] fix: Update cargo-raze -> crate_universe (#399) - Updated platforms for crate_universe compatibility - Supports upgrade to wasmsign2 - Includes workaround for Windows path length issue Signed-off-by: Martijn Stevenson --- .github/workflows/format.yml | 22 +- bazel/cargo/wasmsign/BUILD.bazel | 63 +- .../{Cargo.raze.lock => Cargo.Bazel.lock} | 75 +- bazel/cargo/wasmsign/Cargo.toml | 12 +- bazel/cargo/wasmsign/crates.bzl | 291 --- .../remote/BUILD.ansi_term-0.12.1.bazel | 88 +- .../wasmsign/remote/BUILD.anyhow-1.0.53.bazel | 116 -- .../wasmsign/remote/BUILD.anyhow-1.0.86.bazel | 89 + .../wasmsign/remote/BUILD.atty-0.2.14.bazel | 168 +- bazel/cargo/wasmsign/remote/BUILD.bazel | 39 + .../remote/BUILD.bitflags-1.3.2.bazel | 67 +- .../remote/BUILD.byteorder-1.4.3.bazel | 58 - .../remote/BUILD.byteorder-1.5.0.bazel | 45 + .../wasmsign/remote/BUILD.cfg-if-1.0.0.bazel | 67 +- .../wasmsign/remote/BUILD.clap-2.34.0.bazel | 182 +- .../remote/BUILD.ct-codecs-1.1.1.bazel | 45 + .../remote/BUILD.ed25519-compact-1.0.16.bazel | 54 + .../remote/BUILD.ed25519-compact-1.0.8.bazel | 59 - .../remote/BUILD.getrandom-0.2.15.bazel | 112 ++ .../remote/BUILD.getrandom-0.2.4.bazel | 96 - .../remote/BUILD.hermit-abi-0.1.19.bazel | 66 +- .../remote/BUILD.hmac-sha512-1.1.1.bazel | 56 - .../remote/BUILD.hmac-sha512-1.1.5.bazel | 45 + .../wasmsign/remote/BUILD.libc-0.2.114.bazel | 86 - .../wasmsign/remote/BUILD.libc-0.2.155.bazel | 81 + .../remote/BUILD.parity-wasm-0.42.2.bazel | 79 +- .../remote/BUILD.proc-macro2-1.0.36.bazel | 99 - .../remote/BUILD.proc-macro2-1.0.86.bazel | 90 + .../wasmsign/remote/BUILD.quote-1.0.15.bazel | 61 - .../wasmsign/remote/BUILD.quote-1.0.36.bazel | 48 + .../wasmsign/remote/BUILD.strsim-0.8.0.bazel | 69 +- .../wasmsign/remote/BUILD.syn-1.0.86.bazel | 159 -- .../wasmsign/remote/BUILD.syn-2.0.72.bazel | 54 + .../remote/BUILD.textwrap-0.11.0.bazel | 73 +- .../remote/BUILD.thiserror-1.0.30.bazel | 81 - .../remote/BUILD.thiserror-1.0.63.bazel | 84 + .../remote/BUILD.thiserror-impl-1.0.30.bazel | 57 - .../remote/BUILD.thiserror-impl-1.0.63.bazel | 46 + .../remote/BUILD.unicode-ident-1.0.12.bazel | 41 + .../remote/BUILD.unicode-width-0.1.13.bazel | 44 + .../remote/BUILD.unicode-width-0.1.9.bazel | 55 - .../remote/BUILD.unicode-xid-0.2.2.bazel | 59 - .../wasmsign/remote/BUILD.vec_map-0.8.2.bazel | 65 +- ...D.wasi-0.10.2+wasi-snapshot-preview1.bazel | 56 - ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 41 + .../remote/BUILD.wasmsign-0.1.2.bazel | 121 +- .../wasmsign/remote/BUILD.winapi-0.3.9.bazel | 111 +- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 115 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 115 +- bazel/cargo/wasmsign/remote/crates.bzl | 25 + bazel/cargo/wasmsign/remote/defs.bzl | 663 +++++++ bazel/cargo/wasmtime/BUILD.bazel | 91 +- .../{Cargo.raze.lock => Cargo.Bazel.lock} | 517 ++--- bazel/cargo/wasmtime/Cargo.toml | 27 - bazel/cargo/wasmtime/bumpalo.patch | 9 - bazel/cargo/wasmtime/cranelift-isle.patch | 9 - bazel/cargo/wasmtime/crates.bzl | 1183 ------------ .../remote/BUILD.addr2line-0.19.0.bazel | 73 +- .../wasmtime/remote/BUILD.ahash-0.8.11.bazel | 181 ++ .../wasmtime/remote/BUILD.ahash-0.8.3.bazel | 151 -- .../remote/BUILD.aho-corasick-1.0.1.bazel | 58 - .../remote/BUILD.aho-corasick-1.1.3.bazel | 48 + .../wasmtime/remote/BUILD.anyhow-1.0.71.bazel | 116 -- .../wasmtime/remote/BUILD.anyhow-1.0.86.bazel | 89 + .../remote/BUILD.arbitrary-1.3.0.bazel | 62 - .../remote/BUILD.arbitrary-1.3.2.bazel | 41 + .../wasmtime/remote/BUILD.autocfg-1.1.0.bazel | 64 - .../wasmtime/remote/BUILD.autocfg-1.3.0.bazel | 41 + bazel/cargo/wasmtime/remote/BUILD.bazel | 56 + .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 67 +- .../remote/BUILD.bitflags-1.3.2.bazel | 67 +- .../remote/BUILD.bitflags-2.3.1.bazel | 66 - .../remote/BUILD.bitflags-2.6.0.bazel | 44 + .../remote/BUILD.bumpalo-3.13.0.bazel | 59 - .../remote/BUILD.bumpalo-3.16.0.bazel | 44 + .../remote/BUILD.byteorder-1.4.3.bazel | 58 - .../remote/BUILD.byteorder-1.5.0.bazel | 45 + .../wasmtime/remote/BUILD.cc-1.0.79.bazel | 87 - .../wasmtime/remote/BUILD.cc-1.1.6.bazel | 41 + .../wasmtime/remote/BUILD.cfg-if-1.0.0.bazel | 67 +- .../remote/BUILD.cpp_demangle-0.3.5.bazel | 142 +- .../BUILD.cranelift-bforest-0.96.3.bazel | 55 - .../BUILD.cranelift-bforest-0.96.4.bazel | 44 + .../BUILD.cranelift-codegen-0.96.3.bazel | 109 -- .../BUILD.cranelift-codegen-0.96.4.bazel | 108 ++ .../BUILD.cranelift-codegen-meta-0.96.3.bazel | 55 - .../BUILD.cranelift-codegen-meta-0.96.4.bazel | 44 + ...UILD.cranelift-codegen-shared-0.96.3.bazel | 54 - ...UILD.cranelift-codegen-shared-0.96.4.bazel | 41 + .../BUILD.cranelift-control-0.96.3.bazel | 55 - .../BUILD.cranelift-control-0.96.4.bazel | 44 + .../BUILD.cranelift-entity-0.96.3.bazel | 57 - .../BUILD.cranelift-entity-0.96.4.bazel | 48 + .../BUILD.cranelift-frontend-0.96.3.bazel | 60 - .../BUILD.cranelift-frontend-0.96.4.bazel | 51 + .../remote/BUILD.cranelift-isle-0.96.3.bazel | 88 - .../remote/BUILD.cranelift-isle-0.96.4.bazel | 87 + .../BUILD.cranelift-native-0.96.3.bazel | 68 - .../BUILD.cranelift-native-0.96.4.bazel | 57 + .../remote/BUILD.cranelift-wasm-0.96.3.bazel | 66 - .../remote/BUILD.cranelift-wasm-0.96.4.bazel | 55 + .../remote/BUILD.crc32fast-1.3.2.bazel | 89 - .../remote/BUILD.crc32fast-1.4.2.bazel | 47 + .../wasmtime/remote/BUILD.debugid-0.8.0.bazel | 71 +- .../wasmtime/remote/BUILD.either-1.13.0.bazel | 44 + .../wasmtime/remote/BUILD.either-1.8.1.bazel | 55 - .../remote/BUILD.env_logger-0.10.0.bazel | 88 - .../remote/BUILD.env_logger-0.10.2.bazel | 55 + .../wasmtime/remote/BUILD.errno-0.3.1.bazel | 88 - .../wasmtime/remote/BUILD.errno-0.3.9.bazel | 122 ++ .../remote/BUILD.errno-dragonfly-0.1.2.bazel | 86 - .../BUILD.fallible-iterator-0.2.0.bazel | 63 +- .../remote/BUILD.form_urlencoded-1.1.0.bazel | 55 - .../remote/BUILD.form_urlencoded-1.2.1.bazel | 49 + .../wasmtime/remote/BUILD.fxhash-0.2.1.bazel | 67 +- ...BUILD.fxprof-processed-profile-0.6.0.bazel | 75 +- .../remote/BUILD.getrandom-0.2.15.bazel | 115 ++ .../remote/BUILD.getrandom-0.2.9.bazel | 97 - .../wasmtime/remote/BUILD.gimli-0.27.2.bazel | 78 - .../wasmtime/remote/BUILD.gimli-0.27.3.bazel | 55 + .../remote/BUILD.hashbrown-0.12.3.bazel | 75 +- .../remote/BUILD.hashbrown-0.13.2.bazel | 79 +- .../remote/BUILD.hermit-abi-0.3.1.bazel | 55 - .../remote/BUILD.hermit-abi-0.3.9.bazel | 41 + .../remote/BUILD.humantime-2.1.0.bazel | 69 +- .../wasmtime/remote/BUILD.idna-0.3.0.bazel | 62 - .../wasmtime/remote/BUILD.idna-0.5.0.bazel | 50 + .../remote/BUILD.indexmap-1.9.3.bazel | 125 +- .../remote/BUILD.io-lifetimes-1.0.11.bazel | 271 +-- .../remote/BUILD.is-terminal-0.4.12.bazel | 119 ++ .../remote/BUILD.is-terminal-0.4.7.bazel | 90 - .../remote/BUILD.itertools-0.10.5.bazel | 103 +- .../wasmtime/remote/BUILD.itoa-1.0.11.bazel | 41 + .../wasmtime/remote/BUILD.itoa-1.0.6.bazel | 58 - .../wasmtime/remote/BUILD.libc-0.2.144.bazel | 92 - .../wasmtime/remote/BUILD.libc-0.2.155.bazel | 91 + .../remote/BUILD.linux-raw-sys-0.3.8.bazel | 63 +- .../remote/BUILD.linux-raw-sys-0.4.14.bazel | 48 + .../wasmtime/remote/BUILD.log-0.4.18.bazel | 92 - .../wasmtime/remote/BUILD.log-0.4.22.bazel | 44 + .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 94 +- .../wasmtime/remote/BUILD.memchr-2.5.0.bazel | 88 - .../wasmtime/remote/BUILD.memchr-2.7.4.bazel | 45 + .../wasmtime/remote/BUILD.memfd-0.6.3.bazel | 61 - .../wasmtime/remote/BUILD.memfd-0.6.4.bazel | 44 + .../remote/BUILD.memoffset-0.8.0.bazel | 111 +- .../wasmtime/remote/BUILD.object-0.30.3.bazel | 74 - .../wasmtime/remote/BUILD.object-0.30.4.bazel | 61 + .../remote/BUILD.once_cell-1.17.2.bazel | 75 - .../remote/BUILD.once_cell-1.19.0.bazel | 47 + .../wasmtime/remote/BUILD.paste-1.0.12.bazel | 94 - .../wasmtime/remote/BUILD.paste-1.0.15.bazel | 81 + .../remote/BUILD.percent-encoding-2.2.0.bazel | 56 - .../remote/BUILD.percent-encoding-2.3.1.bazel | 46 + .../remote/BUILD.ppv-lite86-0.2.17.bazel | 63 +- .../remote/BUILD.proc-macro2-1.0.59.bazel | 101 - .../remote/BUILD.proc-macro2-1.0.86.bazel | 90 + .../wasmtime/remote/BUILD.psm-0.1.21.bazel | 129 +- .../wasmtime/remote/BUILD.quote-1.0.28.bazel | 93 - .../wasmtime/remote/BUILD.quote-1.0.36.bazel | 48 + .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 151 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 65 +- .../remote/BUILD.rand_core-0.6.4.bazel | 63 +- .../remote/BUILD.regalloc2-0.8.1.bazel | 71 +- .../wasmtime/remote/BUILD.regex-1.10.5.bazel | 57 + .../wasmtime/remote/BUILD.regex-1.8.3.bazel | 95 - .../remote/BUILD.regex-automata-0.4.7.bazel | 61 + .../remote/BUILD.regex-syntax-0.7.2.bazel | 56 - .../remote/BUILD.regex-syntax-0.8.4.bazel | 44 + .../remote/BUILD.rustc-demangle-0.1.23.bazel | 54 - .../remote/BUILD.rustc-demangle-0.1.24.bazel | 41 + .../remote/BUILD.rustc-hash-1.1.0.bazel | 65 +- .../remote/BUILD.rustix-0.37.19.bazel | 232 --- .../remote/BUILD.rustix-0.37.27.bazel | 312 +++ .../remote/BUILD.rustix-0.38.34.bazel | 326 ++++ .../wasmtime/remote/BUILD.ryu-1.0.13.bazel | 72 - .../wasmtime/remote/BUILD.ryu-1.0.18.bazel | 41 + .../wasmtime/remote/BUILD.serde-1.0.163.bazel | 95 - .../wasmtime/remote/BUILD.serde-1.0.204.bazel | 96 + .../remote/BUILD.serde_derive-1.0.163.bazel | 58 - .../remote/BUILD.serde_derive-1.0.204.bazel | 49 + .../remote/BUILD.serde_json-1.0.120.bazel | 92 + .../remote/BUILD.serde_json-1.0.96.bazel | 105 -- .../remote/BUILD.slice-group-by-0.3.1.bazel | 65 +- .../remote/BUILD.smallvec-1.10.0.bazel | 61 - .../remote/BUILD.smallvec-1.13.2.bazel | 44 + .../BUILD.stable_deref_trait-1.2.0.bazel | 63 +- .../wasmtime/remote/BUILD.syn-2.0.18.bazel | 122 -- .../wasmtime/remote/BUILD.syn-2.0.72.bazel | 54 + .../remote/BUILD.target-lexicon-0.12.15.bazel | 87 + .../remote/BUILD.target-lexicon-0.12.7.bazel | 90 - .../remote/BUILD.termcolor-1.2.0.bazel | 65 - .../remote/BUILD.termcolor-1.4.1.bazel | 53 + .../remote/BUILD.thiserror-1.0.40.bazel | 113 -- .../remote/BUILD.thiserror-1.0.63.bazel | 84 + .../remote/BUILD.thiserror-impl-1.0.40.bazel | 57 - .../remote/BUILD.thiserror-impl-1.0.63.bazel | 46 + .../wasmtime/remote/BUILD.tinyvec-1.6.0.bazel | 66 - .../wasmtime/remote/BUILD.tinyvec-1.8.0.bazel | 49 + .../remote/BUILD.tinyvec_macros-0.1.1.bazel | 65 +- .../remote/BUILD.unicode-bidi-0.3.13.bazel | 59 - .../remote/BUILD.unicode-bidi-0.3.15.bazel | 45 + .../remote/BUILD.unicode-ident-1.0.12.bazel | 41 + .../remote/BUILD.unicode-ident-1.0.9.bazel | 60 - .../BUILD.unicode-normalization-0.1.22.bazel | 59 - .../BUILD.unicode-normalization-0.1.23.bazel | 47 + .../wasmtime/remote/BUILD.url-2.3.1.bazel | 66 - .../wasmtime/remote/BUILD.url-2.5.2.bazel | 49 + .../wasmtime/remote/BUILD.uuid-1.10.0.bazel | 45 + .../wasmtime/remote/BUILD.uuid-1.3.3.bazel | 72 - .../remote/BUILD.version_check-0.9.4.bazel | 54 - .../remote/BUILD.version_check-0.9.5.bazel | 41 + ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 65 +- .../remote/BUILD.wasmparser-0.103.0.bazel | 73 +- .../remote/BUILD.wasmtime-9.0.3.bazel | 128 -- .../remote/BUILD.wasmtime-9.0.4.bazel | 120 ++ .../BUILD.wasmtime-asm-macros-9.0.3.bazel | 55 - .../BUILD.wasmtime-asm-macros-9.0.4.bazel | 44 + .../BUILD.wasmtime-c-api-macros-0.0.0.bazel | 67 +- .../BUILD.wasmtime-cranelift-9.0.3.bazel | 69 - .../BUILD.wasmtime-cranelift-9.0.4.bazel | 58 + ...UILD.wasmtime-cranelift-shared-9.0.3.bazel | 62 - ...UILD.wasmtime-cranelift-shared-9.0.4.bazel | 51 + .../remote/BUILD.wasmtime-environ-9.0.3.bazel | 67 - .../remote/BUILD.wasmtime-environ-9.0.4.bazel | 54 + .../remote/BUILD.wasmtime-jit-9.0.3.bazel | 79 - .../remote/BUILD.wasmtime-jit-9.0.4.bazel | 68 + .../BUILD.wasmtime-jit-debug-9.0.3.bazel | 57 - .../BUILD.wasmtime-jit-debug-9.0.4.bazel | 48 + ....wasmtime-jit-icache-coherence-9.0.3.bazel | 87 - ....wasmtime-jit-icache-coherence-9.0.4.bazel | 103 + .../remote/BUILD.wasmtime-runtime-9.0.3.bazel | 183 -- .../remote/BUILD.wasmtime-runtime-9.0.4.bazel | 175 ++ .../remote/BUILD.wasmtime-types-9.0.3.bazel | 58 - .../remote/BUILD.wasmtime-types-9.0.4.bazel | 47 + .../wasmtime/remote/BUILD.winapi-0.3.9.bazel | 104 - ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 84 - .../remote/BUILD.winapi-util-0.1.5.bazel | 65 - .../remote/BUILD.winapi-util-0.1.8.bazel | 53 + ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 84 - .../remote/BUILD.windows-sys-0.48.0.bazel | 64 +- .../remote/BUILD.windows-sys-0.52.0.bazel | 61 + .../remote/BUILD.windows-targets-0.48.0.bazel | 81 - .../remote/BUILD.windows-targets-0.48.5.bazel | 59 + .../remote/BUILD.windows-targets-0.52.6.bazel | 59 + ...BUILD.windows_aarch64_gnullvm-0.48.0.bazel | 84 - ...BUILD.windows_aarch64_gnullvm-0.48.5.bazel | 81 + ...BUILD.windows_aarch64_gnullvm-0.52.6.bazel | 81 + .../BUILD.windows_aarch64_msvc-0.48.0.bazel | 84 - .../BUILD.windows_aarch64_msvc-0.48.5.bazel | 81 + .../BUILD.windows_aarch64_msvc-0.52.6.bazel | 81 + .../BUILD.windows_i686_gnu-0.48.0.bazel | 84 - .../BUILD.windows_i686_gnu-0.48.5.bazel | 81 + .../BUILD.windows_i686_gnu-0.52.6.bazel | 81 + .../BUILD.windows_i686_gnullvm-0.52.6.bazel | 81 + .../BUILD.windows_i686_msvc-0.48.0.bazel | 84 - .../BUILD.windows_i686_msvc-0.48.5.bazel | 81 + .../BUILD.windows_i686_msvc-0.52.6.bazel | 81 + .../BUILD.windows_x86_64_gnu-0.48.0.bazel | 84 - .../BUILD.windows_x86_64_gnu-0.48.5.bazel | 81 + .../BUILD.windows_x86_64_gnu-0.52.6.bazel | 81 + .../BUILD.windows_x86_64_gnullvm-0.48.0.bazel | 84 - .../BUILD.windows_x86_64_gnullvm-0.48.5.bazel | 81 + .../BUILD.windows_x86_64_gnullvm-0.52.6.bazel | 81 + .../BUILD.windows_x86_64_msvc-0.48.0.bazel | 84 - .../BUILD.windows_x86_64_msvc-0.48.5.bazel | 81 + .../BUILD.windows_x86_64_msvc-0.52.6.bazel | 81 + .../remote/BUILD.zerocopy-0.7.35.bazel | 44 + .../remote/BUILD.zerocopy-derive-0.7.35.bazel | 46 + bazel/cargo/wasmtime/remote/crates.bzl | 25 + bazel/cargo/wasmtime/remote/defs.bzl | 1671 +++++++++++++++++ bazel/dependencies.bzl | 16 +- bazel/external/wasmtime.BUILD | 10 +- bazel/repositories.bzl | 11 + bazel/wasm.bzl | 2 +- 275 files changed, 12326 insertions(+), 11967 deletions(-) rename bazel/cargo/wasmsign/{Cargo.raze.lock => Cargo.Bazel.lock} (74%) delete mode 100644 bazel/cargo/wasmsign/crates.bzl delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.53.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.byteorder-1.4.3.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.1.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.36.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.quote-1.0.15.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.syn-1.0.86.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.30.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.30.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.9.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.unicode-xid-0.2.2.bazel delete mode 100644 bazel/cargo/wasmsign/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel create mode 100644 bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel create mode 100644 bazel/cargo/wasmsign/remote/crates.bzl create mode 100644 bazel/cargo/wasmsign/remote/defs.bzl rename bazel/cargo/wasmtime/{Cargo.raze.lock => Cargo.Bazel.lock} (62%) delete mode 100644 bazel/cargo/wasmtime/bumpalo.patch delete mode 100644 bazel/cargo/wasmtime/cranelift-isle.patch delete mode 100644 bazel/cargo/wasmtime/crates.bzl create mode 100644 bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.3.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.0.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.71.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.autocfg-1.1.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.13.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cc-1.0.79.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.either-1.8.1.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.errno-0.3.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.9.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.7.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.libc-0.2.144.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.log-0.4.18.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.memchr-2.5.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.object-0.30.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.paste-1.0.12.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.59.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.quote-1.0.28.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.regex-1.8.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.7.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.23.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.19.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde-1.0.163.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.syn-2.0.18.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.7.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.termcolor-1.2.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.40.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.13.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.9.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.3.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel create mode 100644 bazel/cargo/wasmtime/remote/crates.bzl create mode 100644 bazel/cargo/wasmtime/remote/defs.bzl diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 0d7003e95..de71b24cc 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -56,7 +56,7 @@ jobs: echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH" - name: Format (addlicense) - run: addlicense -check . + run: addlicense -ignore "bazel/cargo/*/remote/**" -check . buildifier: name: check format with buildifier @@ -78,29 +78,23 @@ jobs: - name: Format (buildifier) run: find . -name "WORKSPACE" -o -name "*BUILD*" -o -name "*.bzl" | xargs -n1 buildifier -mode=check - cargo_raze: - name: check format with cargo-raze + rules_rust: + name: check format with rules_rust runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Install dependencies - run: cargo install cargo-raze --version 0.14.1 - - name: Format (bazel query) run: | bazel query 'deps(//bazel/cargo/...)' - - name: Format (cargo raze) - working-directory: bazel/cargo + - name: Format (rules_rust) run: | - cd wasmsign && cargo raze && cd .. - cd wasmtime && cargo raze && cd .. - # Ignore manual changes in "errno" and "rustix" crates until fixed in cargo-raze. - # See: https://github.com/google/cargo-raze/issues/451 - git diff --exit-code -- ':!wasmtime/remote/BUILD.errno-0.*.bazel' ':!wasmtime/remote/BUILD.rustix-0.*.bazel' + bazel run //bazel/cargo/wasmsign:crates_vendor + bazel run //bazel/cargo/wasmtime:crates_vendor + git diff --exit-code clang_format: name: check format with clang-format @@ -134,7 +128,7 @@ jobs: with: path: | ~/.cache/bazel - key: clang_tidy-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl', 'bazel/cargo/wasmsign/crates.bzl') }} + key: clang_tidy-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl', 'bazel/cargo/wasmsign/remote/crates.bzl') }} - name: Bazel build run: > diff --git a/bazel/cargo/wasmsign/BUILD.bazel b/bazel/cargo/wasmsign/BUILD.bazel index 86c76b90b..ceb559374 100644 --- a/bazel/cargo/wasmsign/BUILD.bazel +++ b/bazel/cargo/wasmsign/BUILD.bazel @@ -1,39 +1,36 @@ -""" -@generated -cargo-raze generated Bazel file. +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//crate_universe:defs.bzl", "crates_vendor") -package(default_visibility = ["//visibility:public"]) - -licenses([ - "notice", # See individual crates for specific licenses -]) - -# Aliased targets -alias( - name = "cargo_bin_wasmsign", - actual = "@wasmsign__wasmsign__0_1_2//:cargo_bin_wasmsign", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "wasmsign", - actual = "@wasmsign__wasmsign__0_1_2//:wasmsign", - tags = [ - "cargo-raze", - "manual", - ], -) - -# Export file for Stardoc support exports_files( [ - "crates.bzl", + "Cargo.toml", + "Cargo.Bazel.lock", ], - visibility = ["//visibility:public"], +) + +# Run this target to regenerate cargo_lockfile and vendor_path/*. +# $ bazelisk run bazel/cargo/wasmsign:crates_vendor -- --repin +crates_vendor( + name = "crates_vendor", + cargo_lockfile = ":Cargo.Bazel.lock", + generate_binaries = True, + generate_target_compatible_with = False, + manifests = [":Cargo.toml"], + mode = "remote", + repository_name = "cu", # shorten generated paths for Windows... + tags = ["manual"], + vendor_path = "remote", ) diff --git a/bazel/cargo/wasmsign/Cargo.raze.lock b/bazel/cargo/wasmsign/Cargo.Bazel.lock similarity index 74% rename from bazel/cargo/wasmsign/Cargo.raze.lock rename to bazel/cargo/wasmsign/Cargo.Bazel.lock index 83bc73988..b9a45d0b5 100644 --- a/bazel/cargo/wasmsign/Cargo.raze.lock +++ b/bazel/cargo/wasmsign/Cargo.Bazel.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "ansi_term" version = "0.12.1" @@ -11,9 +13,9 @@ dependencies = [ [[package]] name = "anyhow" -version = "1.0.53" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "atty" @@ -34,9 +36,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "byteorder" -version = "1.4.3" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "cfg-if" @@ -59,20 +61,27 @@ dependencies = [ "vec_map", ] +[[package]] +name = "ct-codecs" +version = "1.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f3b7eb4404b8195a9abb6356f4ac07d8ba267045c8d6d220ac4dc992e6cc75df" + [[package]] name = "ed25519-compact" -version = "1.0.8" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "302ea73924517e9952bf08b505536f757e28dca8372cbf8b20723a0e2bab6c01" +checksum = "e18997d4604542d0736fae2c5ad6de987f0a50530cbcc14a7ce5a685328a252d" dependencies = [ + "ct-codecs", "getrandom", ] [[package]] name = "getrandom" -version = "0.2.4" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", @@ -90,15 +99,15 @@ dependencies = [ [[package]] name = "hmac-sha512" -version = "1.1.1" +version = "1.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10" +checksum = "e4ce1f4656bae589a3fab938f9f09bf58645b7ed01a2c5f8a3c238e01a4ef78a" [[package]] name = "libc" -version = "0.2.114" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "parity-wasm" @@ -108,18 +117,18 @@ checksum = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92" [[package]] name = "proc-macro2" -version = "1.0.36" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ - "unicode-xid", + "unicode-ident", ] [[package]] name = "quote" -version = "1.0.15" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -132,13 +141,13 @@ checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a" [[package]] name = "syn" -version = "1.0.86" +version = "2.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b" +checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" dependencies = [ "proc-macro2", "quote", - "unicode-xid", + "unicode-ident", ] [[package]] @@ -152,18 +161,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.30" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" +checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.30" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" +checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", @@ -171,16 +180,16 @@ dependencies = [ ] [[package]] -name = "unicode-width" -version = "0.1.9" +name = "unicode-ident" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] -name = "unicode-xid" -version = "0.2.2" +name = "unicode-width" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3" +checksum = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d" [[package]] name = "vec_map" @@ -190,14 +199,14 @@ checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191" [[package]] name = "wasi" -version = "0.10.2+wasi-snapshot-preview1" +version = "0.11.0+wasi-snapshot-preview1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasmsign" version = "0.1.2" -source = "git+https://github.com/jedisct1/wasmsign#dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc" +source = "git+https://github.com/jedisct1/wasmsign#6a6ef1c6f99063a5bd4ef9efc2ee41c5ea8f4f96" dependencies = [ "anyhow", "byteorder", diff --git a/bazel/cargo/wasmsign/Cargo.toml b/bazel/cargo/wasmsign/Cargo.toml index 0beaa0880..815f8b03a 100644 --- a/bazel/cargo/wasmsign/Cargo.toml +++ b/bazel/cargo/wasmsign/Cargo.toml @@ -9,12 +9,6 @@ path = "fake_lib.rs" [dependencies] wasmsign = {git = "https://github.com/jedisct1/wasmsign", revision = "fa4d5598f778390df09be94232972b5b865a56b8"} -[package.metadata.raze] -rust_rules_workspace_name = "rules_rust" -gen_workspace_prefix = "wasmsign" -genmode = "Remote" -package_aliases_dir = "." -workspace_path = "//bazel/cargo/wasmsign" - -[package.metadata.raze.crates.wasmsign.'*'] -extra_aliased_targets = ["cargo_bin_wasmsign"] +# Ready to upgrade to wasmsign2: +# Which generates: //bazel/cargo/wasmsign/remote:wasmsign2-cli__wasmsign2 +#wasmsign2-cli = {git = "https://github.com/wasm-signatures/wasmsign2", revision = "07c60eee7f4c655d5a91404f5a9ffd97316d01f1"} diff --git a/bazel/cargo/wasmsign/crates.bzl b/bazel/cargo/wasmsign/crates.bzl deleted file mode 100644 index e23b594e0..000000000 --- a/bazel/cargo/wasmsign/crates.bzl +++ /dev/null @@ -1,291 +0,0 @@ -""" -@generated -cargo-raze generated Bazel file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load - -def wasmsign_fetch_remote_crates(): - """This function defines a collection of repos and should be called in a WORKSPACE file""" - maybe( - http_archive, - name = "wasmsign__ansi_term__0_12_1", - url = "https://crates.io/api/v1/crates/ansi_term/0.12.1/download", - type = "tar.gz", - sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2", - strip_prefix = "ansi_term-0.12.1", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.ansi_term-0.12.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__anyhow__1_0_53", - url = "https://crates.io/api/v1/crates/anyhow/1.0.53/download", - type = "tar.gz", - sha256 = "94a45b455c14666b85fc40a019e8ab9eb75e3a124e05494f5397122bc9eb06e0", - strip_prefix = "anyhow-1.0.53", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.anyhow-1.0.53.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__atty__0_2_14", - url = "https://crates.io/api/v1/crates/atty/0.2.14/download", - type = "tar.gz", - sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", - strip_prefix = "atty-0.2.14", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.atty-0.2.14.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__bitflags__1_3_2", - url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", - type = "tar.gz", - sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", - strip_prefix = "bitflags-1.3.2", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.bitflags-1.3.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__byteorder__1_4_3", - url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", - type = "tar.gz", - sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", - strip_prefix = "byteorder-1.4.3", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.byteorder-1.4.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__cfg_if__1_0_0", - url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", - type = "tar.gz", - sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", - strip_prefix = "cfg-if-1.0.0", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.cfg-if-1.0.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__clap__2_34_0", - url = "https://crates.io/api/v1/crates/clap/2.34.0/download", - type = "tar.gz", - sha256 = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c", - strip_prefix = "clap-2.34.0", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.clap-2.34.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__ed25519_compact__1_0_8", - url = "https://crates.io/api/v1/crates/ed25519-compact/1.0.8/download", - type = "tar.gz", - sha256 = "302ea73924517e9952bf08b505536f757e28dca8372cbf8b20723a0e2bab6c01", - strip_prefix = "ed25519-compact-1.0.8", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.ed25519-compact-1.0.8.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__getrandom__0_2_4", - url = "https://crates.io/api/v1/crates/getrandom/0.2.4/download", - type = "tar.gz", - sha256 = "418d37c8b1d42553c93648be529cb70f920d3baf8ef469b74b9638df426e0b4c", - strip_prefix = "getrandom-0.2.4", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.getrandom-0.2.4.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__hermit_abi__0_1_19", - url = "https://crates.io/api/v1/crates/hermit-abi/0.1.19/download", - type = "tar.gz", - sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", - strip_prefix = "hermit-abi-0.1.19", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.hermit-abi-0.1.19.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__hmac_sha512__1_1_1", - url = "https://crates.io/api/v1/crates/hmac-sha512/1.1.1/download", - type = "tar.gz", - sha256 = "6b2ce076d8070f292037093a825343f6341fe0ce873268c2477e2f49abd57b10", - strip_prefix = "hmac-sha512-1.1.1", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.hmac-sha512-1.1.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__libc__0_2_114", - url = "https://crates.io/api/v1/crates/libc/0.2.114/download", - type = "tar.gz", - sha256 = "b0005d08a8f7b65fb8073cb697aa0b12b631ed251ce73d862ce50eeb52ce3b50", - strip_prefix = "libc-0.2.114", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.libc-0.2.114.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__parity_wasm__0_42_2", - url = "https://crates.io/api/v1/crates/parity-wasm/0.42.2/download", - type = "tar.gz", - sha256 = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92", - strip_prefix = "parity-wasm-0.42.2", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.parity-wasm-0.42.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__proc_macro2__1_0_36", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.36/download", - type = "tar.gz", - sha256 = "c7342d5883fbccae1cc37a2353b09c87c9b0f3afd73f5fb9bba687a1f733b029", - strip_prefix = "proc-macro2-1.0.36", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.proc-macro2-1.0.36.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__quote__1_0_15", - url = "https://crates.io/api/v1/crates/quote/1.0.15/download", - type = "tar.gz", - sha256 = "864d3e96a899863136fc6e99f3d7cae289dafe43bf2c5ac19b70df7210c0a145", - strip_prefix = "quote-1.0.15", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.quote-1.0.15.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__strsim__0_8_0", - url = "https://crates.io/api/v1/crates/strsim/0.8.0/download", - type = "tar.gz", - sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a", - strip_prefix = "strsim-0.8.0", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.strsim-0.8.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__syn__1_0_86", - url = "https://crates.io/api/v1/crates/syn/1.0.86/download", - type = "tar.gz", - sha256 = "8a65b3f4ffa0092e9887669db0eae07941f023991ab58ea44da8fe8e2d511c6b", - strip_prefix = "syn-1.0.86", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.syn-1.0.86.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__textwrap__0_11_0", - url = "https://crates.io/api/v1/crates/textwrap/0.11.0/download", - type = "tar.gz", - sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", - strip_prefix = "textwrap-0.11.0", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.textwrap-0.11.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__thiserror__1_0_30", - url = "https://crates.io/api/v1/crates/thiserror/1.0.30/download", - type = "tar.gz", - sha256 = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417", - strip_prefix = "thiserror-1.0.30", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.thiserror-1.0.30.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__thiserror_impl__1_0_30", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.30/download", - type = "tar.gz", - sha256 = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b", - strip_prefix = "thiserror-impl-1.0.30", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.thiserror-impl-1.0.30.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__unicode_width__0_1_9", - url = "https://crates.io/api/v1/crates/unicode-width/0.1.9/download", - type = "tar.gz", - sha256 = "3ed742d4ea2bd1176e236172c8429aaf54486e7ac098db29ffe6529e0ce50973", - strip_prefix = "unicode-width-0.1.9", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.unicode-width-0.1.9.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__unicode_xid__0_2_2", - url = "https://crates.io/api/v1/crates/unicode-xid/0.2.2/download", - type = "tar.gz", - sha256 = "8ccb82d61f80a663efe1f787a51b16b5a51e3314d6ac365b08639f52387b33f3", - strip_prefix = "unicode-xid-0.2.2", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.unicode-xid-0.2.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__vec_map__0_8_2", - url = "https://crates.io/api/v1/crates/vec_map/0.8.2/download", - type = "tar.gz", - sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191", - strip_prefix = "vec_map-0.8.2", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.vec_map-0.8.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__wasi__0_10_2_wasi_snapshot_preview1", - url = "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download", - type = "tar.gz", - sha256 = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6", - strip_prefix = "wasi-0.10.2+wasi-snapshot-preview1", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), - ) - - maybe( - new_git_repository, - name = "wasmsign__wasmsign__0_1_2", - remote = "https://github.com/jedisct1/wasmsign", - commit = "dfbc0aabe81885d59e88e667aa9c1e6a62dfe9cc", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.wasmsign-0.1.2.bazel"), - init_submodules = True, - ) - - maybe( - http_archive, - name = "wasmsign__winapi__0_3_9", - url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", - type = "tar.gz", - sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", - strip_prefix = "winapi-0.3.9", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.winapi-0.3.9.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__winapi_i686_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", - strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmsign__winapi_x86_64_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", - strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/wasmsign/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), - ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel index b1e6ca34f..76b237351 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel @@ -1,70 +1,52 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "256_colours" with type "example" omitted - -# Unsupported target "basic_colours" with type "example" omitted - -# Unsupported target "rgb_colours" with type "example" omitted +# licenses([ +# "TODO", # MIT +# ]) rust_library( name = "ansi_term", srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=ansi_term", "manual", + "noclippy", + "norustfmt", ], version = "0.12.1", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmsign__winapi__0_3_9//:winapi", + deps = select({ + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__winapi-0.3.9//:winapi", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__winapi-0.3.9//:winapi", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__winapi-0.3.9//:winapi", # cfg(target_os = "windows") ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.53.bazel b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.53.bazel deleted file mode 100644 index 0d6557ced..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.53.bazel +++ /dev/null @@ -1,116 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "anyhow_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.53", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "anyhow", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=anyhow", - "manual", - ], - version = "1.0.53", - # buildifier: leave-alone - deps = [ - ":anyhow_build_script", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test_autotrait" with type "test" omitted - -# Unsupported target "test_backtrace" with type "test" omitted - -# Unsupported target "test_boxed" with type "test" omitted - -# Unsupported target "test_chain" with type "test" omitted - -# Unsupported target "test_context" with type "test" omitted - -# Unsupported target "test_convert" with type "test" omitted - -# Unsupported target "test_downcast" with type "test" omitted - -# Unsupported target "test_ensure" with type "test" omitted - -# Unsupported target "test_ffi" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted - -# Unsupported target "test_macros" with type "test" omitted - -# Unsupported target "test_repr" with type "test" omitted - -# Unsupported target "test_source" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel new file mode 100644 index 000000000..ac05f26e9 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel @@ -0,0 +1,89 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "anyhow", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=anyhow", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + deps = [ + "@cu__anyhow-1.0.86//:build_script_build", + ], +) + +cargo_build_script( + name = "anyhow_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=anyhow", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "anyhow_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel index 9f3121cc3..042620fd9 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel @@ -1,89 +1,115 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "atty" with type "example" omitted +# licenses([ +# "TODO", # MIT +# ]) rust_library( name = "atty", srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=atty", "manual", + "noclippy", + "norustfmt", ], version = "0.2.14", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmsign__libc__0_2_114//:libc", + deps = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmsign__winapi__0_3_9//:winapi", + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__winapi-0.3.9//:winapi", # cfg(windows) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__winapi-0.3.9//:winapi", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__winapi-0.3.9//:winapi", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmsign/remote/BUILD.bazel b/bazel/cargo/wasmsign/remote/BUILD.bazel index e69de29bb..f7557ab01 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bazel @@ -0,0 +1,39 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +package(default_visibility = ["//visibility:public"]) + +exports_files( + [ + "cargo-bazel.json", + "crates.bzl", + "defs.bzl", + ] + glob(["*.bazel"]), +) + +filegroup( + name = "srcs", + srcs = glob([ + "*.bazel", + "*.bzl", + ]), +) + +# Workspace Member Dependencies +alias( + name = "wasmsign", + actual = "@cu__wasmsign-0.1.2//:wasmsign", + tags = ["manual"], +) + +# Binaries +alias( + name = "wasmsign__wasmsign", + actual = "@cu__wasmsign-0.1.2//:wasmsign__bin", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel index 345927151..b82314da9 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel @@ -1,59 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "bitflags", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "default", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=bitflags", "manual", + "noclippy", + "norustfmt", ], version = "1.3.2", - # buildifier: leave-alone - deps = [ - ], ) - -# Unsupported target "basic" with type "test" omitted - -# Unsupported target "compile" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.4.3.bazel b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.4.3.bazel deleted file mode 100644 index 5540dc77d..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.4.3.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "byteorder", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=byteorder", - "manual", - ], - version = "1.4.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel new file mode 100644 index 000000000..de6a36dd7 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel @@ -0,0 +1,45 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense OR MIT +# ]) + +rust_library( + name = "byteorder", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=byteorder", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.5.0", +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel index cdfafef08..54468a44e 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel @@ -1,56 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "cfg_if", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=cfg-if", "manual", + "noclippy", + "norustfmt", ], version = "1.0.0", - # buildifier: leave-alone - deps = [ - ], ) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel index f95162fab..385de6f5d 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel @@ -1,41 +1,32 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT +# ]) rust_library( name = "clap", srcs = glob(["**/*.rs"]), - aliases = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "ansi_term", "atty", @@ -46,48 +37,107 @@ rust_library( "vec_map", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=clap", "manual", + "noclippy", + "norustfmt", ], version = "2.34.0", - # buildifier: leave-alone deps = [ - "@wasmsign__atty__0_2_14//:atty", - "@wasmsign__bitflags__1_3_2//:bitflags", - "@wasmsign__strsim__0_8_0//:strsim", - "@wasmsign__textwrap__0_11_0//:textwrap", - "@wasmsign__unicode_width__0_1_9//:unicode_width", - "@wasmsign__vec_map__0_8_2//:vec_map", - ] + selects.with_or({ - # cfg(not(windows)) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmsign__ansi_term__0_12_1//:ansi_term", + "@cu__atty-0.2.14//:atty", + "@cu__bitflags-1.3.2//:bitflags", + "@cu__strsim-0.8.0//:strsim", + "@cu__textwrap-0.11.0//:textwrap", + "@cu__unicode-width-0.1.13//:unicode_width", + "@cu__vec_map-0.8.2//:vec_map", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel new file mode 100644 index 000000000..99961e188 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel @@ -0,0 +1,45 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "ct_codecs", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=ct-codecs", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.1", +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel new file mode 100644 index 000000000..4ca9f00b0 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel @@ -0,0 +1,54 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "ed25519_compact", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "ct-codecs", + "default", + "getrandom", + "pem", + "random", + "std", + "x25519", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=ed25519-compact", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.16", + deps = [ + "@cu__ct-codecs-1.1.1//:ct_codecs", + "@cu__getrandom-0.2.15//:getrandom", + ], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel deleted file mode 100644 index 55d81676f..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.8.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # ISC from expression "ISC" -]) - -# Generated Targets - -rust_library( - name = "ed25519_compact", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "getrandom", - "random", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=ed25519-compact", - "manual", - ], - version = "1.0.8", - # buildifier: leave-alone - deps = [ - "@wasmsign__getrandom__0_2_4//:getrandom", - ], -) diff --git a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel new file mode 100644 index 000000000..d09ee3dd1 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel @@ -0,0 +1,112 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "getrandom", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=getrandom", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.15", + deps = [ + "@cu__cfg-if-1.0.0//:cfg_if", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__wasi-0.11.0-wasi-snapshot-preview1//:wasi", # cfg(target_os = "wasi") + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel deleted file mode 100644 index 9f107edbf..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.4.bazel +++ /dev/null @@ -1,96 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "mod" with type "bench" omitted - -rust_library( - name = "getrandom", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=getrandom", - "manual", - ], - version = "0.2.4", - # buildifier: leave-alone - deps = [ - "@wasmsign__cfg_if__1_0_0//:cfg_if", - ] + selects.with_or({ - # cfg(target_os = "wasi") - ( - "@rules_rust//rust/platform:wasm32-wasi", - ): [ - "@wasmsign__wasi__0_10_2_wasi_snapshot_preview1//:wasi", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmsign__libc__0_2_114//:libc", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "custom" with type "test" omitted - -# Unsupported target "normal" with type "test" omitted - -# Unsupported target "rdrand" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel index 714afbab6..0ce38b7b1 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel @@ -1,56 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "hermit_abi", srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=hermit-abi", "manual", + "noclippy", + "norustfmt", ], version = "0.1.19", - # buildifier: leave-alone deps = [ - "@wasmsign__libc__0_2_114//:libc", + "@cu__libc-0.2.155//:libc", ], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.1.bazel deleted file mode 100644 index a98166ac6..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.1.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # ISC from expression "ISC" -]) - -# Generated Targets - -rust_library( - name = "hmac_sha512", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "sha384", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=hmac-sha512", - "manual", - ], - version = "1.1.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel new file mode 100644 index 000000000..c09f00280 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel @@ -0,0 +1,45 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # ISC +# ]) + +rust_library( + name = "hmac_sha512", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "sha384", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=hmac-sha512", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.5", +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel deleted file mode 100644 index 19145c96a..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.114.bazel +++ /dev/null @@ -1,86 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "libc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.114", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "libc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=libc", - "manual", - ], - version = "0.2.114", - # buildifier: leave-alone - deps = [ - ":libc_build_script", - ], -) - -# Unsupported target "const_fn" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel new file mode 100644 index 000000000..0e8144575 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "libc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=libc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.155", + deps = [ + "@cu__libc-0.2.155//:build_script_build", + ], +) + +cargo_build_script( + name = "libc_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=libc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.155", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "libc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel index eb0b8425a..9feb12623 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel @@ -1,72 +1,45 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench-decoder" with type "example" omitted - -# Unsupported target "build" with type "example" omitted - -# Unsupported target "data" with type "example" omitted - -# Unsupported target "exports" with type "example" omitted - -# Unsupported target "info" with type "example" omitted - -# Unsupported target "inject" with type "example" omitted - -# Unsupported target "roundtrip" with type "example" omitted - -# Unsupported target "show" with type "example" omitted +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "parity_wasm", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "default", "std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=parity-wasm", "manual", + "noclippy", + "norustfmt", ], version = "0.42.2", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.36.bazel b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.36.bazel deleted file mode 100644 index 98ac0ca43..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.36.bazel +++ /dev/null @@ -1,99 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "proc_macro2_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.36", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "proc_macro2", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=proc-macro2", - "manual", - ], - version = "1.0.36", - # buildifier: leave-alone - deps = [ - ":proc_macro2_build_script", - "@wasmsign__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "comments" with type "test" omitted - -# Unsupported target "features" with type "test" omitted - -# Unsupported target "marker" with type "test" omitted - -# Unsupported target "test" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel new file mode 100644 index 000000000..ee0b1590b --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "proc_macro2", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=proc-macro2", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + deps = [ + "@cu__proc-macro2-1.0.86//:build_script_build", + "@cu__unicode-ident-1.0.12//:unicode_ident", + ], +) + +cargo_build_script( + name = "proc-macro2_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=proc-macro2", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "proc-macro2_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.15.bazel b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.15.bazel deleted file mode 100644 index 984db3ca0..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.15.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "quote", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=quote", - "manual", - ], - version = "1.0.15", - # buildifier: leave-alone - deps = [ - "@wasmsign__proc_macro2__1_0_36//:proc_macro2", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel new file mode 100644 index 000000000..629754fda --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel @@ -0,0 +1,48 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "quote", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=quote", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.36", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + ], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel index 17633e197..fd1aa61ac 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel @@ -1,58 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "benches" with type "bench" omitted +# licenses([ +# "TODO", # MIT +# ]) rust_library( name = "strsim", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=strsim", "manual", + "noclippy", + "norustfmt", ], version = "0.8.0", - # buildifier: leave-alone - deps = [ - ], ) - -# Unsupported target "lib" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.syn-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.syn-1.0.86.bazel deleted file mode 100644 index 8fe60304a..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.syn-1.0.86.bazel +++ /dev/null @@ -1,159 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "syn_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "clone-impls", - "default", - "derive", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.86", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "file" with type "bench" omitted - -# Unsupported target "rust" with type "bench" omitted - -rust_library( - name = "syn", - srcs = glob(["**/*.rs"]), - crate_features = [ - "clone-impls", - "default", - "derive", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=syn", - "manual", - ], - version = "1.0.86", - # buildifier: leave-alone - deps = [ - ":syn_build_script", - "@wasmsign__proc_macro2__1_0_36//:proc_macro2", - "@wasmsign__quote__1_0_15//:quote", - "@wasmsign__unicode_xid__0_2_2//:unicode_xid", - ], -) - -# Unsupported target "regression" with type "test" omitted - -# Unsupported target "test_asyncness" with type "test" omitted - -# Unsupported target "test_attribute" with type "test" omitted - -# Unsupported target "test_derive_input" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_generics" with type "test" omitted - -# Unsupported target "test_grouping" with type "test" omitted - -# Unsupported target "test_ident" with type "test" omitted - -# Unsupported target "test_item" with type "test" omitted - -# Unsupported target "test_iterators" with type "test" omitted - -# Unsupported target "test_lit" with type "test" omitted - -# Unsupported target "test_meta" with type "test" omitted - -# Unsupported target "test_parse_buffer" with type "test" omitted - -# Unsupported target "test_parse_stream" with type "test" omitted - -# Unsupported target "test_pat" with type "test" omitted - -# Unsupported target "test_path" with type "test" omitted - -# Unsupported target "test_precedence" with type "test" omitted - -# Unsupported target "test_receiver" with type "test" omitted - -# Unsupported target "test_round_trip" with type "test" omitted - -# Unsupported target "test_shebang" with type "test" omitted - -# Unsupported target "test_should_parse" with type "test" omitted - -# Unsupported target "test_size" with type "test" omitted - -# Unsupported target "test_stmt" with type "test" omitted - -# Unsupported target "test_token_trees" with type "test" omitted - -# Unsupported target "test_ty" with type "test" omitted - -# Unsupported target "test_visibility" with type "test" omitted - -# Unsupported target "zzz_stable" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel new file mode 100644 index 000000000..e1a4bfc4d --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel @@ -0,0 +1,54 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "syn", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=syn", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.0.72", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__unicode-ident-1.0.12//:unicode_ident", + ], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel index 1f5ef4754..94e8d4386 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel @@ -1,63 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -# Unsupported target "linear" with type "bench" omitted - -# Unsupported target "layout" with type "example" omitted - -# Unsupported target "termwidth" with type "example" omitted +# licenses([ +# "TODO", # MIT +# ]) rust_library( name = "textwrap", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=textwrap", "manual", + "noclippy", + "norustfmt", ], version = "0.11.0", - # buildifier: leave-alone deps = [ - "@wasmsign__unicode_width__0_1_9//:unicode_width", + "@cu__unicode-width-0.1.13//:unicode_width", ], ) - -# Unsupported target "version-numbers" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.30.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.30.bazel deleted file mode 100644 index 963d9d3ee..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.30.bazel +++ /dev/null @@ -1,81 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "thiserror", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - proc_macro_deps = [ - "@wasmsign__thiserror_impl__1_0_30//:thiserror_impl", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=thiserror", - "manual", - ], - version = "1.0.30", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test_backtrace" with type "test" omitted - -# Unsupported target "test_display" with type "test" omitted - -# Unsupported target "test_error" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_from" with type "test" omitted - -# Unsupported target "test_generics" with type "test" omitted - -# Unsupported target "test_lints" with type "test" omitted - -# Unsupported target "test_option" with type "test" omitted - -# Unsupported target "test_path" with type "test" omitted - -# Unsupported target "test_source" with type "test" omitted - -# Unsupported target "test_transparent" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel new file mode 100644 index 000000000..1dc950ccf --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel @@ -0,0 +1,84 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "thiserror", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + proc_macro_deps = [ + "@cu__thiserror-impl-1.0.63//:thiserror_impl", + ], + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=thiserror", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.63", + deps = [ + "@cu__thiserror-1.0.63//:build_script_build", + ], +) + +cargo_build_script( + name = "thiserror_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=thiserror", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.63", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "thiserror_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.30.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.30.bazel deleted file mode 100644 index 5f03eb1e5..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.30.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_proc_macro( - name = "thiserror_impl", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=thiserror-impl", - "manual", - ], - version = "1.0.30", - # buildifier: leave-alone - deps = [ - "@wasmsign__proc_macro2__1_0_36//:proc_macro2", - "@wasmsign__quote__1_0_15//:quote", - "@wasmsign__syn__1_0_86//:syn", - ], -) diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel new file mode 100644 index 000000000..2f7a65a52 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -0,0 +1,46 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_proc_macro( + name = "thiserror_impl", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=thiserror-impl", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.63", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__syn-2.0.72//:syn", + ], +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel new file mode 100644 index 000000000..91a06d7ac --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# ]) + +rust_library( + name = "unicode_ident", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=unicode-ident", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.12", +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel new file mode 100644 index 000000000..88c7780c8 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "unicode_width", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=unicode-width", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.13", +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.9.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.9.bazel deleted file mode 100644 index 205525026..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.9.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "unicode_width", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-width", - "manual", - ], - version = "0.1.9", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-xid-0.2.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-xid-0.2.2.bazel deleted file mode 100644 index 489f09ed3..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-xid-0.2.2.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "xid" with type "bench" omitted - -rust_library( - name = "unicode_xid", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-xid", - "manual", - ], - version = "0.2.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "exhaustive_tests" with type "test" omitted diff --git a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel index 41e120f56..c8cd5b4ff 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel @@ -1,54 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "vec_map", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=vec_map", "manual", + "noclippy", + "norustfmt", ], version = "0.8.2", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel deleted file mode 100644 index 120daec83..000000000 --- a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets - -rust_library( - name = "wasi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasi", - "manual", - ], - version = "0.10.2+wasi-snapshot-preview1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel new file mode 100644 index 000000000..11d6cc924 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "wasi", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasi", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.11.0+wasi-snapshot-preview1", +) diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel index ecf416787..cc34b19ee 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel @@ -1,93 +1,86 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load load( "@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", - "rust_proc_macro", - "rust_test", ) -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "restricted", # no license -]) +package(default_visibility = ["//visibility:public"]) -# Generated Targets - -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_wasmsign", +rust_library( + name = "wasmsign", srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/wasmsign.rs", - data = [], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=wasmsign", "manual", + "noclippy", + "norustfmt", ], version = "0.1.2", - # buildifier: leave-alone deps = [ - ":wasmsign", - "@wasmsign__anyhow__1_0_53//:anyhow", - "@wasmsign__byteorder__1_4_3//:byteorder", - "@wasmsign__clap__2_34_0//:clap", - "@wasmsign__ed25519_compact__1_0_8//:ed25519_compact", - "@wasmsign__hmac_sha512__1_1_1//:hmac_sha512", - "@wasmsign__parity_wasm__0_42_2//:parity_wasm", - "@wasmsign__thiserror__1_0_30//:thiserror", + "@cu__anyhow-1.0.86//:anyhow", + "@cu__byteorder-1.5.0//:byteorder", + "@cu__clap-2.34.0//:clap", + "@cu__ed25519-compact-1.0.16//:ed25519_compact", + "@cu__hmac-sha512-1.1.5//:hmac_sha512", + "@cu__parity-wasm-0.42.2//:parity_wasm", + "@cu__thiserror-1.0.63//:thiserror", ], ) -rust_library( - name = "wasmsign", +rust_binary( + name = "wasmsign__bin", srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/bin/wasmsign.rs", edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=wasmsign", "manual", + "noclippy", + "norustfmt", ], version = "0.1.2", - # buildifier: leave-alone deps = [ - "@wasmsign__anyhow__1_0_53//:anyhow", - "@wasmsign__byteorder__1_4_3//:byteorder", - "@wasmsign__clap__2_34_0//:clap", - "@wasmsign__ed25519_compact__1_0_8//:ed25519_compact", - "@wasmsign__hmac_sha512__1_1_1//:hmac_sha512", - "@wasmsign__parity_wasm__0_42_2//:parity_wasm", - "@wasmsign__thiserror__1_0_30//:thiserror", + ":wasmsign", + "@cu__anyhow-1.0.86//:anyhow", + "@cu__byteorder-1.5.0//:byteorder", + "@cu__clap-2.34.0//:clap", + "@cu__ed25519-compact-1.0.16//:ed25519_compact", + "@cu__hmac-sha512-1.1.5//:hmac_sha512", + "@cu__parity-wasm-0.42.2//:parity_wasm", + "@cu__thiserror-1.0.63//:thiserror", ], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel index 165665faa..fe49869b4 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel @@ -1,47 +1,33 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_build_script", +rust_library( + name = "winapi", srcs = glob(["**/*.rs"]), - build_script_env = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "consoleapi", "errhandlingapi", @@ -52,24 +38,24 @@ cargo_build_script( "processenv", "winbase", ], - crate_root = "build.rs", - data = glob(["**"]), + crate_root = "src/lib.rs", edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=winapi", "manual", + "noclippy", + "norustfmt", ], version = "0.3.9", - visibility = ["//visibility:private"], deps = [ + "@cu__winapi-0.3.9//:build_script_build", ], ) -rust_library( - name = "winapi", +cargo_build_script( + name = "winapi_build_script", srcs = glob(["**/*.rs"]), crate_features = [ "consoleapi", @@ -81,20 +67,35 @@ rust_library( "processenv", "winbase", ], - crate_root = "src/lib.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2015", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=winapi", "manual", + "noclippy", + "norustfmt", ], version = "0.3.9", - # buildifier: leave-alone - deps = [ - ":winapi_build_script", - ], + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "winapi_build_script", + tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 71509c182..cecb69888 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -1,84 +1,81 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_i686_pc_windows_gnu_build_script", +rust_library( + name = "winapi_i686_pc_windows_gnu", srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=winapi-i686-pc-windows-gnu", "manual", + "noclippy", + "norustfmt", ], version = "0.4.0", - visibility = ["//visibility:private"], deps = [ + "@cu__winapi-i686-pc-windows-gnu-0.4.0//:build_script_build", ], ) -rust_library( - name = "winapi_i686_pc_windows_gnu", +cargo_build_script( + name = "winapi-i686-pc-windows-gnu_build_script", srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2015", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=winapi-i686-pc-windows-gnu", "manual", + "noclippy", + "norustfmt", ], version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_i686_pc_windows_gnu_build_script", - ], + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "winapi-i686-pc-windows-gnu_build_script", + tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index f94e57719..57a6d1e8c 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -1,84 +1,81 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmsign", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_x86_64_pc_windows_gnu_build_script", +rust_library( + name = "winapi_x86_64_pc_windows_gnu", srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=winapi-x86_64-pc-windows-gnu", "manual", + "noclippy", + "norustfmt", ], version = "0.4.0", - visibility = ["//visibility:private"], deps = [ + "@cu__winapi-x86_64-pc-windows-gnu-0.4.0//:build_script_build", ], ) -rust_library( - name = "winapi_x86_64_pc_windows_gnu", +cargo_build_script( + name = "winapi-x86_64-pc-windows-gnu_build_script", srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2015", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=winapi-x86_64-pc-windows-gnu", "manual", + "noclippy", + "norustfmt", ], version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_x86_64_pc_windows_gnu_build_script", - ], + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "winapi-x86_64-pc-windows-gnu_build_script", + tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/crates.bzl b/bazel/cargo/wasmsign/remote/crates.bzl new file mode 100644 index 000000000..49dc5c122 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/crates.bzl @@ -0,0 +1,25 @@ +############################################################################### +# @generated +# This file is auto-generated by the cargo-bazel tool. +# +# DO NOT MODIFY: Local changes may be replaced in future executions. +############################################################################### +"""Rules for defining repositories for remote `crates_vendor` repositories""" + +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +# buildifier: disable=bzl-visibility +load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:defs.bzl", _crate_repositories = "crate_repositories") + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") + +def crate_repositories(): + maybe( + crates_vendor_remote_repository, + name = "cu", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.bazel"), + defs_module = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:defs.bzl"), + ) + + _crate_repositories() diff --git a/bazel/cargo/wasmsign/remote/defs.bzl b/bazel/cargo/wasmsign/remote/defs.bzl new file mode 100644 index 000000000..34b03dddd --- /dev/null +++ b/bazel/cargo/wasmsign/remote/defs.bzl @@ -0,0 +1,663 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmsign:crates_vendor +############################################################################### +""" +# `crates_repository` API + +- [aliases](#aliases) +- [crate_deps](#crate_deps) +- [all_crate_deps](#all_crate_deps) +- [crate_repositories](#crate_repositories) + +""" + +load("@bazel_skylib//lib:selects.bzl", "selects") +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +############################################################################### +# MACROS API +############################################################################### + +# An identifier that represent common dependencies (unconditional). +_COMMON_CONDITION = "" + +def _flatten_dependency_maps(all_dependency_maps): + """Flatten a list of dependency maps into one dictionary. + + Dependency maps have the following structure: + + ```python + DEPENDENCIES_MAP = { + # The first key in the map is a Bazel package + # name of the workspace this file is defined in. + "workspace_member_package": { + + # Not all dependencies are supported for all platforms. + # the condition key is the condition required to be true + # on the host platform. + "condition": { + + # An alias to a crate target. # The label of the crate target the + # Aliases are only crate names. # package name refers to. + "package_name": "@full//:label", + } + } + } + ``` + + Args: + all_dependency_maps (list): A list of dicts as described above + + Returns: + dict: A dictionary as described above + """ + dependencies = {} + + for workspace_deps_map in all_dependency_maps: + for pkg_name, conditional_deps_map in workspace_deps_map.items(): + if pkg_name not in dependencies: + non_frozen_map = dict() + for key, values in conditional_deps_map.items(): + non_frozen_map.update({key: dict(values.items())}) + dependencies.setdefault(pkg_name, non_frozen_map) + continue + + for condition, deps_map in conditional_deps_map.items(): + # If the condition has not been recorded, do so and continue + if condition not in dependencies[pkg_name]: + dependencies[pkg_name].setdefault(condition, dict(deps_map.items())) + continue + + # Alert on any miss-matched dependencies + inconsistent_entries = [] + for crate_name, crate_label in deps_map.items(): + existing = dependencies[pkg_name][condition].get(crate_name) + if existing and existing != crate_label: + inconsistent_entries.append((crate_name, existing, crate_label)) + dependencies[pkg_name][condition].update({crate_name: crate_label}) + + return dependencies + +def crate_deps(deps, package_name = None): + """Finds the fully qualified label of the requested crates for the package where this macro is called. + + Args: + deps (list): The desired list of crate targets. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()`. + + Returns: + list: A list of labels to generated rust targets (str) + """ + + if not deps: + return [] + + if package_name == None: + package_name = native.package_name() + + # Join both sets of dependencies + dependencies = _flatten_dependency_maps([ + _NORMAL_DEPENDENCIES, + _NORMAL_DEV_DEPENDENCIES, + _PROC_MACRO_DEPENDENCIES, + _PROC_MACRO_DEV_DEPENDENCIES, + _BUILD_DEPENDENCIES, + _BUILD_PROC_MACRO_DEPENDENCIES, + ]).pop(package_name, {}) + + # Combine all conditional packages so we can easily index over a flat list + # TODO: Perhaps this should actually return select statements and maintain + # the conditionals of the dependencies + flat_deps = {} + for deps_set in dependencies.values(): + for crate_name, crate_label in deps_set.items(): + flat_deps.update({crate_name: crate_label}) + + missing_crates = [] + crate_targets = [] + for crate_target in deps: + if crate_target not in flat_deps: + missing_crates.append(crate_target) + else: + crate_targets.append(flat_deps[crate_target]) + + if missing_crates: + fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format( + missing_crates, + package_name, + dependencies, + )) + + return crate_targets + +def all_crate_deps( + normal = False, + normal_dev = False, + proc_macro = False, + proc_macro_dev = False, + build = False, + build_proc_macro = False, + package_name = None): + """Finds the fully qualified label of all requested direct crate dependencies \ + for the package where this macro is called. + + If no parameters are set, all normal dependencies are returned. Setting any one flag will + otherwise impact the contents of the returned list. + + Args: + normal (bool, optional): If True, normal dependencies are included in the + output list. + normal_dev (bool, optional): If True, normal dev dependencies will be + included in the output list.. + proc_macro (bool, optional): If True, proc_macro dependencies are included + in the output list. + proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are + included in the output list. + build (bool, optional): If True, build dependencies are included + in the output list. + build_proc_macro (bool, optional): If True, build proc_macro dependencies are + included in the output list. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()` when unset. + + Returns: + list: A list of labels to generated rust targets (str) + """ + + if package_name == None: + package_name = native.package_name() + + # Determine the relevant maps to use + all_dependency_maps = [] + if normal: + all_dependency_maps.append(_NORMAL_DEPENDENCIES) + if normal_dev: + all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES) + if proc_macro: + all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES) + if proc_macro_dev: + all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES) + if build: + all_dependency_maps.append(_BUILD_DEPENDENCIES) + if build_proc_macro: + all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES) + + # Default to always using normal dependencies + if not all_dependency_maps: + all_dependency_maps.append(_NORMAL_DEPENDENCIES) + + dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None) + + if not dependencies: + if dependencies == None: + fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") + else: + return [] + + crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values()) + for condition, deps in dependencies.items(): + crate_deps += selects.with_or({ + tuple(_CONDITIONS[condition]): deps.values(), + "//conditions:default": [], + }) + + return crate_deps + +def aliases( + normal = False, + normal_dev = False, + proc_macro = False, + proc_macro_dev = False, + build = False, + build_proc_macro = False, + package_name = None): + """Produces a map of Crate alias names to their original label + + If no dependency kinds are specified, `normal` and `proc_macro` are used by default. + Setting any one flag will otherwise determine the contents of the returned dict. + + Args: + normal (bool, optional): If True, normal dependencies are included in the + output list. + normal_dev (bool, optional): If True, normal dev dependencies will be + included in the output list.. + proc_macro (bool, optional): If True, proc_macro dependencies are included + in the output list. + proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are + included in the output list. + build (bool, optional): If True, build dependencies are included + in the output list. + build_proc_macro (bool, optional): If True, build proc_macro dependencies are + included in the output list. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()` when unset. + + Returns: + dict: The aliases of all associated packages + """ + if package_name == None: + package_name = native.package_name() + + # Determine the relevant maps to use + all_aliases_maps = [] + if normal: + all_aliases_maps.append(_NORMAL_ALIASES) + if normal_dev: + all_aliases_maps.append(_NORMAL_DEV_ALIASES) + if proc_macro: + all_aliases_maps.append(_PROC_MACRO_ALIASES) + if proc_macro_dev: + all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES) + if build: + all_aliases_maps.append(_BUILD_ALIASES) + if build_proc_macro: + all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES) + + # Default to always using normal aliases + if not all_aliases_maps: + all_aliases_maps.append(_NORMAL_ALIASES) + all_aliases_maps.append(_PROC_MACRO_ALIASES) + + aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None) + + if not aliases: + return dict() + + common_items = aliases.pop(_COMMON_CONDITION, {}).items() + + # If there are only common items in the dictionary, immediately return them + if not len(aliases.keys()) == 1: + return dict(common_items) + + # Build a single select statement where each conditional has accounted for the + # common set of aliases. + crate_aliases = {"//conditions:default": dict(common_items)} + for condition, deps in aliases.items(): + condition_triples = _CONDITIONS[condition] + for triple in condition_triples: + if triple in crate_aliases: + crate_aliases[triple].update(deps) + else: + crate_aliases.update({triple: dict(deps.items() + common_items)}) + + return select(crate_aliases) + +############################################################################### +# WORKSPACE MEMBER DEPS AND ALIASES +############################################################################### + +_NORMAL_DEPENDENCIES = { + "bazel/cargo/wasmsign": { + _COMMON_CONDITION: { + "wasmsign": "@cu__wasmsign-0.1.2//:wasmsign", + }, + }, +} + +_NORMAL_ALIASES = { + "bazel/cargo/wasmsign": { + _COMMON_CONDITION: { + }, + }, +} + +_NORMAL_DEV_DEPENDENCIES = { + "bazel/cargo/wasmsign": { + }, +} + +_NORMAL_DEV_ALIASES = { + "bazel/cargo/wasmsign": { + }, +} + +_PROC_MACRO_DEPENDENCIES = { + "bazel/cargo/wasmsign": { + }, +} + +_PROC_MACRO_ALIASES = { + "bazel/cargo/wasmsign": { + }, +} + +_PROC_MACRO_DEV_DEPENDENCIES = { + "bazel/cargo/wasmsign": { + }, +} + +_PROC_MACRO_DEV_ALIASES = { + "bazel/cargo/wasmsign": { + }, +} + +_BUILD_DEPENDENCIES = { + "bazel/cargo/wasmsign": { + }, +} + +_BUILD_ALIASES = { + "bazel/cargo/wasmsign": { + }, +} + +_BUILD_PROC_MACRO_DEPENDENCIES = { + "bazel/cargo/wasmsign": { + }, +} + +_BUILD_PROC_MACRO_ALIASES = { + "bazel/cargo/wasmsign": { + }, +} + +_CONDITIONS = { + "cfg(not(windows))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(target_os = \"hermit\")": [], + "cfg(target_os = \"wasi\")": ["@rules_rust//rust/platform:wasm32-wasi"], + "cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "cfg(unix)": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(windows)": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "i686-pc-windows-gnu": [], + "x86_64-pc-windows-gnu": [], +} + +############################################################################### + +def crate_repositories(): + """A macro for defining repositories for all generated crates""" + maybe( + http_archive, + name = "cu__ansi_term-0.12.1", + sha256 = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2", + type = "tar.gz", + urls = ["https://static.crates.io/crates/ansi_term/0.12.1/download"], + strip_prefix = "ansi_term-0.12.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.ansi_term-0.12.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__anyhow-1.0.86", + sha256 = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da", + type = "tar.gz", + urls = ["https://static.crates.io/crates/anyhow/1.0.86/download"], + strip_prefix = "anyhow-1.0.86", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.anyhow-1.0.86.bazel"), + ) + + maybe( + http_archive, + name = "cu__atty-0.2.14", + sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", + type = "tar.gz", + urls = ["https://static.crates.io/crates/atty/0.2.14/download"], + strip_prefix = "atty-0.2.14", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.atty-0.2.14.bazel"), + ) + + maybe( + http_archive, + name = "cu__bitflags-1.3.2", + sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", + type = "tar.gz", + urls = ["https://static.crates.io/crates/bitflags/1.3.2/download"], + strip_prefix = "bitflags-1.3.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.bitflags-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__byteorder-1.5.0", + sha256 = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/byteorder/1.5.0/download"], + strip_prefix = "byteorder-1.5.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.byteorder-1.5.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__cfg-if-1.0.0", + sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"], + strip_prefix = "cfg-if-1.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__clap-2.34.0", + sha256 = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/clap/2.34.0/download"], + strip_prefix = "clap-2.34.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.clap-2.34.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__ct-codecs-1.1.1", + sha256 = "f3b7eb4404b8195a9abb6356f4ac07d8ba267045c8d6d220ac4dc992e6cc75df", + type = "tar.gz", + urls = ["https://static.crates.io/crates/ct-codecs/1.1.1/download"], + strip_prefix = "ct-codecs-1.1.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.ct-codecs-1.1.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__ed25519-compact-1.0.16", + sha256 = "e18997d4604542d0736fae2c5ad6de987f0a50530cbcc14a7ce5a685328a252d", + type = "tar.gz", + urls = ["https://static.crates.io/crates/ed25519-compact/1.0.16/download"], + strip_prefix = "ed25519-compact-1.0.16", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.ed25519-compact-1.0.16.bazel"), + ) + + maybe( + http_archive, + name = "cu__getrandom-0.2.15", + sha256 = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7", + type = "tar.gz", + urls = ["https://static.crates.io/crates/getrandom/0.2.15/download"], + strip_prefix = "getrandom-0.2.15", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.getrandom-0.2.15.bazel"), + ) + + maybe( + http_archive, + name = "cu__hermit-abi-0.1.19", + sha256 = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33", + type = "tar.gz", + urls = ["https://static.crates.io/crates/hermit-abi/0.1.19/download"], + strip_prefix = "hermit-abi-0.1.19", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.hermit-abi-0.1.19.bazel"), + ) + + maybe( + http_archive, + name = "cu__hmac-sha512-1.1.5", + sha256 = "e4ce1f4656bae589a3fab938f9f09bf58645b7ed01a2c5f8a3c238e01a4ef78a", + type = "tar.gz", + urls = ["https://static.crates.io/crates/hmac-sha512/1.1.5/download"], + strip_prefix = "hmac-sha512-1.1.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.hmac-sha512-1.1.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__libc-0.2.155", + sha256 = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/libc/0.2.155/download"], + strip_prefix = "libc-0.2.155", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.libc-0.2.155.bazel"), + ) + + maybe( + http_archive, + name = "cu__parity-wasm-0.42.2", + sha256 = "be5e13c266502aadf83426d87d81a0f5d1ef45b8027f5a471c360abfe4bfae92", + type = "tar.gz", + urls = ["https://static.crates.io/crates/parity-wasm/0.42.2/download"], + strip_prefix = "parity-wasm-0.42.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.parity-wasm-0.42.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__proc-macro2-1.0.86", + sha256 = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77", + type = "tar.gz", + urls = ["https://static.crates.io/crates/proc-macro2/1.0.86/download"], + strip_prefix = "proc-macro2-1.0.86", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.proc-macro2-1.0.86.bazel"), + ) + + maybe( + http_archive, + name = "cu__quote-1.0.36", + sha256 = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7", + type = "tar.gz", + urls = ["https://static.crates.io/crates/quote/1.0.36/download"], + strip_prefix = "quote-1.0.36", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.quote-1.0.36.bazel"), + ) + + maybe( + http_archive, + name = "cu__strsim-0.8.0", + sha256 = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a", + type = "tar.gz", + urls = ["https://static.crates.io/crates/strsim/0.8.0/download"], + strip_prefix = "strsim-0.8.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.strsim-0.8.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__syn-2.0.72", + sha256 = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af", + type = "tar.gz", + urls = ["https://static.crates.io/crates/syn/2.0.72/download"], + strip_prefix = "syn-2.0.72", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.syn-2.0.72.bazel"), + ) + + maybe( + http_archive, + name = "cu__textwrap-0.11.0", + sha256 = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060", + type = "tar.gz", + urls = ["https://static.crates.io/crates/textwrap/0.11.0/download"], + strip_prefix = "textwrap-0.11.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.textwrap-0.11.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__thiserror-1.0.63", + sha256 = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724", + type = "tar.gz", + urls = ["https://static.crates.io/crates/thiserror/1.0.63/download"], + strip_prefix = "thiserror-1.0.63", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.thiserror-1.0.63.bazel"), + ) + + maybe( + http_archive, + name = "cu__thiserror-impl-1.0.63", + sha256 = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261", + type = "tar.gz", + urls = ["https://static.crates.io/crates/thiserror-impl/1.0.63/download"], + strip_prefix = "thiserror-impl-1.0.63", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.thiserror-impl-1.0.63.bazel"), + ) + + maybe( + http_archive, + name = "cu__unicode-ident-1.0.12", + sha256 = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/unicode-ident/1.0.12/download"], + strip_prefix = "unicode-ident-1.0.12", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.unicode-ident-1.0.12.bazel"), + ) + + maybe( + http_archive, + name = "cu__unicode-width-0.1.13", + sha256 = "0336d538f7abc86d282a4189614dfaa90810dfc2c6f6427eaf88e16311dd225d", + type = "tar.gz", + urls = ["https://static.crates.io/crates/unicode-width/0.1.13/download"], + strip_prefix = "unicode-width-0.1.13", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.unicode-width-0.1.13.bazel"), + ) + + maybe( + http_archive, + name = "cu__vec_map-0.8.2", + sha256 = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191", + type = "tar.gz", + urls = ["https://static.crates.io/crates/vec_map/0.8.2/download"], + strip_prefix = "vec_map-0.8.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.vec_map-0.8.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasi-0.11.0-wasi-snapshot-preview1", + sha256 = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasi/0.11.0+wasi-snapshot-preview1/download"], + strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), + ) + + maybe( + new_git_repository, + name = "cu__wasmsign-0.1.2", + branch = "master", + init_submodules = True, + remote = "https://github.com/jedisct1/wasmsign", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.wasmsign-0.1.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__winapi-0.3.9", + sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", + type = "tar.gz", + urls = ["https://static.crates.io/crates/winapi/0.3.9/download"], + strip_prefix = "winapi-0.3.9", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.winapi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "cu__winapi-i686-pc-windows-gnu-0.4.0", + sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", + type = "tar.gz", + urls = ["https://static.crates.io/crates/winapi-i686-pc-windows-gnu/0.4.0/download"], + strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__winapi-x86_64-pc-windows-gnu-0.4.0", + sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download"], + strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), + ) diff --git a/bazel/cargo/wasmtime/BUILD.bazel b/bazel/cargo/wasmtime/BUILD.bazel index 75c6a1d79..969a2a96a 100644 --- a/bazel/cargo/wasmtime/BUILD.bazel +++ b/bazel/cargo/wasmtime/BUILD.bazel @@ -1,66 +1,35 @@ -""" -@generated -cargo-raze generated Bazel file. +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@rules_rust//crate_universe:defs.bzl", "crates_vendor") -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -package(default_visibility = ["//visibility:public"]) - -licenses([ - "notice", # See individual crates for specific licenses -]) - -# Aliased targets -alias( - name = "anyhow", - actual = "@wasmtime__anyhow__1_0_71//:anyhow", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "env_logger", - actual = "@wasmtime__env_logger__0_10_0//:env_logger", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "once_cell", - actual = "@wasmtime__once_cell__1_17_2//:once_cell", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "wasmtime", - actual = "@wasmtime__wasmtime__9_0_3//:wasmtime", - tags = [ - "cargo-raze", - "manual", - ], -) - -alias( - name = "wasmtime_c_api_macros", - actual = "@wasmtime__wasmtime_c_api_macros__0_0_0//:wasmtime_c_api_macros", - tags = [ - "cargo-raze", - "manual", - ], -) - -# Export file for Stardoc support exports_files( [ - "crates.bzl", + "Cargo.toml", + "Cargo.Bazel.lock", ], - visibility = ["//visibility:public"], +) + +# Run this target to regenerate cargo_lockfile and vendor_path/*. +# $ bazelisk run bazel/cargo/wasmtime:crates_vendor -- --repin +crates_vendor( + name = "crates_vendor", + cargo_lockfile = ":Cargo.Bazel.lock", + generate_target_compatible_with = False, + manifests = [":Cargo.toml"], + mode = "remote", + repository_name = "cu", # shorten generated paths for Windows... + tags = ["manual"], + vendor_path = "remote", ) diff --git a/bazel/cargo/wasmtime/Cargo.raze.lock b/bazel/cargo/wasmtime/Cargo.Bazel.lock similarity index 62% rename from bazel/cargo/wasmtime/Cargo.raze.lock rename to bazel/cargo/wasmtime/Cargo.Bazel.lock index 6c0f7a2bd..cf52418e9 100644 --- a/bazel/cargo/wasmtime/Cargo.raze.lock +++ b/bazel/cargo/wasmtime/Cargo.Bazel.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "addr2line" version = "0.19.0" @@ -11,41 +13,42 @@ dependencies = [ [[package]] name = "ahash" -version = "0.8.3" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f" +checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" dependencies = [ "cfg-if", "once_cell", "version_check", + "zerocopy", ] [[package]] name = "aho-corasick" -version = "1.0.1" +version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04" +checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916" dependencies = [ "memchr", ] [[package]] name = "anyhow" -version = "1.0.71" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8" +checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" [[package]] name = "arbitrary" -version = "1.3.0" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2d098ff73c1ca148721f37baad5ea6a465a13f9573aba8641fbbbae8164a54e" +checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" [[package]] name = "autocfg" -version = "1.1.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" +checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" [[package]] name = "bincode" @@ -64,27 +67,27 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bitflags" -version = "2.3.1" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84" +checksum = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de" [[package]] name = "bumpalo" -version = "3.13.0" +version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" +checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "byteorder" -version = "1.4.3" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610" +checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "cc" -version = "1.0.79" +version = "1.1.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f" +checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" [[package]] name = "cfg-if" @@ -103,18 +106,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c064a534a914eb6709d198525321a386dad50627aecfaf64053f369993a3e5a" +checksum = "182b82f78049f54d3aee5a19870d356ef754226665a695ce2fcdd5d55379718e" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "619ed4d24acef0bd58b16a1be39077c0b36c65782e6c933892439af5e799110e" +checksum = "e7c027bf04ecae5b048d3554deb888061bc26f426afff47bf06d6ac933dce0a6" dependencies = [ "bumpalo", "cranelift-bforest", @@ -133,42 +136,42 @@ dependencies = [ [[package]] name = "cranelift-codegen-meta" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c777ce22678ae1869f990b2f31e0cd7ca109049213bfc0baf3e2205a18b21ebb" +checksum = "649f70038235e4c81dba5680d7e5ae83e1081f567232425ab98b55b03afd9904" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb65884d17a1fa55990dd851c43c140afb4c06c3312cf42cfa1222c3b23f9561" +checksum = "7a1d1c5ee2611c6a0bdc8d42d5d3dc5ce8bf53a8040561e26e88b9b21f966417" [[package]] name = "cranelift-control" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a0cea8abc90934d0a7ee189a29fd35fecd5c40f59ae7e6aab1805e8ab1a535e" +checksum = "da66a68b1f48da863d1d53209b8ddb1a6236411d2d72a280ffa8c2f734f7219e" dependencies = [ "arbitrary", ] [[package]] name = "cranelift-entity" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2e50bebc05f2401a1320169314b62f91ad811ef20163cac00151d78e0684d4c" +checksum = "9bd897422dbb66621fa558f4d9209875530c53e3c8f4b13b2849fbb667c431a6" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b82ccfe704d53f669791399d417928410785132d809ec46f5e2ce069e9d17c8" +checksum = "05db883114c98cfcd6959f72278d2fec42e01ea6a6982cfe4f20e88eebe86653" dependencies = [ "cranelift-codegen", "log", @@ -178,15 +181,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2515d8e7836f9198b160b2c80aaa1f586d7749d57d6065af86223fb65b7e2c3" +checksum = "84559de86e2564152c87e299c8b2559f9107e9c6d274b24ebeb04fb0a5f4abf8" [[package]] name = "cranelift-native" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcb47ffdcdac7e9fed6e4a618939773a4dc4a412fa7da9e701ae667431a10af3" +checksum = "3f40b57f187f0fe1ffaf281df4adba2b4bc623a0f6651954da9f3c184be72761" dependencies = [ "cranelift-codegen", "libc", @@ -195,9 +198,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.96.3" +version = "0.96.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "852390f92c3eaa457e42be44d174ff5abbbcd10062d5963bda8ffb2505e73a71" +checksum = "f3eab6084cc789b9dd0b1316241efeb2968199fee709f4bb4fe0fb0923bb468b" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -211,9 +214,9 @@ dependencies = [ [[package]] name = "crc32fast" -version = "1.3.2" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d" +checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3" dependencies = [ "cfg-if", ] @@ -229,15 +232,15 @@ dependencies = [ [[package]] name = "either" -version = "1.8.1" +version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91" +checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" [[package]] name = "env_logger" -version = "0.10.0" +version = "0.10.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0" +checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580" dependencies = [ "humantime", "is-terminal", @@ -248,23 +251,12 @@ dependencies = [ [[package]] name = "errno" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a" -dependencies = [ - "errno-dragonfly", - "libc", - "windows-sys", -] - -[[package]] -name = "errno-dragonfly" -version = "0.1.2" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf" +checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ - "cc", "libc", + "windows-sys 0.52.0", ] [[package]] @@ -275,9 +267,9 @@ checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" [[package]] name = "form_urlencoded" -version = "1.1.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ "percent-encoding", ] @@ -297,7 +289,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd" dependencies = [ - "bitflags 2.3.1", + "bitflags 2.6.0", "debugid", "fxhash", "serde", @@ -306,9 +298,9 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.9" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" dependencies = [ "cfg-if", "libc", @@ -317,9 +309,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.27.2" +version = "0.27.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4" +checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" dependencies = [ "fallible-iterator", "indexmap", @@ -343,9 +335,9 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.3.1" +version = "0.3.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" +checksum = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024" [[package]] name = "humantime" @@ -355,9 +347,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "idna" -version = "0.3.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -382,19 +374,18 @@ checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" dependencies = [ "hermit-abi", "libc", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] name = "is-terminal" -version = "0.4.7" +version = "0.4.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f" +checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" dependencies = [ "hermit-abi", - "io-lifetimes", - "rustix", - "windows-sys", + "libc", + "windows-sys 0.52.0", ] [[package]] @@ -408,15 +399,15 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.6" +version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6" +checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" [[package]] name = "libc" -version = "0.2.144" +version = "0.2.155" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "linux-raw-sys" @@ -424,11 +415,17 @@ version = "0.3.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" +[[package]] +name = "linux-raw-sys" +version = "0.4.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89" + [[package]] name = "log" -version = "0.4.18" +version = "0.4.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de" +checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "mach" @@ -441,17 +438,17 @@ dependencies = [ [[package]] name = "memchr" -version = "2.5.0" +version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" [[package]] name = "memfd" -version = "0.6.3" +version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e" +checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix", + "rustix 0.38.34", ] [[package]] @@ -465,9 +462,9 @@ dependencies = [ [[package]] name = "object" -version = "0.30.3" +version = "0.30.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439" +checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" dependencies = [ "crc32fast", "hashbrown 0.13.2", @@ -477,21 +474,21 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.17.2" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "paste" -version = "1.0.12" +version = "1.0.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79" +checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "percent-encoding" -version = "2.2.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "ppv-lite86" @@ -501,9 +498,9 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" [[package]] name = "proc-macro2" -version = "1.0.59" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ "unicode-ident", ] @@ -519,9 +516,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.28" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -571,9 +568,21 @@ dependencies = [ [[package]] name = "regex" -version = "1.8.3" +version = "1.10.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390" +checksum = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f" +dependencies = [ + "aho-corasick", + "memchr", + "regex-automata", + "regex-syntax", +] + +[[package]] +name = "regex-automata" +version = "0.4.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df" dependencies = [ "aho-corasick", "memchr", @@ -582,15 +591,15 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.7.2" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" +checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" [[package]] name = "rustc-demangle" -version = "0.1.23" +version = "0.1.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" +checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" [[package]] name = "rustc-hash" @@ -600,38 +609,51 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustix" -version = "0.37.19" +version = "0.37.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d" +checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" dependencies = [ "bitflags 1.3.2", "errno", "io-lifetimes", "libc", - "linux-raw-sys", - "windows-sys", + "linux-raw-sys 0.3.8", + "windows-sys 0.48.0", +] + +[[package]] +name = "rustix" +version = "0.38.34" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" +dependencies = [ + "bitflags 2.6.0", + "errno", + "libc", + "linux-raw-sys 0.4.14", + "windows-sys 0.52.0", ] [[package]] name = "ryu" -version = "1.0.13" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041" +checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" [[package]] name = "serde" -version = "1.0.163" +version = "1.0.204" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2" +checksum = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.163" +version = "1.0.204" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e" +checksum = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222" dependencies = [ "proc-macro2", "quote", @@ -640,9 +662,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.96" +version = "1.0.120" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1" +checksum = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5" dependencies = [ "itoa", "ryu", @@ -657,9 +679,9 @@ checksum = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7" [[package]] name = "smallvec" -version = "1.10.0" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "stable_deref_trait" @@ -669,9 +691,9 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "syn" -version = "2.0.18" +version = "2.0.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e" +checksum = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af" dependencies = [ "proc-macro2", "quote", @@ -680,33 +702,33 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.7" +version = "0.12.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5" +checksum = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2" [[package]] name = "termcolor" -version = "1.2.0" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" dependencies = [ "winapi-util", ] [[package]] name = "thiserror" -version = "1.0.40" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac" +checksum = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.40" +version = "1.0.63" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f" +checksum = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261" dependencies = [ "proc-macro2", "quote", @@ -715,9 +737,9 @@ dependencies = [ [[package]] name = "tinyvec" -version = "1.6.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50" +checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" dependencies = [ "tinyvec_macros", ] @@ -730,30 +752,30 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "unicode-bidi" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" -version = "1.0.9" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" dependencies = [ "tinyvec", ] [[package]] name = "url" -version = "2.3.1" +version = "2.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643" +checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" dependencies = [ "form_urlencoded", "idna", @@ -762,15 +784,15 @@ dependencies = [ [[package]] name = "uuid" -version = "1.3.3" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "345444e32442451b267fc254ae85a209c64be56d2890e601a0c37ff0c3c5ecd2" +checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" [[package]] name = "version_check" -version = "0.9.4" +version = "0.9.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f" +checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] name = "wasi" @@ -790,9 +812,9 @@ dependencies = [ [[package]] name = "wasmtime" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa0f72886c3264eb639f50188d1eb98b975564130292fea8deb4facf91ca7258" +checksum = "634357e8668774b24c80b210552f3f194e2342a065d6d83845ba22c5817d0770" dependencies = [ "anyhow", "bincode", @@ -814,14 +836,14 @@ dependencies = [ "wasmtime-environ", "wasmtime-jit", "wasmtime-runtime", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] name = "wasmtime-asm-macros" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a18391ed41ca957eecdbe64c51879b75419cbc52e2d8663fe82945b28b4f19da" +checksum = "d33c73c24ce79b0483a3b091a9acf88871f4490b88998e8974b22236264d304c" dependencies = [ "cfg-if", ] @@ -848,9 +870,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a2495036d05eb1e79ecf22e092eeacd279dcf24b4fcab77fb4cf8ef9bd42c3ea" +checksum = "5800616a28ed6bd5e8b99ea45646c956d798ae030494ac0689bc3e45d3b689c1" dependencies = [ "anyhow", "cranelift-codegen", @@ -871,9 +893,9 @@ dependencies = [ [[package]] name = "wasmtime-cranelift-shared" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef677f7b0d3f3b73275675486d791f1e85e7c24afe8dd367c6b9950028906330" +checksum = "27e4030b959ac5c5d6ee500078977e813f8768fa2b92fc12be01856cd0c76c55" dependencies = [ "anyhow", "cranelift-codegen", @@ -887,9 +909,9 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2d03356374ffafa881c5f972529d2bb11ce48fe2736285e2b0ad72c6d554257b" +checksum = "9ec815d01a8d38aceb7ed4678f9ba551ae6b8a568a63810ac3ad9293b0fd01c8" dependencies = [ "anyhow", "cranelift-entity", @@ -906,9 +928,9 @@ dependencies = [ [[package]] name = "wasmtime-jit" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e5374f0d2ee0069391dd9348f148802846b2b3e0af650385f9c56b3012d3c5d1" +checksum = "2712eafe829778b426cad0e1769fef944898923dd29f0039e34e0d53ba72b234" dependencies = [ "addr2line", "anyhow", @@ -924,34 +946,34 @@ dependencies = [ "wasmtime-environ", "wasmtime-jit-icache-coherence", "wasmtime-runtime", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] name = "wasmtime-jit-debug" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "102653b177225bfdd2da41cc385965d4bf6bc10cf14ec7b306bc9b015fb01c22" +checksum = "65fb78eacf4a6e47260d8ef8cc81ea8ddb91397b2e848b3fb01567adebfe89b5" dependencies = [ "once_cell", ] [[package]] name = "wasmtime-jit-icache-coherence" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "374ff63b3eb41db57c56682a9ef7737d2c9efa801f5dbf9da93941c9dd436a06" +checksum = "d1364900b05f7d6008516121e8e62767ddb3e176bdf4c84dfa85da1734aeab79" dependencies = [ "cfg-if", "libc", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] name = "wasmtime-runtime" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b1b832f19099066ebd26e683121d331f12cf98f158eac0f889972854413b46f" +checksum = "4a16ffe4de9ac9669175c0ea5c6c51ffc596dfb49320aaa6f6c57eff58cef069" dependencies = [ "anyhow", "cc", @@ -964,18 +986,18 @@ dependencies = [ "memoffset", "paste", "rand", - "rustix", + "rustix 0.37.27", "wasmtime-asm-macros", "wasmtime-environ", "wasmtime-jit-debug", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] name = "wasmtime-types" -version = "9.0.3" +version = "9.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c574221440e05bbb04efa09786d049401be2eb10081ecf43eb72fbd637bd12f" +checksum = "19961c9a3b04d5e766875a5c467f6f5d693f508b3e81f8dc4a1444aa94f041c9" dependencies = [ "cranelift-entity", "serde", @@ -984,98 +1006,169 @@ dependencies = [ ] [[package]] -name = "winapi" -version = "0.3.9" +name = "winapi-util" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" +checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", + "windows-sys 0.52.0", ] [[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-util" -version = "0.1.5" +name = "windows-sys" +version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178" +checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "winapi", + "windows-targets 0.48.5", ] [[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" +name = "windows-sys" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.6", +] [[package]] -name = "windows-sys" -version = "0.48.0" +name = "windows-targets" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows-targets", + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", ] [[package]] name = "windows-targets" -version = "0.48.0" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5" +checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_aarch64_gnullvm 0.52.6", + "windows_aarch64_msvc 0.52.6", + "windows_i686_gnu 0.52.6", + "windows_i686_gnullvm", + "windows_i686_msvc 0.52.6", + "windows_x86_64_gnu 0.52.6", + "windows_x86_64_gnullvm 0.52.6", + "windows_x86_64_msvc 0.52.6", ] [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" [[package]] name = "windows_aarch64_msvc" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" + +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3" +checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" [[package]] name = "windows_i686_gnu" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" + +[[package]] +name = "windows_i686_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" + +[[package]] +name = "windows_i686_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241" +checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" [[package]] name = "windows_i686_msvc" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" + +[[package]] +name = "windows_i686_msvc" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00" +checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" [[package]] name = "windows_x86_64_gnu" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" + +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.0" +version = "0.48.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953" +checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" -version = "0.48.0" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" + +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" + +[[package]] +name = "zerocopy" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0" +dependencies = [ + "zerocopy-derive", +] + +[[package]] +name = "zerocopy-derive" +version = "0.7.35" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 238b91609..74b561763 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -13,30 +13,3 @@ anyhow = "1.0" once_cell = "1.12" wasmtime = {version = "9.0.3", default-features = false, features = ['cranelift']} wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v9.0.3"} - -[package.metadata.raze] -rust_rules_workspace_name = "rules_rust" -gen_workspace_prefix = "wasmtime" -genmode = "Remote" -package_aliases_dir = "." -workspace_path = "//bazel/cargo/wasmtime" - -[package.metadata.raze.crates.cranelift-isle.'*'] -patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", -] -patch_args = ["-p4"] - -[package.metadata.raze.crates.bumpalo.'*'] -patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:bumpalo.patch", -] -patch_args = ["-p1"] - -[package.metadata.raze.crates.rustix.'*'] -additional_flags = [ - "--cfg=feature=\\\"cc\\\"", -] -buildrs_additional_deps = [ - "@wasmtime__cc__1_0_79//:cc", -] diff --git a/bazel/cargo/wasmtime/bumpalo.patch b/bazel/cargo/wasmtime/bumpalo.patch deleted file mode 100644 index 22befe431..000000000 --- a/bazel/cargo/wasmtime/bumpalo.patch +++ /dev/null @@ -1,9 +0,0 @@ -diff --git a/src/lib.rs b/src/lib.rs -index be68365..47c14cd 100644 ---- a/src/lib.rs -+++ b/src/lib.rs -@@ -1,4 +1,3 @@ --#![doc = include_str!("../README.md")] - #![deny(missing_debug_implementations)] - #![deny(missing_docs)] - #![no_std] diff --git a/bazel/cargo/wasmtime/cranelift-isle.patch b/bazel/cargo/wasmtime/cranelift-isle.patch deleted file mode 100644 index 5fca1d9d0..000000000 --- a/bazel/cargo/wasmtime/cranelift-isle.patch +++ /dev/null @@ -1,9 +0,0 @@ -diff --git a/cranelift/isle/isle/src/lib.rs b/cranelift/isle/isle/src/lib.rs -index 1164dafc3..4a9ad01ad 100644 ---- a/cranelift/isle/isle/src/lib.rs -+++ b/cranelift/isle/isle/src/lib.rs -@@ -1,4 +1,3 @@ --#![doc = include_str!("../README.md")] - #![deny(missing_docs)] - - use std::collections::hash_map::Entry; diff --git a/bazel/cargo/wasmtime/crates.bzl b/bazel/cargo/wasmtime/crates.bzl deleted file mode 100644 index 1c0e575af..000000000 --- a/bazel/cargo/wasmtime/crates.bzl +++ /dev/null @@ -1,1183 +0,0 @@ -""" -@generated -cargo-raze generated Bazel file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load -load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load - -def wasmtime_fetch_remote_crates(): - """This function defines a collection of repos and should be called in a WORKSPACE file""" - maybe( - http_archive, - name = "wasmtime__addr2line__0_19_0", - url = "https://crates.io/api/v1/crates/addr2line/0.19.0/download", - type = "tar.gz", - sha256 = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97", - strip_prefix = "addr2line-0.19.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.addr2line-0.19.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__ahash__0_8_3", - url = "https://crates.io/api/v1/crates/ahash/0.8.3/download", - type = "tar.gz", - sha256 = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f", - strip_prefix = "ahash-0.8.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ahash-0.8.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__aho_corasick__1_0_1", - url = "https://crates.io/api/v1/crates/aho-corasick/1.0.1/download", - type = "tar.gz", - sha256 = "67fc08ce920c31afb70f013dcce1bfc3a3195de6a228474e45e1f145b36f8d04", - strip_prefix = "aho-corasick-1.0.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-1.0.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__anyhow__1_0_71", - url = "https://crates.io/api/v1/crates/anyhow/1.0.71/download", - type = "tar.gz", - sha256 = "9c7d0618f0e0b7e8ff11427422b64564d5fb0be1940354bfe2e0529b18a9d9b8", - strip_prefix = "anyhow-1.0.71", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.71.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__arbitrary__1_3_0", - url = "https://crates.io/api/v1/crates/arbitrary/1.3.0/download", - type = "tar.gz", - sha256 = "e2d098ff73c1ca148721f37baad5ea6a465a13f9573aba8641fbbbae8164a54e", - strip_prefix = "arbitrary-1.3.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.arbitrary-1.3.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__autocfg__1_1_0", - url = "https://crates.io/api/v1/crates/autocfg/1.1.0/download", - type = "tar.gz", - sha256 = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa", - strip_prefix = "autocfg-1.1.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.autocfg-1.1.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__bincode__1_3_3", - url = "https://crates.io/api/v1/crates/bincode/1.3.3/download", - type = "tar.gz", - sha256 = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad", - strip_prefix = "bincode-1.3.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bincode-1.3.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__bitflags__1_3_2", - url = "https://crates.io/api/v1/crates/bitflags/1.3.2/download", - type = "tar.gz", - sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", - strip_prefix = "bitflags-1.3.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bitflags-1.3.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__bitflags__2_3_1", - url = "https://crates.io/api/v1/crates/bitflags/2.3.1/download", - type = "tar.gz", - sha256 = "6776fc96284a0bb647b615056fc496d1fe1644a7ab01829818a6d91cae888b84", - strip_prefix = "bitflags-2.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bitflags-2.3.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__bumpalo__3_13_0", - url = "https://crates.io/api/v1/crates/bumpalo/3.13.0/download", - type = "tar.gz", - sha256 = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1", - strip_prefix = "bumpalo-3.13.0", - patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:bumpalo.patch", - ], - patch_args = [ - "-p1", - ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.bumpalo-3.13.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__byteorder__1_4_3", - url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", - type = "tar.gz", - sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", - strip_prefix = "byteorder-1.4.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.byteorder-1.4.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cc__1_0_79", - url = "https://crates.io/api/v1/crates/cc/1.0.79/download", - type = "tar.gz", - sha256 = "50d30906286121d95be3d479533b458f87493b30a4b5f79a607db8f5d11aa91f", - strip_prefix = "cc-1.0.79", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cc-1.0.79.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cfg_if__1_0_0", - url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", - type = "tar.gz", - sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", - strip_prefix = "cfg-if-1.0.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cfg-if-1.0.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cpp_demangle__0_3_5", - url = "https://crates.io/api/v1/crates/cpp_demangle/0.3.5/download", - type = "tar.gz", - sha256 = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f", - strip_prefix = "cpp_demangle-0.3.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cpp_demangle-0.3.5.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_bforest__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-bforest/0.96.3/download", - type = "tar.gz", - sha256 = "9c064a534a914eb6709d198525321a386dad50627aecfaf64053f369993a3e5a", - strip_prefix = "cranelift-bforest-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_codegen__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-codegen/0.96.3/download", - type = "tar.gz", - sha256 = "619ed4d24acef0bd58b16a1be39077c0b36c65782e6c933892439af5e799110e", - strip_prefix = "cranelift-codegen-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_codegen_meta__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-codegen-meta/0.96.3/download", - type = "tar.gz", - sha256 = "c777ce22678ae1869f990b2f31e0cd7ca109049213bfc0baf3e2205a18b21ebb", - strip_prefix = "cranelift-codegen-meta-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_codegen_shared__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-codegen-shared/0.96.3/download", - type = "tar.gz", - sha256 = "eb65884d17a1fa55990dd851c43c140afb4c06c3312cf42cfa1222c3b23f9561", - strip_prefix = "cranelift-codegen-shared-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_control__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-control/0.96.3/download", - type = "tar.gz", - sha256 = "9a0cea8abc90934d0a7ee189a29fd35fecd5c40f59ae7e6aab1805e8ab1a535e", - strip_prefix = "cranelift-control-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-control-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_entity__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-entity/0.96.3/download", - type = "tar.gz", - sha256 = "c2e50bebc05f2401a1320169314b62f91ad811ef20163cac00151d78e0684d4c", - strip_prefix = "cranelift-entity-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_frontend__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-frontend/0.96.3/download", - type = "tar.gz", - sha256 = "7b82ccfe704d53f669791399d417928410785132d809ec46f5e2ce069e9d17c8", - strip_prefix = "cranelift-frontend-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_isle__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-isle/0.96.3/download", - type = "tar.gz", - sha256 = "a2515d8e7836f9198b160b2c80aaa1f586d7749d57d6065af86223fb65b7e2c3", - strip_prefix = "cranelift-isle-0.96.3", - patches = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:cranelift-isle.patch", - ], - patch_args = [ - "-p4", - ], - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_native__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-native/0.96.3/download", - type = "tar.gz", - sha256 = "bcb47ffdcdac7e9fed6e4a618939773a4dc4a412fa7da9e701ae667431a10af3", - strip_prefix = "cranelift-native-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__cranelift_wasm__0_96_3", - url = "https://crates.io/api/v1/crates/cranelift-wasm/0.96.3/download", - type = "tar.gz", - sha256 = "852390f92c3eaa457e42be44d174ff5abbbcd10062d5963bda8ffb2505e73a71", - strip_prefix = "cranelift-wasm-0.96.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.96.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__crc32fast__1_3_2", - url = "https://crates.io/api/v1/crates/crc32fast/1.3.2/download", - type = "tar.gz", - sha256 = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d", - strip_prefix = "crc32fast-1.3.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.3.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__debugid__0_8_0", - url = "https://crates.io/api/v1/crates/debugid/0.8.0/download", - type = "tar.gz", - sha256 = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d", - strip_prefix = "debugid-0.8.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.debugid-0.8.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__either__1_8_1", - url = "https://crates.io/api/v1/crates/either/1.8.1/download", - type = "tar.gz", - sha256 = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91", - strip_prefix = "either-1.8.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.either-1.8.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__env_logger__0_10_0", - url = "https://crates.io/api/v1/crates/env_logger/0.10.0/download", - type = "tar.gz", - sha256 = "85cdab6a89accf66733ad5a1693a4dcced6aeff64602b634530dd73c1f3ee9f0", - strip_prefix = "env_logger-0.10.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.10.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__errno__0_3_1", - url = "https://crates.io/api/v1/crates/errno/0.3.1/download", - type = "tar.gz", - sha256 = "4bcfec3a70f97c962c307b2d2c56e358cf1d00b558d74262b5f929ee8cc7e73a", - strip_prefix = "errno-0.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.errno-0.3.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__errno_dragonfly__0_1_2", - url = "https://crates.io/api/v1/crates/errno-dragonfly/0.1.2/download", - type = "tar.gz", - sha256 = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf", - strip_prefix = "errno-dragonfly-0.1.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.errno-dragonfly-0.1.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__fallible_iterator__0_2_0", - url = "https://crates.io/api/v1/crates/fallible-iterator/0.2.0/download", - type = "tar.gz", - sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", - strip_prefix = "fallible-iterator-0.2.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.fallible-iterator-0.2.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__form_urlencoded__1_1_0", - url = "https://crates.io/api/v1/crates/form_urlencoded/1.1.0/download", - type = "tar.gz", - sha256 = "a9c384f161156f5260c24a097c56119f9be8c798586aecc13afbcbe7b7e26bf8", - strip_prefix = "form_urlencoded-1.1.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.form_urlencoded-1.1.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__fxhash__0_2_1", - url = "https://crates.io/api/v1/crates/fxhash/0.2.1/download", - type = "tar.gz", - sha256 = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c", - strip_prefix = "fxhash-0.2.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.fxhash-0.2.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__fxprof_processed_profile__0_6_0", - url = "https://crates.io/api/v1/crates/fxprof-processed-profile/0.6.0/download", - type = "tar.gz", - sha256 = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd", - strip_prefix = "fxprof-processed-profile-0.6.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.fxprof-processed-profile-0.6.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__getrandom__0_2_9", - url = "https://crates.io/api/v1/crates/getrandom/0.2.9/download", - type = "tar.gz", - sha256 = "c85e1d9ab2eadba7e5040d4e09cbd6d072b76a557ad64e797c2cb9d4da21d7e4", - strip_prefix = "getrandom-0.2.9", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.9.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__gimli__0_27_2", - url = "https://crates.io/api/v1/crates/gimli/0.27.2/download", - type = "tar.gz", - sha256 = "ad0a93d233ebf96623465aad4046a8d3aa4da22d4f4beba5388838c8a434bbb4", - strip_prefix = "gimli-0.27.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.gimli-0.27.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__hashbrown__0_12_3", - url = "https://crates.io/api/v1/crates/hashbrown/0.12.3/download", - type = "tar.gz", - sha256 = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888", - strip_prefix = "hashbrown-0.12.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.12.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__hashbrown__0_13_2", - url = "https://crates.io/api/v1/crates/hashbrown/0.13.2/download", - type = "tar.gz", - sha256 = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e", - strip_prefix = "hashbrown-0.13.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.13.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__hermit_abi__0_3_1", - url = "https://crates.io/api/v1/crates/hermit-abi/0.3.1/download", - type = "tar.gz", - sha256 = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286", - strip_prefix = "hermit-abi-0.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.hermit-abi-0.3.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__humantime__2_1_0", - url = "https://crates.io/api/v1/crates/humantime/2.1.0/download", - type = "tar.gz", - sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4", - strip_prefix = "humantime-2.1.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.humantime-2.1.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__idna__0_3_0", - url = "https://crates.io/api/v1/crates/idna/0.3.0/download", - type = "tar.gz", - sha256 = "e14ddfc70884202db2244c223200c204c2bda1bc6e0998d11b5e024d657209e6", - strip_prefix = "idna-0.3.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.idna-0.3.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__indexmap__1_9_3", - url = "https://crates.io/api/v1/crates/indexmap/1.9.3/download", - type = "tar.gz", - sha256 = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99", - strip_prefix = "indexmap-1.9.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__io_lifetimes__1_0_11", - url = "https://crates.io/api/v1/crates/io-lifetimes/1.0.11/download", - type = "tar.gz", - sha256 = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2", - strip_prefix = "io-lifetimes-1.0.11", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-1.0.11.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__is_terminal__0_4_7", - url = "https://crates.io/api/v1/crates/is-terminal/0.4.7/download", - type = "tar.gz", - sha256 = "adcf93614601c8129ddf72e2d5633df827ba6551541c6d8c59520a371475be1f", - strip_prefix = "is-terminal-0.4.7", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.is-terminal-0.4.7.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__itertools__0_10_5", - url = "https://crates.io/api/v1/crates/itertools/0.10.5/download", - type = "tar.gz", - sha256 = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473", - strip_prefix = "itertools-0.10.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.itertools-0.10.5.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__itoa__1_0_6", - url = "https://crates.io/api/v1/crates/itoa/1.0.6/download", - type = "tar.gz", - sha256 = "453ad9f582a441959e5f0d088b02ce04cfe8d51a8eaf077f12ac6d3e94164ca6", - strip_prefix = "itoa-1.0.6", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.itoa-1.0.6.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__libc__0_2_144", - url = "https://crates.io/api/v1/crates/libc/0.2.144/download", - type = "tar.gz", - sha256 = "2b00cc1c228a6782d0f076e7b232802e0c5689d41bb5df366f2a6b6621cfdfe1", - strip_prefix = "libc-0.2.144", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.144.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__linux_raw_sys__0_3_8", - url = "https://crates.io/api/v1/crates/linux-raw-sys/0.3.8/download", - type = "tar.gz", - sha256 = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519", - strip_prefix = "linux-raw-sys-0.3.8", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.3.8.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__log__0_4_18", - url = "https://crates.io/api/v1/crates/log/0.4.18/download", - type = "tar.gz", - sha256 = "518ef76f2f87365916b142844c16d8fefd85039bc5699050210a7778ee1cd1de", - strip_prefix = "log-0.4.18", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.log-0.4.18.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__mach__0_3_2", - url = "https://crates.io/api/v1/crates/mach/0.3.2/download", - type = "tar.gz", - sha256 = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa", - strip_prefix = "mach-0.3.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.mach-0.3.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__memchr__2_5_0", - url = "https://crates.io/api/v1/crates/memchr/2.5.0/download", - type = "tar.gz", - sha256 = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d", - strip_prefix = "memchr-2.5.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memchr-2.5.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__memfd__0_6_3", - url = "https://crates.io/api/v1/crates/memfd/0.6.3/download", - type = "tar.gz", - sha256 = "ffc89ccdc6e10d6907450f753537ebc5c5d3460d2e4e62ea74bd571db62c0f9e", - strip_prefix = "memfd-0.6.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memfd-0.6.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__memoffset__0_8_0", - url = "https://crates.io/api/v1/crates/memoffset/0.8.0/download", - type = "tar.gz", - sha256 = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1", - strip_prefix = "memoffset-0.8.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.8.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__object__0_30_3", - url = "https://crates.io/api/v1/crates/object/0.30.3/download", - type = "tar.gz", - sha256 = "ea86265d3d3dcb6a27fc51bd29a4bf387fae9d2986b823079d4986af253eb439", - strip_prefix = "object-0.30.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.object-0.30.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__once_cell__1_17_2", - url = "https://crates.io/api/v1/crates/once_cell/1.17.2/download", - type = "tar.gz", - sha256 = "9670a07f94779e00908f3e686eab508878ebb390ba6e604d3a284c00e8d0487b", - strip_prefix = "once_cell-1.17.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.17.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__paste__1_0_12", - url = "https://crates.io/api/v1/crates/paste/1.0.12/download", - type = "tar.gz", - sha256 = "9f746c4065a8fa3fe23974dd82f15431cc8d40779821001404d10d2e79ca7d79", - strip_prefix = "paste-1.0.12", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.12.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__percent_encoding__2_2_0", - url = "https://crates.io/api/v1/crates/percent-encoding/2.2.0/download", - type = "tar.gz", - sha256 = "478c572c3d73181ff3c2539045f6eb99e5491218eae919370993b890cdbdd98e", - strip_prefix = "percent-encoding-2.2.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.percent-encoding-2.2.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__ppv_lite86__0_2_17", - url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.17/download", - type = "tar.gz", - sha256 = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de", - strip_prefix = "ppv-lite86-0.2.17", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ppv-lite86-0.2.17.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__proc_macro2__1_0_59", - url = "https://crates.io/api/v1/crates/proc-macro2/1.0.59/download", - type = "tar.gz", - sha256 = "6aeca18b86b413c660b781aa319e4e2648a3e6f9eadc9b47e9038e6fe9f3451b", - strip_prefix = "proc-macro2-1.0.59", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.59.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__psm__0_1_21", - url = "https://crates.io/api/v1/crates/psm/0.1.21/download", - type = "tar.gz", - sha256 = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874", - strip_prefix = "psm-0.1.21", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.21.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__quote__1_0_28", - url = "https://crates.io/api/v1/crates/quote/1.0.28/download", - type = "tar.gz", - sha256 = "1b9ab9c7eadfd8df19006f1cf1a4aed13540ed5cbc047010ece5826e10825488", - strip_prefix = "quote-1.0.28", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.28.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__rand__0_8_5", - url = "https://crates.io/api/v1/crates/rand/0.8.5/download", - type = "tar.gz", - sha256 = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404", - strip_prefix = "rand-0.8.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand-0.8.5.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__rand_chacha__0_3_1", - url = "https://crates.io/api/v1/crates/rand_chacha/0.3.1/download", - type = "tar.gz", - sha256 = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88", - strip_prefix = "rand_chacha-0.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_chacha-0.3.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__rand_core__0_6_4", - url = "https://crates.io/api/v1/crates/rand_core/0.6.4/download", - type = "tar.gz", - sha256 = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c", - strip_prefix = "rand_core-0.6.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rand_core-0.6.4.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__regalloc2__0_8_1", - url = "https://crates.io/api/v1/crates/regalloc2/0.8.1/download", - type = "tar.gz", - sha256 = "d4a52e724646c6c0800fc456ec43b4165d2f91fba88ceaca06d9e0b400023478", - strip_prefix = "regalloc2-0.8.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.8.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__regex__1_8_3", - url = "https://crates.io/api/v1/crates/regex/1.8.3/download", - type = "tar.gz", - sha256 = "81ca098a9821bd52d6b24fd8b10bd081f47d39c22778cafaa75a2857a62c6390", - strip_prefix = "regex-1.8.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-1.8.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__regex_syntax__0_7_2", - url = "https://crates.io/api/v1/crates/regex-syntax/0.7.2/download", - type = "tar.gz", - sha256 = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78", - strip_prefix = "regex-syntax-0.7.2", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.7.2.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__rustc_demangle__0_1_23", - url = "https://crates.io/api/v1/crates/rustc-demangle/0.1.23/download", - type = "tar.gz", - sha256 = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76", - strip_prefix = "rustc-demangle-0.1.23", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-demangle-0.1.23.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__rustc_hash__1_1_0", - url = "https://crates.io/api/v1/crates/rustc-hash/1.1.0/download", - type = "tar.gz", - sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", - strip_prefix = "rustc-hash-1.1.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustc-hash-1.1.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__rustix__0_37_19", - url = "https://crates.io/api/v1/crates/rustix/0.37.19/download", - type = "tar.gz", - sha256 = "acf8729d8542766f1b2cf77eb034d52f40d375bb8b615d0b147089946e16613d", - strip_prefix = "rustix-0.37.19", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.rustix-0.37.19.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__ryu__1_0_13", - url = "https://crates.io/api/v1/crates/ryu/1.0.13/download", - type = "tar.gz", - sha256 = "f91339c0467de62360649f8d3e185ca8de4224ff281f66000de5eb2a77a79041", - strip_prefix = "ryu-1.0.13", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.ryu-1.0.13.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__serde__1_0_163", - url = "https://crates.io/api/v1/crates/serde/1.0.163/download", - type = "tar.gz", - sha256 = "2113ab51b87a539ae008b5c6c02dc020ffa39afd2d83cffcb3f4eb2722cebec2", - strip_prefix = "serde-1.0.163", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.163.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__serde_derive__1_0_163", - url = "https://crates.io/api/v1/crates/serde_derive/1.0.163/download", - type = "tar.gz", - sha256 = "8c805777e3930c8883389c602315a24224bcc738b63905ef87cd1420353ea93e", - strip_prefix = "serde_derive-1.0.163", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.163.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__serde_json__1_0_96", - url = "https://crates.io/api/v1/crates/serde_json/1.0.96/download", - type = "tar.gz", - sha256 = "057d394a50403bcac12672b2b18fb387ab6d289d957dab67dd201875391e52f1", - strip_prefix = "serde_json-1.0.96", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.serde_json-1.0.96.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__slice_group_by__0_3_1", - url = "https://crates.io/api/v1/crates/slice-group-by/0.3.1/download", - type = "tar.gz", - sha256 = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7", - strip_prefix = "slice-group-by-0.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.slice-group-by-0.3.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__smallvec__1_10_0", - url = "https://crates.io/api/v1/crates/smallvec/1.10.0/download", - type = "tar.gz", - sha256 = "a507befe795404456341dfab10cef66ead4c041f62b8b11bbb92bffe5d0953e0", - strip_prefix = "smallvec-1.10.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.10.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__stable_deref_trait__1_2_0", - url = "https://crates.io/api/v1/crates/stable_deref_trait/1.2.0/download", - type = "tar.gz", - sha256 = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3", - strip_prefix = "stable_deref_trait-1.2.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.stable_deref_trait-1.2.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__syn__2_0_18", - url = "https://crates.io/api/v1/crates/syn/2.0.18/download", - type = "tar.gz", - sha256 = "32d41677bcbe24c20c52e7c70b0d8db04134c5d1066bf98662e2871ad200ea3e", - strip_prefix = "syn-2.0.18", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.syn-2.0.18.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__target_lexicon__0_12_7", - url = "https://crates.io/api/v1/crates/target-lexicon/0.12.7/download", - type = "tar.gz", - sha256 = "fd1ba337640d60c3e96bc6f0638a939b9c9a7f2c316a1598c279828b3d1dc8c5", - strip_prefix = "target-lexicon-0.12.7", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.7.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__termcolor__1_2_0", - url = "https://crates.io/api/v1/crates/termcolor/1.2.0/download", - type = "tar.gz", - sha256 = "be55cf8942feac5c765c2c993422806843c9a9a45d4d5c407ad6dd2ea95eb9b6", - strip_prefix = "termcolor-1.2.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.termcolor-1.2.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__thiserror__1_0_40", - url = "https://crates.io/api/v1/crates/thiserror/1.0.40/download", - type = "tar.gz", - sha256 = "978c9a314bd8dc99be594bc3c175faaa9794be04a5a5e153caba6915336cebac", - strip_prefix = "thiserror-1.0.40", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.40.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__thiserror_impl__1_0_40", - url = "https://crates.io/api/v1/crates/thiserror-impl/1.0.40/download", - type = "tar.gz", - sha256 = "f9456a42c5b0d803c8cd86e73dd7cc9edd429499f37a3550d286d5e86720569f", - strip_prefix = "thiserror-impl-1.0.40", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.40.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__tinyvec__1_6_0", - url = "https://crates.io/api/v1/crates/tinyvec/1.6.0/download", - type = "tar.gz", - sha256 = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50", - strip_prefix = "tinyvec-1.6.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.tinyvec-1.6.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__tinyvec_macros__0_1_1", - url = "https://crates.io/api/v1/crates/tinyvec_macros/0.1.1/download", - type = "tar.gz", - sha256 = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20", - strip_prefix = "tinyvec_macros-0.1.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.tinyvec_macros-0.1.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__unicode_bidi__0_3_13", - url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.13/download", - type = "tar.gz", - sha256 = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460", - strip_prefix = "unicode-bidi-0.3.13", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-bidi-0.3.13.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__unicode_ident__1_0_9", - url = "https://crates.io/api/v1/crates/unicode-ident/1.0.9/download", - type = "tar.gz", - sha256 = "b15811caf2415fb889178633e7724bad2509101cde276048e013b9def5e51fa0", - strip_prefix = "unicode-ident-1.0.9", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.9.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__unicode_normalization__0_1_22", - url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.22/download", - type = "tar.gz", - sha256 = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921", - strip_prefix = "unicode-normalization-0.1.22", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.unicode-normalization-0.1.22.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__url__2_3_1", - url = "https://crates.io/api/v1/crates/url/2.3.1/download", - type = "tar.gz", - sha256 = "0d68c799ae75762b8c3fe375feb6600ef5602c883c5d21eb51c09f22b83c4643", - strip_prefix = "url-2.3.1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.url-2.3.1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__uuid__1_3_3", - url = "https://crates.io/api/v1/crates/uuid/1.3.3/download", - type = "tar.gz", - sha256 = "345444e32442451b267fc254ae85a209c64be56d2890e601a0c37ff0c3c5ecd2", - strip_prefix = "uuid-1.3.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.uuid-1.3.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__version_check__0_9_4", - url = "https://crates.io/api/v1/crates/version_check/0.9.4/download", - type = "tar.gz", - sha256 = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f", - strip_prefix = "version_check-0.9.4", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.version_check-0.9.4.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasi__0_11_0_wasi_snapshot_preview1", - url = "https://crates.io/api/v1/crates/wasi/0.11.0+wasi-snapshot-preview1/download", - type = "tar.gz", - sha256 = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423", - strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmparser__0_103_0", - url = "https://crates.io/api/v1/crates/wasmparser/0.103.0/download", - type = "tar.gz", - sha256 = "2c437373cac5ea84f1113d648d51f71751ffbe3d90c00ae67618cf20d0b5ee7b", - strip_prefix = "wasmparser-0.103.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.103.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime/9.0.3/download", - type = "tar.gz", - sha256 = "aa0f72886c3264eb639f50188d1eb98b975564130292fea8deb4facf91ca7258", - strip_prefix = "wasmtime-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_asm_macros__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-asm-macros/9.0.3/download", - type = "tar.gz", - sha256 = "a18391ed41ca957eecdbe64c51879b75419cbc52e2d8663fe82945b28b4f19da", - strip_prefix = "wasmtime-asm-macros-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-9.0.3.bazel"), - ) - - maybe( - new_git_repository, - name = "wasmtime__wasmtime_c_api_macros__0_0_0", - remote = "https://github.com/bytecodealliance/wasmtime", - commit = "271b605e8d3d44c5d0a39bb4e65c3efb3869ff74", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.0.0.bazel"), - init_submodules = True, - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_cranelift__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift/9.0.3/download", - type = "tar.gz", - sha256 = "a2495036d05eb1e79ecf22e092eeacd279dcf24b4fcab77fb4cf8ef9bd42c3ea", - strip_prefix = "wasmtime-cranelift-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_cranelift_shared__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-cranelift-shared/9.0.3/download", - type = "tar.gz", - sha256 = "ef677f7b0d3f3b73275675486d791f1e85e7c24afe8dd367c6b9950028906330", - strip_prefix = "wasmtime-cranelift-shared-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-shared-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_environ__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-environ/9.0.3/download", - type = "tar.gz", - sha256 = "2d03356374ffafa881c5f972529d2bb11ce48fe2736285e2b0ad72c6d554257b", - strip_prefix = "wasmtime-environ-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_jit__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-jit/9.0.3/download", - type = "tar.gz", - sha256 = "e5374f0d2ee0069391dd9348f148802846b2b3e0af650385f9c56b3012d3c5d1", - strip_prefix = "wasmtime-jit-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_jit_debug__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-jit-debug/9.0.3/download", - type = "tar.gz", - sha256 = "102653b177225bfdd2da41cc385965d4bf6bc10cf14ec7b306bc9b015fb01c22", - strip_prefix = "wasmtime-jit-debug-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_jit_icache_coherence__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-jit-icache-coherence/9.0.3/download", - type = "tar.gz", - sha256 = "374ff63b3eb41db57c56682a9ef7737d2c9efa801f5dbf9da93941c9dd436a06", - strip_prefix = "wasmtime-jit-icache-coherence-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_runtime__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-runtime/9.0.3/download", - type = "tar.gz", - sha256 = "9b1b832f19099066ebd26e683121d331f12cf98f158eac0f889972854413b46f", - strip_prefix = "wasmtime-runtime-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__wasmtime_types__9_0_3", - url = "https://crates.io/api/v1/crates/wasmtime-types/9.0.3/download", - type = "tar.gz", - sha256 = "9c574221440e05bbb04efa09786d049401be2eb10081ecf43eb72fbd637bd12f", - strip_prefix = "wasmtime-types-9.0.3", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-9.0.3.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__winapi__0_3_9", - url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", - type = "tar.gz", - sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", - strip_prefix = "winapi-0.3.9", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-0.3.9.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__winapi_i686_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", - strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__winapi_util__0_1_5", - url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", - type = "tar.gz", - sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", - strip_prefix = "winapi-util-0.1.5", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-util-0.1.5.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__winapi_x86_64_pc_windows_gnu__0_4_0", - url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", - type = "tar.gz", - sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", - strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_sys__0_48_0", - url = "https://crates.io/api/v1/crates/windows-sys/0.48.0/download", - type = "tar.gz", - sha256 = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9", - strip_prefix = "windows-sys-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_targets__0_48_0", - url = "https://crates.io/api/v1/crates/windows-targets/0.48.0/download", - type = "tar.gz", - sha256 = "7b1eb6f0cd7c80c79759c929114ef071b87354ce476d9d94271031c0497adfd5", - strip_prefix = "windows-targets-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_aarch64_gnullvm__0_48_0", - url = "https://crates.io/api/v1/crates/windows_aarch64_gnullvm/0.48.0/download", - type = "tar.gz", - sha256 = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc", - strip_prefix = "windows_aarch64_gnullvm-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_aarch64_msvc__0_48_0", - url = "https://crates.io/api/v1/crates/windows_aarch64_msvc/0.48.0/download", - type = "tar.gz", - sha256 = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3", - strip_prefix = "windows_aarch64_msvc-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_i686_gnu__0_48_0", - url = "https://crates.io/api/v1/crates/windows_i686_gnu/0.48.0/download", - type = "tar.gz", - sha256 = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241", - strip_prefix = "windows_i686_gnu-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_i686_msvc__0_48_0", - url = "https://crates.io/api/v1/crates/windows_i686_msvc/0.48.0/download", - type = "tar.gz", - sha256 = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00", - strip_prefix = "windows_i686_msvc-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_x86_64_gnu__0_48_0", - url = "https://crates.io/api/v1/crates/windows_x86_64_gnu/0.48.0/download", - type = "tar.gz", - sha256 = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1", - strip_prefix = "windows_x86_64_gnu-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_x86_64_gnullvm__0_48_0", - url = "https://crates.io/api/v1/crates/windows_x86_64_gnullvm/0.48.0/download", - type = "tar.gz", - sha256 = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953", - strip_prefix = "windows_x86_64_gnullvm-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.48.0.bazel"), - ) - - maybe( - http_archive, - name = "wasmtime__windows_x86_64_msvc__0_48_0", - url = "https://crates.io/api/v1/crates/windows_x86_64_msvc/0.48.0/download", - type = "tar.gz", - sha256 = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a", - strip_prefix = "windows_x86_64_msvc-0.48.0", - build_file = Label("//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.48.0.bazel"), - ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel index 73f138c50..6444a861b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel @@ -1,63 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "addr2line" with type "example" omitted +# licenses([ +# "TODO", # Apache-2.0 OR MIT +# ]) rust_library( name = "addr2line", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=addr2line", "manual", + "noclippy", + "norustfmt", ], version = "0.19.0", - # buildifier: leave-alone deps = [ - "@wasmtime__gimli__0_27_2//:gimli", + "@cu__gimli-0.27.3//:gimli", ], ) - -# Unsupported target "correctness" with type "test" omitted - -# Unsupported target "output_equivalence" with type "test" omitted - -# Unsupported target "parse" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel new file mode 100644 index 000000000..34902b888 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel @@ -0,0 +1,181 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "ahash", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=ahash", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.11", + deps = [ + "@cu__ahash-0.8.11//:build_script_build", + "@cu__cfg-if-1.0.0//:cfg_if", + "@cu__zerocopy-0.7.35//:zerocopy", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "//conditions:default": [], + }), +) + +cargo_build_script( + name = "ahash_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=ahash", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.11", + visibility = ["//visibility:private"], + deps = [ + "@cu__version_check-0.9.5//:version_check", + ], +) + +alias( + name = "build_script_build", + actual = "ahash_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.3.bazel deleted file mode 100644 index 7e977ad0f..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.3.bazel +++ /dev/null @@ -1,151 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "ahash_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.8.3", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__version_check__0_9_4//:version_check", - ] + selects.with_or({ - # cfg(not(all(target_arch = "arm", target_os = "none"))) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - ], - "//conditions:default": [], - }), -) - -# Unsupported target "ahash" with type "bench" omitted - -# Unsupported target "map" with type "bench" omitted - -rust_library( - name = "ahash", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=ahash", - "manual", - ], - version = "0.8.3", - # buildifier: leave-alone - deps = [ - ":ahash_build_script", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - ] + selects.with_or({ - # cfg(not(all(target_arch = "arm", target_os = "none"))) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__once_cell__1_17_2//:once_cell", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "bench" with type "test" omitted - -# Unsupported target "map_tests" with type "test" omitted - -# Unsupported target "nopanic" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.0.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.0.1.bazel deleted file mode 100644 index 4a79e3ab4..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.0.1.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -rust_library( - name = "aho_corasick", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "perf-literal", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=aho_corasick", - "manual", - ], - version = "1.0.1", - # buildifier: leave-alone - deps = [ - "@wasmtime__memchr__2_5_0//:memchr", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel new file mode 100644 index 000000000..d1614759b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel @@ -0,0 +1,48 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense OR MIT +# ]) + +rust_library( + name = "aho_corasick", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "perf-literal", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=aho-corasick", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.3", + deps = [ + "@cu__memchr-2.7.4//:memchr", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.71.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.71.bazel deleted file mode 100644 index daab391ba..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.71.bazel +++ /dev/null @@ -1,116 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "anyhow_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.71", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "anyhow", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=anyhow", - "manual", - ], - version = "1.0.71", - # buildifier: leave-alone - deps = [ - ":anyhow_build_script", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test_autotrait" with type "test" omitted - -# Unsupported target "test_backtrace" with type "test" omitted - -# Unsupported target "test_boxed" with type "test" omitted - -# Unsupported target "test_chain" with type "test" omitted - -# Unsupported target "test_context" with type "test" omitted - -# Unsupported target "test_convert" with type "test" omitted - -# Unsupported target "test_downcast" with type "test" omitted - -# Unsupported target "test_ensure" with type "test" omitted - -# Unsupported target "test_ffi" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted - -# Unsupported target "test_macros" with type "test" omitted - -# Unsupported target "test_repr" with type "test" omitted - -# Unsupported target "test_source" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel new file mode 100644 index 000000000..de4b5823d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel @@ -0,0 +1,89 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "anyhow", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=anyhow", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + deps = [ + "@cu__anyhow-1.0.86//:build_script_build", + ], +) + +cargo_build_script( + name = "anyhow_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=anyhow", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "anyhow_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel deleted file mode 100644 index 11b617235..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.0.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "derive_enum" with type "example" omitted - -rust_library( - name = "arbitrary", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=arbitrary", - "manual", - ], - version = "1.3.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "bound" with type "test" omitted - -# Unsupported target "derive" with type "test" omitted - -# Unsupported target "path" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel new file mode 100644 index 000000000..623b5da46 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "arbitrary", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=arbitrary", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.3.2", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.1.0.bazel deleted file mode 100644 index 8b7d36892..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.1.0.bazel +++ /dev/null @@ -1,64 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "integers" with type "example" omitted - -# Unsupported target "paths" with type "example" omitted - -# Unsupported target "traits" with type "example" omitted - -# Unsupported target "versions" with type "example" omitted - -rust_library( - name = "autocfg", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=autocfg", - "manual", - ], - version = "1.1.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "rustflags" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel new file mode 100644 index 000000000..0591ec48c --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 OR MIT +# ]) + +rust_library( + name = "autocfg", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=autocfg", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.3.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bazel b/bazel/cargo/wasmtime/remote/BUILD.bazel index e69de29bb..34b4f1f5a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bazel @@ -0,0 +1,56 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +package(default_visibility = ["//visibility:public"]) + +exports_files( + [ + "cargo-bazel.json", + "crates.bzl", + "defs.bzl", + ] + glob(["*.bazel"]), +) + +filegroup( + name = "srcs", + srcs = glob([ + "*.bazel", + "*.bzl", + ]), +) + +# Workspace Member Dependencies +alias( + name = "anyhow", + actual = "@cu__anyhow-1.0.86//:anyhow", + tags = ["manual"], +) + +alias( + name = "env_logger", + actual = "@cu__env_logger-0.10.2//:env_logger", + tags = ["manual"], +) + +alias( + name = "once_cell", + actual = "@cu__once_cell-1.19.0//:once_cell", + tags = ["manual"], +) + +alias( + name = "wasmtime", + actual = "@cu__wasmtime-9.0.4//:wasmtime", + tags = ["manual"], +) + +alias( + name = "wasmtime-c-api-macros", + actual = "@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index 11634c902..0318ec879 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -1,57 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT +# ]) rust_library( name = "bincode", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=bincode", "manual", + "noclippy", + "norustfmt", ], version = "1.3.3", - # buildifier: leave-alone deps = [ - "@wasmtime__serde__1_0_163//:serde", + "@cu__serde-1.0.204//:serde", ], ) - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel index 0e31ead71..5fb108c85 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel @@ -1,59 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "bitflags", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "default", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=bitflags", "manual", + "noclippy", + "norustfmt", ], version = "1.3.2", - # buildifier: leave-alone - deps = [ - ], ) - -# Unsupported target "basic" with type "test" omitted - -# Unsupported target "compile" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel deleted file mode 100644 index d56fc5b69..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.3.1.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "parse" with type "bench" omitted - -# Unsupported target "custom_bits_type" with type "example" omitted - -# Unsupported target "custom_derive" with type "example" omitted - -# Unsupported target "fmt" with type "example" omitted - -# Unsupported target "macro_free" with type "example" omitted - -# Unsupported target "serde" with type "example" omitted - -rust_library( - name = "bitflags", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=bitflags", - "manual", - ], - version = "2.3.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel new file mode 100644 index 000000000..6d4dc0aea --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "bitflags", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=bitflags", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.6.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.13.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.13.0.bazel deleted file mode 100644 index addf3ceeb..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.13.0.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "benches" with type "bench" omitted - -rust_library( - name = "bumpalo", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=bumpalo", - "manual", - ], - version = "3.13.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "try_alloc" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel new file mode 100644 index 000000000..72055f131 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "bumpalo", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=bumpalo", + "manual", + "noclippy", + "norustfmt", + ], + version = "3.16.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel deleted file mode 100644 index 044c9cd0f..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.4.3.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "byteorder", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=byteorder", - "manual", - ], - version = "1.4.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel new file mode 100644 index 000000000..a681029e5 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel @@ -0,0 +1,45 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense OR MIT +# ]) + +rust_library( + name = "byteorder", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=byteorder", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.5.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.79.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.79.bazel deleted file mode 100644 index e20c01b8e..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.0.79.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_gcc_shim", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/bin/gcc-shim.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=gcc-shim", - "manual", - ], - version = "1.0.79", - # buildifier: leave-alone - deps = [ - ":cc", - ], -) - -rust_library( - name = "cc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cc", - "manual", - ], - version = "1.0.79", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "cc_env" with type "test" omitted - -# Unsupported target "cflags" with type "test" omitted - -# Unsupported target "cxxflags" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel new file mode 100644 index 000000000..9fec211e7 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "cc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cc", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.1.6", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel index 2b86c1e35..64fe9be3a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel @@ -1,56 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "cfg_if", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=cfg-if", "manual", + "noclippy", + "norustfmt", ], version = "1.0.0", - # buildifier: leave-alone - deps = [ - ], ) - -# Unsupported target "xcrate" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel index 68344269d..d6d47ebe4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel @@ -1,120 +1,90 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) +# licenses([ +# "TODO", # Apache-2.0/MIT +# ]) -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "cpp_demangle_build_script", +rust_library( + name = "cpp_demangle", srcs = glob(["**/*.rs"]), - build_script_env = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "default", "std", ], - crate_root = "build.rs", - data = glob(["**"]), + crate_root = "src/lib.rs", edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=cpp_demangle", "manual", + "noclippy", + "norustfmt", ], version = "0.3.5", - visibility = ["//visibility:private"], deps = [ + "@cu__cfg-if-1.0.0//:cfg_if", + "@cu__cpp_demangle-0.3.5//:build_script_build", ], ) -rust_binary( - # Prefix bin name to disambiguate from (probable) collision with lib name - # N.B.: The exact form of this is subject to change. - name = "cargo_bin_afl_runner", +cargo_build_script( + name = "cpp_demangle_build_script", srcs = glob(["**/*.rs"]), crate_features = [ "default", "std", ], - crate_root = "src/bin/afl_runner.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2015", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", - "crate-name=afl_runner", + "cargo-bazel", + "crate-name=cpp_demangle", "manual", + "noclippy", + "norustfmt", ], version = "0.3.5", - # buildifier: leave-alone - deps = [ - ":cpp_demangle", - ":cpp_demangle_build_script", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - ], + visibility = ["//visibility:private"], ) -# Unsupported target "cppfilt" with type "example" omitted - -rust_library( - name = "cpp_demangle", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cpp_demangle", - "manual", - ], - version = "0.3.5", - # buildifier: leave-alone - deps = [ - ":cpp_demangle_build_script", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - ], +alias( + name = "build_script_build", + actual = "cpp_demangle_build_script", + tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.3.bazel deleted file mode 100644 index 65c2d43b7..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_bforest", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-bforest", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel new file mode 100644 index 000000000..b61551dfd --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_bforest", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-bforest", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__cranelift-entity-0.96.4//:cranelift_entity", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.3.bazel deleted file mode 100644 index f63699ba9..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.3.bazel +++ /dev/null @@ -1,109 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "cranelift_codegen_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "gimli", - "std", - "trace-log", - "unwind", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.96.3", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__cranelift_codegen_meta__0_96_3//:cranelift_codegen_meta", - "@wasmtime__cranelift_isle__0_96_3//:cranelift_isle", - ], -) - -# Unsupported target "x64-evex-encoding" with type "bench" omitted - -rust_library( - name = "cranelift_codegen", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "gimli", - "std", - "trace-log", - "unwind", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-codegen", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - ":cranelift_codegen_build_script", - "@wasmtime__bumpalo__3_13_0//:bumpalo", - "@wasmtime__cranelift_bforest__0_96_3//:cranelift_bforest", - "@wasmtime__cranelift_codegen_shared__0_96_3//:cranelift_codegen_shared", - "@wasmtime__cranelift_control__0_96_3//:cranelift_control", - "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", - "@wasmtime__gimli__0_27_2//:gimli", - "@wasmtime__hashbrown__0_13_2//:hashbrown", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__regalloc2__0_8_1//:regalloc2", - "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel new file mode 100644 index 000000000..60d55c204 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel @@ -0,0 +1,108 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_codegen", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "gimli", + "std", + "unwind", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-codegen", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__bumpalo-3.16.0//:bumpalo", + "@cu__cranelift-bforest-0.96.4//:cranelift_bforest", + "@cu__cranelift-codegen-0.96.4//:build_script_build", + "@cu__cranelift-codegen-shared-0.96.4//:cranelift_codegen_shared", + "@cu__cranelift-control-0.96.4//:cranelift_control", + "@cu__cranelift-entity-0.96.4//:cranelift_entity", + "@cu__gimli-0.27.3//:gimli", + "@cu__hashbrown-0.13.2//:hashbrown", + "@cu__log-0.4.22//:log", + "@cu__regalloc2-0.8.1//:regalloc2", + "@cu__smallvec-1.13.2//:smallvec", + "@cu__target-lexicon-0.12.15//:target_lexicon", + ], +) + +cargo_build_script( + name = "cranelift-codegen_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "gimli", + "std", + "unwind", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=cranelift-codegen", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + visibility = ["//visibility:private"], + deps = [ + "@cu__cranelift-codegen-meta-0.96.4//:cranelift_codegen_meta", + "@cu__cranelift-isle-0.96.4//:cranelift_isle", + ], +) + +alias( + name = "build_script_build", + actual = "cranelift-codegen_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.3.bazel deleted file mode 100644 index 2a2d76269..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_codegen_meta", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-codegen-meta", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cranelift_codegen_shared__0_96_3//:cranelift_codegen_shared", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel new file mode 100644 index 000000000..93b8d79c0 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_codegen_meta", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-codegen-meta", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__cranelift-codegen-shared-0.96.4//:cranelift_codegen_shared", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.3.bazel deleted file mode 100644 index b8e4fc347..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.3.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_codegen_shared", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-codegen-shared", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel new file mode 100644 index 000000000..e1d217b8f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_codegen_shared", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-codegen-shared", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel deleted file mode 100644 index 0122eef74..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_control", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-control", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__arbitrary__1_3_0//:arbitrary", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel new file mode 100644 index 000000000..002aa4649 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_control", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-control", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__arbitrary-1.3.2//:arbitrary", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.3.bazel deleted file mode 100644 index e18207ff2..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.3.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_entity", - srcs = glob(["**/*.rs"]), - crate_features = [ - "enable-serde", - "serde", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-entity", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__serde__1_0_163//:serde", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel new file mode 100644 index 000000000..c184aa35a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel @@ -0,0 +1,48 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_entity", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "enable-serde", + "serde", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-entity", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__serde-1.0.204//:serde", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.3.bazel deleted file mode 100644 index cf03acad5..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.3.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_frontend", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-frontend", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel new file mode 100644 index 000000000..ea70e8451 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel @@ -0,0 +1,51 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_frontend", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-frontend", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", + "@cu__log-0.4.22//:log", + "@cu__smallvec-1.13.2//:smallvec", + "@cu__target-lexicon-0.12.15//:target_lexicon", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.3.bazel deleted file mode 100644 index fade87679..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.3.bazel +++ /dev/null @@ -1,88 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "cranelift_isle_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.96.3", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "cranelift_isle", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-isle", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - ":cranelift_isle_build_script", - ], -) - -# Unsupported target "run_tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel new file mode 100644 index 000000000..d9d60965d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel @@ -0,0 +1,87 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_isle", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-isle", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__cranelift-isle-0.96.4//:build_script_build", + ], +) + +cargo_build_script( + name = "cranelift-isle_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=cranelift-isle", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "cranelift-isle_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.3.bazel deleted file mode 100644 index d74c69aef..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.3.bazel +++ /dev/null @@ -1,68 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_native", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-native", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - ] + selects.with_or({ - # cfg(any(target_arch = "s390x", target_arch = "riscv64")) - ( - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - ): [ - "@wasmtime__libc__0_2_144//:libc", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel new file mode 100644 index 000000000..abcd15ed3 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel @@ -0,0 +1,57 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_native", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-native", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", + "@cu__target-lexicon-0.12.15//:target_lexicon", + ] + select({ + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_arch = "s390x", target_arch = "riscv64")) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_arch = "s390x", target_arch = "riscv64")) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.3.bazel deleted file mode 100644 index 267b36992..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.3.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "cranelift_wasm", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=cranelift-wasm", - "manual", - ], - version = "0.96.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", - "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_96_3//:cranelift_frontend", - "@wasmtime__itertools__0_10_5//:itertools", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__smallvec__1_10_0//:smallvec", - "@wasmtime__wasmparser__0_103_0//:wasmparser", - "@wasmtime__wasmtime_types__9_0_3//:wasmtime_types", - ], -) - -# Unsupported target "wasm_testsuite" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel new file mode 100644 index 000000000..0d64ac1bc --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel @@ -0,0 +1,55 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "cranelift_wasm", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=cranelift-wasm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.96.4", + deps = [ + "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", + "@cu__cranelift-entity-0.96.4//:cranelift_entity", + "@cu__cranelift-frontend-0.96.4//:cranelift_frontend", + "@cu__itertools-0.10.5//:itertools", + "@cu__log-0.4.22//:log", + "@cu__smallvec-1.13.2//:smallvec", + "@cu__wasmparser-0.103.0//:wasmparser", + "@cu__wasmtime-types-9.0.4//:wasmtime_types", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel deleted file mode 100644 index 4ae93d10d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.3.2.bazel +++ /dev/null @@ -1,89 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "crc32fast_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.3.2", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "crc32fast", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=crc32fast", - "manual", - ], - version = "1.3.2", - # buildifier: leave-alone - deps = [ - ":crc32fast_build_script", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel new file mode 100644 index 000000000..ae4643d68 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel @@ -0,0 +1,47 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "crc32fast", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=crc32fast", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.4.2", + deps = [ + "@cu__cfg-if-1.0.0//:cfg_if", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel index 8b82dd4d8..aec9f5538 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel @@ -1,61 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # Apache-2.0 +# ]) rust_library( name = "debugid", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=debugid", "manual", + "noclippy", + "norustfmt", ], version = "0.8.0", - # buildifier: leave-alone deps = [ - "@wasmtime__uuid__1_3_3//:uuid", + "@cu__uuid-1.10.0//:uuid", ], ) - -# Unsupported target "test_codeid" with type "test" omitted - -# Unsupported target "test_debugid" with type "test" omitted - -# Unsupported target "test_serde" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel new file mode 100644 index 000000000..60a6f9523 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "either", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "use_std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=either", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.13.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.8.1.bazel deleted file mode 100644 index 361164111..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.either-1.8.1.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "either", - srcs = glob(["**/*.rs"]), - crate_features = [ - "use_std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=either", - "manual", - ], - version = "1.8.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.0.bazel deleted file mode 100644 index 4062aca95..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.0.bazel +++ /dev/null @@ -1,88 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "custom_default_format" with type "example" omitted - -# Unsupported target "custom_format" with type "example" omitted - -# Unsupported target "custom_logger" with type "example" omitted - -# Unsupported target "default" with type "example" omitted - -# Unsupported target "direct_logger" with type "example" omitted - -# Unsupported target "filters_from_code" with type "example" omitted - -# Unsupported target "in_tests" with type "example" omitted - -# Unsupported target "syslog_friendly_format" with type "example" omitted - -rust_library( - name = "env_logger", - srcs = glob(["**/*.rs"]), - crate_features = [ - "auto-color", - "color", - "default", - "humantime", - "regex", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=env_logger", - "manual", - ], - version = "0.10.0", - # buildifier: leave-alone - deps = [ - "@wasmtime__humantime__2_1_0//:humantime", - "@wasmtime__is_terminal__0_4_7//:is_terminal", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__regex__1_8_3//:regex", - "@wasmtime__termcolor__1_2_0//:termcolor", - ], -) - -# Unsupported target "init-twice-retains-filter" with type "test" omitted - -# Unsupported target "log-in-log" with type "test" omitted - -# Unsupported target "log_tls_dtors" with type "test" omitted - -# Unsupported target "regexp_filter" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel new file mode 100644 index 000000000..b82287b5a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel @@ -0,0 +1,55 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "env_logger", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "auto-color", + "color", + "default", + "humantime", + "regex", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=env_logger", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.10.2", + deps = [ + "@cu__humantime-2.1.0//:humantime", + "@cu__is-terminal-0.4.12//:is_terminal", + "@cu__log-0.4.22//:log", + "@cu__regex-1.10.5//:regex", + "@cu__termcolor-1.4.1//:termcolor", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.1.bazel deleted file mode 100644 index 9ee18c7bc..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.1.bazel +++ /dev/null @@ -1,88 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "errno", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=errno", - "manual", - ], - version = "0.3.1", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__libc__0_2_144//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel new file mode 100644 index 000000000..903818f42 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel @@ -0,0 +1,122 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "errno", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=errno", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.9", + deps = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__libc-0.2.155//:libc", # cfg(target_os = "wasi") + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel deleted file mode 100644 index 0dd94b45b..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-dragonfly-0.1.2.bazel +++ /dev/null @@ -1,86 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "errno_dragonfly_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.1.2", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__cc__1_0_79//:cc", - ], -) - -rust_library( - name = "errno_dragonfly", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=errno-dragonfly", - "manual", - ], - version = "0.1.2", - # buildifier: leave-alone - deps = [ - ":errno_dragonfly_build_script", - "@wasmtime__libc__0_2_144//:libc", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel index d43820ced..7cd94e63e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -1,55 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "fallible_iterator", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=fallible-iterator", "manual", + "noclippy", + "norustfmt", ], version = "0.2.0", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel deleted file mode 100644 index 90133f21f..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.1.0.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "form_urlencoded", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=form_urlencoded", - "manual", - ], - version = "1.1.0", - # buildifier: leave-alone - deps = [ - "@wasmtime__percent_encoding__2_2_0//:percent_encoding", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel new file mode 100644 index 000000000..fae193974 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel @@ -0,0 +1,49 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "form_urlencoded", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=form_urlencoded", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.2.1", + deps = [ + "@cu__percent-encoding-2.3.1//:percent_encoding", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel index 3608f3063..190c18b40 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel @@ -1,57 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "fxhash" with type "bench" omitted +# licenses([ +# "TODO", # Apache-2.0/MIT +# ]) rust_library( name = "fxhash", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=fxhash", "manual", + "noclippy", + "norustfmt", ], version = "0.2.1", - # buildifier: leave-alone deps = [ - "@wasmtime__byteorder__1_4_3//:byteorder", + "@cu__byteorder-1.5.0//:byteorder", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel index 06a2b8534..ce1a4e2c1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel @@ -1,61 +1,48 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) rust_library( name = "fxprof_processed_profile", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=fxprof-processed-profile", "manual", + "noclippy", + "norustfmt", ], version = "0.6.0", - # buildifier: leave-alone deps = [ - "@wasmtime__bitflags__2_3_1//:bitflags", - "@wasmtime__debugid__0_8_0//:debugid", - "@wasmtime__fxhash__0_2_1//:fxhash", - "@wasmtime__serde__1_0_163//:serde", - "@wasmtime__serde_json__1_0_96//:serde_json", + "@cu__bitflags-2.6.0//:bitflags", + "@cu__debugid-0.8.0//:debugid", + "@cu__fxhash-0.2.1//:fxhash", + "@cu__serde-1.0.204//:serde", + "@cu__serde_json-1.0.120//:serde_json", ], ) - -# Unsupported target "integration_tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel new file mode 100644 index 000000000..ae291befa --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel @@ -0,0 +1,115 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "getrandom", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=getrandom", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.15", + deps = [ + "@cu__cfg-if-1.0.0//:cfg_if", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__wasi-0.11.0-wasi-snapshot-preview1//:wasi", # cfg(target_os = "wasi") + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.9.bazel deleted file mode 100644 index cb3dffab4..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.9.bazel +++ /dev/null @@ -1,97 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "buffer" with type "bench" omitted - -rust_library( - name = "getrandom", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=getrandom", - "manual", - ], - version = "0.2.9", - # buildifier: leave-alone - deps = [ - "@wasmtime__cfg_if__1_0_0//:cfg_if", - ] + selects.with_or({ - # cfg(target_os = "wasi") - ( - "@rules_rust//rust/platform:wasm32-wasi", - ): [ - "@wasmtime__wasi__0_11_0_wasi_snapshot_preview1//:wasi", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__libc__0_2_144//:libc", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "custom" with type "test" omitted - -# Unsupported target "normal" with type "test" omitted - -# Unsupported target "rdrand" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.2.bazel deleted file mode 100644 index e6878f68d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.2.bazel +++ /dev/null @@ -1,78 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "dwarf-validate" with type "example" omitted - -# Unsupported target "dwarfdump" with type "example" omitted - -# Unsupported target "simple" with type "example" omitted - -# Unsupported target "simple_line" with type "example" omitted - -rust_library( - name = "gimli", - srcs = glob(["**/*.rs"]), - crate_features = [ - "fallible-iterator", - "indexmap", - "read", - "read-core", - "stable_deref_trait", - "std", - "write", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=gimli", - "manual", - ], - version = "0.27.2", - # buildifier: leave-alone - deps = [ - "@wasmtime__fallible_iterator__0_2_0//:fallible_iterator", - "@wasmtime__indexmap__1_9_3//:indexmap", - "@wasmtime__stable_deref_trait__1_2_0//:stable_deref_trait", - ], -) - -# Unsupported target "convert_self" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel new file mode 100644 index 000000000..d9fd701f9 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel @@ -0,0 +1,55 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "gimli", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "fallible-iterator", + "indexmap", + "read", + "read-core", + "stable_deref_trait", + "std", + "write", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=gimli", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.27.3", + deps = [ + "@cu__fallible-iterator-0.2.0//:fallible_iterator", + "@cu__indexmap-1.9.3//:indexmap", + "@cu__stable_deref_trait-1.2.0//:stable_deref_trait", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index 3b0fce03b..fe900cc26 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -1,67 +1,44 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "insert_unique_unchecked" with type "bench" omitted +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) rust_library( name = "hashbrown", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "raw", ], crate_root = "src/lib.rs", - data = [], edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=hashbrown", "manual", + "noclippy", + "norustfmt", ], version = "0.12.3", - # buildifier: leave-alone - deps = [ - ], ) - -# Unsupported target "hasher" with type "test" omitted - -# Unsupported target "rayon" with type "test" omitted - -# Unsupported target "serde" with type "test" omitted - -# Unsupported target "set" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel index 2fe74c582..b70d63ba4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel @@ -1,43 +1,32 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "insert_unique_unchecked" with type "bench" omitted +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) rust_library( name = "hashbrown", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "ahash", "default", @@ -45,31 +34,17 @@ rust_library( "raw", ], crate_root = "src/lib.rs", - data = [], edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=hashbrown", "manual", + "noclippy", + "norustfmt", ], version = "0.13.2", - # buildifier: leave-alone deps = [ - "@wasmtime__ahash__0_8_3//:ahash", + "@cu__ahash-0.8.11//:ahash", ], ) - -# Unsupported target "equivalent_trait" with type "test" omitted - -# Unsupported target "hasher" with type "test" omitted - -# Unsupported target "raw" with type "test" omitted - -# Unsupported target "rayon" with type "test" omitted - -# Unsupported target "serde" with type "test" omitted - -# Unsupported target "set" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel deleted file mode 100644 index 1e326eb98..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.1.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "hermit_abi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=hermit-abi", - "manual", - ], - version = "0.3.1", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel new file mode 100644 index 000000000..f8a914739 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "hermit_abi", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=hermit-abi", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.9", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel index 162d7370b..32069eb67 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel @@ -1,58 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "datetime_format" with type "bench" omitted - -# Unsupported target "datetime_parse" with type "bench" omitted +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "humantime", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=humantime", "manual", + "noclippy", + "norustfmt", ], version = "2.1.0", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel deleted file mode 100644 index 94ae97767..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.idna-0.3.0.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "all" with type "bench" omitted - -rust_library( - name = "idna", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=idna", - "manual", - ], - version = "0.3.0", - # buildifier: leave-alone - deps = [ - "@wasmtime__unicode_bidi__0_3_13//:unicode_bidi", - "@wasmtime__unicode_normalization__0_1_22//:unicode_normalization", - ], -) - -# Unsupported target "tests" with type "test" omitted - -# Unsupported target "unit" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel new file mode 100644 index 000000000..5943a2157 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel @@ -0,0 +1,50 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "idna", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=idna", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.5.0", + deps = [ + "@cu__unicode-bidi-0.3.15//:unicode_bidi", + "@cu__unicode-normalization-0.1.23//:unicode_normalization", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel index 525133f4c..562ed99d4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel @@ -1,105 +1,96 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) +# licenses([ +# "TODO", # Apache-2.0 OR MIT +# ]) -cargo_build_script( - name = "indexmap_build_script", +rust_library( + name = "indexmap", srcs = glob(["**/*.rs"]), - build_script_env = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "serde", "serde-1", "std", ], - crate_root = "build.rs", - data = glob(["**"]), + crate_root = "src/lib.rs", edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=indexmap", "manual", + "noclippy", + "norustfmt", ], version = "1.9.3", - visibility = ["//visibility:private"], deps = [ - "@wasmtime__autocfg__1_1_0//:autocfg", + "@cu__hashbrown-0.12.3//:hashbrown", + "@cu__indexmap-1.9.3//:build_script_build", + "@cu__serde-1.0.204//:serde", ], ) -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "faststring" with type "bench" omitted - -rust_library( - name = "indexmap", +cargo_build_script( + name = "indexmap_build_script", srcs = glob(["**/*.rs"]), crate_features = [ "serde", "serde-1", "std", ], - crate_root = "src/lib.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2021", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=indexmap", "manual", + "noclippy", + "norustfmt", ], version = "1.9.3", - # buildifier: leave-alone + visibility = ["//visibility:private"], deps = [ - ":indexmap_build_script", - "@wasmtime__hashbrown__0_12_3//:hashbrown", - "@wasmtime__serde__1_0_163//:serde", + "@cu__autocfg-1.3.0//:autocfg", ], ) -# Unsupported target "equivalent_trait" with type "test" omitted - -# Unsupported target "macros_full_path" with type "test" omitted - -# Unsupported target "quick" with type "test" omitted - -# Unsupported target "tests" with type "test" omitted +alias( + name = "build_script_build", + actual = "indexmap_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel index 43802d438..67bbc3d27 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel @@ -1,163 +1,188 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) -cargo_build_script( - name = "io_lifetimes_build_script", +rust_library( + name = "io_lifetimes", srcs = glob(["**/*.rs"]), - build_script_env = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "close", - "default", "hermit-abi", "libc", "windows-sys", ], - crate_root = "build.rs", - data = glob(["**"]), + crate_root = "src/lib.rs", edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=io-lifetimes", "manual", + "noclippy", + "norustfmt", ], version = "1.0.11", - visibility = ["//visibility:private"], deps = [ - ] + selects.with_or({ - # cfg(not(windows)) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ + "@cu__io-lifetimes-1.0.11//:build_script_build", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], "//conditions:default": [], }), ) -rust_library( - name = "io_lifetimes", +cargo_build_script( + name = "io-lifetimes_build_script", srcs = glob(["**/*.rs"]), - aliases = { - }, crate_features = [ "close", - "default", "hermit-abi", "libc", "windows-sys", ], - crate_root = "src/lib.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2018", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=io-lifetimes", "manual", + "noclippy", + "norustfmt", ], version = "1.0.11", - # buildifier: leave-alone - deps = [ - ":io_lifetimes_build_script", - ] + selects.with_or({ - # cfg(not(windows)) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__libc__0_2_144//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "io-lifetimes_build_script", + tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel new file mode 100644 index 000000000..5c6f36ef9 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel @@ -0,0 +1,119 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT +# ]) + +rust_library( + name = "is_terminal", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=is-terminal", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.12", + deps = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.7.bazel deleted file mode 100644 index 4d2c9d0a7..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.7.bazel +++ /dev/null @@ -1,90 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets - -rust_library( - name = "is_terminal", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=is-terminal", - "manual", - ], - version = "0.4.7", - # buildifier: leave-alone - deps = [ - "@wasmtime__io_lifetimes__1_0_11//:io_lifetimes", - ] + selects.with_or({ - # cfg(not(any(windows, target_os = "hermit", target_os = "unknown"))) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__rustix__0_37_19//:rustix", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel index 0c67dab7a..96f862ba8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel @@ -1,98 +1,49 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench1" with type "bench" omitted - -# Unsupported target "combinations" with type "bench" omitted - -# Unsupported target "combinations_with_replacement" with type "bench" omitted - -# Unsupported target "fold_specialization" with type "bench" omitted - -# Unsupported target "powerset" with type "bench" omitted - -# Unsupported target "tree_fold1" with type "bench" omitted - -# Unsupported target "tuple_combinations" with type "bench" omitted - -# Unsupported target "tuples" with type "bench" omitted - -# Unsupported target "iris" with type "example" omitted +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "itertools", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "default", "use_alloc", "use_std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=itertools", "manual", + "noclippy", + "norustfmt", ], version = "0.10.5", - # buildifier: leave-alone deps = [ - "@wasmtime__either__1_8_1//:either", + "@cu__either-1.13.0//:either", ], ) - -# Unsupported target "adaptors_no_collect" with type "test" omitted - -# Unsupported target "flatten_ok" with type "test" omitted - -# Unsupported target "macros_hygiene" with type "test" omitted - -# Unsupported target "merge_join" with type "test" omitted - -# Unsupported target "peeking_take_while" with type "test" omitted - -# Unsupported target "quick" with type "test" omitted - -# Unsupported target "specializations" with type "test" omitted - -# Unsupported target "test_core" with type "test" omitted - -# Unsupported target "test_std" with type "test" omitted - -# Unsupported target "tuples" with type "test" omitted - -# Unsupported target "zip" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel new file mode 100644 index 000000000..d25111035 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "itoa", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=itoa", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.11", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.6.bazel deleted file mode 100644 index 74dfc920f..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.6.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "itoa", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=itoa", - "manual", - ], - version = "1.0.6", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.144.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.144.bazel deleted file mode 100644 index b4e82c6cb..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.144.bazel +++ /dev/null @@ -1,92 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "libc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "extra_traits", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.2.144", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "libc", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "extra_traits", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=libc", - "manual", - ], - version = "0.2.144", - # buildifier: leave-alone - deps = [ - ":libc_build_script", - ], -) - -# Unsupported target "const_fn" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel new file mode 100644 index 000000000..604b46492 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel @@ -0,0 +1,91 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "libc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "extra_traits", + "std", + ], + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=libc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.155", + deps = [ + "@cu__libc-0.2.155//:build_script_build", + ], +) + +cargo_build_script( + name = "libc_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "extra_traits", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=libc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.155", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "libc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel index 27b66b6b9..89f189b38 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel @@ -1,39 +1,32 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) rust_library( name = "linux_raw_sys", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "errno", "general", @@ -41,18 +34,14 @@ rust_library( "no_std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=linux-raw-sys", "manual", + "noclippy", + "norustfmt", ], version = "0.3.8", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel new file mode 100644 index 000000000..87033f72d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel @@ -0,0 +1,48 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "linux_raw_sys", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "elf", + "errno", + "general", + "ioctl", + "no_std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=linux-raw-sys", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.14", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.18.bazel deleted file mode 100644 index 35e51e188..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.18.bazel +++ /dev/null @@ -1,92 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "log_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.18", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "value" with type "bench" omitted - -rust_library( - name = "log", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=log", - "manual", - ], - version = "0.4.18", - # buildifier: leave-alone - deps = [ - ":log_build_script", - ], -) - -# Unsupported target "filters" with type "test" omitted - -# Unsupported target "macros" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel new file mode 100644 index 000000000..7f3c5455d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "log", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=log", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.22", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index 9c7ee4760..e15aac7a0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -1,70 +1,64 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "restricted", # BSD-2-Clause from expression "BSD-2-Clause" -]) - -# Generated Targets - -# Unsupported target "dump_process_registers" with type "example" omitted +# licenses([ +# "TODO", # BSD-2-Clause +# ]) rust_library( name = "mach", srcs = glob(["**/*.rs"]), - aliases = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "default", ], crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=mach", "manual", + "noclippy", + "norustfmt", ], version = "0.3.2", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(any(target_os = "macos", target_os = "ios")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:x86_64-apple-ios", - ): [ - "@wasmtime__libc__0_2_144//:libc", + deps = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "macos", target_os = "ios")) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "macos", target_os = "ios")) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "macos", target_os = "ios")) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "macos", target_os = "ios")) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "macos", target_os = "ios")) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "macos", target_os = "ios")) ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.5.0.bazel deleted file mode 100644 index 383e0b4e1..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.5.0.bazel +++ /dev/null @@ -1,88 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "memchr_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "2.5.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "memchr", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=memchr", - "manual", - ], - version = "2.5.0", - # buildifier: leave-alone - deps = [ - ":memchr_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel new file mode 100644 index 000000000..7eb0428ae --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel @@ -0,0 +1,45 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense OR MIT +# ]) + +rust_library( + name = "memchr", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=memchr", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.7.4", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.3.bazel deleted file mode 100644 index c7e332e52..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.3.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "sized" with type "example" omitted - -rust_library( - name = "memfd", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=memfd", - "manual", - ], - version = "0.6.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__rustix__0_37_19//:rustix", - ], -) - -# Unsupported target "memfd" with type "test" omitted - -# Unsupported target "sealing" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel new file mode 100644 index 000000000..311b85b49 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "memfd", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=memfd", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.6.4", + deps = [ + "@cu__rustix-0.38.34//:rustix", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel index 03ea77b66..2d3f1fcbe 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel @@ -1,87 +1,90 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) +# licenses([ +# "TODO", # MIT +# ]) -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "memoffset_build_script", +rust_library( + name = "memoffset", srcs = glob(["**/*.rs"]), - build_script_env = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "default", ], - crate_root = "build.rs", - data = glob(["**"]), + crate_root = "src/lib.rs", edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=memoffset", "manual", + "noclippy", + "norustfmt", ], version = "0.8.0", - visibility = ["//visibility:private"], deps = [ - "@wasmtime__autocfg__1_1_0//:autocfg", + "@cu__memoffset-0.8.0//:build_script_build", ], ) -rust_library( - name = "memoffset", +cargo_build_script( + name = "memoffset_build_script", srcs = glob(["**/*.rs"]), crate_features = [ "default", ], - crate_root = "src/lib.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2015", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=memoffset", "manual", + "noclippy", + "norustfmt", ], version = "0.8.0", - # buildifier: leave-alone + visibility = ["//visibility:private"], deps = [ - ":memoffset_build_script", + "@cu__autocfg-1.3.0//:autocfg", ], ) + +alias( + name = "build_script_build", + actual = "memoffset_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.3.bazel deleted file mode 100644 index 9f5417374..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.3.bazel +++ /dev/null @@ -1,74 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -rust_library( - name = "object", - srcs = glob(["**/*.rs"]), - crate_features = [ - "coff", - "crc32fast", - "elf", - "hashbrown", - "indexmap", - "macho", - "pe", - "read_core", - "std", - "write", - "write_core", - "write_std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=object", - "manual", - ], - version = "0.30.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__crc32fast__1_3_2//:crc32fast", - "@wasmtime__hashbrown__0_13_2//:hashbrown", - "@wasmtime__indexmap__1_9_3//:indexmap", - "@wasmtime__memchr__2_5_0//:memchr", - ], -) - -# Unsupported target "integration" with type "test" omitted - -# Unsupported target "parse_self" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel new file mode 100644 index 000000000..1bdcf55ae --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel @@ -0,0 +1,61 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 OR MIT +# ]) + +rust_library( + name = "object", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "coff", + "crc32fast", + "elf", + "hashbrown", + "indexmap", + "macho", + "pe", + "read_core", + "std", + "write", + "write_core", + "write_std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=object", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.30.4", + deps = [ + "@cu__crc32fast-1.4.2//:crc32fast", + "@cu__hashbrown-0.13.2//:hashbrown", + "@cu__indexmap-1.9.3//:indexmap", + "@cu__memchr-2.7.4//:memchr", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.2.bazel deleted file mode 100644 index fdce70f3d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.17.2.bazel +++ /dev/null @@ -1,75 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "example" omitted - -# Unsupported target "bench_acquire" with type "example" omitted - -# Unsupported target "bench_vs_lazy_static" with type "example" omitted - -# Unsupported target "lazy_static" with type "example" omitted - -# Unsupported target "reentrant_init_deadlocks" with type "example" omitted - -# Unsupported target "regex" with type "example" omitted - -# Unsupported target "test_synchronization" with type "example" omitted - -rust_library( - name = "once_cell", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "default", - "race", - "std", - "unstable", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=once_cell", - "manual", - ], - version = "1.17.2", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "it" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel new file mode 100644 index 000000000..ad9c0380e --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel @@ -0,0 +1,47 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "once_cell", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "default", + "race", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=once_cell", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.19.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.12.bazel deleted file mode 100644 index d8ed0c975..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.12.bazel +++ /dev/null @@ -1,94 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "paste_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.12", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_proc_macro( - name = "paste", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=paste", - "manual", - ], - version = "1.0.12", - # buildifier: leave-alone - deps = [ - ":paste_build_script", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test_attr" with type "test" omitted - -# Unsupported target "test_doc" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_item" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel new file mode 100644 index 000000000..177148def --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_proc_macro( + name = "paste", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=paste", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.15", + deps = [ + "@cu__paste-1.0.15//:build_script_build", + ], +) + +cargo_build_script( + name = "paste_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=paste", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.15", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "paste_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel deleted file mode 100644 index 95a56e1b0..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.2.0.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "percent_encoding", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=percent-encoding", - "manual", - ], - version = "2.2.0", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel new file mode 100644 index 000000000..f4889a63d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel @@ -0,0 +1,46 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "percent_encoding", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=percent-encoding", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.3.1", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel index 458b2d0bb..1c98344a9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel @@ -1,56 +1,45 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "ppv_lite86", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "simd", "std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=ppv-lite86", "manual", + "noclippy", + "norustfmt", ], version = "0.2.17", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.59.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.59.bazel deleted file mode 100644 index 4a7669582..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.59.bazel +++ /dev/null @@ -1,101 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "proc_macro2_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.59", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "proc_macro2", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=proc-macro2", - "manual", - ], - version = "1.0.59", - # buildifier: leave-alone - deps = [ - ":proc_macro2_build_script", - "@wasmtime__unicode_ident__1_0_9//:unicode_ident", - ], -) - -# Unsupported target "comments" with type "test" omitted - -# Unsupported target "features" with type "test" omitted - -# Unsupported target "marker" with type "test" omitted - -# Unsupported target "test" with type "test" omitted - -# Unsupported target "test_fmt" with type "test" omitted - -# Unsupported target "test_size" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel new file mode 100644 index 000000000..071369a04 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel @@ -0,0 +1,90 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "proc_macro2", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=proc-macro2", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + deps = [ + "@cu__proc-macro2-1.0.86//:build_script_build", + "@cu__unicode-ident-1.0.12//:unicode_ident", + ], +) + +cargo_build_script( + name = "proc-macro2_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "proc-macro", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=proc-macro2", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.86", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "proc-macro2_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index bd4d7d358..5c481198a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -1,101 +1,84 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) -cargo_build_script( - name = "psm_build_script", +rust_library( + name = "psm", srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", + "crate-name=psm", "manual", + "noclippy", + "norustfmt", ], version = "0.1.21", - visibility = ["//visibility:private"], deps = [ - "@wasmtime__cc__1_0_79//:cc", + "@cu__psm-0.1.21//:build_script_build", ], ) -# Unsupported target "info" with type "example" omitted - -# Unsupported target "on_stack_fibo" with type "example" omitted - -# Unsupported target "on_stack_fibo_alloc_each_frame" with type "example" omitted - -# Unsupported target "panics" with type "example" omitted - -# Unsupported target "replace_stack_1" with type "example" omitted - -# Unsupported target "thread" with type "example" omitted - -rust_library( - name = "psm", +cargo_build_script( + name = "psm_build_script", srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), edition = "2015", rustc_flags = [ "--cap-lints=allow", ], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=psm", "manual", + "noclippy", + "norustfmt", ], version = "0.1.21", - # buildifier: leave-alone + visibility = ["//visibility:private"], deps = [ - ":psm_build_script", + "@cu__cc-1.1.6//:cc", ], ) -# Unsupported target "stack_direction" with type "test" omitted - -# Unsupported target "stack_direction_2" with type "test" omitted +alias( + name = "build_script_build", + actual = "psm_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.28.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.28.bazel deleted file mode 100644 index f7ec518fc..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.28.bazel +++ /dev/null @@ -1,93 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "quote_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.28", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "quote", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "proc-macro", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=quote", - "manual", - ], - version = "1.0.28", - # buildifier: leave-alone - deps = [ - ":quote_build_script", - "@wasmtime__proc_macro2__1_0_59//:proc_macro2", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel new file mode 100644 index 000000000..5225df631 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel @@ -0,0 +1,48 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "quote", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "proc-macro", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=quote", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.36", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 963fc2f11..0097fc591 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -1,41 +1,32 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) rust_library( name = "rand", srcs = glob(["**/*.rs"]), - aliases = { - }, + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "alloc", "default", @@ -47,42 +38,82 @@ rust_library( "std_rng", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=rand", "manual", + "noclippy", + "norustfmt", ], version = "0.8.5", - # buildifier: leave-alone deps = [ - "@wasmtime__rand_chacha__0_3_1//:rand_chacha", - "@wasmtime__rand_core__0_6_4//:rand_core", - ] + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__libc__0_2_144//:libc", + "@cu__rand_chacha-0.3.1//:rand_chacha", + "@cu__rand_core-0.6.4//:rand_core", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) ], "//conditions:default": [], }), diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel index c6b497c31..32d2dbfbe 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel @@ -1,57 +1,48 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) rust_library( name = "rand_chacha", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=rand_chacha", "manual", + "noclippy", + "norustfmt", ], version = "0.3.1", - # buildifier: leave-alone deps = [ - "@wasmtime__ppv_lite86__0_2_17//:ppv_lite86", - "@wasmtime__rand_core__0_6_4//:rand_core", + "@cu__ppv-lite86-0.2.17//:ppv_lite86", + "@cu__rand_core-0.6.4//:rand_core", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel index cbe1ac88f..c9aa0320a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel @@ -1,58 +1,49 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) rust_library( name = "rand_core", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "alloc", "getrandom", "std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=rand_core", "manual", + "noclippy", + "norustfmt", ], version = "0.6.4", - # buildifier: leave-alone deps = [ - "@wasmtime__getrandom__0_2_9//:getrandom", + "@cu__getrandom-0.2.15//:getrandom", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel index 47c5f5a0f..baae510e3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel @@ -1,62 +1,53 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) rust_library( name = "regalloc2", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "checker", "default", "std", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=regalloc2", "manual", + "noclippy", + "norustfmt", ], version = "0.8.1", - # buildifier: leave-alone deps = [ - "@wasmtime__hashbrown__0_13_2//:hashbrown", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__rustc_hash__1_1_0//:rustc_hash", - "@wasmtime__slice_group_by__0_3_1//:slice_group_by", - "@wasmtime__smallvec__1_10_0//:smallvec", + "@cu__hashbrown-0.13.2//:hashbrown", + "@cu__log-0.4.22//:log", + "@cu__rustc-hash-1.1.0//:rustc_hash", + "@cu__slice-group-by-0.3.1//:slice_group_by", + "@cu__smallvec-1.13.2//:smallvec", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel new file mode 100644 index 000000000..bfbfa2c87 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel @@ -0,0 +1,57 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "regex", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "perf", + "perf-backtrack", + "perf-cache", + "perf-dfa", + "perf-inline", + "perf-literal", + "perf-onepass", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=regex", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.10.5", + deps = [ + "@cu__aho-corasick-1.1.3//:aho_corasick", + "@cu__memchr-2.7.4//:memchr", + "@cu__regex-automata-0.4.7//:regex_automata", + "@cu__regex-syntax-0.8.4//:regex_syntax", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.8.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.8.3.bazel deleted file mode 100644 index 61f812023..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.8.3.bazel +++ /dev/null @@ -1,95 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "shootout-regex-dna" with type "example" omitted - -# Unsupported target "shootout-regex-dna-bytes" with type "example" omitted - -# Unsupported target "shootout-regex-dna-cheat" with type "example" omitted - -# Unsupported target "shootout-regex-dna-replace" with type "example" omitted - -# Unsupported target "shootout-regex-dna-single" with type "example" omitted - -# Unsupported target "shootout-regex-dna-single-cheat" with type "example" omitted - -rust_library( - name = "regex", - srcs = glob(["**/*.rs"]), - crate_features = [ - "aho-corasick", - "memchr", - "perf", - "perf-cache", - "perf-dfa", - "perf-inline", - "perf-literal", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=regex", - "manual", - ], - version = "1.8.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__aho_corasick__1_0_1//:aho_corasick", - "@wasmtime__memchr__2_5_0//:memchr", - "@wasmtime__regex_syntax__0_7_2//:regex_syntax", - ], -) - -# Unsupported target "backtrack" with type "test" omitted - -# Unsupported target "backtrack-bytes" with type "test" omitted - -# Unsupported target "backtrack-utf8bytes" with type "test" omitted - -# Unsupported target "crates-regex" with type "test" omitted - -# Unsupported target "default" with type "test" omitted - -# Unsupported target "default-bytes" with type "test" omitted - -# Unsupported target "nfa" with type "test" omitted - -# Unsupported target "nfa-bytes" with type "test" omitted - -# Unsupported target "nfa-utf8bytes" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel new file mode 100644 index 000000000..64e138001 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel @@ -0,0 +1,61 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "regex_automata", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "dfa-onepass", + "hybrid", + "meta", + "nfa-backtrack", + "nfa-pikevm", + "nfa-thompson", + "perf-inline", + "perf-literal", + "perf-literal-multisubstring", + "perf-literal-substring", + "std", + "syntax", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=regex-automata", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.4.7", + deps = [ + "@cu__aho-corasick-1.1.3//:aho_corasick", + "@cu__memchr-2.7.4//:memchr", + "@cu__regex-syntax-0.8.4//:regex_syntax", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.7.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.7.2.bazel deleted file mode 100644 index aa703a39d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.7.2.bazel +++ /dev/null @@ -1,56 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "regex_syntax", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=regex-syntax", - "manual", - ], - version = "0.7.2", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel new file mode 100644 index 000000000..0145c6b0a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "regex_syntax", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=regex-syntax", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.8.4", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.23.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.23.bazel deleted file mode 100644 index 961a591ce..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.23.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "rustc_demangle", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=rustc-demangle", - "manual", - ], - version = "0.1.23", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel new file mode 100644 index 000000000..36cc346c2 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "rustc_demangle", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=rustc-demangle", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.24", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel index fe125ad9c..5d2fab8f0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel @@ -1,54 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets +# licenses([ +# "TODO", # Apache-2.0/MIT +# ]) rust_library( name = "rustc_hash", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=rustc-hash", "manual", + "noclippy", + "norustfmt", ], version = "1.1.0", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.19.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.19.bazel deleted file mode 100644 index 358429af6..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.19.bazel +++ /dev/null @@ -1,232 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "rustix_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "fs", - "io-lifetimes", - "libc", - "mm", - "std", - "termios", - "use-libc-auxv", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - "--cfg=feature=\"cc\"", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.37.19", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__cc__1_0_79//:cc", - ] + selects.with_or({ - # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ( - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - ): [ - "@wasmtime__linux_raw_sys__0_3_8//:linux_raw_sys", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) - -# Unsupported target "mod" with type "bench" omitted - -rust_library( - name = "rustix", - srcs = glob(["**/*.rs"]), - aliases = { - "@wasmtime__errno__0_3_1//:errno": "libc_errno", - }, - crate_features = [ - "default", - "fs", - "io-lifetimes", - "libc", - "mm", - "std", - "termios", - "use-libc-auxv", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - "--cfg=feature=\"cc\"", - ], - tags = [ - "cargo-raze", - "crate-name=rustix", - "manual", - ], - version = "0.37.19", - # buildifier: leave-alone - deps = [ - ":rustix_build_script", - "@wasmtime__bitflags__1_3_2//:bitflags", - "@wasmtime__io_lifetimes__1_0_11//:io_lifetimes", - ] + selects.with_or({ - # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ( - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - ): [ - "@wasmtime__linux_raw_sys__0_3_8//:linux_raw_sys", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ( - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__libc__0_2_144//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))))) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:wasm32-unknown-unknown", - "@rules_rust//rust/platform:wasm32-wasi", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__errno__0_3_1//:errno", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel new file mode 100644 index 000000000..2a43dbc12 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel @@ -0,0 +1,312 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "rustix", + srcs = glob(["**/*.rs"]), + aliases = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:aarch64-apple-ios": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:aarch64-apple-ios-sim": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:aarch64-fuchsia": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:aarch64-linux-android": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) + }, + "@rules_rust//rust/platform:armv7-linux-androideabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:i686-apple-darwin": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:i686-linux-android": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:i686-pc-windows-msvc": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) + }, + "@rules_rust//rust/platform:i686-unknown-freebsd": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:thumbv7em-none-eabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:wasm32-unknown-unknown": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:wasm32-wasi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:x86_64-apple-darwin": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:x86_64-apple-ios": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:x86_64-fuchsia": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:x86_64-linux-android": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) + }, + "@rules_rust//rust/platform:x86_64-unknown-freebsd": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "@rules_rust//rust/platform:x86_64-unknown-none": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, + "//conditions:default": {}, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "io-lifetimes", + "libc", + "mm", + "std", + "use-libc-auxv", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=rustix", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.37.27", + deps = [ + "@cu__bitflags-1.3.2//:bitflags", + "@cu__io-lifetimes-1.0.11//:io_lifetimes", + "@cu__rustix-0.37.27//:build_script_build", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__errno-0.3.9//:errno", # cfg(windows) + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__errno-0.3.9//:errno", # cfg(windows) + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__errno-0.3.9//:errno", # cfg(windows) + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], + "//conditions:default": [], + }), +) + +cargo_build_script( + name = "rustix_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "io-lifetimes", + "libc", + "mm", + "std", + "use-libc-auxv", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=rustix", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.37.27", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "rustix_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel new file mode 100644 index 000000000..88588a0d1 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel @@ -0,0 +1,326 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "rustix", + srcs = glob(["**/*.rs"]), + aliases = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:aarch64-apple-ios": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:aarch64-apple-ios-sim": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:aarch64-fuchsia": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:aarch64-linux-android": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) + }, + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + }, + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + }, + "@rules_rust//rust/platform:armv7-linux-androideabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + }, + "@rules_rust//rust/platform:i686-apple-darwin": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:i686-linux-android": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:i686-pc-windows-msvc": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) + }, + "@rules_rust//rust/platform:i686-unknown-freebsd": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:i686-unknown-linux-gnu": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + }, + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:thumbv7em-none-eabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:wasm32-unknown-unknown": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:wasm32-wasi": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:x86_64-apple-darwin": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:x86_64-apple-ios": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:x86_64-fuchsia": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:x86_64-linux-android": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) + }, + "@rules_rust//rust/platform:x86_64-unknown-freebsd": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + }, + "@rules_rust//rust/platform:x86_64-unknown-none": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + }, + "//conditions:default": {}, + }), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "default", + "fs", + "libc-extra-traits", + "std", + "use-libc-auxv", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=rustix", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.38.34", + deps = [ + "@cu__bitflags-2.6.0//:bitflags", + "@cu__rustix-0.38.34//:build_script_build", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__errno-0.3.9//:errno", # cfg(windows) + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__errno-0.3.9//:errno", # cfg(windows) + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__errno-0.3.9//:errno", # cfg(windows) + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], + "//conditions:default": [], + }), +) + +cargo_build_script( + name = "rustix_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "alloc", + "default", + "fs", + "libc-extra-traits", + "std", + "use-libc-auxv", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=rustix", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.38.34", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "rustix_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel deleted file mode 100644 index 181285685..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.13.bazel +++ /dev/null @@ -1,72 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR BSL-1.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -# Unsupported target "upstream_benchmark" with type "example" omitted - -rust_library( - name = "ryu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=ryu", - "manual", - ], - version = "1.0.13", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "common_test" with type "test" omitted - -# Unsupported target "d2s_table_test" with type "test" omitted - -# Unsupported target "d2s_test" with type "test" omitted - -# Unsupported target "exhaustive" with type "test" omitted - -# Unsupported target "f2s_test" with type "test" omitted - -# Unsupported target "s2d_test" with type "test" omitted - -# Unsupported target "s2f_test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel new file mode 100644 index 000000000..b43782049 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 OR BSL-1.0 +# ]) + +rust_library( + name = "ryu", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=ryu", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.18", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.163.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.163.bazel deleted file mode 100644 index 1922368ce..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.163.bazel +++ /dev/null @@ -1,95 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "serde_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "derive", - "serde_derive", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.163", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "serde", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "derive", - "serde_derive", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - proc_macro_deps = [ - "@wasmtime__serde_derive__1_0_163//:serde_derive", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=serde", - "manual", - ], - version = "1.0.163", - # buildifier: leave-alone - deps = [ - ":serde_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel new file mode 100644 index 000000000..2420c55c6 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel @@ -0,0 +1,96 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "serde", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + proc_macro_deps = [ + "@cu__serde_derive-1.0.204//:serde_derive", + ], + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=serde", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.204", + deps = [ + "@cu__serde-1.0.204//:build_script_build", + ], +) + +cargo_build_script( + name = "serde_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "derive", + "serde_derive", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=serde", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.204", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "serde_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel deleted file mode 100644 index 5e8df1db1..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.163.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_proc_macro( - name = "serde_derive", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=serde_derive", - "manual", - ], - version = "1.0.163", - # buildifier: leave-alone - deps = [ - "@wasmtime__proc_macro2__1_0_59//:proc_macro2", - "@wasmtime__quote__1_0_28//:quote", - "@wasmtime__syn__2_0_18//:syn", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel new file mode 100644 index 000000000..3bf90add0 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel @@ -0,0 +1,49 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_proc_macro( + name = "serde_derive", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=serde_derive", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.204", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__syn-2.0.72//:syn", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel new file mode 100644 index 000000000..6e9825146 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel @@ -0,0 +1,92 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "serde_json", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=serde_json", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.120", + deps = [ + "@cu__itoa-1.0.11//:itoa", + "@cu__ryu-1.0.18//:ryu", + "@cu__serde-1.0.204//:serde", + "@cu__serde_json-1.0.120//:build_script_build", + ], +) + +cargo_build_script( + name = "serde_json_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "default", + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=serde_json", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.120", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "serde_json_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel deleted file mode 100644 index a40a46285..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.96.bazel +++ /dev/null @@ -1,105 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "serde_json_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "default", - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.96", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "serde_json", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=serde_json", - "manual", - ], - version = "1.0.96", - # buildifier: leave-alone - deps = [ - ":serde_json_build_script", - "@wasmtime__itoa__1_0_6//:itoa", - "@wasmtime__ryu__1_0_13//:ryu", - "@wasmtime__serde__1_0_163//:serde", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "debug" with type "test" omitted - -# Unsupported target "lexical" with type "test" omitted - -# Unsupported target "map" with type "test" omitted - -# Unsupported target "regression" with type "test" omitted - -# Unsupported target "stream" with type "test" omitted - -# Unsupported target "test" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel index a9d7a87f1..2df3f512d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel @@ -1,54 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT +# ]) rust_library( name = "slice_group_by", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=slice-group-by", "manual", + "noclippy", + "norustfmt", ], version = "0.3.1", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel deleted file mode 100644 index a5ff1f07e..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.10.0.bazel +++ /dev/null @@ -1,61 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "smallvec", - srcs = glob(["**/*.rs"]), - crate_features = [ - "union", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=smallvec", - "manual", - ], - version = "1.10.0", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "debugger_visualizer" with type "test" omitted - -# Unsupported target "macro" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel new file mode 100644 index 000000000..aac620928 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "smallvec", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "union", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=smallvec", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.13.2", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel index 584db4e50..ca9fce400 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -1,56 +1,45 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) rust_library( name = "stable_deref_trait", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "alloc", "std", ], crate_root = "src/lib.rs", - data = [], edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=stable_deref_trait", "manual", + "noclippy", + "norustfmt", ], version = "1.2.0", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.18.bazel deleted file mode 100644 index 9d1d35631..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.18.bazel +++ /dev/null @@ -1,122 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "file" with type "bench" omitted - -# Unsupported target "rust" with type "bench" omitted - -rust_library( - name = "syn", - srcs = glob(["**/*.rs"]), - crate_features = [ - "clone-impls", - "default", - "derive", - "parsing", - "printing", - "proc-macro", - "quote", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=syn", - "manual", - ], - version = "2.0.18", - # buildifier: leave-alone - deps = [ - "@wasmtime__proc_macro2__1_0_59//:proc_macro2", - "@wasmtime__quote__1_0_28//:quote", - "@wasmtime__unicode_ident__1_0_9//:unicode_ident", - ], -) - -# Unsupported target "regression" with type "test" omitted - -# Unsupported target "test_asyncness" with type "test" omitted - -# Unsupported target "test_attribute" with type "test" omitted - -# Unsupported target "test_derive_input" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_generics" with type "test" omitted - -# Unsupported target "test_grouping" with type "test" omitted - -# Unsupported target "test_ident" with type "test" omitted - -# Unsupported target "test_item" with type "test" omitted - -# Unsupported target "test_iterators" with type "test" omitted - -# Unsupported target "test_lit" with type "test" omitted - -# Unsupported target "test_meta" with type "test" omitted - -# Unsupported target "test_parse_buffer" with type "test" omitted - -# Unsupported target "test_parse_stream" with type "test" omitted - -# Unsupported target "test_pat" with type "test" omitted - -# Unsupported target "test_path" with type "test" omitted - -# Unsupported target "test_precedence" with type "test" omitted - -# Unsupported target "test_receiver" with type "test" omitted - -# Unsupported target "test_round_trip" with type "test" omitted - -# Unsupported target "test_shebang" with type "test" omitted - -# Unsupported target "test_should_parse" with type "test" omitted - -# Unsupported target "test_size" with type "test" omitted - -# Unsupported target "test_stmt" with type "test" omitted - -# Unsupported target "test_token_trees" with type "test" omitted - -# Unsupported target "test_ty" with type "test" omitted - -# Unsupported target "test_visibility" with type "test" omitted - -# Unsupported target "zzz_stable" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel new file mode 100644 index 000000000..8faee8809 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel @@ -0,0 +1,54 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "syn", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "clone-impls", + "default", + "derive", + "parsing", + "printing", + "proc-macro", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=syn", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.0.72", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__unicode-ident-1.0.12//:unicode_ident", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel new file mode 100644 index 000000000..e4fded0a4 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel @@ -0,0 +1,87 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "target_lexicon", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=target-lexicon", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.12.15", + deps = [ + "@cu__target-lexicon-0.12.15//:build_script_build", + ], +) + +cargo_build_script( + name = "target-lexicon_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "std", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=target-lexicon", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.12.15", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "target-lexicon_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.7.bazel deleted file mode 100644 index 598efd675..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.7.bazel +++ /dev/null @@ -1,90 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "target_lexicon_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "std", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.12.7", - visibility = ["//visibility:private"], - deps = [ - ], -) - -# Unsupported target "host" with type "example" omitted - -# Unsupported target "misc" with type "example" omitted - -rust_library( - name = "target_lexicon", - srcs = glob(["**/*.rs"]), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=target-lexicon", - "manual", - ], - version = "0.12.7", - # buildifier: leave-alone - deps = [ - ":target_lexicon_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.2.0.bazel deleted file mode 100644 index 325896227..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.2.0.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -rust_library( - name = "termcolor", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=termcolor", - "manual", - ], - version = "1.2.0", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__winapi_util__0_1_5//:winapi_util", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel new file mode 100644 index 000000000..98e611135 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel @@ -0,0 +1,53 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense OR MIT +# ]) + +rust_library( + name = "termcolor", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=termcolor", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.4.1", + deps = select({ + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__winapi-util-0.1.8//:winapi_util", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__winapi-util-0.1.8//:winapi_util", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__winapi-util-0.1.8//:winapi_util", # cfg(windows) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.40.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.40.bazel deleted file mode 100644 index 47e53f008..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.40.bazel +++ /dev/null @@ -1,113 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "thiserror_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "1.0.40", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "thiserror", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - proc_macro_deps = [ - "@wasmtime__thiserror_impl__1_0_40//:thiserror_impl", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=thiserror", - "manual", - ], - version = "1.0.40", - # buildifier: leave-alone - deps = [ - ":thiserror_build_script", - ], -) - -# Unsupported target "compiletest" with type "test" omitted - -# Unsupported target "test_backtrace" with type "test" omitted - -# Unsupported target "test_deprecated" with type "test" omitted - -# Unsupported target "test_display" with type "test" omitted - -# Unsupported target "test_error" with type "test" omitted - -# Unsupported target "test_expr" with type "test" omitted - -# Unsupported target "test_from" with type "test" omitted - -# Unsupported target "test_generics" with type "test" omitted - -# Unsupported target "test_lints" with type "test" omitted - -# Unsupported target "test_option" with type "test" omitted - -# Unsupported target "test_path" with type "test" omitted - -# Unsupported target "test_source" with type "test" omitted - -# Unsupported target "test_transparent" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel new file mode 100644 index 000000000..a59d5764f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel @@ -0,0 +1,84 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "thiserror", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + proc_macro_deps = [ + "@cu__thiserror-impl-1.0.63//:thiserror_impl", + ], + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=thiserror", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.63", + deps = [ + "@cu__thiserror-1.0.63//:build_script_build", + ], +) + +cargo_build_script( + name = "thiserror_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=thiserror", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.63", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "thiserror_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel deleted file mode 100644 index d62ae3059..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.40.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_proc_macro( - name = "thiserror_impl", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=thiserror-impl", - "manual", - ], - version = "1.0.40", - # buildifier: leave-alone - deps = [ - "@wasmtime__proc_macro2__1_0_59//:proc_macro2", - "@wasmtime__quote__1_0_28//:quote", - "@wasmtime__syn__2_0_18//:syn", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel new file mode 100644 index 000000000..1a5c3ad7a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -0,0 +1,46 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_proc_macro( + name = "thiserror_impl", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=thiserror-impl", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.63", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__syn-2.0.72//:syn", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel deleted file mode 100644 index 0fe1e0a1b..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.6.0.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Zlib from expression "Zlib OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets - -# Unsupported target "macros" with type "bench" omitted - -# Unsupported target "smallvec" with type "bench" omitted - -rust_library( - name = "tinyvec", - srcs = glob(["**/*.rs"]), - crate_features = [ - "alloc", - "default", - "tinyvec_macros", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=tinyvec", - "manual", - ], - version = "1.6.0", - # buildifier: leave-alone - deps = [ - "@wasmtime__tinyvec_macros__0_1_1//:tinyvec_macros", - ], -) - -# Unsupported target "arrayvec" with type "test" omitted - -# Unsupported target "tinyvec" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel new file mode 100644 index 000000000..35e49d4db --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel @@ -0,0 +1,49 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Zlib OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "tinyvec", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "alloc", + "default", + "tinyvec_macros", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=tinyvec", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.8.0", + deps = [ + "@cu__tinyvec_macros-0.1.1//:tinyvec_macros", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel index c0d7a9263..89f138089 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel @@ -1,54 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR (Apache-2.0 OR Zlib)" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT OR Apache-2.0 OR Zlib +# ]) rust_library( name = "tinyvec_macros", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=tinyvec_macros", "manual", + "noclippy", + "norustfmt", ], version = "0.1.1", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.13.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.13.bazel deleted file mode 100644 index e16635d9d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.13.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "unicode_bidi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "hardcoded-data", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode_bidi", - "manual", - ], - version = "0.3.13", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "conformance_tests" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel new file mode 100644 index 000000000..aaaccdc0c --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel @@ -0,0 +1,45 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "unicode_bidi", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "hardcoded-data", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=unicode-bidi", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.3.15", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel new file mode 100644 index 000000000..6ffa07ed5 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 +# ]) + +rust_library( + name = "unicode_ident", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=unicode-ident", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.0.12", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.9.bazel deleted file mode 100644 index a6425e1a6..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.9.bazel +++ /dev/null @@ -1,60 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "(MIT OR Apache-2.0) AND Unicode-DFS-2016" -]) - -# Generated Targets - -# Unsupported target "xid" with type "bench" omitted - -rust_library( - name = "unicode_ident", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-ident", - "manual", - ], - version = "1.0.9", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "compare" with type "test" omitted - -# Unsupported target "static_size" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel deleted file mode 100644 index cb865589a..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.22.bazel +++ /dev/null @@ -1,59 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "bench" with type "bench" omitted - -rust_library( - name = "unicode_normalization", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=unicode-normalization", - "manual", - ], - version = "0.1.22", - # buildifier: leave-alone - deps = [ - "@wasmtime__tinyvec__1_6_0//:tinyvec", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel new file mode 100644 index 000000000..b4bc78bde --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel @@ -0,0 +1,47 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "unicode_normalization", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=unicode-normalization", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.23", + deps = [ + "@cu__tinyvec-1.8.0//:tinyvec", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel deleted file mode 100644 index d722ef883..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.url-2.3.1.bazel +++ /dev/null @@ -1,66 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "parse_url" with type "bench" omitted - -rust_library( - name = "url", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=url", - "manual", - ], - version = "2.3.1", - # buildifier: leave-alone - deps = [ - "@wasmtime__form_urlencoded__1_1_0//:form_urlencoded", - "@wasmtime__idna__0_3_0//:idna", - "@wasmtime__percent_encoding__2_2_0//:percent_encoding", - ], -) - -# Unsupported target "data" with type "test" omitted - -# Unsupported target "debugger_visualizer" with type "test" omitted - -# Unsupported target "unit" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel new file mode 100644 index 000000000..9ec6bbdbe --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel @@ -0,0 +1,49 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "url", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=url", + "manual", + "noclippy", + "norustfmt", + ], + version = "2.5.2", + deps = [ + "@cu__form_urlencoded-1.2.1//:form_urlencoded", + "@cu__idna-0.5.0//:idna", + "@cu__percent-encoding-2.3.1//:percent_encoding", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel new file mode 100644 index 000000000..bc72b369e --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel @@ -0,0 +1,45 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 OR MIT +# ]) + +rust_library( + name = "uuid", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "default", + "std", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=uuid", + "manual", + "noclippy", + "norustfmt", + ], + version = "1.10.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel deleted file mode 100644 index da9581211..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.3.3.bazel +++ /dev/null @@ -1,72 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR MIT" -]) - -# Generated Targets - -# Unsupported target "format_str" with type "bench" omitted - -# Unsupported target "parse_str" with type "bench" omitted - -# Unsupported target "v4" with type "bench" omitted - -# Unsupported target "random_uuid" with type "example" omitted - -# Unsupported target "sortable_uuid" with type "example" omitted - -# Unsupported target "uuid_macro" with type "example" omitted - -# Unsupported target "windows_guid" with type "example" omitted - -rust_library( - name = "uuid", - srcs = glob(["**/*.rs"]), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=uuid", - "manual", - ], - version = "1.3.3", - # buildifier: leave-alone - deps = [ - ], -) - -# Unsupported target "macros" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel deleted file mode 100644 index 12fff826e..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.4.bazel +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "version_check", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=version_check", - "manual", - ], - version = "0.9.4", - # buildifier: leave-alone - deps = [ - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel new file mode 100644 index 000000000..f7fd3cac6 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel @@ -0,0 +1,41 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT/Apache-2.0 +# ]) + +rust_library( + name = "version_check", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=version_check", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.9.5", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 267bfa470..9f8f31c9f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -1,54 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0 OR (Apache-2.0 OR MIT)" -]) - -# Generated Targets +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT +# ]) rust_library( name = "wasi", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=wasi", "manual", + "noclippy", + "norustfmt", ], version = "0.11.0+wasi-snapshot-preview1", - # buildifier: leave-alone - deps = [ - ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel index b4306c8fe..7ee3464d8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel @@ -1,62 +1,45 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "benchmark" with type "bench" omitted - -# Unsupported target "simple" with type "example" omitted +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) rust_library( name = "wasmparser", srcs = glob(["**/*.rs"]), - crate_features = [ - ], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_root = "src/lib.rs", - data = [], edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=wasmparser", "manual", + "noclippy", + "norustfmt", ], version = "0.103.0", - # buildifier: leave-alone deps = [ - "@wasmtime__indexmap__1_9_3//:indexmap", - "@wasmtime__url__2_3_1//:url", + "@cu__indexmap-1.9.3//:indexmap", + "@cu__url-2.5.2//:url", ], ) - -# Unsupported target "big-module" with type "test" omitted diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.3.bazel deleted file mode 100644 index 4cb39da59..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.3.bazel +++ /dev/null @@ -1,128 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "wasmtime_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "cranelift", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "9.0.3", - visibility = ["//visibility:private"], - deps = [ - ] + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) - -rust_library( - name = "wasmtime", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - "cranelift", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - proc_macro_deps = [ - "@wasmtime__paste__1_0_12//:paste", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - ":wasmtime_build_script", - "@wasmtime__anyhow__1_0_71//:anyhow", - "@wasmtime__bincode__1_3_3//:bincode", - "@wasmtime__bumpalo__3_13_0//:bumpalo", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__fxprof_processed_profile__0_6_0//:fxprof_processed_profile", - "@wasmtime__indexmap__1_9_3//:indexmap", - "@wasmtime__libc__0_2_144//:libc", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__object__0_30_3//:object", - "@wasmtime__once_cell__1_17_2//:once_cell", - "@wasmtime__psm__0_1_21//:psm", - "@wasmtime__serde__1_0_163//:serde", - "@wasmtime__serde_json__1_0_96//:serde_json", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - "@wasmtime__wasmparser__0_103_0//:wasmparser", - "@wasmtime__wasmtime_cranelift__9_0_3//:wasmtime_cranelift", - "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", - "@wasmtime__wasmtime_jit__9_0_3//:wasmtime_jit", - "@wasmtime__wasmtime_runtime__9_0_3//:wasmtime_runtime", - ] + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel new file mode 100644 index 000000000..3fd1ef0d1 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel @@ -0,0 +1,120 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "cranelift", + ], + crate_root = "src/lib.rs", + edition = "2021", + proc_macro_deps = [ + "@cu__paste-1.0.15//:paste", + ], + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__bincode-1.3.3//:bincode", + "@cu__bumpalo-3.16.0//:bumpalo", + "@cu__cfg-if-1.0.0//:cfg_if", + "@cu__fxprof-processed-profile-0.6.0//:fxprof_processed_profile", + "@cu__indexmap-1.9.3//:indexmap", + "@cu__libc-0.2.155//:libc", + "@cu__log-0.4.22//:log", + "@cu__object-0.30.4//:object", + "@cu__once_cell-1.19.0//:once_cell", + "@cu__psm-0.1.21//:psm", + "@cu__serde-1.0.204//:serde", + "@cu__serde_json-1.0.120//:serde_json", + "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__wasmparser-0.103.0//:wasmparser", + "@cu__wasmtime-9.0.4//:build_script_build", + "@cu__wasmtime-cranelift-9.0.4//:wasmtime_cranelift", + "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", + "@cu__wasmtime-jit-9.0.4//:wasmtime_jit", + "@cu__wasmtime-runtime-9.0.4//:wasmtime_runtime", + ] + select({ + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "//conditions:default": [], + }), +) + +cargo_build_script( + name = "wasmtime_build_script", + srcs = glob(["**/*.rs"]), + crate_features = [ + "cranelift", + ], + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "wasmtime_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.3.bazel deleted file mode 100644 index 0079829ac..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.3.bazel +++ /dev/null @@ -1,55 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_asm_macros", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-asm-macros", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cfg_if__1_0_0//:cfg_if", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel new file mode 100644 index 000000000..b736e0bc9 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_asm_macros", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-asm-macros", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__cfg-if-1.0.0//:cfg_if", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel index eff79e771..d19728fc5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel @@ -1,56 +1,41 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "restricted", # no license -]) - -# Generated Targets +package(default_visibility = ["//visibility:public"]) rust_proc_macro( name = "wasmtime_c_api_macros", srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "crates/c-api/macros/src/lib.rs", - data = [], + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=wasmtime-c-api-macros", "manual", + "noclippy", + "norustfmt", ], version = "0.0.0", - # buildifier: leave-alone deps = [ - "@wasmtime__proc_macro2__1_0_59//:proc_macro2", - "@wasmtime__quote__1_0_28//:quote", + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.3.bazel deleted file mode 100644 index 5b10ca85c..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.3.bazel +++ /dev/null @@ -1,69 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_cranelift", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-cranelift", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__anyhow__1_0_71//:anyhow", - "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", - "@wasmtime__cranelift_control__0_96_3//:cranelift_control", - "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", - "@wasmtime__cranelift_frontend__0_96_3//:cranelift_frontend", - "@wasmtime__cranelift_native__0_96_3//:cranelift_native", - "@wasmtime__cranelift_wasm__0_96_3//:cranelift_wasm", - "@wasmtime__gimli__0_27_2//:gimli", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__object__0_30_3//:object", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - "@wasmtime__thiserror__1_0_40//:thiserror", - "@wasmtime__wasmparser__0_103_0//:wasmparser", - "@wasmtime__wasmtime_cranelift_shared__9_0_3//:wasmtime_cranelift_shared", - "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel new file mode 100644 index 000000000..d5baad39d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel @@ -0,0 +1,58 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_cranelift", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-cranelift", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", + "@cu__cranelift-control-0.96.4//:cranelift_control", + "@cu__cranelift-entity-0.96.4//:cranelift_entity", + "@cu__cranelift-frontend-0.96.4//:cranelift_frontend", + "@cu__cranelift-native-0.96.4//:cranelift_native", + "@cu__cranelift-wasm-0.96.4//:cranelift_wasm", + "@cu__gimli-0.27.3//:gimli", + "@cu__log-0.4.22//:log", + "@cu__object-0.30.4//:object", + "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__thiserror-1.0.63//:thiserror", + "@cu__wasmparser-0.103.0//:wasmparser", + "@cu__wasmtime-cranelift-shared-9.0.4//:wasmtime_cranelift_shared", + "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel deleted file mode 100644 index bcfe1dd16..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.3.bazel +++ /dev/null @@ -1,62 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_cranelift_shared", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-cranelift-shared", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__anyhow__1_0_71//:anyhow", - "@wasmtime__cranelift_codegen__0_96_3//:cranelift_codegen", - "@wasmtime__cranelift_control__0_96_3//:cranelift_control", - "@wasmtime__cranelift_native__0_96_3//:cranelift_native", - "@wasmtime__gimli__0_27_2//:gimli", - "@wasmtime__object__0_30_3//:object", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel new file mode 100644 index 000000000..5541a2717 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel @@ -0,0 +1,51 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_cranelift_shared", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-cranelift-shared", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", + "@cu__cranelift-control-0.96.4//:cranelift_control", + "@cu__cranelift-native-0.96.4//:cranelift_native", + "@cu__gimli-0.27.3//:gimli", + "@cu__object-0.30.4//:object", + "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.3.bazel deleted file mode 100644 index d16a2ca36..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.3.bazel +++ /dev/null @@ -1,67 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -# Unsupported target "factc" with type "example" omitted - -rust_library( - name = "wasmtime_environ", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-environ", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__anyhow__1_0_71//:anyhow", - "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", - "@wasmtime__gimli__0_27_2//:gimli", - "@wasmtime__indexmap__1_9_3//:indexmap", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__object__0_30_3//:object", - "@wasmtime__serde__1_0_163//:serde", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - "@wasmtime__thiserror__1_0_40//:thiserror", - "@wasmtime__wasmparser__0_103_0//:wasmparser", - "@wasmtime__wasmtime_types__9_0_3//:wasmtime_types", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel new file mode 100644 index 000000000..32234089b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel @@ -0,0 +1,54 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_environ", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-environ", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__cranelift-entity-0.96.4//:cranelift_entity", + "@cu__gimli-0.27.3//:gimli", + "@cu__indexmap-1.9.3//:indexmap", + "@cu__log-0.4.22//:log", + "@cu__object-0.30.4//:object", + "@cu__serde-1.0.204//:serde", + "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__thiserror-1.0.63//:thiserror", + "@cu__wasmparser-0.103.0//:wasmparser", + "@cu__wasmtime-types-9.0.4//:wasmtime_types", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.3.bazel deleted file mode 100644 index 7080c14c6..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.3.bazel +++ /dev/null @@ -1,79 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_jit", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-jit", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__addr2line__0_19_0//:addr2line", - "@wasmtime__anyhow__1_0_71//:anyhow", - "@wasmtime__bincode__1_3_3//:bincode", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__cpp_demangle__0_3_5//:cpp_demangle", - "@wasmtime__gimli__0_27_2//:gimli", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__object__0_30_3//:object", - "@wasmtime__rustc_demangle__0_1_23//:rustc_demangle", - "@wasmtime__serde__1_0_163//:serde", - "@wasmtime__target_lexicon__0_12_7//:target_lexicon", - "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", - "@wasmtime__wasmtime_jit_icache_coherence__9_0_3//:wasmtime_jit_icache_coherence", - "@wasmtime__wasmtime_runtime__9_0_3//:wasmtime_runtime", - ] + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel new file mode 100644 index 000000000..236b21728 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel @@ -0,0 +1,68 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_jit", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-jit", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__addr2line-0.19.0//:addr2line", + "@cu__anyhow-1.0.86//:anyhow", + "@cu__bincode-1.3.3//:bincode", + "@cu__cfg-if-1.0.0//:cfg_if", + "@cu__cpp_demangle-0.3.5//:cpp_demangle", + "@cu__gimli-0.27.3//:gimli", + "@cu__log-0.4.22//:log", + "@cu__object-0.30.4//:object", + "@cu__rustc-demangle-0.1.24//:rustc_demangle", + "@cu__serde-1.0.204//:serde", + "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", + "@cu__wasmtime-jit-icache-coherence-9.0.4//:wasmtime_jit_icache_coherence", + "@cu__wasmtime-runtime-9.0.4//:wasmtime_runtime", + ] + select({ + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.3.bazel deleted file mode 100644 index dfdbdd6bb..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.3.bazel +++ /dev/null @@ -1,57 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_jit_debug", - srcs = glob(["**/*.rs"]), - crate_features = [ - "gdb_jit_int", - "once_cell", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-jit-debug", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__once_cell__1_17_2//:once_cell", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel new file mode 100644 index 000000000..ad162af59 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel @@ -0,0 +1,48 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_jit_debug", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "gdb_jit_int", + "once_cell", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-jit-debug", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__once_cell-1.19.0//:once_cell", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel deleted file mode 100644 index 1c9322173..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.3.bazel +++ /dev/null @@ -1,87 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_jit_icache_coherence", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-jit-icache-coherence", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cfg_if__1_0_0//:cfg_if", - ] + selects.with_or({ - # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__libc__0_2_144//:libc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel new file mode 100644 index 000000000..c9b6cdf45 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel @@ -0,0 +1,103 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_jit_icache_coherence", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-jit-icache-coherence", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__cfg-if-1.0.0//:cfg_if", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.3.bazel deleted file mode 100644 index bff1668a1..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.3.bazel +++ /dev/null @@ -1,183 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "wasmtime_runtime_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "9.0.3", - visibility = ["//visibility:private"], - deps = [ - "@wasmtime__cc__1_0_79//:cc", - ] + selects.with_or({ - # cfg(target_os = "macos") - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-darwin", - ): [ - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - ], - "//conditions:default": [], - }), -) - -rust_library( - name = "wasmtime_runtime", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - proc_macro_deps = [ - "@wasmtime__paste__1_0_12//:paste", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-runtime", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - ":wasmtime_runtime_build_script", - "@wasmtime__anyhow__1_0_71//:anyhow", - "@wasmtime__cfg_if__1_0_0//:cfg_if", - "@wasmtime__indexmap__1_9_3//:indexmap", - "@wasmtime__libc__0_2_144//:libc", - "@wasmtime__log__0_4_18//:log", - "@wasmtime__memfd__0_6_3//:memfd", - "@wasmtime__memoffset__0_8_0//:memoffset", - "@wasmtime__rand__0_8_5//:rand", - "@wasmtime__wasmtime_asm_macros__9_0_3//:wasmtime_asm_macros", - "@wasmtime__wasmtime_environ__9_0_3//:wasmtime_environ", - "@wasmtime__wasmtime_jit_debug__9_0_3//:wasmtime_jit_debug", - ] + selects.with_or({ - # cfg(target_os = "macos") - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-darwin", - ): [ - "@wasmtime__mach__0_3_2//:mach", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(target_os = "windows") - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_sys__0_48_0//:windows_sys", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(unix) - ( - "@rules_rust//rust/platform:i686-apple-darwin", - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-darwin", - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", - "@rules_rust//rust/platform:aarch64-apple-darwin", - "@rules_rust//rust/platform:aarch64-apple-ios", - "@rules_rust//rust/platform:aarch64-linux-android", - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", - "@rules_rust//rust/platform:i686-linux-android", - "@rules_rust//rust/platform:i686-unknown-freebsd", - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", - "@rules_rust//rust/platform:s390x-unknown-linux-gnu", - "@rules_rust//rust/platform:x86_64-apple-ios", - "@rules_rust//rust/platform:x86_64-linux-android", - "@rules_rust//rust/platform:x86_64-unknown-freebsd", - ): [ - "@wasmtime__rustix__0_37_19//:rustix", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel new file mode 100644 index 000000000..b7c6c02d1 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel @@ -0,0 +1,175 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_runtime", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + proc_macro_deps = [ + "@cu__paste-1.0.15//:paste", + ], + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-runtime", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__cfg-if-1.0.0//:cfg_if", + "@cu__indexmap-1.9.3//:indexmap", + "@cu__libc-0.2.155//:libc", + "@cu__log-0.4.22//:log", + "@cu__memfd-0.6.4//:memfd", + "@cu__memoffset-0.8.0//:memoffset", + "@cu__rand-0.8.5//:rand", + "@cu__wasmtime-asm-macros-9.0.4//:wasmtime_asm_macros", + "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", + "@cu__wasmtime-jit-debug-9.0.4//:wasmtime_jit_debug", + "@cu__wasmtime-runtime-9.0.4//:build_script_build", + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "@cu__mach-0.3.2//:mach", # cfg(target_os = "macos") + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "@cu__mach-0.3.2//:mach", # cfg(target_os = "macos") + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "@cu__mach-0.3.2//:mach", # cfg(target_os = "macos") + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "//conditions:default": [], + }), +) + +cargo_build_script( + name = "wasmtime-runtime_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-runtime", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + visibility = ["//visibility:private"], + deps = [ + "@cu__cc-1.1.6//:cc", + ], +) + +alias( + name = "build_script_build", + actual = "wasmtime-runtime_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.3.bazel deleted file mode 100644 index 939447e25..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.3.bazel +++ /dev/null @@ -1,58 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # Apache-2.0 from expression "Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "wasmtime_types", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=wasmtime-types", - "manual", - ], - version = "9.0.3", - # buildifier: leave-alone - deps = [ - "@wasmtime__cranelift_entity__0_96_3//:cranelift_entity", - "@wasmtime__serde__1_0_163//:serde", - "@wasmtime__thiserror__1_0_40//:thiserror", - "@wasmtime__wasmparser__0_103_0//:wasmparser", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel new file mode 100644 index 000000000..612c6679d --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel @@ -0,0 +1,47 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Apache-2.0 WITH LLVM-exception +# ]) + +rust_library( + name = "wasmtime_types", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-types", + "manual", + "noclippy", + "norustfmt", + ], + version = "9.0.4", + deps = [ + "@cu__cranelift-entity-0.96.4//:cranelift_entity", + "@cu__serde-1.0.204//:serde", + "@cu__thiserror-1.0.63//:thiserror", + "@cu__wasmparser-0.103.0//:wasmparser", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel deleted file mode 100644 index e965c839b..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-0.3.9.bazel +++ /dev/null @@ -1,104 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - "consoleapi", - "errhandlingapi", - "fileapi", - "minwindef", - "processenv", - "std", - "winbase", - "wincon", - "winerror", - "winnt", - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.3.9", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi", - srcs = glob(["**/*.rs"]), - crate_features = [ - "consoleapi", - "errhandlingapi", - "fileapi", - "minwindef", - "processenv", - "std", - "winbase", - "wincon", - "winerror", - "winnt", - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi", - "manual", - ], - version = "0.3.9", - # buildifier: leave-alone - deps = [ - ":winapi_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index 6cc4aaf22..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_i686_pc_windows_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi_i686_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-i686-pc-windows-gnu", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_i686_pc_windows_gnu_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.5.bazel deleted file mode 100644 index 656930ec9..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.5.bazel +++ /dev/null @@ -1,65 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "unencumbered", # Unlicense from expression "Unlicense OR MIT" -]) - -# Generated Targets - -rust_library( - name = "winapi_util", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-util", - "manual", - ], - version = "0.1.5", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(windows) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__winapi__0_3_9//:winapi", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel new file mode 100644 index 000000000..7e74ae0ba --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel @@ -0,0 +1,53 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # Unlicense OR MIT +# ]) + +rust_library( + name = "winapi_util", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=winapi-util", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.1.8", + deps = select({ + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel deleted file mode 100644 index e34ab339d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "winapi_x86_64_pc_windows_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.4.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "winapi_x86_64_pc_windows_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=winapi-x86_64-pc-windows-gnu", - "manual", - ], - version = "0.4.0", - # buildifier: leave-alone - deps = [ - ":winapi_x86_64_pc_windows_gnu_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel index 96f4b2cce..88f4b396c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel @@ -1,39 +1,32 @@ -""" -@generated -cargo-raze crate build file. +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### -DO NOT EDIT! Replaced on runs of cargo-raze -""" +load("@rules_rust//rust:defs.bzl", "rust_library") -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") +package(default_visibility = ["//visibility:public"]) -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) rust_library( name = "windows_sys", srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), crate_features = [ "Win32", "Win32_Foundation", @@ -45,7 +38,6 @@ rust_library( "Win32_Storage", "Win32_Storage_FileSystem", "Win32_System", - "Win32_System_Console", "Win32_System_Diagnostics", "Win32_System_Diagnostics_Debug", "Win32_System_IO", @@ -56,19 +48,17 @@ rust_library( "default", ], crate_root = "src/lib.rs", - data = [], edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], + rustc_flags = ["--cap-lints=allow"], tags = [ - "cargo-raze", + "cargo-bazel", "crate-name=windows-sys", "manual", + "noclippy", + "norustfmt", ], version = "0.48.0", - # buildifier: leave-alone deps = [ - "@wasmtime__windows_targets__0_48_0//:windows_targets", + "@cu__windows-targets-0.48.5//:windows_targets", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel new file mode 100644 index 000000000..faca1ff4f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel @@ -0,0 +1,61 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_sys", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "Win32", + "Win32_Foundation", + "Win32_NetworkManagement", + "Win32_NetworkManagement_IpHelper", + "Win32_Networking", + "Win32_Networking_WinSock", + "Win32_Storage", + "Win32_Storage_FileSystem", + "Win32_System", + "Win32_System_Console", + "Win32_System_Diagnostics", + "Win32_System_Diagnostics_Debug", + "Win32_System_SystemInformation", + "Win32_System_Threading", + "default", + ], + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows-sys", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.0", + deps = [ + "@cu__windows-targets-0.52.6//:windows_targets", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.0.bazel deleted file mode 100644 index 677d0a5f9..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.0.bazel +++ /dev/null @@ -1,81 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets - -rust_library( - name = "windows_targets", - srcs = glob(["**/*.rs"]), - aliases = { - }, - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows-targets", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ] + selects.with_or({ - # cfg(all(target_arch = "x86", target_env = "gnu", not(windows_raw_dylib))) - ( - "@rules_rust//rust/platform:i686-unknown-linux-gnu", - "@rules_rust//rust/platform:i686-linux-android", - ): [ - "@wasmtime__windows_i686_gnu__0_48_0//:windows_i686_gnu", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib))) - ( - "@rules_rust//rust/platform:i686-pc-windows-msvc", - ): [ - "@wasmtime__windows_i686_msvc__0_48_0//:windows_i686_msvc", - ], - "//conditions:default": [], - }) + selects.with_or({ - # cfg(all(target_arch = "x86_64", target_env = "msvc", not(windows_raw_dylib))) - ( - "@rules_rust//rust/platform:x86_64-pc-windows-msvc", - ): [ - "@wasmtime__windows_x86_64_msvc__0_48_0//:windows_x86_64_msvc", - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel new file mode 100644 index 000000000..d3e4602f9 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel @@ -0,0 +1,59 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_targets", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows-targets", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = select({ + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows_aarch64_msvc-0.48.5//:windows_aarch64_msvc", # cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows_i686_msvc-0.48.5//:windows_i686_msvc", # cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__windows_i686_gnu-0.48.5//:windows_i686_gnu", # cfg(all(target_arch = "x86", target_env = "gnu", not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows_x86_64_msvc-0.48.5//:windows_x86_64_msvc", # cfg(all(target_arch = "x86_64", target_env = "msvc", not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__windows_x86_64_gnu-0.48.5//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel new file mode 100644 index 000000000..7a023db72 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel @@ -0,0 +1,59 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_targets", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows-targets", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = select({ + "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ + "@cu__windows_aarch64_msvc-0.52.6//:windows_aarch64_msvc", # cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:i686-pc-windows-msvc": [ + "@cu__windows_i686_msvc-0.52.6//:windows_i686_msvc", # cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "@cu__windows_i686_gnu-0.52.6//:windows_i686_gnu", # cfg(all(target_arch = "x86", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ + "@cu__windows_x86_64_msvc-0.52.6//:windows_x86_64_msvc", # cfg(all(any(target_arch = "x86_64", target_arch = "arm64ec"), target_env = "msvc", not(windows_raw_dylib))) + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "@cu__windows_x86_64_gnu-0.52.6//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) + ], + "//conditions:default": [], + }), +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.0.bazel deleted file mode 100644 index 1c7e25989..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_aarch64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.48.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_aarch64_gnullvm", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_aarch64_gnullvm", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ":windows_aarch64_gnullvm_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel new file mode 100644 index 000000000..06a47f3d2 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_aarch64_gnullvm", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = [ + "@cu__windows_aarch64_gnullvm-0.48.5//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_aarch64_gnullvm_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_aarch64_gnullvm_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel new file mode 100644 index 000000000..228f35c6a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_aarch64_gnullvm", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_aarch64_gnullvm-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_aarch64_gnullvm_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_aarch64_gnullvm_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.0.bazel deleted file mode 100644 index b45c4897a..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_aarch64_msvc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.48.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_aarch64_msvc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_aarch64_msvc", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ":windows_aarch64_msvc_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel new file mode 100644 index 000000000..e9e251a53 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_aarch64_msvc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = [ + "@cu__windows_aarch64_msvc-0.48.5//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_aarch64_msvc_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_aarch64_msvc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel new file mode 100644 index 000000000..a26ffc17e --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_aarch64_msvc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_aarch64_msvc-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_aarch64_msvc_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_aarch64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_aarch64_msvc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.0.bazel deleted file mode 100644 index 2edb92dda..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_i686_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.48.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_i686_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_i686_gnu", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ":windows_i686_gnu_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel new file mode 100644 index 000000000..c64b79b54 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_i686_gnu", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = [ + "@cu__windows_i686_gnu-0.48.5//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_i686_gnu_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_i686_gnu_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel new file mode 100644 index 000000000..a4459643b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_i686_gnu", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_i686_gnu-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_i686_gnu_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_i686_gnu_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel new file mode 100644 index 000000000..f2058a31b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_i686_gnullvm", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_i686_gnullvm-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_i686_gnullvm_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_i686_gnullvm_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.0.bazel deleted file mode 100644 index bb3f4205e..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_i686_msvc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.48.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_i686_msvc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_i686_msvc", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ":windows_i686_msvc_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel new file mode 100644 index 000000000..2d1a13c69 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_i686_msvc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = [ + "@cu__windows_i686_msvc-0.48.5//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_i686_msvc_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_i686_msvc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel new file mode 100644 index 000000000..9bb1f2aa4 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_i686_msvc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_i686_msvc-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_i686_msvc_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_i686_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_i686_msvc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.0.bazel deleted file mode 100644 index 3cc37d15f..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_x86_64_gnu_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.48.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_x86_64_gnu", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_x86_64_gnu", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ":windows_x86_64_gnu_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel new file mode 100644 index 000000000..3f33b6cb9 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_x86_64_gnu", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = [ + "@cu__windows_x86_64_gnu-0.48.5//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_x86_64_gnu_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_x86_64_gnu_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel new file mode 100644 index 000000000..0452db24f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_x86_64_gnu", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_x86_64_gnu-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_x86_64_gnu_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnu", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_x86_64_gnu_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.0.bazel deleted file mode 100644 index b9f924bb6..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_x86_64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.48.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_x86_64_gnullvm", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_x86_64_gnullvm", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ":windows_x86_64_gnullvm_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel new file mode 100644 index 000000000..e42a5df60 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_x86_64_gnullvm", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = [ + "@cu__windows_x86_64_gnullvm-0.48.5//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_x86_64_gnullvm_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_x86_64_gnullvm_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel new file mode 100644 index 000000000..3acad8056 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_x86_64_gnullvm", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_x86_64_gnullvm-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_x86_64_gnullvm_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_gnullvm", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_x86_64_gnullvm_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.0.bazel deleted file mode 100644 index ed1844cb8..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.0.bazel +++ /dev/null @@ -1,84 +0,0 @@ -""" -@generated -cargo-raze crate build file. - -DO NOT EDIT! Replaced on runs of cargo-raze -""" - -# buildifier: disable=load -load("@bazel_skylib//lib:selects.bzl", "selects") - -# buildifier: disable=load -load( - "@rules_rust//rust:defs.bzl", - "rust_binary", - "rust_library", - "rust_proc_macro", - "rust_test", -) - -package(default_visibility = [ - # Public for visibility by "@raze__crate__version//" targets. - # - # Prefer access through "//bazel/cargo/wasmtime", which limits external - # visibility to explicit Cargo.toml dependencies. - "//visibility:public", -]) - -licenses([ - "notice", # MIT from expression "MIT OR Apache-2.0" -]) - -# Generated Targets -# buildifier: disable=out-of-order-load -# buildifier: disable=load-on-top -load( - "@rules_rust//cargo:cargo_build_script.bzl", - "cargo_build_script", -) - -cargo_build_script( - name = "windows_x86_64_msvc_build_script", - srcs = glob(["**/*.rs"]), - build_script_env = { - }, - crate_features = [ - ], - crate_root = "build.rs", - data = glob(["**"]), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "manual", - ], - version = "0.48.0", - visibility = ["//visibility:private"], - deps = [ - ], -) - -rust_library( - name = "windows_x86_64_msvc", - srcs = glob(["**/*.rs"]), - crate_features = [ - ], - crate_root = "src/lib.rs", - data = [], - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-raze", - "crate-name=windows_x86_64_msvc", - "manual", - ], - version = "0.48.0", - # buildifier: leave-alone - deps = [ - ":windows_x86_64_msvc_build_script", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel new file mode 100644 index 000000000..9c02eb55c --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_x86_64_msvc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + deps = [ + "@cu__windows_x86_64_msvc-0.48.5//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_x86_64_msvc_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.48.5", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_x86_64_msvc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel new file mode 100644 index 000000000..969fd9751 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel @@ -0,0 +1,81 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//cargo:defs.bzl", "cargo_build_script") +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # MIT OR Apache-2.0 +# ]) + +rust_library( + name = "windows_x86_64_msvc", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + deps = [ + "@cu__windows_x86_64_msvc-0.52.6//:build_script_build", + ], +) + +cargo_build_script( + name = "windows_x86_64_msvc_build_script", + srcs = glob(["**/*.rs"]), + crate_name = "build_script_build", + crate_root = "build.rs", + data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=windows_x86_64_msvc", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.52.6", + visibility = ["//visibility:private"], +) + +alias( + name = "build_script_build", + actual = "windows_x86_64_msvc_build_script", + tags = ["manual"], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel new file mode 100644 index 000000000..38a99bf5a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # BSD-2-Clause OR Apache-2.0 OR MIT +# ]) + +rust_library( + name = "zerocopy", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "simd", + ], + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=zerocopy", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.35", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel new file mode 100644 index 000000000..c02f9298a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel @@ -0,0 +1,46 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") + +package(default_visibility = ["//visibility:public"]) + +# licenses([ +# "TODO", # BSD-2-Clause OR Apache-2.0 OR MIT +# ]) + +rust_proc_macro( + name = "zerocopy_derive", + srcs = glob(["**/*.rs"]), + compile_data = glob( + include = ["**"], + exclude = [ + "**/* *", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = ["--cap-lints=allow"], + tags = [ + "cargo-bazel", + "crate-name=zerocopy-derive", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.7.35", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__syn-2.0.72//:syn", + ], +) diff --git a/bazel/cargo/wasmtime/remote/crates.bzl b/bazel/cargo/wasmtime/remote/crates.bzl new file mode 100644 index 000000000..27c0e39a4 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/crates.bzl @@ -0,0 +1,25 @@ +############################################################################### +# @generated +# This file is auto-generated by the cargo-bazel tool. +# +# DO NOT MODIFY: Local changes may be replaced in future executions. +############################################################################### +"""Rules for defining repositories for remote `crates_vendor` repositories""" + +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +# buildifier: disable=bzl-visibility +load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:defs.bzl", _crate_repositories = "crate_repositories") + +# buildifier: disable=bzl-visibility +load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") + +def crate_repositories(): + maybe( + crates_vendor_remote_repository, + name = "cu", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.bazel"), + defs_module = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:defs.bzl"), + ) + + _crate_repositories() diff --git a/bazel/cargo/wasmtime/remote/defs.bzl b/bazel/cargo/wasmtime/remote/defs.bzl new file mode 100644 index 000000000..e4b3198d4 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/defs.bzl @@ -0,0 +1,1671 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run //bazel/cargo/wasmtime:crates_vendor +############################################################################### +""" +# `crates_repository` API + +- [aliases](#aliases) +- [crate_deps](#crate_deps) +- [all_crate_deps](#all_crate_deps) +- [crate_repositories](#crate_repositories) + +""" + +load("@bazel_skylib//lib:selects.bzl", "selects") +load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") +load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") + +############################################################################### +# MACROS API +############################################################################### + +# An identifier that represent common dependencies (unconditional). +_COMMON_CONDITION = "" + +def _flatten_dependency_maps(all_dependency_maps): + """Flatten a list of dependency maps into one dictionary. + + Dependency maps have the following structure: + + ```python + DEPENDENCIES_MAP = { + # The first key in the map is a Bazel package + # name of the workspace this file is defined in. + "workspace_member_package": { + + # Not all dependencies are supported for all platforms. + # the condition key is the condition required to be true + # on the host platform. + "condition": { + + # An alias to a crate target. # The label of the crate target the + # Aliases are only crate names. # package name refers to. + "package_name": "@full//:label", + } + } + } + ``` + + Args: + all_dependency_maps (list): A list of dicts as described above + + Returns: + dict: A dictionary as described above + """ + dependencies = {} + + for workspace_deps_map in all_dependency_maps: + for pkg_name, conditional_deps_map in workspace_deps_map.items(): + if pkg_name not in dependencies: + non_frozen_map = dict() + for key, values in conditional_deps_map.items(): + non_frozen_map.update({key: dict(values.items())}) + dependencies.setdefault(pkg_name, non_frozen_map) + continue + + for condition, deps_map in conditional_deps_map.items(): + # If the condition has not been recorded, do so and continue + if condition not in dependencies[pkg_name]: + dependencies[pkg_name].setdefault(condition, dict(deps_map.items())) + continue + + # Alert on any miss-matched dependencies + inconsistent_entries = [] + for crate_name, crate_label in deps_map.items(): + existing = dependencies[pkg_name][condition].get(crate_name) + if existing and existing != crate_label: + inconsistent_entries.append((crate_name, existing, crate_label)) + dependencies[pkg_name][condition].update({crate_name: crate_label}) + + return dependencies + +def crate_deps(deps, package_name = None): + """Finds the fully qualified label of the requested crates for the package where this macro is called. + + Args: + deps (list): The desired list of crate targets. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()`. + + Returns: + list: A list of labels to generated rust targets (str) + """ + + if not deps: + return [] + + if package_name == None: + package_name = native.package_name() + + # Join both sets of dependencies + dependencies = _flatten_dependency_maps([ + _NORMAL_DEPENDENCIES, + _NORMAL_DEV_DEPENDENCIES, + _PROC_MACRO_DEPENDENCIES, + _PROC_MACRO_DEV_DEPENDENCIES, + _BUILD_DEPENDENCIES, + _BUILD_PROC_MACRO_DEPENDENCIES, + ]).pop(package_name, {}) + + # Combine all conditional packages so we can easily index over a flat list + # TODO: Perhaps this should actually return select statements and maintain + # the conditionals of the dependencies + flat_deps = {} + for deps_set in dependencies.values(): + for crate_name, crate_label in deps_set.items(): + flat_deps.update({crate_name: crate_label}) + + missing_crates = [] + crate_targets = [] + for crate_target in deps: + if crate_target not in flat_deps: + missing_crates.append(crate_target) + else: + crate_targets.append(flat_deps[crate_target]) + + if missing_crates: + fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format( + missing_crates, + package_name, + dependencies, + )) + + return crate_targets + +def all_crate_deps( + normal = False, + normal_dev = False, + proc_macro = False, + proc_macro_dev = False, + build = False, + build_proc_macro = False, + package_name = None): + """Finds the fully qualified label of all requested direct crate dependencies \ + for the package where this macro is called. + + If no parameters are set, all normal dependencies are returned. Setting any one flag will + otherwise impact the contents of the returned list. + + Args: + normal (bool, optional): If True, normal dependencies are included in the + output list. + normal_dev (bool, optional): If True, normal dev dependencies will be + included in the output list.. + proc_macro (bool, optional): If True, proc_macro dependencies are included + in the output list. + proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are + included in the output list. + build (bool, optional): If True, build dependencies are included + in the output list. + build_proc_macro (bool, optional): If True, build proc_macro dependencies are + included in the output list. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()` when unset. + + Returns: + list: A list of labels to generated rust targets (str) + """ + + if package_name == None: + package_name = native.package_name() + + # Determine the relevant maps to use + all_dependency_maps = [] + if normal: + all_dependency_maps.append(_NORMAL_DEPENDENCIES) + if normal_dev: + all_dependency_maps.append(_NORMAL_DEV_DEPENDENCIES) + if proc_macro: + all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES) + if proc_macro_dev: + all_dependency_maps.append(_PROC_MACRO_DEV_DEPENDENCIES) + if build: + all_dependency_maps.append(_BUILD_DEPENDENCIES) + if build_proc_macro: + all_dependency_maps.append(_BUILD_PROC_MACRO_DEPENDENCIES) + + # Default to always using normal dependencies + if not all_dependency_maps: + all_dependency_maps.append(_NORMAL_DEPENDENCIES) + + dependencies = _flatten_dependency_maps(all_dependency_maps).pop(package_name, None) + + if not dependencies: + if dependencies == None: + fail("Tried to get all_crate_deps for package " + package_name + " but that package had no Cargo.toml file") + else: + return [] + + crate_deps = list(dependencies.pop(_COMMON_CONDITION, {}).values()) + for condition, deps in dependencies.items(): + crate_deps += selects.with_or({ + tuple(_CONDITIONS[condition]): deps.values(), + "//conditions:default": [], + }) + + return crate_deps + +def aliases( + normal = False, + normal_dev = False, + proc_macro = False, + proc_macro_dev = False, + build = False, + build_proc_macro = False, + package_name = None): + """Produces a map of Crate alias names to their original label + + If no dependency kinds are specified, `normal` and `proc_macro` are used by default. + Setting any one flag will otherwise determine the contents of the returned dict. + + Args: + normal (bool, optional): If True, normal dependencies are included in the + output list. + normal_dev (bool, optional): If True, normal dev dependencies will be + included in the output list.. + proc_macro (bool, optional): If True, proc_macro dependencies are included + in the output list. + proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are + included in the output list. + build (bool, optional): If True, build dependencies are included + in the output list. + build_proc_macro (bool, optional): If True, build proc_macro dependencies are + included in the output list. + package_name (str, optional): The package name of the set of dependencies to look up. + Defaults to `native.package_name()` when unset. + + Returns: + dict: The aliases of all associated packages + """ + if package_name == None: + package_name = native.package_name() + + # Determine the relevant maps to use + all_aliases_maps = [] + if normal: + all_aliases_maps.append(_NORMAL_ALIASES) + if normal_dev: + all_aliases_maps.append(_NORMAL_DEV_ALIASES) + if proc_macro: + all_aliases_maps.append(_PROC_MACRO_ALIASES) + if proc_macro_dev: + all_aliases_maps.append(_PROC_MACRO_DEV_ALIASES) + if build: + all_aliases_maps.append(_BUILD_ALIASES) + if build_proc_macro: + all_aliases_maps.append(_BUILD_PROC_MACRO_ALIASES) + + # Default to always using normal aliases + if not all_aliases_maps: + all_aliases_maps.append(_NORMAL_ALIASES) + all_aliases_maps.append(_PROC_MACRO_ALIASES) + + aliases = _flatten_dependency_maps(all_aliases_maps).pop(package_name, None) + + if not aliases: + return dict() + + common_items = aliases.pop(_COMMON_CONDITION, {}).items() + + # If there are only common items in the dictionary, immediately return them + if not len(aliases.keys()) == 1: + return dict(common_items) + + # Build a single select statement where each conditional has accounted for the + # common set of aliases. + crate_aliases = {"//conditions:default": dict(common_items)} + for condition, deps in aliases.items(): + condition_triples = _CONDITIONS[condition] + for triple in condition_triples: + if triple in crate_aliases: + crate_aliases[triple].update(deps) + else: + crate_aliases.update({triple: dict(deps.items() + common_items)}) + + return select(crate_aliases) + +############################################################################### +# WORKSPACE MEMBER DEPS AND ALIASES +############################################################################### + +_NORMAL_DEPENDENCIES = { + "bazel/cargo/wasmtime": { + _COMMON_CONDITION: { + "anyhow": "@cu__anyhow-1.0.86//:anyhow", + "env_logger": "@cu__env_logger-0.10.2//:env_logger", + "once_cell": "@cu__once_cell-1.19.0//:once_cell", + "wasmtime": "@cu__wasmtime-9.0.4//:wasmtime", + }, + }, +} + +_NORMAL_ALIASES = { + "bazel/cargo/wasmtime": { + _COMMON_CONDITION: { + }, + }, +} + +_NORMAL_DEV_DEPENDENCIES = { + "bazel/cargo/wasmtime": { + }, +} + +_NORMAL_DEV_ALIASES = { + "bazel/cargo/wasmtime": { + }, +} + +_PROC_MACRO_DEPENDENCIES = { + "bazel/cargo/wasmtime": { + _COMMON_CONDITION: { + "wasmtime-c-api-macros": "@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros", + }, + }, +} + +_PROC_MACRO_ALIASES = { + "bazel/cargo/wasmtime": { + }, +} + +_PROC_MACRO_DEV_DEPENDENCIES = { + "bazel/cargo/wasmtime": { + }, +} + +_PROC_MACRO_DEV_ALIASES = { + "bazel/cargo/wasmtime": { + }, +} + +_BUILD_DEPENDENCIES = { + "bazel/cargo/wasmtime": { + }, +} + +_BUILD_ALIASES = { + "bazel/cargo/wasmtime": { + }, +} + +_BUILD_PROC_MACRO_DEPENDENCIES = { + "bazel/cargo/wasmtime": { + }, +} + +_BUILD_PROC_MACRO_ALIASES = { + "bazel/cargo/wasmtime": { + }, +} + +_CONDITIONS = { + "aarch64-pc-windows-gnullvm": [], + "cfg(all(any(target_arch = \"x86_64\", target_arch = \"arm64ec\"), target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], + "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], + "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(all(target_arch = \"aarch64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], + "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], + "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], + "cfg(all(target_arch = \"x86\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], + "cfg(all(target_arch = \"x86_64\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(all(target_arch = \"x86_64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "cfg(any())": [], + "cfg(any(target_arch = \"s390x\", target_arch = \"riscv64\"))": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu"], + "cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\", target_os = \"android\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(any(target_os = \"macos\", target_os = \"ios\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios"], + "cfg(any(unix, target_os = \"wasi\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(not(all(target_arch = \"arm\", target_os = \"none\")))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(not(windows))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(target_os = \"hermit\")": [], + "cfg(target_os = \"macos\")": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin"], + "cfg(target_os = \"wasi\")": ["@rules_rust//rust/platform:wasm32-wasi"], + "cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "cfg(unix)": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(windows)": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "i686-pc-windows-gnullvm": [], + "x86_64-pc-windows-gnullvm": [], +} + +############################################################################### + +def crate_repositories(): + """A macro for defining repositories for all generated crates""" + maybe( + http_archive, + name = "cu__addr2line-0.19.0", + sha256 = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97", + type = "tar.gz", + urls = ["https://static.crates.io/crates/addr2line/0.19.0/download"], + strip_prefix = "addr2line-0.19.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.addr2line-0.19.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__ahash-0.8.11", + sha256 = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011", + type = "tar.gz", + urls = ["https://static.crates.io/crates/ahash/0.8.11/download"], + strip_prefix = "ahash-0.8.11", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.ahash-0.8.11.bazel"), + ) + + maybe( + http_archive, + name = "cu__aho-corasick-1.1.3", + sha256 = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916", + type = "tar.gz", + urls = ["https://static.crates.io/crates/aho-corasick/1.1.3/download"], + strip_prefix = "aho-corasick-1.1.3", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.aho-corasick-1.1.3.bazel"), + ) + + maybe( + http_archive, + name = "cu__anyhow-1.0.86", + sha256 = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da", + type = "tar.gz", + urls = ["https://static.crates.io/crates/anyhow/1.0.86/download"], + strip_prefix = "anyhow-1.0.86", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.anyhow-1.0.86.bazel"), + ) + + maybe( + http_archive, + name = "cu__arbitrary-1.3.2", + sha256 = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110", + type = "tar.gz", + urls = ["https://static.crates.io/crates/arbitrary/1.3.2/download"], + strip_prefix = "arbitrary-1.3.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.arbitrary-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__autocfg-1.3.0", + sha256 = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0", + type = "tar.gz", + urls = ["https://static.crates.io/crates/autocfg/1.3.0/download"], + strip_prefix = "autocfg-1.3.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.autocfg-1.3.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__bincode-1.3.3", + sha256 = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad", + type = "tar.gz", + urls = ["https://static.crates.io/crates/bincode/1.3.3/download"], + strip_prefix = "bincode-1.3.3", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.bincode-1.3.3.bazel"), + ) + + maybe( + http_archive, + name = "cu__bitflags-1.3.2", + sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", + type = "tar.gz", + urls = ["https://static.crates.io/crates/bitflags/1.3.2/download"], + strip_prefix = "bitflags-1.3.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.bitflags-1.3.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__bitflags-2.6.0", + sha256 = "b048fb63fd8b5923fc5aa7b340d8e156aec7ec02f0c78fa8a6ddc2613f6f71de", + type = "tar.gz", + urls = ["https://static.crates.io/crates/bitflags/2.6.0/download"], + strip_prefix = "bitflags-2.6.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.bitflags-2.6.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__bumpalo-3.16.0", + sha256 = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/bumpalo/3.16.0/download"], + strip_prefix = "bumpalo-3.16.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.bumpalo-3.16.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__byteorder-1.5.0", + sha256 = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/byteorder/1.5.0/download"], + strip_prefix = "byteorder-1.5.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.byteorder-1.5.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__cc-1.1.6", + sha256 = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cc/1.1.6/download"], + strip_prefix = "cc-1.1.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cc-1.1.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__cfg-if-1.0.0", + sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cfg-if/1.0.0/download"], + strip_prefix = "cfg-if-1.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cfg-if-1.0.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__cpp_demangle-0.3.5", + sha256 = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cpp_demangle/0.3.5/download"], + strip_prefix = "cpp_demangle-0.3.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cpp_demangle-0.3.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-bforest-0.96.4", + sha256 = "182b82f78049f54d3aee5a19870d356ef754226665a695ce2fcdd5d55379718e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-bforest/0.96.4/download"], + strip_prefix = "cranelift-bforest-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-codegen-0.96.4", + sha256 = "e7c027bf04ecae5b048d3554deb888061bc26f426afff47bf06d6ac933dce0a6", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-codegen/0.96.4/download"], + strip_prefix = "cranelift-codegen-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-codegen-meta-0.96.4", + sha256 = "649f70038235e4c81dba5680d7e5ae83e1081f567232425ab98b55b03afd9904", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-codegen-meta/0.96.4/download"], + strip_prefix = "cranelift-codegen-meta-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-codegen-shared-0.96.4", + sha256 = "7a1d1c5ee2611c6a0bdc8d42d5d3dc5ce8bf53a8040561e26e88b9b21f966417", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-codegen-shared/0.96.4/download"], + strip_prefix = "cranelift-codegen-shared-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-control-0.96.4", + sha256 = "da66a68b1f48da863d1d53209b8ddb1a6236411d2d72a280ffa8c2f734f7219e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-control/0.96.4/download"], + strip_prefix = "cranelift-control-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-control-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-entity-0.96.4", + sha256 = "9bd897422dbb66621fa558f4d9209875530c53e3c8f4b13b2849fbb667c431a6", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-entity/0.96.4/download"], + strip_prefix = "cranelift-entity-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-frontend-0.96.4", + sha256 = "05db883114c98cfcd6959f72278d2fec42e01ea6a6982cfe4f20e88eebe86653", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-frontend/0.96.4/download"], + strip_prefix = "cranelift-frontend-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-isle-0.96.4", + sha256 = "84559de86e2564152c87e299c8b2559f9107e9c6d274b24ebeb04fb0a5f4abf8", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-isle/0.96.4/download"], + strip_prefix = "cranelift-isle-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-native-0.96.4", + sha256 = "3f40b57f187f0fe1ffaf281df4adba2b4bc623a0f6651954da9f3c184be72761", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-native/0.96.4/download"], + strip_prefix = "cranelift-native-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__cranelift-wasm-0.96.4", + sha256 = "f3eab6084cc789b9dd0b1316241efeb2968199fee709f4bb4fe0fb0923bb468b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/cranelift-wasm/0.96.4/download"], + strip_prefix = "cranelift-wasm-0.96.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.96.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__crc32fast-1.4.2", + sha256 = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3", + type = "tar.gz", + urls = ["https://static.crates.io/crates/crc32fast/1.4.2/download"], + strip_prefix = "crc32fast-1.4.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.4.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__debugid-0.8.0", + sha256 = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d", + type = "tar.gz", + urls = ["https://static.crates.io/crates/debugid/0.8.0/download"], + strip_prefix = "debugid-0.8.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.debugid-0.8.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__either-1.13.0", + sha256 = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0", + type = "tar.gz", + urls = ["https://static.crates.io/crates/either/1.13.0/download"], + strip_prefix = "either-1.13.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.either-1.13.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__env_logger-0.10.2", + sha256 = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580", + type = "tar.gz", + urls = ["https://static.crates.io/crates/env_logger/0.10.2/download"], + strip_prefix = "env_logger-0.10.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.10.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__errno-0.3.9", + sha256 = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba", + type = "tar.gz", + urls = ["https://static.crates.io/crates/errno/0.3.9/download"], + strip_prefix = "errno-0.3.9", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.errno-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "cu__fallible-iterator-0.2.0", + sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", + type = "tar.gz", + urls = ["https://static.crates.io/crates/fallible-iterator/0.2.0/download"], + strip_prefix = "fallible-iterator-0.2.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.fallible-iterator-0.2.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__form_urlencoded-1.2.1", + sha256 = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456", + type = "tar.gz", + urls = ["https://static.crates.io/crates/form_urlencoded/1.2.1/download"], + strip_prefix = "form_urlencoded-1.2.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.form_urlencoded-1.2.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__fxhash-0.2.1", + sha256 = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/fxhash/0.2.1/download"], + strip_prefix = "fxhash-0.2.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.fxhash-0.2.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__fxprof-processed-profile-0.6.0", + sha256 = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd", + type = "tar.gz", + urls = ["https://static.crates.io/crates/fxprof-processed-profile/0.6.0/download"], + strip_prefix = "fxprof-processed-profile-0.6.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.fxprof-processed-profile-0.6.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__getrandom-0.2.15", + sha256 = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7", + type = "tar.gz", + urls = ["https://static.crates.io/crates/getrandom/0.2.15/download"], + strip_prefix = "getrandom-0.2.15", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.15.bazel"), + ) + + maybe( + http_archive, + name = "cu__gimli-0.27.3", + sha256 = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/gimli/0.27.3/download"], + strip_prefix = "gimli-0.27.3", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.gimli-0.27.3.bazel"), + ) + + maybe( + http_archive, + name = "cu__hashbrown-0.12.3", + sha256 = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888", + type = "tar.gz", + urls = ["https://static.crates.io/crates/hashbrown/0.12.3/download"], + strip_prefix = "hashbrown-0.12.3", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.12.3.bazel"), + ) + + maybe( + http_archive, + name = "cu__hashbrown-0.13.2", + sha256 = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/hashbrown/0.13.2/download"], + strip_prefix = "hashbrown-0.13.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.13.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__hermit-abi-0.3.9", + sha256 = "d231dfb89cfffdbc30e7fc41579ed6066ad03abda9e567ccafae602b97ec5024", + type = "tar.gz", + urls = ["https://static.crates.io/crates/hermit-abi/0.3.9/download"], + strip_prefix = "hermit-abi-0.3.9", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.hermit-abi-0.3.9.bazel"), + ) + + maybe( + http_archive, + name = "cu__humantime-2.1.0", + sha256 = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4", + type = "tar.gz", + urls = ["https://static.crates.io/crates/humantime/2.1.0/download"], + strip_prefix = "humantime-2.1.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.humantime-2.1.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__idna-0.5.0", + sha256 = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6", + type = "tar.gz", + urls = ["https://static.crates.io/crates/idna/0.5.0/download"], + strip_prefix = "idna-0.5.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.idna-0.5.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__indexmap-1.9.3", + sha256 = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99", + type = "tar.gz", + urls = ["https://static.crates.io/crates/indexmap/1.9.3/download"], + strip_prefix = "indexmap-1.9.3", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.3.bazel"), + ) + + maybe( + http_archive, + name = "cu__io-lifetimes-1.0.11", + sha256 = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2", + type = "tar.gz", + urls = ["https://static.crates.io/crates/io-lifetimes/1.0.11/download"], + strip_prefix = "io-lifetimes-1.0.11", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-1.0.11.bazel"), + ) + + maybe( + http_archive, + name = "cu__is-terminal-0.4.12", + sha256 = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/is-terminal/0.4.12/download"], + strip_prefix = "is-terminal-0.4.12", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.is-terminal-0.4.12.bazel"), + ) + + maybe( + http_archive, + name = "cu__itertools-0.10.5", + sha256 = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473", + type = "tar.gz", + urls = ["https://static.crates.io/crates/itertools/0.10.5/download"], + strip_prefix = "itertools-0.10.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.itertools-0.10.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__itoa-1.0.11", + sha256 = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/itoa/1.0.11/download"], + strip_prefix = "itoa-1.0.11", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.itoa-1.0.11.bazel"), + ) + + maybe( + http_archive, + name = "cu__libc-0.2.155", + sha256 = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/libc/0.2.155/download"], + strip_prefix = "libc-0.2.155", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.libc-0.2.155.bazel"), + ) + + maybe( + http_archive, + name = "cu__linux-raw-sys-0.3.8", + sha256 = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519", + type = "tar.gz", + urls = ["https://static.crates.io/crates/linux-raw-sys/0.3.8/download"], + strip_prefix = "linux-raw-sys-0.3.8", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.3.8.bazel"), + ) + + maybe( + http_archive, + name = "cu__linux-raw-sys-0.4.14", + sha256 = "78b3ae25bc7c8c38cec158d1f2757ee79e9b3740fbc7ccf0e59e4b08d793fa89", + type = "tar.gz", + urls = ["https://static.crates.io/crates/linux-raw-sys/0.4.14/download"], + strip_prefix = "linux-raw-sys-0.4.14", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.4.14.bazel"), + ) + + maybe( + http_archive, + name = "cu__log-0.4.22", + sha256 = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24", + type = "tar.gz", + urls = ["https://static.crates.io/crates/log/0.4.22/download"], + strip_prefix = "log-0.4.22", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.log-0.4.22.bazel"), + ) + + maybe( + http_archive, + name = "cu__mach-0.3.2", + sha256 = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa", + type = "tar.gz", + urls = ["https://static.crates.io/crates/mach/0.3.2/download"], + strip_prefix = "mach-0.3.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.mach-0.3.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__memchr-2.7.4", + sha256 = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3", + type = "tar.gz", + urls = ["https://static.crates.io/crates/memchr/2.7.4/download"], + strip_prefix = "memchr-2.7.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.memchr-2.7.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__memfd-0.6.4", + sha256 = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64", + type = "tar.gz", + urls = ["https://static.crates.io/crates/memfd/0.6.4/download"], + strip_prefix = "memfd-0.6.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.memfd-0.6.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__memoffset-0.8.0", + sha256 = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1", + type = "tar.gz", + urls = ["https://static.crates.io/crates/memoffset/0.8.0/download"], + strip_prefix = "memoffset-0.8.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.8.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__object-0.30.4", + sha256 = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385", + type = "tar.gz", + urls = ["https://static.crates.io/crates/object/0.30.4/download"], + strip_prefix = "object-0.30.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.object-0.30.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__once_cell-1.19.0", + sha256 = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92", + type = "tar.gz", + urls = ["https://static.crates.io/crates/once_cell/1.19.0/download"], + strip_prefix = "once_cell-1.19.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.once_cell-1.19.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__paste-1.0.15", + sha256 = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a", + type = "tar.gz", + urls = ["https://static.crates.io/crates/paste/1.0.15/download"], + strip_prefix = "paste-1.0.15", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.paste-1.0.15.bazel"), + ) + + maybe( + http_archive, + name = "cu__percent-encoding-2.3.1", + sha256 = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/percent-encoding/2.3.1/download"], + strip_prefix = "percent-encoding-2.3.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.percent-encoding-2.3.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__ppv-lite86-0.2.17", + sha256 = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de", + type = "tar.gz", + urls = ["https://static.crates.io/crates/ppv-lite86/0.2.17/download"], + strip_prefix = "ppv-lite86-0.2.17", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.ppv-lite86-0.2.17.bazel"), + ) + + maybe( + http_archive, + name = "cu__proc-macro2-1.0.86", + sha256 = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77", + type = "tar.gz", + urls = ["https://static.crates.io/crates/proc-macro2/1.0.86/download"], + strip_prefix = "proc-macro2-1.0.86", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.proc-macro2-1.0.86.bazel"), + ) + + maybe( + http_archive, + name = "cu__psm-0.1.21", + sha256 = "5787f7cda34e3033a72192c018bc5883100330f362ef279a8cbccfce8bb4e874", + type = "tar.gz", + urls = ["https://static.crates.io/crates/psm/0.1.21/download"], + strip_prefix = "psm-0.1.21", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.psm-0.1.21.bazel"), + ) + + maybe( + http_archive, + name = "cu__quote-1.0.36", + sha256 = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7", + type = "tar.gz", + urls = ["https://static.crates.io/crates/quote/1.0.36/download"], + strip_prefix = "quote-1.0.36", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.quote-1.0.36.bazel"), + ) + + maybe( + http_archive, + name = "cu__rand-0.8.5", + sha256 = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404", + type = "tar.gz", + urls = ["https://static.crates.io/crates/rand/0.8.5/download"], + strip_prefix = "rand-0.8.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rand-0.8.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__rand_chacha-0.3.1", + sha256 = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88", + type = "tar.gz", + urls = ["https://static.crates.io/crates/rand_chacha/0.3.1/download"], + strip_prefix = "rand_chacha-0.3.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rand_chacha-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__rand_core-0.6.4", + sha256 = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/rand_core/0.6.4/download"], + strip_prefix = "rand_core-0.6.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rand_core-0.6.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__regalloc2-0.8.1", + sha256 = "d4a52e724646c6c0800fc456ec43b4165d2f91fba88ceaca06d9e0b400023478", + type = "tar.gz", + urls = ["https://static.crates.io/crates/regalloc2/0.8.1/download"], + strip_prefix = "regalloc2-0.8.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.8.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__regex-1.10.5", + sha256 = "b91213439dad192326a0d7c6ee3955910425f441d7038e0d6933b0aec5c4517f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/regex/1.10.5/download"], + strip_prefix = "regex-1.10.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.regex-1.10.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__regex-automata-0.4.7", + sha256 = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df", + type = "tar.gz", + urls = ["https://static.crates.io/crates/regex-automata/0.4.7/download"], + strip_prefix = "regex-automata-0.4.7", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.regex-automata-0.4.7.bazel"), + ) + + maybe( + http_archive, + name = "cu__regex-syntax-0.8.4", + sha256 = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/regex-syntax/0.8.4/download"], + strip_prefix = "regex-syntax-0.8.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.8.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__rustc-demangle-0.1.24", + sha256 = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/rustc-demangle/0.1.24/download"], + strip_prefix = "rustc-demangle-0.1.24", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rustc-demangle-0.1.24.bazel"), + ) + + maybe( + http_archive, + name = "cu__rustc-hash-1.1.0", + sha256 = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2", + type = "tar.gz", + urls = ["https://static.crates.io/crates/rustc-hash/1.1.0/download"], + strip_prefix = "rustc-hash-1.1.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rustc-hash-1.1.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__rustix-0.37.27", + sha256 = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2", + type = "tar.gz", + urls = ["https://static.crates.io/crates/rustix/0.37.27/download"], + strip_prefix = "rustix-0.37.27", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rustix-0.37.27.bazel"), + ) + + maybe( + http_archive, + name = "cu__rustix-0.38.34", + sha256 = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/rustix/0.38.34/download"], + strip_prefix = "rustix-0.38.34", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rustix-0.38.34.bazel"), + ) + + maybe( + http_archive, + name = "cu__ryu-1.0.18", + sha256 = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/ryu/1.0.18/download"], + strip_prefix = "ryu-1.0.18", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.ryu-1.0.18.bazel"), + ) + + maybe( + http_archive, + name = "cu__serde-1.0.204", + sha256 = "bc76f558e0cbb2a839d37354c575f1dc3fdc6546b5be373ba43d95f231bf7c12", + type = "tar.gz", + urls = ["https://static.crates.io/crates/serde/1.0.204/download"], + strip_prefix = "serde-1.0.204", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.serde-1.0.204.bazel"), + ) + + maybe( + http_archive, + name = "cu__serde_derive-1.0.204", + sha256 = "e0cd7e117be63d3c3678776753929474f3b04a43a080c744d6b0ae2a8c28e222", + type = "tar.gz", + urls = ["https://static.crates.io/crates/serde_derive/1.0.204/download"], + strip_prefix = "serde_derive-1.0.204", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.serde_derive-1.0.204.bazel"), + ) + + maybe( + http_archive, + name = "cu__serde_json-1.0.120", + sha256 = "4e0d21c9a8cae1235ad58a00c11cb40d4b1e5c784f1ef2c537876ed6ffd8b7c5", + type = "tar.gz", + urls = ["https://static.crates.io/crates/serde_json/1.0.120/download"], + strip_prefix = "serde_json-1.0.120", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.serde_json-1.0.120.bazel"), + ) + + maybe( + http_archive, + name = "cu__slice-group-by-0.3.1", + sha256 = "826167069c09b99d56f31e9ae5c99049e932a98c9dc2dac47645b08dbbf76ba7", + type = "tar.gz", + urls = ["https://static.crates.io/crates/slice-group-by/0.3.1/download"], + strip_prefix = "slice-group-by-0.3.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.slice-group-by-0.3.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__smallvec-1.13.2", + sha256 = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67", + type = "tar.gz", + urls = ["https://static.crates.io/crates/smallvec/1.13.2/download"], + strip_prefix = "smallvec-1.13.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.13.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__stable_deref_trait-1.2.0", + sha256 = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3", + type = "tar.gz", + urls = ["https://static.crates.io/crates/stable_deref_trait/1.2.0/download"], + strip_prefix = "stable_deref_trait-1.2.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.stable_deref_trait-1.2.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__syn-2.0.72", + sha256 = "dc4b9b9bf2add8093d3f2c0204471e951b2285580335de42f9d2534f3ae7a8af", + type = "tar.gz", + urls = ["https://static.crates.io/crates/syn/2.0.72/download"], + strip_prefix = "syn-2.0.72", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.syn-2.0.72.bazel"), + ) + + maybe( + http_archive, + name = "cu__target-lexicon-0.12.15", + sha256 = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2", + type = "tar.gz", + urls = ["https://static.crates.io/crates/target-lexicon/0.12.15/download"], + strip_prefix = "target-lexicon-0.12.15", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.15.bazel"), + ) + + maybe( + http_archive, + name = "cu__termcolor-1.4.1", + sha256 = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755", + type = "tar.gz", + urls = ["https://static.crates.io/crates/termcolor/1.4.1/download"], + strip_prefix = "termcolor-1.4.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.termcolor-1.4.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__thiserror-1.0.63", + sha256 = "c0342370b38b6a11b6cc11d6a805569958d54cfa061a29969c3b5ce2ea405724", + type = "tar.gz", + urls = ["https://static.crates.io/crates/thiserror/1.0.63/download"], + strip_prefix = "thiserror-1.0.63", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.thiserror-1.0.63.bazel"), + ) + + maybe( + http_archive, + name = "cu__thiserror-impl-1.0.63", + sha256 = "a4558b58466b9ad7ca0f102865eccc95938dca1a74a856f2b57b6629050da261", + type = "tar.gz", + urls = ["https://static.crates.io/crates/thiserror-impl/1.0.63/download"], + strip_prefix = "thiserror-impl-1.0.63", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.thiserror-impl-1.0.63.bazel"), + ) + + maybe( + http_archive, + name = "cu__tinyvec-1.8.0", + sha256 = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938", + type = "tar.gz", + urls = ["https://static.crates.io/crates/tinyvec/1.8.0/download"], + strip_prefix = "tinyvec-1.8.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.tinyvec-1.8.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__tinyvec_macros-0.1.1", + sha256 = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20", + type = "tar.gz", + urls = ["https://static.crates.io/crates/tinyvec_macros/0.1.1/download"], + strip_prefix = "tinyvec_macros-0.1.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.tinyvec_macros-0.1.1.bazel"), + ) + + maybe( + http_archive, + name = "cu__unicode-bidi-0.3.15", + sha256 = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75", + type = "tar.gz", + urls = ["https://static.crates.io/crates/unicode-bidi/0.3.15/download"], + strip_prefix = "unicode-bidi-0.3.15", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.unicode-bidi-0.3.15.bazel"), + ) + + maybe( + http_archive, + name = "cu__unicode-ident-1.0.12", + sha256 = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/unicode-ident/1.0.12/download"], + strip_prefix = "unicode-ident-1.0.12", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.unicode-ident-1.0.12.bazel"), + ) + + maybe( + http_archive, + name = "cu__unicode-normalization-0.1.23", + sha256 = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5", + type = "tar.gz", + urls = ["https://static.crates.io/crates/unicode-normalization/0.1.23/download"], + strip_prefix = "unicode-normalization-0.1.23", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.unicode-normalization-0.1.23.bazel"), + ) + + maybe( + http_archive, + name = "cu__url-2.5.2", + sha256 = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/url/2.5.2/download"], + strip_prefix = "url-2.5.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.url-2.5.2.bazel"), + ) + + maybe( + http_archive, + name = "cu__uuid-1.10.0", + sha256 = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314", + type = "tar.gz", + urls = ["https://static.crates.io/crates/uuid/1.10.0/download"], + strip_prefix = "uuid-1.10.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.uuid-1.10.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__version_check-0.9.5", + sha256 = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a", + type = "tar.gz", + urls = ["https://static.crates.io/crates/version_check/0.9.5/download"], + strip_prefix = "version_check-0.9.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.version_check-0.9.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasi-0.11.0-wasi-snapshot-preview1", + sha256 = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasi/0.11.0+wasi-snapshot-preview1/download"], + strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmparser-0.103.0", + sha256 = "2c437373cac5ea84f1113d648d51f71751ffbe3d90c00ae67618cf20d0b5ee7b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmparser/0.103.0/download"], + strip_prefix = "wasmparser-0.103.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.103.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-9.0.4", + sha256 = "634357e8668774b24c80b210552f3f194e2342a065d6d83845ba22c5817d0770", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime/9.0.4/download"], + strip_prefix = "wasmtime-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-asm-macros-9.0.4", + sha256 = "d33c73c24ce79b0483a3b091a9acf88871f4490b88998e8974b22236264d304c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-asm-macros/9.0.4/download"], + strip_prefix = "wasmtime-asm-macros-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-9.0.4.bazel"), + ) + + maybe( + new_git_repository, + name = "cu__wasmtime-c-api-macros-0.0.0", + tag = "v9.0.3", + init_submodules = True, + remote = "https://github.com/bytecodealliance/wasmtime", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.0.0.bazel"), + strip_prefix = "crates/c-api/macros", + ) + + maybe( + http_archive, + name = "cu__wasmtime-cranelift-9.0.4", + sha256 = "5800616a28ed6bd5e8b99ea45646c956d798ae030494ac0689bc3e45d3b689c1", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-cranelift/9.0.4/download"], + strip_prefix = "wasmtime-cranelift-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-cranelift-shared-9.0.4", + sha256 = "27e4030b959ac5c5d6ee500078977e813f8768fa2b92fc12be01856cd0c76c55", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-cranelift-shared/9.0.4/download"], + strip_prefix = "wasmtime-cranelift-shared-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-shared-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-environ-9.0.4", + sha256 = "9ec815d01a8d38aceb7ed4678f9ba551ae6b8a568a63810ac3ad9293b0fd01c8", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-environ/9.0.4/download"], + strip_prefix = "wasmtime-environ-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-jit-9.0.4", + sha256 = "2712eafe829778b426cad0e1769fef944898923dd29f0039e34e0d53ba72b234", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-jit/9.0.4/download"], + strip_prefix = "wasmtime-jit-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-jit-debug-9.0.4", + sha256 = "65fb78eacf4a6e47260d8ef8cc81ea8ddb91397b2e848b3fb01567adebfe89b5", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-jit-debug/9.0.4/download"], + strip_prefix = "wasmtime-jit-debug-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-jit-icache-coherence-9.0.4", + sha256 = "d1364900b05f7d6008516121e8e62767ddb3e176bdf4c84dfa85da1734aeab79", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-jit-icache-coherence/9.0.4/download"], + strip_prefix = "wasmtime-jit-icache-coherence-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-runtime-9.0.4", + sha256 = "4a16ffe4de9ac9669175c0ea5c6c51ffc596dfb49320aaa6f6c57eff58cef069", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-runtime/9.0.4/download"], + strip_prefix = "wasmtime-runtime-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmtime-types-9.0.4", + sha256 = "19961c9a3b04d5e766875a5c467f6f5d693f508b3e81f8dc4a1444aa94f041c9", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasmtime-types/9.0.4/download"], + strip_prefix = "wasmtime-types-9.0.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-9.0.4.bazel"), + ) + + maybe( + http_archive, + name = "cu__winapi-util-0.1.8", + sha256 = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/winapi-util/0.1.8/download"], + strip_prefix = "winapi-util-0.1.8", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.winapi-util-0.1.8.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows-sys-0.48.0", + sha256 = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows-sys/0.48.0/download"], + strip_prefix = "windows-sys-0.48.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.48.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows-sys-0.52.0", + sha256 = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows-sys/0.52.0/download"], + strip_prefix = "windows-sys-0.52.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.52.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows-targets-0.48.5", + sha256 = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows-targets/0.48.5/download"], + strip_prefix = "windows-targets-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows-targets-0.52.6", + sha256 = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows-targets/0.52.6/download"], + strip_prefix = "windows-targets-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_aarch64_gnullvm-0.48.5", + sha256 = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_aarch64_gnullvm/0.48.5/download"], + strip_prefix = "windows_aarch64_gnullvm-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_aarch64_gnullvm-0.52.6", + sha256 = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_aarch64_gnullvm/0.52.6/download"], + strip_prefix = "windows_aarch64_gnullvm-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_aarch64_msvc-0.48.5", + sha256 = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_aarch64_msvc/0.48.5/download"], + strip_prefix = "windows_aarch64_msvc-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_aarch64_msvc-0.52.6", + sha256 = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_aarch64_msvc/0.52.6/download"], + strip_prefix = "windows_aarch64_msvc-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_i686_gnu-0.48.5", + sha256 = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_i686_gnu/0.48.5/download"], + strip_prefix = "windows_i686_gnu-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_i686_gnu-0.52.6", + sha256 = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_i686_gnu/0.52.6/download"], + strip_prefix = "windows_i686_gnu-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_i686_gnullvm-0.52.6", + sha256 = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_i686_gnullvm/0.52.6/download"], + strip_prefix = "windows_i686_gnullvm-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnullvm-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_i686_msvc-0.48.5", + sha256 = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_i686_msvc/0.48.5/download"], + strip_prefix = "windows_i686_msvc-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_i686_msvc-0.52.6", + sha256 = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_i686_msvc/0.52.6/download"], + strip_prefix = "windows_i686_msvc-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_x86_64_gnu-0.48.5", + sha256 = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_x86_64_gnu/0.48.5/download"], + strip_prefix = "windows_x86_64_gnu-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_x86_64_gnu-0.52.6", + sha256 = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_x86_64_gnu/0.52.6/download"], + strip_prefix = "windows_x86_64_gnu-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_x86_64_gnullvm-0.48.5", + sha256 = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_x86_64_gnullvm/0.48.5/download"], + strip_prefix = "windows_x86_64_gnullvm-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_x86_64_gnullvm-0.52.6", + sha256 = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_x86_64_gnullvm/0.52.6/download"], + strip_prefix = "windows_x86_64_gnullvm-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_x86_64_msvc-0.48.5", + sha256 = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_x86_64_msvc/0.48.5/download"], + strip_prefix = "windows_x86_64_msvc-0.48.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.48.5.bazel"), + ) + + maybe( + http_archive, + name = "cu__windows_x86_64_msvc-0.52.6", + sha256 = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec", + type = "tar.gz", + urls = ["https://static.crates.io/crates/windows_x86_64_msvc/0.52.6/download"], + strip_prefix = "windows_x86_64_msvc-0.52.6", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.52.6.bazel"), + ) + + maybe( + http_archive, + name = "cu__zerocopy-0.7.35", + sha256 = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0", + type = "tar.gz", + urls = ["https://static.crates.io/crates/zerocopy/0.7.35/download"], + strip_prefix = "zerocopy-0.7.35", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.zerocopy-0.7.35.bazel"), + ) + + maybe( + http_archive, + name = "cu__zerocopy-derive-0.7.35", + sha256 = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e", + type = "tar.gz", + urls = ["https://static.crates.io/crates/zerocopy-derive/0.7.35/download"], + strip_prefix = "zerocopy-derive-0.7.35", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.zerocopy-derive-0.7.35.bazel"), + ) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 49db6d7ba..361507fdc 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -14,12 +14,13 @@ load("@bazel-zig-cc//toolchain:defs.bzl", zig_register_toolchains = "register_toolchains") load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") -load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign:crates.bzl", "wasmsign_fetch_remote_crates") -load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime:crates.bzl", "wasmtime_fetch_remote_crates") +load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:crates.bzl", wasmsign_crate_repositories = "crate_repositories") +load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:crates.bzl", wasmtime_crate_repositories = "crate_repositories") load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init") load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies") load("@rules_python//python:pip.bzl", "pip_install") +load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set") def proxy_wasm_cpp_host_dependencies(): @@ -50,6 +51,7 @@ def proxy_wasm_cpp_host_dependencies(): ], version = "1.68.0", ) + crate_universe_dependencies(bootstrap = True) zig_register_toolchains( version = "0.9.1", @@ -62,10 +64,6 @@ def proxy_wasm_cpp_host_dependencies(): }, ) - # Test dependencies. - - wasmsign_fetch_remote_crates() - # NullVM dependencies. protobuf_deps() @@ -80,4 +78,8 @@ def proxy_wasm_cpp_host_dependencies(): # Wasmtime dependencies. - wasmtime_fetch_remote_crates() + wasmtime_crate_repositories() + + # Test dependencies. + + wasmsign_crate_repositories() diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index d108e71f9..584366615 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -11,13 +11,13 @@ rust_static_library( crate_root = "crates/c-api/src/lib.rs", edition = "2018", proc_macro_deps = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime_c_api_macros", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:wasmtime-c-api-macros", ], deps = [ - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:anyhow", - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:env_logger", - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:once_cell", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:anyhow", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:env_logger", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:once_cell", # buildifier: leave-alone - "@proxy_wasm_cpp_host//bazel/cargo/wasmtime:wasmtime", + "@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:wasmtime", ], ) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 12a375595..e585c6b9e 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -19,6 +19,17 @@ load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") def proxy_wasm_cpp_host_repositories(): # Bazel extensions. + # Update platforms for crate_universe. Can remove when we update Bazel version. + maybe( + http_archive, + name = "platforms", + urls = [ + "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz", + "https://github.com/bazelbuild/platforms/releases/download/0.0.10/platforms-0.0.10.tar.gz", + ], + sha256 = "218efe8ee736d26a3572663b374a253c012b716d8af0c07e842e82f238a0a7ee", + ) + maybe( http_archive, name = "bazel_skylib", diff --git a/bazel/wasm.bzl b/bazel/wasm.bzl index 9b3a5f734..192823047 100644 --- a/bazel/wasm.bzl +++ b/bazel/wasm.bzl @@ -63,7 +63,7 @@ def _wasm_attrs(transition): return { "binary": attr.label(mandatory = True, cfg = transition), "signing_key": attr.label_list(allow_files = True), - "_wasmsign_tool": attr.label(default = "//bazel/cargo/wasmsign:cargo_bin_wasmsign", executable = True, cfg = "exec"), + "_wasmsign_tool": attr.label(default = "//bazel/cargo/wasmsign/remote:wasmsign__wasmsign", executable = True, cfg = "exec"), "_whitelist_function_transition": attr.label(default = "@bazel_tools//tools/whitelists/function_transition_whitelist"), } From 95e998294dbf075af8f711484f16447b35ea8328 Mon Sep 17 00:00:00 2001 From: martijneken Date: Sat, 3 Aug 2024 01:00:04 -0400 Subject: [PATCH 259/287] fix: Move from unavailable macos-11 to macos-13 (#401) See: https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources This does not fix #384, but does resurface those errors. Signed-off-by: Martijn Stevenson --- .github/workflows/test.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74e56f021..23c620774 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -176,7 +176,7 @@ jobs: - name: 'V8 on macOS/x86_64' engine: 'v8' repo: 'v8' - os: macos-11 + os: macos-13 arch: x86_64 action: test cache: true @@ -190,7 +190,7 @@ jobs: - name: 'WAMR interp on macOS/x86_64' engine: 'wamr-interp' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: macos-11 + os: macos-13 arch: x86_64 action: test - name: 'WAMR jit on Linux/x86_64' @@ -205,7 +205,7 @@ jobs: - name: 'WAMR jit on macOS/x86_64' engine: 'wamr-jit' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: macos-11 + os: macos-13 arch: x86_64 action: test cache: true @@ -219,7 +219,7 @@ jobs: - name: 'WasmEdge on macOS/x86_64' engine: 'wasmedge' repo: 'com_github_wasmedge_wasmedge' - os: macos-11 + os: macos-13 arch: x86_64 action: test - name: 'Wasmtime on Linux/x86_64' @@ -256,7 +256,7 @@ jobs: - name: 'Wasmtime on macOS/x86_64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: macos-11 + os: macos-13 arch: x86_64 action: test - name: 'Wasmtime on Windows/x86_64' From e1f2d62d292e3289a8fc5a288dade93604754d64 Mon Sep 17 00:00:00 2001 From: martijneken Date: Fri, 9 Aug 2024 22:28:30 -0400 Subject: [PATCH 260/287] chore: bump Bazel from 5.2.0 to 6.5.0 (#402) Bump Bazel from 5.2.0 to 6.5.0 This breaks the s390x build which relied on an external Docker image. I made some strides in fixing s390x, but it's not yet working. Deferred to https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/405. Signed-off-by: Martijn Stevenson --- .bazelrc | 3 + .bazelversion | 2 +- .github/workflows/test.yml | 12 +++- .../remote/BUILD.ansi_term-0.12.1.bazel | 2 +- .../wasmsign/remote/BUILD.anyhow-1.0.86.bazel | 2 +- .../wasmsign/remote/BUILD.atty-0.2.14.bazel | 2 +- bazel/cargo/wasmsign/remote/BUILD.bazel | 2 +- .../remote/BUILD.bitflags-1.3.2.bazel | 2 +- .../remote/BUILD.byteorder-1.5.0.bazel | 2 +- .../wasmsign/remote/BUILD.cfg-if-1.0.0.bazel | 2 +- .../wasmsign/remote/BUILD.clap-2.34.0.bazel | 2 +- .../remote/BUILD.ct-codecs-1.1.1.bazel | 2 +- .../remote/BUILD.ed25519-compact-1.0.16.bazel | 2 +- .../remote/BUILD.getrandom-0.2.15.bazel | 2 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 2 +- .../remote/BUILD.hmac-sha512-1.1.5.bazel | 2 +- .../wasmsign/remote/BUILD.libc-0.2.155.bazel | 2 +- .../remote/BUILD.parity-wasm-0.42.2.bazel | 2 +- .../remote/BUILD.proc-macro2-1.0.86.bazel | 2 +- .../wasmsign/remote/BUILD.quote-1.0.36.bazel | 2 +- .../wasmsign/remote/BUILD.strsim-0.8.0.bazel | 2 +- .../wasmsign/remote/BUILD.syn-2.0.72.bazel | 2 +- .../remote/BUILD.textwrap-0.11.0.bazel | 2 +- .../remote/BUILD.thiserror-1.0.63.bazel | 2 +- .../remote/BUILD.thiserror-impl-1.0.63.bazel | 2 +- .../remote/BUILD.unicode-ident-1.0.12.bazel | 2 +- .../remote/BUILD.unicode-width-0.1.13.bazel | 2 +- .../wasmsign/remote/BUILD.vec_map-0.8.2.bazel | 2 +- ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 2 +- .../remote/BUILD.wasmsign-0.1.2.bazel | 2 +- .../wasmsign/remote/BUILD.winapi-0.3.9.bazel | 2 +- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 2 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 2 +- bazel/cargo/wasmsign/remote/defs.bzl | 2 +- .../remote/BUILD.addr2line-0.19.0.bazel | 2 +- .../wasmtime/remote/BUILD.ahash-0.8.11.bazel | 2 +- .../remote/BUILD.aho-corasick-1.1.3.bazel | 2 +- .../wasmtime/remote/BUILD.anyhow-1.0.86.bazel | 2 +- .../remote/BUILD.arbitrary-1.3.2.bazel | 2 +- .../wasmtime/remote/BUILD.autocfg-1.3.0.bazel | 2 +- bazel/cargo/wasmtime/remote/BUILD.bazel | 2 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 2 +- .../remote/BUILD.bitflags-1.3.2.bazel | 2 +- .../remote/BUILD.bitflags-2.6.0.bazel | 2 +- .../remote/BUILD.bumpalo-3.16.0.bazel | 2 +- .../remote/BUILD.byteorder-1.5.0.bazel | 2 +- .../wasmtime/remote/BUILD.cc-1.1.6.bazel | 2 +- .../wasmtime/remote/BUILD.cfg-if-1.0.0.bazel | 2 +- .../remote/BUILD.cpp_demangle-0.3.5.bazel | 2 +- .../BUILD.cranelift-bforest-0.96.4.bazel | 2 +- .../BUILD.cranelift-codegen-0.96.4.bazel | 2 +- .../BUILD.cranelift-codegen-meta-0.96.4.bazel | 2 +- ...UILD.cranelift-codegen-shared-0.96.4.bazel | 2 +- .../BUILD.cranelift-control-0.96.4.bazel | 2 +- .../BUILD.cranelift-entity-0.96.4.bazel | 2 +- .../BUILD.cranelift-frontend-0.96.4.bazel | 2 +- .../remote/BUILD.cranelift-isle-0.96.4.bazel | 2 +- .../BUILD.cranelift-native-0.96.4.bazel | 2 +- .../remote/BUILD.cranelift-wasm-0.96.4.bazel | 2 +- .../remote/BUILD.crc32fast-1.4.2.bazel | 2 +- .../wasmtime/remote/BUILD.debugid-0.8.0.bazel | 2 +- .../wasmtime/remote/BUILD.either-1.13.0.bazel | 2 +- .../remote/BUILD.env_logger-0.10.2.bazel | 2 +- .../wasmtime/remote/BUILD.errno-0.3.9.bazel | 2 +- .../BUILD.fallible-iterator-0.2.0.bazel | 2 +- .../remote/BUILD.form_urlencoded-1.2.1.bazel | 2 +- .../wasmtime/remote/BUILD.fxhash-0.2.1.bazel | 2 +- ...BUILD.fxprof-processed-profile-0.6.0.bazel | 2 +- .../remote/BUILD.getrandom-0.2.15.bazel | 2 +- .../wasmtime/remote/BUILD.gimli-0.27.3.bazel | 2 +- .../remote/BUILD.hashbrown-0.12.3.bazel | 2 +- .../remote/BUILD.hashbrown-0.13.2.bazel | 2 +- .../remote/BUILD.hermit-abi-0.3.9.bazel | 2 +- .../remote/BUILD.humantime-2.1.0.bazel | 2 +- .../wasmtime/remote/BUILD.idna-0.5.0.bazel | 2 +- .../remote/BUILD.indexmap-1.9.3.bazel | 2 +- .../remote/BUILD.io-lifetimes-1.0.11.bazel | 2 +- .../remote/BUILD.is-terminal-0.4.12.bazel | 2 +- .../remote/BUILD.itertools-0.10.5.bazel | 2 +- .../wasmtime/remote/BUILD.itoa-1.0.11.bazel | 2 +- .../wasmtime/remote/BUILD.libc-0.2.155.bazel | 2 +- .../remote/BUILD.linux-raw-sys-0.3.8.bazel | 2 +- .../remote/BUILD.linux-raw-sys-0.4.14.bazel | 2 +- .../wasmtime/remote/BUILD.log-0.4.22.bazel | 2 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 2 +- .../wasmtime/remote/BUILD.memchr-2.7.4.bazel | 2 +- .../wasmtime/remote/BUILD.memfd-0.6.4.bazel | 2 +- .../remote/BUILD.memoffset-0.8.0.bazel | 2 +- .../wasmtime/remote/BUILD.object-0.30.4.bazel | 2 +- .../remote/BUILD.once_cell-1.19.0.bazel | 2 +- .../wasmtime/remote/BUILD.paste-1.0.15.bazel | 2 +- .../remote/BUILD.percent-encoding-2.3.1.bazel | 2 +- .../remote/BUILD.ppv-lite86-0.2.17.bazel | 2 +- .../remote/BUILD.proc-macro2-1.0.86.bazel | 2 +- .../wasmtime/remote/BUILD.psm-0.1.21.bazel | 2 +- .../wasmtime/remote/BUILD.quote-1.0.36.bazel | 2 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 2 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 2 +- .../remote/BUILD.rand_core-0.6.4.bazel | 2 +- .../remote/BUILD.regalloc2-0.8.1.bazel | 2 +- .../wasmtime/remote/BUILD.regex-1.10.5.bazel | 2 +- .../remote/BUILD.regex-automata-0.4.7.bazel | 2 +- .../remote/BUILD.regex-syntax-0.8.4.bazel | 2 +- .../remote/BUILD.rustc-demangle-0.1.24.bazel | 2 +- .../remote/BUILD.rustc-hash-1.1.0.bazel | 2 +- .../remote/BUILD.rustix-0.37.27.bazel | 2 +- .../remote/BUILD.rustix-0.38.34.bazel | 2 +- .../wasmtime/remote/BUILD.ryu-1.0.18.bazel | 2 +- .../wasmtime/remote/BUILD.serde-1.0.204.bazel | 2 +- .../remote/BUILD.serde_derive-1.0.204.bazel | 2 +- .../remote/BUILD.serde_json-1.0.120.bazel | 2 +- .../remote/BUILD.slice-group-by-0.3.1.bazel | 2 +- .../remote/BUILD.smallvec-1.13.2.bazel | 2 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 2 +- .../wasmtime/remote/BUILD.syn-2.0.72.bazel | 2 +- .../remote/BUILD.target-lexicon-0.12.15.bazel | 2 +- .../remote/BUILD.termcolor-1.4.1.bazel | 2 +- .../remote/BUILD.thiserror-1.0.63.bazel | 2 +- .../remote/BUILD.thiserror-impl-1.0.63.bazel | 2 +- .../wasmtime/remote/BUILD.tinyvec-1.8.0.bazel | 2 +- .../remote/BUILD.tinyvec_macros-0.1.1.bazel | 2 +- .../remote/BUILD.unicode-bidi-0.3.15.bazel | 2 +- .../remote/BUILD.unicode-ident-1.0.12.bazel | 2 +- .../BUILD.unicode-normalization-0.1.23.bazel | 2 +- .../wasmtime/remote/BUILD.url-2.5.2.bazel | 2 +- .../wasmtime/remote/BUILD.uuid-1.10.0.bazel | 2 +- .../remote/BUILD.version_check-0.9.5.bazel | 2 +- ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 2 +- .../remote/BUILD.wasmparser-0.103.0.bazel | 2 +- .../remote/BUILD.wasmtime-9.0.4.bazel | 2 +- .../BUILD.wasmtime-asm-macros-9.0.4.bazel | 2 +- .../BUILD.wasmtime-c-api-macros-0.0.0.bazel | 2 +- .../BUILD.wasmtime-cranelift-9.0.4.bazel | 2 +- ...UILD.wasmtime-cranelift-shared-9.0.4.bazel | 2 +- .../remote/BUILD.wasmtime-environ-9.0.4.bazel | 2 +- .../remote/BUILD.wasmtime-jit-9.0.4.bazel | 2 +- .../BUILD.wasmtime-jit-debug-9.0.4.bazel | 2 +- ....wasmtime-jit-icache-coherence-9.0.4.bazel | 2 +- .../remote/BUILD.wasmtime-runtime-9.0.4.bazel | 2 +- .../remote/BUILD.wasmtime-types-9.0.4.bazel | 2 +- .../remote/BUILD.winapi-util-0.1.8.bazel | 2 +- .../remote/BUILD.windows-sys-0.48.0.bazel | 2 +- .../remote/BUILD.windows-sys-0.52.0.bazel | 2 +- .../remote/BUILD.windows-targets-0.48.5.bazel | 2 +- .../remote/BUILD.windows-targets-0.52.6.bazel | 2 +- ...BUILD.windows_aarch64_gnullvm-0.48.5.bazel | 2 +- ...BUILD.windows_aarch64_gnullvm-0.52.6.bazel | 2 +- .../BUILD.windows_aarch64_msvc-0.48.5.bazel | 2 +- .../BUILD.windows_aarch64_msvc-0.52.6.bazel | 2 +- .../BUILD.windows_i686_gnu-0.48.5.bazel | 2 +- .../BUILD.windows_i686_gnu-0.52.6.bazel | 2 +- .../BUILD.windows_i686_gnullvm-0.52.6.bazel | 2 +- .../BUILD.windows_i686_msvc-0.48.5.bazel | 2 +- .../BUILD.windows_i686_msvc-0.52.6.bazel | 2 +- .../BUILD.windows_x86_64_gnu-0.48.5.bazel | 2 +- .../BUILD.windows_x86_64_gnu-0.52.6.bazel | 2 +- .../BUILD.windows_x86_64_gnullvm-0.48.5.bazel | 2 +- .../BUILD.windows_x86_64_gnullvm-0.52.6.bazel | 2 +- .../BUILD.windows_x86_64_msvc-0.48.5.bazel | 2 +- .../BUILD.windows_x86_64_msvc-0.52.6.bazel | 2 +- .../remote/BUILD.zerocopy-0.7.35.bazel | 2 +- .../remote/BUILD.zerocopy-derive-0.7.35.bazel | 2 +- bazel/cargo/wasmtime/remote/defs.bzl | 2 +- bazel/external/Dockerfile.bazel | 61 +++++++++++++++++++ bazel/external/googletest.patch | 13 ++++ bazel/repositories.bzl | 2 + 166 files changed, 251 insertions(+), 162 deletions(-) create mode 100644 bazel/external/Dockerfile.bazel create mode 100644 bazel/external/googletest.patch diff --git a/.bazelrc b/.bazelrc index 86e814d38..ab9a27f84 100644 --- a/.bazelrc +++ b/.bazelrc @@ -1,3 +1,6 @@ +# Disable Bzlmod +common --noenable_bzlmod + # Pass CC, CXX and PATH from the environment. build --action_env=CC build --action_env=CXX diff --git a/.bazelversion b/.bazelversion index 91ff57278..f22d756da 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -5.2.0 +6.5.0 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 23c620774..1b1fa89ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -251,7 +251,8 @@ jobs: arch: s390x action: test flags: --config=clang --test_timeout=1800 - run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x piotrsikora/build-tools:bazel-5.2.0-clang-14-gcc-12 + # s390x build-tools image built from bazel/external/Dockerfile.bazel + run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x ghcr.io/proxy-wasm/build-tools:ubuntu-20.04-bazel-6.5.0 cache: true - name: 'Wasmtime on macOS/x86_64' engine: 'wasmtime' @@ -282,6 +283,15 @@ jobs: if: ${{ matrix.deps != '' && startsWith(matrix.os, 'ubuntu') }} run: sudo apt update -y && sudo apt install -y ${{ matrix.deps }} + # Needed for s390x test which runs on a GHCR Docker Ubuntu image. + - name: Login to GitHub Container Registry + if: startsWith(matrix.run_under, 'docker') + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Activate Docker/QEMU if: startsWith(matrix.run_under, 'docker') run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes diff --git a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel index 76b237351..22faf8df9 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel index ac05f26e9..d717277e6 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel index 042620fd9..e7fd10f0f 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.bazel b/bazel/cargo/wasmsign/remote/BUILD.bazel index f7557ab01..fb08489fd 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### package(default_visibility = ["//visibility:public"]) diff --git a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel index b82314da9..d701e4c60 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel index de6a36dd7..ac3e5c8a2 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel index 54468a44e..21e4cbeb9 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel index 385de6f5d..66427b8a4 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel index 99961e188..fee8bd3b8 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel index 4ca9f00b0..3806ebe7b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel index d09ee3dd1..dd7de9c9b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel index 0ce38b7b1..3990cb368 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel index c09f00280..774e5bd54 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel index 0e8144575..f822abc3f 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel index 9feb12623..f9e1e34aa 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel index ee0b1590b..c8ffa5c4b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel index 629754fda..308d43ad6 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel index fd1aa61ac..6ad9b2043 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel index e1a4bfc4d..9bf397bd2 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel index 94e8d4386..ede0b609b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel index 1dc950ccf..9ca648959 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel index 2f7a65a52..142b16b2f 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel index 91a06d7ac..894836db8 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel index 88c7780c8..90c33b0aa 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel index c8cd5b4ff..0f0b8933c 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 11d6cc924..13fbda125 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel index cc34b19ee..3a21d33ca 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load( diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel index fe49869b4..0f41daaf1 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index cecb69888..782b8d021 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index 57a6d1e8c..e67d33cf9 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmsign/remote/defs.bzl b/bazel/cargo/wasmsign/remote/defs.bzl index 34b03dddd..89c4e2d02 100644 --- a/bazel/cargo/wasmsign/remote/defs.bzl +++ b/bazel/cargo/wasmsign/remote/defs.bzl @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmsign:crates_vendor +# bazel run @//bazel/cargo/wasmsign:crates_vendor ############################################################################### """ # `crates_repository` API diff --git a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel index 6444a861b..3b5e7fffa 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel index 34902b888..6cfdf16c9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel index d1614759b..939e218b2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel index de4b5823d..a4de9913a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel index 623b5da46..eb21041cc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel index 0591ec48c..8a2d2ca08 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.bazel b/bazel/cargo/wasmtime/remote/BUILD.bazel index 34b4f1f5a..5692002a8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### package(default_visibility = ["//visibility:public"]) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index 0318ec879..bd63e9685 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel index 5fb108c85..d397df700 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel index 6d4dc0aea..3a06e3e85 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel index 72055f131..db1052dfa 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel index a681029e5..e307c0c58 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel index 9fec211e7..4ad7c0707 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel index 64fe9be3a..e71505481 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel index d6d47ebe4..ed4332ae6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel index b61551dfd..32c38d05d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel index 60d55c204..3daf430f7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel index 93b8d79c0..de05c99c0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel index e1d217b8f..2eede82e6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel index 002aa4649..057a08c8d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel index c184aa35a..bf32eaccc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel index ea70e8451..8a7e192f4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel index d9d60965d..1f0c2d4aa 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel index abcd15ed3..8364dcc10 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel index 0d64ac1bc..b6a036ef8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel index ae4643d68..72a755bcf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel index aec9f5538..3ade906f8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel index 60a6f9523..f9ca9c23e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel index b82287b5a..2d0e975a1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel index 903818f42..36bd149f5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel index 7cd94e63e..79b2a7153 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel index fae193974..fcf6118f6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel index 190c18b40..5b9dc4e8e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel index ce1a4e2c1..5cd5c59de 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel index ae291befa..5fe182d17 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel index d9fd701f9..7402b72b3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index fe900cc26..94ea8b698 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel index b70d63ba4..2d7bbdc20 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel index f8a914739..ec7338bb5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel index 32069eb67..fd41b6708 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel index 5943a2157..210e3b8bb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel index 562ed99d4..46639af74 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel index 67bbc3d27..481e6ca9f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel index 5c6f36ef9..1cfd6291f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel index 96f862ba8..03377bdeb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel index d25111035..c874e7d4e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel index 604b46492..3154b9dc9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel index 89f189b38..a1634a238 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel index 87033f72d..ee7a2dab1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel index 7f3c5455d..99c9f5a62 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index e15aac7a0..f35ca4838 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel index 7eb0428ae..f86724640 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel index 311b85b49..6963c36c9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel index 2d3f1fcbe..22e1bdf74 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel index 1bdcf55ae..c7cff2b5e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel index ad9c0380e..61c6d4df9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel index 177148def..a16962b72 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel index f4889a63d..5296e610d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel index 1c98344a9..92d543535 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel index 071369a04..4b3c2ab99 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index 5c481198a..32976f245 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel index 5225df631..0b42ba304 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 0097fc591..851a20a96 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel index 32d2dbfbe..a93e8f636 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel index c9aa0320a..993ff0b8c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel index baae510e3..19ca0fe4f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel index bfbfa2c87..0f1ae96e0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel index 64e138001..e0c48ef50 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel index 0145c6b0a..513239e82 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel index 36cc346c2..b18377f67 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel index 5d2fab8f0..0ca3c2402 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel index 2a43dbc12..ba217f9cf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel index 88588a0d1..6cc42ac8a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel index b43782049..5119d6444 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel index 2420c55c6..5633e65e1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel index 3bf90add0..c7966111d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel index 6e9825146..39d294432 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel index 2df3f512d..4921aa1db 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel index aac620928..3397610de 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel index ca9fce400..c074b9ff4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel index 8faee8809..91be9241e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel index e4fded0a4..c9c6e9199 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel index 98e611135..1854121b3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel index a59d5764f..1fa72ecfb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel index 1a5c3ad7a..2d98dc3c9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel index 35e49d4db..d8ac774ee 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel index 89f138089..32fcacff9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel index aaaccdc0c..ff6b2ee31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel index 6ffa07ed5..5c19c50be 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel index b4bc78bde..ea0dd99a2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel index 9ec6bbdbe..7c854205c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel index bc72b369e..3e2371588 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel index f7fd3cac6..7a4157987 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 9f8f31c9f..19e04194d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel index 7ee3464d8..655f9e3e0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel index 3fd1ef0d1..7cb296dcf 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel index b736e0bc9..b8eeabdb4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel index d19728fc5..062fd2f86 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel index d5baad39d..b2056cf48 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel index 5541a2717..2d1352338 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel index 32234089b..1e53a6044 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel index 236b21728..60934b449 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel index ad162af59..83b67e1c4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel index c9b6cdf45..68e105ed2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel index b7c6c02d1..809be273f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel index 612c6679d..1c9b5511e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel index 7e74ae0ba..30665d6b9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel index 88f4b396c..d1a45ce0f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel index faca1ff4f..cb2b42460 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel index d3e4602f9..f6235e823 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel index 7a023db72..8b886b963 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel index 06a47f3d2..2d0821395 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel index 228f35c6a..a8a97f5d6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel index e9e251a53..350d5206a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel index a26ffc17e..b3909e5cd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel index c64b79b54..85270a149 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel index a4459643b..daab056e7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel index f2058a31b..07c3ff9ce 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel index 2d1a13c69..21077404a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel index 9bb1f2aa4..150b4e9f8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel index 3f33b6cb9..85626006b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel index 0452db24f..1b7ee01c9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel index e42a5df60..88bcdd72d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel index 3acad8056..68fba5b85 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel index 9c02eb55c..54d214b42 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel index 969fd9751..0b219ff1d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel index 38a99bf5a..385c5f643 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_library") diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel index c02f9298a..ca44749e0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### load("@rules_rust//rust:defs.bzl", "rust_proc_macro") diff --git a/bazel/cargo/wasmtime/remote/defs.bzl b/bazel/cargo/wasmtime/remote/defs.bzl index e4b3198d4..fc84e568a 100644 --- a/bazel/cargo/wasmtime/remote/defs.bzl +++ b/bazel/cargo/wasmtime/remote/defs.bzl @@ -3,7 +3,7 @@ # DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To # regenerate this file, run the following: # -# bazel run //bazel/cargo/wasmtime:crates_vendor +# bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### """ # `crates_repository` API diff --git a/bazel/external/Dockerfile.bazel b/bazel/external/Dockerfile.bazel new file mode 100644 index 000000000..d60300a4d --- /dev/null +++ b/bazel/external/Dockerfile.bazel @@ -0,0 +1,61 @@ +# syntax=docker/dockerfile:1 + +# Prep: +# docker run --rm --privileged tonistiigi/binfmt --install all +# docker run --rm --privileged multiarch/qemu-user-static --reset -p yes +# Need to see "F" flag: cat /proc/sys/fs/binfmt_misc/qemu-* +# +# Build: +# docker buildx build --platform linux/s390x -t $IMAGE -f Dockerfile.bazel +# +# Push: +# docker image tag $IMAGE ghcr.io/proxy-wasm/$IMAGE +# docker push ghcr.io/proxy-wasm/$IMAGE +# +# Test: +# docker run --rm --volume $(pwd):/mnt --workdir /mnt \ +# --platform linux/s390x $IMAGE \ +# bazel test --verbose_failures --test_output=errors \ +# --define engine=null --config=clang --test_timeout=1800 \ +# -- //test/... + +# Update base image +ARG UBUNTU_VERSION=20.04 +FROM ubuntu:${UBUNTU_VERSION} as build +RUN apt update && apt upgrade -y +RUN apt autoremove -y + +# Install Bazel deps +RUN apt install -y software-properties-common +RUN add-apt-repository ppa:openjdk-r/ppa +RUN apt install -y \ + build-essential \ + openjdk-11-jdk \ + python3 \ + curl \ + zip \ + unzip + +# Download Bazel source +ARG BAZEL_VERSION=6.5.0 +RUN cd ~ && mkdir bazel && cd bazel +RUN curl -LO https://github.com/bazelbuild/bazel/releases/download/${BAZEL_VERSION}/bazel-${BAZEL_VERSION}-dist.zip +RUN unzip -q bazel-${BAZEL_VERSION}-dist.zip + +# Build Bazel +# NOTE: This step is flaky and frequently hangs for multiarch / buildx. +# If it takes more than 2 hours, restart the Docker build and try again. +ENV EXTRA_BAZEL_ARGS="--tool_java_runtime_version=local_jdk" +RUN bash ./compile.sh + +# Copy output to /usr/bin +RUN cp /output/bazel /usr/bin/bazel + +# Install ProxyWasm build deps +RUN apt install -y \ + git \ + python3-distutils \ + clang \ + libstdc++6 \ + libssl-dev \ + libz-dev diff --git a/bazel/external/googletest.patch b/bazel/external/googletest.patch new file mode 100644 index 000000000..502ef58b3 --- /dev/null +++ b/bazel/external/googletest.patch @@ -0,0 +1,13 @@ +diff --git a/BUILD.bazel b/BUILD.bazel +index 8099642a85..3598661079 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -40,7 +40,7 @@ exports_files(["LICENSE"]) + + config_setting( + name = "windows", +- constraint_values = ["@bazel_tools//platforms:windows"], ++ constraint_values = ["@platforms//os:windows"], + ) + + config_setting( diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index e585c6b9e..da4153ee1 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -134,6 +134,8 @@ def proxy_wasm_cpp_host_repositories(): sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", strip_prefix = "googletest-release-1.10.0", urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], + patches = ["@proxy_wasm_cpp_host//bazel/external:googletest.patch"], + patch_args = ["-p1"], ) # NullVM dependencies. From e38c8cec0059146f601ff06a87de7d0766f8902b Mon Sep 17 00:00:00 2001 From: martijneken Date: Mon, 12 Aug 2024 20:06:46 -0400 Subject: [PATCH 261/287] chore: bump rules_python and rules_fuzzing (#404) Upgrade rules_python (0.34.0) and rules_fuzzing (0.5.2) This requires extracting WORKSPACE phases into more phases: - dependencies -- py_repositories() and toolchains - dependencies_python() -- pip_parse module loading - dependencies_import() -- python/fuzzing/other deps The new structure roughly matches Envoy WORKSPACE: - envoy_dependencies() - envoy_dependencies_extra() -- not needed here - envoy_python_dependencies() - envoy_dependency_imports() Signed-off-by: Martijn Stevenson --- WORKSPACE | 8 ++++++++ bazel/dependencies.bzl | 22 ++++++---------------- bazel/dependencies_import.bzl | 25 +++++++++++++++++++++++++ bazel/dependencies_python.bzl | 27 +++++++++++++++++++++++++++ bazel/external/v8.patch | 20 ++++++++++++++++++++ bazel/repositories.bzl | 20 ++++++++++++++------ 6 files changed, 100 insertions(+), 22 deletions(-) create mode 100644 bazel/dependencies_import.bzl create mode 100644 bazel/dependencies_python.bzl diff --git a/WORKSPACE b/WORKSPACE index 478a58dea..dad42c2f8 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -8,6 +8,14 @@ load("@proxy_wasm_cpp_host//bazel:dependencies.bzl", "proxy_wasm_cpp_host_depend proxy_wasm_cpp_host_dependencies() +load("@proxy_wasm_cpp_host//bazel:dependencies_python.bzl", "proxy_wasm_cpp_host_dependencies_python") + +proxy_wasm_cpp_host_dependencies_python() + +load("@proxy_wasm_cpp_host//bazel:dependencies_import.bzl", "proxy_wasm_cpp_host_dependencies_import") + +proxy_wasm_cpp_host_dependencies_import() + load("@proxy_wasm_cpp_sdk//bazel:repositories.bzl", "proxy_wasm_cpp_sdk_repositories") proxy_wasm_cpp_sdk_repositories() diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 361507fdc..cfc278d18 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -16,20 +16,18 @@ load("@bazel-zig-cc//toolchain:defs.bzl", zig_register_toolchains = "register_to load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:crates.bzl", wasmsign_crate_repositories = "crate_repositories") load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:crates.bzl", wasmtime_crate_repositories = "crate_repositories") -load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") -load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init") -load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies") -load("@rules_python//python:pip.bzl", "pip_install") +load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains") load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set") def proxy_wasm_cpp_host_dependencies(): # Bazel extensions. - rules_foreign_cc_dependencies() - - rules_fuzzing_dependencies() - rules_fuzzing_init() + py_repositories() + python_register_toolchains( + name = "python_3_9", + python_version = "3.9", + ) rust_repositories() rust_repository_set( @@ -68,14 +66,6 @@ def proxy_wasm_cpp_host_dependencies(): protobuf_deps() - # V8 dependencies. - - pip_install( - name = "v8_python_deps", - extra_pip_args = ["--require-hashes"], - requirements = "@v8//:bazel/requirements.txt", - ) - # Wasmtime dependencies. wasmtime_crate_repositories() diff --git a/bazel/dependencies_import.bzl b/bazel/dependencies_import.bzl new file mode 100644 index 000000000..1f23f7d0b --- /dev/null +++ b/bazel/dependencies_import.bzl @@ -0,0 +1,25 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@fuzzing_py_deps//:requirements.bzl", pip_fuzzing_dependencies = "install_deps") +load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") +load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies") +load("@v8_python_deps//:requirements.bzl", pip_v8_dependencies = "install_deps") + +def proxy_wasm_cpp_host_dependencies_import(): + rules_foreign_cc_dependencies() + rules_fuzzing_dependencies() + + pip_fuzzing_dependencies() + pip_v8_dependencies() diff --git a/bazel/dependencies_python.bzl b/bazel/dependencies_python.bzl new file mode 100644 index 000000000..4207c79cf --- /dev/null +++ b/bazel/dependencies_python.bzl @@ -0,0 +1,27 @@ +# Copyright 2024 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init") +load("@rules_python//python:pip.bzl", "pip_parse") + +def proxy_wasm_cpp_host_dependencies_python(): + # NOTE: this loads @fuzzing_py_deps via pip_parse + rules_fuzzing_init() + + # V8 dependencies. + pip_parse( + name = "v8_python_deps", + extra_pip_args = ["--require-hashes"], + requirements_lock = "@v8//:bazel/requirements.txt", + ) diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index 90b1de013..58e7f9ba0 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,6 +1,7 @@ # 1. Disable pointer compression (limits the maximum number of WasmVMs). # 2. Don't expose Wasm C API (only Wasm C++ API). # 3. Fix gcc build error by disabling nonnull warning. +# 4. Allow compiling v8 on macOS 10.15 to 13.0. TODO(dio): Will remove this patch when https://bugs.chromium.org/p/v8/issues/detail?id=13428 is fixed. diff --git a/BUILD.bazel b/BUILD.bazel index 4e89f90e7e..3fcb38b3f3 100644 @@ -27,6 +28,25 @@ index e957c0fad3..063627b72b 100644 # Use GNU dialect, because GCC doesn't allow using # ##__VA_ARGS__ when in standards-conforming mode. "-std=gnu++17", +@@ -151,6 +152,18 @@ def _default_args(): + "-fno-integrated-as", + ], + "//conditions:default": [], ++ }) + select({ ++ "@v8//bazel/config:is_macos": [ ++ # The clang available on macOS catalina has a warning that isn't clean on v8 code. ++ "-Wno-range-loop-analysis", ++ ++ # To supress warning on deprecated declaration on v8 code. For example: ++ # external/v8/src/base/platform/platform-darwin.cc:56:22: 'getsectdatafromheader_64' ++ # is deprecated: first deprecated in macOS 13.0. ++ # https://bugs.chromium.org/p/v8/issues/detail?id=13428. ++ "-Wno-deprecated-declarations", ++ ], ++ "//conditions:default": [], + }), + includes = ["include"], + linkopts = select({ diff --git a/src/wasm/c-api.cc b/src/wasm/c-api.cc index 4473e205c0..65a6ec7e1d 100644 --- a/src/wasm/c-api.cc diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index da4153ee1..79e2fd59d 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -40,6 +40,14 @@ def proxy_wasm_cpp_host_repositories(): sha256 = "c6966ec828da198c5d9adbaa94c05e3a1c7f21bd012a0b29ba8ddbccb2c93b0d", ) + maybe( + http_archive, + name = "rules_cc", + sha256 = "2037875b9a4456dce4a79d112a8ae885bbc4aad968e6587dca6e64f3a0900cdf", + strip_prefix = "rules_cc-0.0.9", + urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.9/rules_cc-0.0.9.tar.gz"], + ) + maybe( http_archive, name = "bazel_clang_tidy", @@ -69,17 +77,17 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "rules_fuzzing", - sha256 = "23bb074064c6f488d12044934ab1b0631e8e6898d5cf2f6bde087adb01111573", - strip_prefix = "rules_fuzzing-0.3.1", - url = "https://github.com/bazelbuild/rules_fuzzing/archive/v0.3.1.zip", + sha256 = "3ec0eee05b243552cc4a784b30323d088bf73cb2177ddda02c827e68981933f1", + strip_prefix = "rules_fuzzing-0.5.2", + urls = ["https://github.com/bazelbuild/rules_fuzzing/archive/v0.5.2.tar.gz"], ) maybe( http_archive, name = "rules_python", - sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502", - strip_prefix = "rules_python-0.6.0", - url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", + sha256 = "778aaeab3e6cfd56d681c89f5c10d7ad6bf8d2f1a72de9de55b23081b2d31618", + strip_prefix = "rules_python-0.34.0", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz", ) maybe( From 57532652c387c4bc5bc5f2fae61e230cbcbfcf0c Mon Sep 17 00:00:00 2001 From: martijneken Date: Tue, 13 Aug 2024 07:45:37 -0400 Subject: [PATCH 262/287] Update CI to use Ubuntu 22.04 / clang 14 (#408) Signed-off-by: Martijn Stevenson --- .github/workflows/test.yml | 36 ++++++++++++++++----------------- bazel/dependencies.bzl | 1 + bazel/external/Dockerfile.bazel | 2 +- 3 files changed, 20 insertions(+), 19 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1b1fa89ea..66ec91bfc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,7 +41,7 @@ jobs: test_data: name: build test data - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -109,19 +109,19 @@ jobs: include: - name: 'NullVM on Linux/x86_64' engine: 'null' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=gcc - name: 'NullVM on Linux/x86_64 with ASan' engine: 'null' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang-asan-strict --define=crypto=system - name: 'NullVM on Linux/x86_64 with TSan' engine: 'null' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang-tsan @@ -134,7 +134,7 @@ jobs: - name: 'V8 on Linux/x86_64' engine: 'v8' repo: 'v8' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang --define=crypto=system @@ -142,7 +142,7 @@ jobs: - name: 'V8 on Linux/x86_64 with ASan' engine: 'v8' repo: 'v8' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang-asan @@ -150,7 +150,7 @@ jobs: - name: 'V8 on Linux/x86_64 with TSan' engine: 'v8' repo: 'v8' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang-tsan @@ -158,7 +158,7 @@ jobs: - name: 'V8 on Linux/x86_64 with GCC' engine: 'v8' repo: 'v8' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=gcc @@ -166,7 +166,7 @@ jobs: - name: 'V8 on Linux/aarch64' engine: 'v8' repo: 'v8' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: aarch64 action: test targets: -//test/fuzz/... @@ -183,7 +183,7 @@ jobs: - name: 'WAMR interp on Linux/x86_64' engine: 'wamr-interp' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang @@ -196,7 +196,7 @@ jobs: - name: 'WAMR jit on Linux/x86_64' engine: 'wamr-jit' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang @@ -212,7 +212,7 @@ jobs: - name: 'WasmEdge on Linux/x86_64' engine: 'wasmedge' repo: 'com_github_wasmedge_wasmedge' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang @@ -225,21 +225,21 @@ jobs: - name: 'Wasmtime on Linux/x86_64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang -c opt - name: 'Wasmtime on Linux/x86_64 with ASan' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang-asan-strict --define=crypto=system - name: 'Wasmtime on Linux/aarch64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: aarch64 action: build flags: --config=zig-cc-linux-aarch64 @@ -247,12 +247,12 @@ jobs: - name: 'Wasmtime on Linux/s390x' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: s390x action: test flags: --config=clang --test_timeout=1800 # s390x build-tools image built from bazel/external/Dockerfile.bazel - run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x ghcr.io/proxy-wasm/build-tools:ubuntu-20.04-bazel-6.5.0 + run_under: docker run --rm --env HOME=$HOME --env USER=$(id -un) --volume "$HOME:$HOME" --workdir $(pwd) --user $(id -u):$(id -g) --platform linux/s390x ghcr.io/proxy-wasm/build-tools:ubuntu-22.04-bazel-6.5.0 cache: true - name: 'Wasmtime on macOS/x86_64' engine: 'wasmtime' @@ -270,7 +270,7 @@ jobs: - name: 'WAVM on Linux/x86_64' engine: 'wavm' repo: 'com_github_wavm_wavm' - os: ubuntu-20.04 + os: ubuntu-22.04 arch: x86_64 action: test flags: --config=clang diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index cfc278d18..33237431f 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -27,6 +27,7 @@ def proxy_wasm_cpp_host_dependencies(): python_register_toolchains( name = "python_3_9", python_version = "3.9", + ignore_root_user_error = True, # for docker run ) rust_repositories() diff --git a/bazel/external/Dockerfile.bazel b/bazel/external/Dockerfile.bazel index d60300a4d..2c4bfbbfa 100644 --- a/bazel/external/Dockerfile.bazel +++ b/bazel/external/Dockerfile.bazel @@ -20,7 +20,7 @@ # -- //test/... # Update base image -ARG UBUNTU_VERSION=20.04 +ARG UBUNTU_VERSION=22.04 FROM ubuntu:${UBUNTU_VERSION} as build RUN apt update && apt upgrade -y RUN apt autoremove -y From f199214a43337e115469d9f0dd6b77858746441b Mon Sep 17 00:00:00 2001 From: Keith Mattix II Date: Mon, 19 Aug 2024 16:06:23 -0500 Subject: [PATCH 263/287] Update rules_rust to v0.42.1 (with Rust v1.77.2). (#410) * Update rules_rust * Update rust and vendor * rust_oom -> rg_oom * Change rust version --------- Signed-off-by: Keith Mattix II --- .../remote/BUILD.ansi_term-0.12.1.bazel | 15 +- .../wasmsign/remote/BUILD.anyhow-1.0.86.bazel | 26 +- .../wasmsign/remote/BUILD.atty-0.2.14.bazel | 24 +- bazel/cargo/wasmsign/remote/BUILD.bazel | 16 +- .../remote/BUILD.bitflags-1.3.2.bazel | 15 +- .../remote/BUILD.byteorder-1.5.0.bazel | 15 +- .../wasmsign/remote/BUILD.cfg-if-1.0.0.bazel | 15 +- .../wasmsign/remote/BUILD.clap-2.34.0.bazel | 24 +- .../remote/BUILD.ct-codecs-1.1.1.bazel | 15 +- .../remote/BUILD.ed25519-compact-1.0.16.bazel | 15 +- .../remote/BUILD.getrandom-0.2.15.bazel | 24 +- .../remote/BUILD.hermit-abi-0.1.19.bazel | 15 +- .../remote/BUILD.hmac-sha512-1.1.5.bazel | 15 +- .../wasmsign/remote/BUILD.libc-0.2.155.bazel | 26 +- .../remote/BUILD.parity-wasm-0.42.2.bazel | 15 +- .../remote/BUILD.proc-macro2-1.0.86.bazel | 26 +- .../wasmsign/remote/BUILD.quote-1.0.36.bazel | 15 +- .../wasmsign/remote/BUILD.strsim-0.8.0.bazel | 15 +- .../wasmsign/remote/BUILD.syn-2.0.72.bazel | 15 +- .../remote/BUILD.textwrap-0.11.0.bazel | 15 +- .../remote/BUILD.thiserror-1.0.63.bazel | 26 +- .../remote/BUILD.thiserror-impl-1.0.63.bazel | 15 +- .../remote/BUILD.unicode-ident-1.0.12.bazel | 15 +- .../remote/BUILD.unicode-width-0.1.13.bazel | 15 +- .../wasmsign/remote/BUILD.vec_map-0.8.2.bazel | 15 +- ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 15 +- .../remote/BUILD.wasmsign-0.1.2.bazel | 22 +- .../wasmsign/remote/BUILD.winapi-0.3.9.bazel | 32 +-- ...ILD.winapi-i686-pc-windows-gnu-0.4.0.bazel | 26 +- ...D.winapi-x86_64-pc-windows-gnu-0.4.0.bazel | 26 +- bazel/cargo/wasmsign/remote/alias_rules.bzl | 47 ++++ bazel/cargo/wasmsign/remote/crates.bzl | 9 +- bazel/cargo/wasmsign/remote/defs.bzl | 52 +++- .../remote/BUILD.addr2line-0.19.0.bazel | 15 +- .../wasmtime/remote/BUILD.ahash-0.8.11.bazel | 41 ++-- .../remote/BUILD.aho-corasick-1.1.3.bazel | 15 +- .../wasmtime/remote/BUILD.anyhow-1.0.86.bazel | 26 +- .../remote/BUILD.arbitrary-1.3.2.bazel | 15 +- .../wasmtime/remote/BUILD.autocfg-1.3.0.bazel | 15 +- bazel/cargo/wasmtime/remote/BUILD.bazel | 16 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 15 +- .../remote/BUILD.bitflags-1.3.2.bazel | 15 +- .../remote/BUILD.bitflags-2.6.0.bazel | 15 +- .../remote/BUILD.bumpalo-3.16.0.bazel | 15 +- .../remote/BUILD.byteorder-1.5.0.bazel | 15 +- .../wasmtime/remote/BUILD.cc-1.1.6.bazel | 15 +- .../wasmtime/remote/BUILD.cfg-if-1.0.0.bazel | 15 +- .../remote/BUILD.cpp_demangle-0.3.5.bazel | 26 +- .../BUILD.cranelift-bforest-0.96.4.bazel | 15 +- .../BUILD.cranelift-codegen-0.96.4.bazel | 26 +- .../BUILD.cranelift-codegen-meta-0.96.4.bazel | 15 +- ...UILD.cranelift-codegen-shared-0.96.4.bazel | 15 +- .../BUILD.cranelift-control-0.96.4.bazel | 15 +- .../BUILD.cranelift-entity-0.96.4.bazel | 15 +- .../BUILD.cranelift-frontend-0.96.4.bazel | 15 +- .../remote/BUILD.cranelift-isle-0.96.4.bazel | 26 +- .../BUILD.cranelift-native-0.96.4.bazel | 15 +- .../remote/BUILD.cranelift-wasm-0.96.4.bazel | 15 +- .../remote/BUILD.crc32fast-1.4.2.bazel | 15 +- .../wasmtime/remote/BUILD.debugid-0.8.0.bazel | 15 +- .../wasmtime/remote/BUILD.either-1.13.0.bazel | 15 +- .../remote/BUILD.env_logger-0.10.2.bazel | 15 +- .../wasmtime/remote/BUILD.errno-0.3.9.bazel | 24 +- .../BUILD.fallible-iterator-0.2.0.bazel | 15 +- .../remote/BUILD.form_urlencoded-1.2.1.bazel | 15 +- .../wasmtime/remote/BUILD.fxhash-0.2.1.bazel | 15 +- ...BUILD.fxprof-processed-profile-0.6.0.bazel | 15 +- .../remote/BUILD.getrandom-0.2.15.bazel | 24 +- .../wasmtime/remote/BUILD.gimli-0.27.3.bazel | 15 +- .../remote/BUILD.hashbrown-0.12.3.bazel | 15 +- .../remote/BUILD.hashbrown-0.13.2.bazel | 15 +- .../remote/BUILD.hermit-abi-0.3.9.bazel | 15 +- .../remote/BUILD.humantime-2.1.0.bazel | 15 +- .../wasmtime/remote/BUILD.idna-0.5.0.bazel | 15 +- .../remote/BUILD.indexmap-1.9.3.bazel | 26 +- .../remote/BUILD.io-lifetimes-1.0.11.bazel | 35 ++- .../remote/BUILD.is-terminal-0.4.12.bazel | 24 +- .../remote/BUILD.itertools-0.10.5.bazel | 15 +- .../wasmtime/remote/BUILD.itoa-1.0.11.bazel | 15 +- .../wasmtime/remote/BUILD.libc-0.2.155.bazel | 222 +++++++++++++++++- .../remote/BUILD.linux-raw-sys-0.3.8.bazel | 41 +++- .../remote/BUILD.linux-raw-sys-0.4.14.bazel | 49 +++- .../wasmtime/remote/BUILD.log-0.4.22.bazel | 15 +- .../wasmtime/remote/BUILD.mach-0.3.2.bazel | 15 +- .../wasmtime/remote/BUILD.memchr-2.7.4.bazel | 15 +- .../wasmtime/remote/BUILD.memfd-0.6.4.bazel | 15 +- .../remote/BUILD.memoffset-0.8.0.bazel | 26 +- .../wasmtime/remote/BUILD.object-0.30.4.bazel | 15 +- .../remote/BUILD.once_cell-1.19.0.bazel | 15 +- .../wasmtime/remote/BUILD.paste-1.0.15.bazel | 26 +- .../remote/BUILD.percent-encoding-2.3.1.bazel | 15 +- .../remote/BUILD.ppv-lite86-0.2.17.bazel | 15 +- .../remote/BUILD.proc-macro2-1.0.86.bazel | 26 +- .../wasmtime/remote/BUILD.psm-0.1.21.bazel | 26 +- .../wasmtime/remote/BUILD.quote-1.0.36.bazel | 15 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 24 +- .../remote/BUILD.rand_chacha-0.3.1.bazel | 15 +- .../remote/BUILD.rand_core-0.6.4.bazel | 15 +- .../remote/BUILD.regalloc2-0.8.1.bazel | 15 +- .../wasmtime/remote/BUILD.regex-1.10.5.bazel | 15 +- .../remote/BUILD.regex-automata-0.4.7.bazel | 15 +- .../remote/BUILD.regex-syntax-0.8.4.bazel | 15 +- .../remote/BUILD.rustc-demangle-0.1.24.bazel | 15 +- .../remote/BUILD.rustc-hash-1.1.0.bazel | 15 +- .../remote/BUILD.rustix-0.37.27.bazel | 41 +++- .../remote/BUILD.rustix-0.38.34.bazel | 57 ++--- .../wasmtime/remote/BUILD.ryu-1.0.18.bazel | 15 +- .../wasmtime/remote/BUILD.serde-1.0.204.bazel | 26 +- .../remote/BUILD.serde_derive-1.0.204.bazel | 15 +- .../remote/BUILD.serde_json-1.0.120.bazel | 26 +- .../remote/BUILD.slice-group-by-0.3.1.bazel | 15 +- .../remote/BUILD.smallvec-1.13.2.bazel | 15 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 15 +- .../wasmtime/remote/BUILD.syn-2.0.72.bazel | 15 +- .../remote/BUILD.target-lexicon-0.12.15.bazel | 26 +- .../remote/BUILD.termcolor-1.4.1.bazel | 15 +- .../remote/BUILD.thiserror-1.0.63.bazel | 26 +- .../remote/BUILD.thiserror-impl-1.0.63.bazel | 15 +- .../wasmtime/remote/BUILD.tinyvec-1.8.0.bazel | 15 +- .../remote/BUILD.tinyvec_macros-0.1.1.bazel | 15 +- .../remote/BUILD.unicode-bidi-0.3.15.bazel | 15 +- .../remote/BUILD.unicode-ident-1.0.12.bazel | 15 +- .../BUILD.unicode-normalization-0.1.23.bazel | 15 +- .../wasmtime/remote/BUILD.url-2.5.2.bazel | 15 +- .../wasmtime/remote/BUILD.uuid-1.10.0.bazel | 15 +- .../remote/BUILD.version_check-0.9.5.bazel | 15 +- ...D.wasi-0.11.0+wasi-snapshot-preview1.bazel | 15 +- .../remote/BUILD.wasmparser-0.103.0.bazel | 15 +- .../remote/BUILD.wasmtime-9.0.4.bazel | 26 +- .../BUILD.wasmtime-asm-macros-9.0.4.bazel | 15 +- .../BUILD.wasmtime-c-api-macros-0.0.0.bazel | 11 +- .../BUILD.wasmtime-cranelift-9.0.4.bazel | 15 +- ...UILD.wasmtime-cranelift-shared-9.0.4.bazel | 15 +- .../remote/BUILD.wasmtime-environ-9.0.4.bazel | 15 +- .../remote/BUILD.wasmtime-jit-9.0.4.bazel | 15 +- .../BUILD.wasmtime-jit-debug-9.0.4.bazel | 15 +- ....wasmtime-jit-icache-coherence-9.0.4.bazel | 21 +- .../remote/BUILD.wasmtime-runtime-9.0.4.bazel | 35 ++- .../remote/BUILD.wasmtime-types-9.0.4.bazel | 15 +- .../remote/BUILD.winapi-util-0.1.8.bazel | 15 +- .../remote/BUILD.windows-sys-0.48.0.bazel | 20 +- .../remote/BUILD.windows-sys-0.52.0.bazel | 15 +- .../remote/BUILD.windows-targets-0.48.5.bazel | 18 +- .../remote/BUILD.windows-targets-0.52.6.bazel | 18 +- ...BUILD.windows_aarch64_gnullvm-0.48.5.bazel | 26 +- ...BUILD.windows_aarch64_gnullvm-0.52.6.bazel | 26 +- .../BUILD.windows_aarch64_msvc-0.48.5.bazel | 26 +- .../BUILD.windows_aarch64_msvc-0.52.6.bazel | 26 +- .../BUILD.windows_i686_gnu-0.48.5.bazel | 26 +- .../BUILD.windows_i686_gnu-0.52.6.bazel | 26 +- .../BUILD.windows_i686_gnullvm-0.52.6.bazel | 26 +- .../BUILD.windows_i686_msvc-0.48.5.bazel | 26 +- .../BUILD.windows_i686_msvc-0.52.6.bazel | 26 +- .../BUILD.windows_x86_64_gnu-0.48.5.bazel | 26 +- .../BUILD.windows_x86_64_gnu-0.52.6.bazel | 26 +- .../BUILD.windows_x86_64_gnullvm-0.48.5.bazel | 26 +- .../BUILD.windows_x86_64_gnullvm-0.52.6.bazel | 26 +- .../BUILD.windows_x86_64_msvc-0.48.5.bazel | 26 +- .../BUILD.windows_x86_64_msvc-0.52.6.bazel | 26 +- .../remote/BUILD.zerocopy-0.7.35.bazel | 15 +- .../remote/BUILD.zerocopy-derive-0.7.35.bazel | 15 +- bazel/cargo/wasmtime/remote/alias_rules.bzl | 47 ++++ bazel/cargo/wasmtime/remote/crates.bzl | 9 +- bazel/cargo/wasmtime/remote/defs.bzl | 80 +++++-- bazel/dependencies.bzl | 6 +- bazel/external/rules_rust.patch | 10 +- bazel/repositories.bzl | 7 +- test/runtime_test.cc | 2 +- 168 files changed, 2380 insertions(+), 1147 deletions(-) create mode 100644 bazel/cargo/wasmsign/remote/alias_rules.bzl create mode 100644 bazel/cargo/wasmtime/remote/alias_rules.bzl diff --git a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel index 22faf8df9..c9b94b758 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ansi_term-0.12.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "ansi_term", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ansi_term", diff --git a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel index d717277e6..6c6cb4127 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.anyhow-1.0.86.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "anyhow", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=anyhow", @@ -49,8 +52,11 @@ rust_library( ) cargo_build_script( - name = "anyhow_build_script", - srcs = glob(["**/*.rs"]), + name = "anyhow_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -59,8 +65,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -84,6 +92,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "anyhow_build_script", + actual = ":anyhow_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel index e7fd10f0f..041f36f9e 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.atty-0.2.14.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "atty", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=atty", @@ -60,6 +63,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -111,6 +120,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.bazel b/bazel/cargo/wasmsign/remote/BUILD.bazel index fb08489fd..87eba7241 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bazel @@ -13,15 +13,21 @@ exports_files( "cargo-bazel.json", "crates.bzl", "defs.bzl", - ] + glob(["*.bazel"]), + ] + glob( + include = ["*.bazel"], + allow_empty = True, + ), ) filegroup( name = "srcs", - srcs = glob([ - "*.bazel", - "*.bzl", - ]), + srcs = glob( + include = [ + "*.bazel", + "*.bzl", + ], + allow_empty = True, + ), ) # Workspace Member Dependencies diff --git a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel index d701e4c60..653792564 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.bitflags-1.3.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "bitflags", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bitflags", diff --git a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel index ac3e5c8a2..fd6870278 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.byteorder-1.5.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "byteorder", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=byteorder", diff --git a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel index 21e4cbeb9..e7c34e5d4 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.cfg-if-1.0.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "cfg_if", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cfg-if", diff --git a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel index 66427b8a4..ed355234f 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.clap-2.34.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "clap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -38,7 +39,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=clap", @@ -73,6 +76,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], @@ -136,6 +145,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__ansi_term-0.12.1//:ansi_term", # cfg(not(windows)) ], diff --git a/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel index fee8bd3b8..a0cbb9f65 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ct-codecs-1.1.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "ct_codecs", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ct-codecs", diff --git a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel index 3806ebe7b..f0da91e4f 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.ed25519-compact-1.0.16.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "ed25519_compact", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -38,7 +39,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ed25519-compact", diff --git a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel index dd7de9c9b..619a612bd 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.getrandom-0.2.15.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "getrandom", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=getrandom", @@ -59,6 +62,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -107,6 +116,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel index 3990cb368..2be88f2ce 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hermit-abi-0.1.19.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "hermit_abi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hermit-abi", diff --git a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel index 774e5bd54..c6f58d5ae 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.hmac-sha512-1.1.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # ISC -# ]) - rust_library( name = "hmac_sha512", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hmac-sha512", diff --git a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel index f822abc3f..61bb833b9 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.libc-0.2.155.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "libc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=libc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "libc_build_script", - srcs = glob(["**/*.rs"]), + name = "libc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "libc_build_script", + actual = ":libc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel index f9e1e34aa..ad79a67a5 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.parity-wasm-0.42.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "parity_wasm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=parity-wasm", diff --git a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel index c8ffa5c4b..072a238b8 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.proc-macro2-1.0.86.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "proc_macro2", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=proc-macro2", @@ -50,8 +53,11 @@ rust_library( ) cargo_build_script( - name = "proc-macro2_build_script", - srcs = glob(["**/*.rs"]), + name = "proc-macro2_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "proc-macro", @@ -60,8 +66,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "proc-macro2_build_script", + actual = ":proc-macro2_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel index 308d43ad6..554f71a78 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.quote-1.0.36.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "quote", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=quote", diff --git a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel index 6ad9b2043..928090c3d 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.strsim-0.8.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "strsim", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=strsim", diff --git a/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel index 9bf397bd2..0ac5ed93c 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.syn-2.0.72.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "syn", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -37,7 +38,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=syn", diff --git a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel index ede0b609b..49e49e09e 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.textwrap-0.11.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "textwrap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=textwrap", diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel index 9ca648959..588c5d5c2 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-1.0.63.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "thiserror", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( proc_macro_deps = [ "@cu__thiserror-impl-1.0.63//:thiserror_impl", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror", @@ -48,14 +51,19 @@ rust_library( ) cargo_build_script( - name = "thiserror_build_script", - srcs = glob(["**/*.rs"]), + name = "thiserror_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -79,6 +87,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "thiserror_build_script", + actual = ":thiserror_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel index 142b16b2f..fc2cf7141 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_proc_macro( name = "thiserror_impl", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror-impl", diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel index 894836db8..caed93c98 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-ident-1.0.12.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 -# ]) - rust_library( name = "unicode_ident", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-ident", diff --git a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel index 90c33b0aa..449da1a99 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.unicode-width-0.1.13.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "unicode_width", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-width", diff --git a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel index 0f0b8933c..21fe8eee8 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.vec_map-0.8.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "vec_map", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=vec_map", diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 13fbda125..b5ff1e516 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "wasi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasi", diff --git a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel index 3a21d33ca..07b49f69b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.wasmsign-0.1.2.bazel @@ -16,11 +16,16 @@ package(default_visibility = ["//visibility:public"]) rust_library( name = "wasmsign", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +34,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmsign", @@ -51,11 +58,16 @@ rust_library( rust_binary( name = "wasmsign__bin", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -64,7 +76,9 @@ rust_binary( ), crate_root = "src/bin/wasmsign.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmsign", diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel index 0f41daaf1..02f57bf83 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-0.3.9.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "winapi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,9 +31,6 @@ rust_library( ), crate_features = [ "consoleapi", - "errhandlingapi", - "fileapi", - "handleapi", "minwinbase", "minwindef", "processenv", @@ -40,7 +38,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi", @@ -55,13 +55,13 @@ rust_library( ) cargo_build_script( - name = "winapi_build_script", - srcs = glob(["**/*.rs"]), + name = "winapi_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "consoleapi", - "errhandlingapi", - "fileapi", - "handleapi", "minwinbase", "minwindef", "processenv", @@ -71,8 +71,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -96,6 +98,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "winapi_build_script", + actual = ":winapi_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel index 782b8d021..c1fb3c90b 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "winapi_i686_pc_windows_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi-i686-pc-windows-gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "winapi-i686-pc-windows-gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "winapi-i686-pc-windows-gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "winapi-i686-pc-windows-gnu_build_script", + actual = ":winapi-i686-pc-windows-gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel index e67d33cf9..3468dd114 100644 --- a/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel +++ b/bazel/cargo/wasmsign/remote/BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "winapi_x86_64_pc_windows_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi-x86_64-pc-windows-gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "winapi-x86_64-pc-windows-gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "winapi-x86_64-pc-windows-gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "winapi-x86_64-pc-windows-gnu_build_script", + actual = ":winapi-x86_64-pc-windows-gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmsign/remote/alias_rules.bzl b/bazel/cargo/wasmsign/remote/alias_rules.bzl new file mode 100644 index 000000000..14b04c127 --- /dev/null +++ b/bazel/cargo/wasmsign/remote/alias_rules.bzl @@ -0,0 +1,47 @@ +"""Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias="opt"` to enable.""" + +load("@rules_cc//cc:defs.bzl", "CcInfo") +load("@rules_rust//rust:rust_common.bzl", "COMMON_PROVIDERS") + +def _transition_alias_impl(ctx): + # `ctx.attr.actual` is a list of 1 item due to the transition + providers = [ctx.attr.actual[0][provider] for provider in COMMON_PROVIDERS] + if CcInfo in ctx.attr.actual[0]: + providers.append(ctx.attr.actual[0][CcInfo]) + return providers + +def _change_compilation_mode(compilation_mode): + def _change_compilation_mode_impl(_settings, _attr): + return { + "//command_line_option:compilation_mode": compilation_mode, + } + + return transition( + implementation = _change_compilation_mode_impl, + inputs = [], + outputs = [ + "//command_line_option:compilation_mode", + ], + ) + +def _transition_alias_rule(compilation_mode): + return rule( + implementation = _transition_alias_impl, + provides = COMMON_PROVIDERS, + attrs = { + "actual": attr.label( + mandatory = True, + doc = "`rust_library()` target to transition to `compilation_mode=opt`.", + providers = COMMON_PROVIDERS, + cfg = _change_compilation_mode(compilation_mode), + ), + "_allowlist_function_transition": attr.label( + default = "@bazel_tools//tools/allowlists/function_transition_allowlist", + ), + }, + doc = "Transitions a Rust library crate to the `compilation_mode=opt`.", + ) + +transition_alias_dbg = _transition_alias_rule("dbg") +transition_alias_fastbuild = _transition_alias_rule("fastbuild") +transition_alias_opt = _transition_alias_rule("opt") diff --git a/bazel/cargo/wasmsign/remote/crates.bzl b/bazel/cargo/wasmsign/remote/crates.bzl index 49dc5c122..b91fb21aa 100644 --- a/bazel/cargo/wasmsign/remote/crates.bzl +++ b/bazel/cargo/wasmsign/remote/crates.bzl @@ -15,6 +15,11 @@ load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:defs.bzl", _crate_reposi load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") def crate_repositories(): + """Generates repositories for vendored crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( crates_vendor_remote_repository, name = "cu", @@ -22,4 +27,6 @@ def crate_repositories(): defs_module = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:defs.bzl"), ) - _crate_repositories() + direct_deps = [struct(repo = "cu", is_dev_dep = False)] + direct_deps.extend(_crate_repositories()) + return direct_deps diff --git a/bazel/cargo/wasmsign/remote/defs.bzl b/bazel/cargo/wasmsign/remote/defs.bzl index 89c4e2d02..57a80662e 100644 --- a/bazel/cargo/wasmsign/remote/defs.bzl +++ b/bazel/cargo/wasmsign/remote/defs.bzl @@ -296,7 +296,7 @@ def aliases( _NORMAL_DEPENDENCIES = { "bazel/cargo/wasmsign": { _COMMON_CONDITION: { - "wasmsign": "@cu__wasmsign-0.1.2//:wasmsign", + "wasmsign": Label("@cu__wasmsign-0.1.2//:wasmsign"), }, }, } @@ -359,20 +359,58 @@ _BUILD_PROC_MACRO_ALIASES = { } _CONDITIONS = { - "cfg(not(windows))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "aarch64-apple-darwin": ["@rules_rust//rust/platform:aarch64-apple-darwin"], + "aarch64-apple-ios": ["@rules_rust//rust/platform:aarch64-apple-ios"], + "aarch64-apple-ios-sim": ["@rules_rust//rust/platform:aarch64-apple-ios-sim"], + "aarch64-fuchsia": ["@rules_rust//rust/platform:aarch64-fuchsia"], + "aarch64-linux-android": ["@rules_rust//rust/platform:aarch64-linux-android"], + "aarch64-pc-windows-msvc": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], + "aarch64-unknown-linux-gnu": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu"], + "aarch64-unknown-nixos-gnu": ["@rules_rust//rust/platform:aarch64-unknown-nixos-gnu"], + "aarch64-unknown-nto-qnx710": ["@rules_rust//rust/platform:aarch64-unknown-nto-qnx710"], + "arm-unknown-linux-gnueabi": ["@rules_rust//rust/platform:arm-unknown-linux-gnueabi"], + "armv7-linux-androideabi": ["@rules_rust//rust/platform:armv7-linux-androideabi"], + "armv7-unknown-linux-gnueabi": ["@rules_rust//rust/platform:armv7-unknown-linux-gnueabi"], + "cfg(not(windows))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(target_os = \"hermit\")": [], "cfg(target_os = \"wasi\")": ["@rules_rust//rust/platform:wasm32-wasi"], "cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], - "cfg(unix)": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(unix)": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(windows)": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "i686-apple-darwin": ["@rules_rust//rust/platform:i686-apple-darwin"], + "i686-linux-android": ["@rules_rust//rust/platform:i686-linux-android"], "i686-pc-windows-gnu": [], + "i686-pc-windows-msvc": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], + "i686-unknown-freebsd": ["@rules_rust//rust/platform:i686-unknown-freebsd"], + "i686-unknown-linux-gnu": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], + "powerpc-unknown-linux-gnu": ["@rules_rust//rust/platform:powerpc-unknown-linux-gnu"], + "riscv32imc-unknown-none-elf": ["@rules_rust//rust/platform:riscv32imc-unknown-none-elf"], + "riscv64gc-unknown-none-elf": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf"], + "s390x-unknown-linux-gnu": ["@rules_rust//rust/platform:s390x-unknown-linux-gnu"], + "thumbv7em-none-eabi": ["@rules_rust//rust/platform:thumbv7em-none-eabi"], + "thumbv8m.main-none-eabi": ["@rules_rust//rust/platform:thumbv8m.main-none-eabi"], + "wasm32-unknown-unknown": ["@rules_rust//rust/platform:wasm32-unknown-unknown"], + "wasm32-wasi": ["@rules_rust//rust/platform:wasm32-wasi"], + "x86_64-apple-darwin": ["@rules_rust//rust/platform:x86_64-apple-darwin"], + "x86_64-apple-ios": ["@rules_rust//rust/platform:x86_64-apple-ios"], + "x86_64-fuchsia": ["@rules_rust//rust/platform:x86_64-fuchsia"], + "x86_64-linux-android": ["@rules_rust//rust/platform:x86_64-linux-android"], "x86_64-pc-windows-gnu": [], + "x86_64-pc-windows-msvc": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "x86_64-unknown-freebsd": ["@rules_rust//rust/platform:x86_64-unknown-freebsd"], + "x86_64-unknown-linux-gnu": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "x86_64-unknown-nixos-gnu": ["@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "x86_64-unknown-none": ["@rules_rust//rust/platform:x86_64-unknown-none"], } ############################################################################### def crate_repositories(): - """A macro for defining repositories for all generated crates""" + """A macro for defining repositories for all generated crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( http_archive, name = "cu__ansi_term-0.12.1", @@ -626,7 +664,7 @@ def crate_repositories(): maybe( new_git_repository, name = "cu__wasmsign-0.1.2", - branch = "master", + commit = "6a6ef1c6f99063a5bd4ef9efc2ee41c5ea8f4f96", init_submodules = True, remote = "https://github.com/jedisct1/wasmsign", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.wasmsign-0.1.2.bazel"), @@ -661,3 +699,7 @@ def crate_repositories(): strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) + + return [ + struct(repo = "cu__wasmsign-0.1.2", is_dev_dep = False), + ] diff --git a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel index 3b5e7fffa..ff529c9e8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "addr2line", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=addr2line", diff --git a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel index 6cfdf16c9..3efe4bb2b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ahash-0.8.11.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "ahash", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ahash", @@ -65,6 +68,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], @@ -101,12 +110,6 @@ rust_library( "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], - "@rules_rust//rust/platform:thumbv7em-none-eabi": [ - "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) - ], - "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ - "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) - ], "@rules_rust//rust/platform:wasm32-unknown-unknown": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], @@ -134,6 +137,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__once_cell-1.19.0//:once_cell", # cfg(not(all(target_arch = "arm", target_os = "none"))) ], @@ -142,14 +148,19 @@ rust_library( ) cargo_build_script( - name = "ahash_build_script", - srcs = glob(["**/*.rs"]), + name = "ahash_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -176,6 +187,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "ahash_build_script", + actual = ":ahash_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel index 939e218b2..193a2843c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.aho-corasick-1.1.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "aho_corasick", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=aho-corasick", diff --git a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel index a4de9913a..3021b737f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.anyhow-1.0.86.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "anyhow", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=anyhow", @@ -49,8 +52,11 @@ rust_library( ) cargo_build_script( - name = "anyhow_build_script", - srcs = glob(["**/*.rs"]), + name = "anyhow_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -59,8 +65,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -84,6 +92,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "anyhow_build_script", + actual = ":anyhow_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel index eb21041cc..d36ba3e9a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.arbitrary-1.3.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "arbitrary", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=arbitrary", diff --git a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel index 8a2d2ca08..291ad98c6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "autocfg", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=autocfg", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bazel b/bazel/cargo/wasmtime/remote/BUILD.bazel index 5692002a8..59ac51f8d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bazel @@ -13,15 +13,21 @@ exports_files( "cargo-bazel.json", "crates.bzl", "defs.bzl", - ] + glob(["*.bazel"]), + ] + glob( + include = ["*.bazel"], + allow_empty = True, + ), ) filegroup( name = "srcs", - srcs = glob([ - "*.bazel", - "*.bzl", - ]), + srcs = glob( + include = [ + "*.bazel", + "*.bzl", + ], + allow_empty = True, + ), ) # Workspace Member Dependencies diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel index bd63e9685..2287a26f4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "bincode", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bincode", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel index d397df700..e8fde40cb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "bitflags", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bitflags", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel index 3a06e3e85..cb8de7812 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "bitflags", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bitflags", diff --git a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel index db1052dfa..2dd737714 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bumpalo-3.16.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "bumpalo", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=bumpalo", diff --git a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel index e307c0c58..a2e358ed0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "byteorder", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=byteorder", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel index 4ad7c0707..64ef363ba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "cc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cc", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel index e71505481..f9019274b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cfg-if-1.0.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "cfg_if", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cfg-if", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel index ed4332ae6..b9f77aaaa 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0/MIT -# ]) - rust_library( name = "cpp_demangle", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cpp_demangle", @@ -50,8 +53,11 @@ rust_library( ) cargo_build_script( - name = "cpp_demangle_build_script", - srcs = glob(["**/*.rs"]), + name = "cpp_demangle_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -60,8 +66,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "cpp_demangle_build_script", + actual = ":cpp_demangle_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel index 32c38d05d..afd0429ad 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_bforest", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-bforest", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel index 3daf430f7..c4e2ce3a5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_codegen", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-codegen", @@ -62,8 +65,11 @@ rust_library( ) cargo_build_script( - name = "cranelift-codegen_build_script", - srcs = glob(["**/*.rs"]), + name = "cranelift-codegen_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "gimli", @@ -74,8 +80,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -103,6 +111,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "cranelift-codegen_build_script", + actual = ":cranelift-codegen_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel index de05c99c0..3a2667b6c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_codegen_meta", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-codegen-meta", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel index 2eede82e6..ee874dbbe 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_codegen_shared", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-codegen-shared", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel index 057a08c8d..1acdd26f4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_control", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-control", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel index bf32eaccc..46fb0d85b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_entity", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-entity", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel index 8a7e192f4..e579e72ff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_frontend", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-frontend", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel index 1f0c2d4aa..4565c4841 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_isle", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-isle", @@ -48,8 +51,11 @@ rust_library( ) cargo_build_script( - name = "cranelift-isle_build_script", - srcs = glob(["**/*.rs"]), + name = "cranelift-isle_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", ], @@ -57,8 +63,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -82,6 +90,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "cranelift-isle_build_script", + actual = ":cranelift-isle_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel index 8364dcc10..eab2947a2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_native", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-native", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel index b6a036ef8..e3ee293fd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "cranelift_wasm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=cranelift-wasm", diff --git a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel index 72a755bcf..063a0afb7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.crc32fast-1.4.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "crc32fast", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=crc32fast", diff --git a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel index 3ade906f8..770421fd9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 -# ]) - rust_library( name = "debugid", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=debugid", diff --git a/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel index f9ca9c23e..043006849 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.either-1.13.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "either", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=either", diff --git a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel index 2d0e975a1..ce9eb6262 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.env_logger-0.10.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "env_logger", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=env_logger", diff --git a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel index 36bd149f5..904e5aba0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.errno-0.3.9.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "errno", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=errno", @@ -63,6 +66,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -117,6 +126,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel index 79b2a7153..dc1e8ed17 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "fallible_iterator", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=fallible-iterator", diff --git a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel index fcf6118f6..4a84a5c66 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "form_urlencoded", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=form_urlencoded", diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel index 5b9dc4e8e..bcbd8d053 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0/MIT -# ]) - rust_library( name = "fxhash", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=fxhash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel index 5cd5c59de..fe14db14b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "fxprof_processed_profile", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=fxprof-processed-profile", diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel index 5fe182d17..cda329e87 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "getrandom", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=getrandom", @@ -62,6 +65,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -110,6 +119,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel index 7402b72b3..730e42927 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "gimli", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -38,7 +39,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=gimli", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel index 94ea8b698..afbc39185 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "hashbrown", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hashbrown", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel index 2d7bbdc20..be9008e31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "hashbrown", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -35,7 +36,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hashbrown", diff --git a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel index ec7338bb5..75dff9155 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hermit-abi-0.3.9.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "hermit_abi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=hermit-abi", diff --git a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel index fd41b6708..d1691cafd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.humantime-2.1.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "humantime", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=humantime", diff --git a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel index 210e3b8bb..76739ff91 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "idna", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=idna", diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel index 46639af74..bc6860693 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "indexmap", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -35,7 +36,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=indexmap", @@ -52,8 +55,11 @@ rust_library( ) cargo_build_script( - name = "indexmap_build_script", - srcs = glob(["**/*.rs"]), + name = "indexmap_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "serde", "serde-1", @@ -63,8 +69,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -91,6 +99,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "indexmap_build_script", + actual = ":indexmap_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel index 481e6ca9f..a56d0f5ef 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "io_lifetimes", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=io-lifetimes", @@ -69,6 +72,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], @@ -138,6 +147,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(not(windows)) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__libc-0.2.155//:libc", # cfg(not(windows)) ], @@ -146,8 +158,11 @@ rust_library( ) cargo_build_script( - name = "io-lifetimes_build_script", - srcs = glob(["**/*.rs"]), + name = "io-lifetimes_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "close", "hermit-abi", @@ -158,8 +173,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -183,6 +200,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "io-lifetimes_build_script", + actual = ":io-lifetimes_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel index 1cfd6291f..84a3f0fb0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.is-terminal-0.4.12.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "is_terminal", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=is-terminal", @@ -60,6 +63,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) ], @@ -114,6 +123,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(unix, target_os = "wasi")) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel index 03377bdeb..467ee0e92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "itertools", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=itertools", diff --git a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel index c874e7d4e..71c5cae88 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itoa-1.0.11.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "itoa", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=itoa", diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel index 3154b9dc9..a776bec66 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "libc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,12 +31,108 @@ rust_library( ), crate_features = [ "default", - "extra_traits", "std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "extra_traits", # aarch64-apple-darwin + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "extra_traits", # aarch64-apple-ios + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "extra_traits", # aarch64-apple-ios-sim + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "extra_traits", # aarch64-fuchsia + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "extra_traits", # aarch64-linux-android + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "extra_traits", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "extra_traits", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "extra_traits", # aarch64-unknown-nto-qnx710 + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "extra_traits", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "extra_traits", # armv7-linux-androideabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "extra_traits", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "extra_traits", # i686-apple-darwin + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "extra_traits", # i686-linux-android + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "extra_traits", # i686-unknown-freebsd + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "extra_traits", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "extra_traits", # powerpc-unknown-linux-gnu + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "extra_traits", # riscv32imc-unknown-none-elf + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "extra_traits", # riscv64gc-unknown-none-elf + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "extra_traits", # s390x-unknown-linux-gnu + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "extra_traits", # thumbv7em-none-eabi + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "extra_traits", # thumbv8m.main-none-eabi + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "extra_traits", # wasm32-unknown-unknown + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "extra_traits", # wasm32-wasi + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "extra_traits", # x86_64-apple-darwin + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "extra_traits", # x86_64-apple-ios + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "extra_traits", # x86_64-fuchsia + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "extra_traits", # x86_64-linux-android + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "extra_traits", # x86_64-unknown-freebsd + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "extra_traits", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "extra_traits", # x86_64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "extra_traits", # x86_64-unknown-none + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=libc", @@ -50,19 +147,118 @@ rust_library( ) cargo_build_script( - name = "libc_build_script", - srcs = glob(["**/*.rs"]), + name = "libc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", - "extra_traits", "std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "extra_traits", # aarch64-apple-darwin + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "extra_traits", # aarch64-apple-ios + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "extra_traits", # aarch64-apple-ios-sim + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "extra_traits", # aarch64-fuchsia + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "extra_traits", # aarch64-linux-android + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "extra_traits", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "extra_traits", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "extra_traits", # aarch64-unknown-nto-qnx710 + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "extra_traits", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "extra_traits", # armv7-linux-androideabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "extra_traits", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "extra_traits", # i686-apple-darwin + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "extra_traits", # i686-linux-android + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "extra_traits", # i686-unknown-freebsd + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "extra_traits", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "extra_traits", # powerpc-unknown-linux-gnu + ], + "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ + "extra_traits", # riscv32imc-unknown-none-elf + ], + "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ + "extra_traits", # riscv64gc-unknown-none-elf + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "extra_traits", # s390x-unknown-linux-gnu + ], + "@rules_rust//rust/platform:thumbv7em-none-eabi": [ + "extra_traits", # thumbv7em-none-eabi + ], + "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ + "extra_traits", # thumbv8m.main-none-eabi + ], + "@rules_rust//rust/platform:wasm32-unknown-unknown": [ + "extra_traits", # wasm32-unknown-unknown + ], + "@rules_rust//rust/platform:wasm32-wasi": [ + "extra_traits", # wasm32-wasi + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "extra_traits", # x86_64-apple-darwin + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "extra_traits", # x86_64-apple-ios + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "extra_traits", # x86_64-fuchsia + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "extra_traits", # x86_64-linux-android + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "extra_traits", # x86_64-unknown-freebsd + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "extra_traits", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "extra_traits", # x86_64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-none": [ + "extra_traits", # x86_64-unknown-none + ], + "//conditions:default": [], + }), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -86,6 +282,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "libc_build_script", + actual = ":libc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel index a1634a238..97edbe88e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "linux_raw_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -28,14 +29,38 @@ rust_library( ], ), crate_features = [ - "errno", "general", "ioctl", "no_std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "errno", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "errno", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "errno", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "errno", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "errno", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "errno", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "errno", # x86_64-unknown-nixos-gnu + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=linux-raw-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel index ee7a2dab1..733fee359 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.4.14.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "linux_raw_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -28,15 +29,45 @@ rust_library( ], ), crate_features = [ - "elf", - "errno", "general", "ioctl", "no_std", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "elf", # aarch64-unknown-linux-gnu + "errno", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "elf", # aarch64-unknown-nixos-gnu + "errno", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "elf", # arm-unknown-linux-gnueabi + "errno", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "elf", # armv7-unknown-linux-gnueabi + "errno", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "elf", # i686-unknown-linux-gnu + "errno", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "elf", # x86_64-unknown-linux-gnu + "errno", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "elf", # x86_64-unknown-nixos-gnu + "errno", # x86_64-unknown-nixos-gnu + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=linux-raw-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel index 99c9f5a62..7afd4d234 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.log-0.4.22.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "log", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=log", diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel index f35ca4838..287bf9f10 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # BSD-2-Clause -# ]) - rust_library( name = "mach", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=mach", diff --git a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel index f86724640..bee4bd07c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memchr-2.7.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "memchr", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=memchr", diff --git a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel index 6963c36c9..db840ec0d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memfd-0.6.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "memfd", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=memfd", diff --git a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel index 22e1bdf74..bbe30d36d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "memoffset", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=memoffset", @@ -48,8 +51,11 @@ rust_library( ) cargo_build_script( - name = "memoffset_build_script", - srcs = glob(["**/*.rs"]), + name = "memoffset_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", ], @@ -57,8 +63,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "memoffset_build_script", + actual = ":memoffset_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel index c7cff2b5e..1ed53c2aa 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "object", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -43,7 +44,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=object", diff --git a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel index 61c6d4df9..d4155cdc0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.once_cell-1.19.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "once_cell", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -35,7 +36,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=once_cell", diff --git a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel index a16962b72..aa2c97e31 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.paste-1.0.15.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_proc_macro( name = "paste", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=paste", @@ -45,14 +48,19 @@ rust_proc_macro( ) cargo_build_script( - name = "paste_build_script", - srcs = glob(["**/*.rs"]), + name = "paste_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "paste_build_script", + actual = ":paste_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel index 5296e610d..abd37dbdb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "percent_encoding", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=percent-encoding", diff --git a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel index 92d543535..8c821bdcd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "ppv_lite86", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ppv-lite86", diff --git a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel index 4b3c2ab99..f5ffa7899 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.proc-macro2-1.0.86.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "proc_macro2", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=proc-macro2", @@ -50,8 +53,11 @@ rust_library( ) cargo_build_script( - name = "proc-macro2_build_script", - srcs = glob(["**/*.rs"]), + name = "proc-macro2_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "proc-macro", @@ -60,8 +66,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -85,6 +93,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "proc-macro2_build_script", + actual = ":proc-macro2_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index 32976f245..f7cdddb5c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "psm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=psm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "psm_build_script", - srcs = glob(["**/*.rs"]), + name = "psm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -79,6 +87,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "psm_build_script", + actual = ":psm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel index 0b42ba304..3ad108f8f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.quote-1.0.36.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "quote", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=quote", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel index 851a20a96..b9067b104 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "rand", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -39,7 +40,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rand", @@ -70,6 +73,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], @@ -115,6 +124,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(unix) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel index a93e8f636..90a0195e3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "rand_chacha", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rand_chacha", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel index 993ff0b8c..b89c60f80 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "rand_core", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rand_core", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel index 19ca0fe4f..b31ecd423 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "regalloc2", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regalloc2", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel index 0f1ae96e0..efdf89bd0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-1.10.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "regex", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -39,7 +40,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regex", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel index e0c48ef50..da56abc92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-automata-0.4.7.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "regex_automata", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -44,7 +45,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regex-automata", diff --git a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel index 513239e82..36b411c94 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regex-syntax-0.8.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "regex_syntax", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=regex-syntax", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel index b18377f67..dcb8e9d6a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "rustc_demangle", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustc-demangle", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel index 0ca3c2402..7bcaa5a87 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0/MIT -# ]) - rust_library( name = "rustc_hash", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustc-hash", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel index ba217f9cf..01df1d783 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel @@ -11,13 +11,12 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "rustix", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), aliases = select({ "@rules_rust//rust/platform:aarch64-apple-darwin": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) @@ -37,6 +36,9 @@ rust_library( "@rules_rust//rust/platform:aarch64-pc-windows-msvc": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) }, + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + }, "@rules_rust//rust/platform:armv7-linux-androideabi": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) }, @@ -101,8 +103,10 @@ rust_library( }), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -119,7 +123,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustix", @@ -162,6 +168,14 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) @@ -259,6 +273,10 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) + ], "@rules_rust//rust/platform:x86_64-unknown-none": [ "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) @@ -268,8 +286,11 @@ rust_library( ) cargo_build_script( - name = "rustix_build_script", - srcs = glob(["**/*.rs"]), + name = "rustix_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "io-lifetimes", @@ -282,8 +303,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -307,6 +330,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "rustix_build_script", + actual = ":rustix_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel index 6cc42ac8a..ffe2b64ba 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel @@ -11,13 +11,12 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "rustix", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), aliases = select({ "@rules_rust//rust/platform:aarch64-apple-darwin": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) @@ -37,18 +36,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-pc-windows-msvc": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) }, - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": { + "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, "@rules_rust//rust/platform:armv7-linux-androideabi": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, "@rules_rust//rust/platform:i686-apple-darwin": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, @@ -61,9 +54,6 @@ rust_library( "@rules_rust//rust/platform:i686-unknown-freebsd": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, - "@rules_rust//rust/platform:i686-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, @@ -106,9 +96,6 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) - }, "@rules_rust//rust/platform:x86_64-unknown-none": { "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) }, @@ -116,8 +103,10 @@ rust_library( }), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -134,7 +123,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=rustix", @@ -173,11 +164,16 @@ rust_library( "@cu__windows-sys-0.52.0//:windows_sys", # cfg(windows) ], "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:armv7-linux-androideabi": [ @@ -186,7 +182,6 @@ rust_library( "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) ], "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:i686-apple-darwin": [ @@ -207,7 +202,6 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) ], "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ @@ -270,7 +264,9 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))))) ], "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ "@cu__linux-raw-sys-0.4.14//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))) ], "@rules_rust//rust/platform:x86_64-unknown-none": [ @@ -282,8 +278,11 @@ rust_library( ) cargo_build_script( - name = "rustix_build_script", - srcs = glob(["**/*.rs"]), + name = "rustix_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "alloc", "default", @@ -296,8 +295,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -321,6 +322,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "rustix_build_script", + actual = ":rustix_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel index 5119d6444..59399d34a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.ryu-1.0.18.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR BSL-1.0 -# ]) - rust_library( name = "ryu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=ryu", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel index 5633e65e1..a71502593 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "serde", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -39,7 +40,9 @@ rust_library( proc_macro_deps = [ "@cu__serde_derive-1.0.204//:serde_derive", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=serde", @@ -54,8 +57,11 @@ rust_library( ) cargo_build_script( - name = "serde_build_script", - srcs = glob(["**/*.rs"]), + name = "serde_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "derive", @@ -66,8 +72,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -91,6 +99,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "serde_build_script", + actual = ":serde_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel index c7966111d..ef5fe8588 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_derive-1.0.204.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_proc_macro( name = "serde_derive", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_proc_macro( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=serde_derive", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel index 39d294432..9d19ca094 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "serde_json", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=serde_json", @@ -52,8 +55,11 @@ rust_library( ) cargo_build_script( - name = "serde_json_build_script", - srcs = glob(["**/*.rs"]), + name = "serde_json_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "default", "std", @@ -62,8 +68,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -87,6 +95,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "serde_json_build_script", + actual = ":serde_json_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel index 4921aa1db..8f7e3cdc9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.slice-group-by-0.3.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT -# ]) - rust_library( name = "slice_group_by", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=slice-group-by", diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel index 3397610de..f078ae453 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "smallvec", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=smallvec", diff --git a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel index c074b9ff4..1555e8f62 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "stable_deref_trait", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=stable_deref_trait", diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel index 91be9241e..0d8dd09e2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "syn", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -37,7 +38,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=syn", diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel index c9c6e9199..475bad918 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "target_lexicon", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=target-lexicon", @@ -48,8 +51,11 @@ rust_library( ) cargo_build_script( - name = "target-lexicon_build_script", - srcs = glob(["**/*.rs"]), + name = "target-lexicon_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "std", ], @@ -57,8 +63,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -82,6 +90,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "target-lexicon_build_script", + actual = ":target-lexicon_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel index 1854121b3..ccdaaf3f8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.termcolor-1.4.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "termcolor", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=termcolor", diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel index 1fa72ecfb..075c39ee8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-1.0.63.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "thiserror", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( proc_macro_deps = [ "@cu__thiserror-impl-1.0.63//:thiserror_impl", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror", @@ -48,14 +51,19 @@ rust_library( ) cargo_build_script( - name = "thiserror_build_script", - srcs = glob(["**/*.rs"]), + name = "thiserror_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -79,6 +87,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "thiserror_build_script", + actual = ":thiserror_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel index 2d98dc3c9..827631585 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.thiserror-impl-1.0.63.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_proc_macro( name = "thiserror_impl", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=thiserror-impl", diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel index d8ac774ee..ef4c698ca 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Zlib OR Apache-2.0 OR MIT -# ]) - rust_library( name = "tinyvec", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -34,7 +35,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=tinyvec", diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel index 32fcacff9..52641b700 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 OR Zlib -# ]) - rust_library( name = "tinyvec_macros", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=tinyvec_macros", diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel index ff6b2ee31..a48d6d3d8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "unicode_bidi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-bidi", diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel index 5c19c50be..e21e8cd07 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-ident-1.0.12.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # (MIT OR Apache-2.0) AND Unicode-DFS-2016 -# ]) - rust_library( name = "unicode_ident", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-ident", diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel index ea0dd99a2..b7d71a5eb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "unicode_normalization", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=unicode-normalization", diff --git a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel index 7c854205c..cdbc74f57 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "url", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=url", diff --git a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel index 3e2371588..747c240ff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 OR MIT -# ]) - rust_library( name = "uuid", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=uuid", diff --git a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel index 7a4157987..e24cea268 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.version_check-0.9.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT/Apache-2.0 -# ]) - rust_library( name = "version_check", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2015", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=version_check", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel index 19e04194d..3eccac75f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT -# ]) - rust_library( name = "wasi", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasi", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel index 655f9e3e0..16aa1860f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmparser", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmparser", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel index 7cb296dcf..c4ae22def 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -36,7 +37,9 @@ rust_library( proc_macro_deps = [ "@cu__paste-1.0.15//:paste", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime", @@ -81,8 +84,11 @@ rust_library( ) cargo_build_script( - name = "wasmtime_build_script", - srcs = glob(["**/*.rs"]), + name = "wasmtime_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_features = [ "cranelift", ], @@ -90,8 +96,10 @@ cargo_build_script( crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -115,6 +123,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "wasmtime_build_script", + actual = ":wasmtime_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel index b8eeabdb4..0a6c533c4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_asm_macros", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-asm-macros", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel index 062fd2f86..f2f8f3489 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel @@ -12,11 +12,16 @@ package(default_visibility = ["//visibility:public"]) rust_proc_macro( name = "wasmtime_c_api_macros", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -25,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-c-api-macros", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel index b2056cf48..38458b9dc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_cranelift", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-cranelift", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel index 2d1352338..f588a1bb2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_cranelift_shared", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-cranelift-shared", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel index 1e53a6044..933d5a71f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_environ", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-environ", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel index 60934b449..d8ad49538 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_jit", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-jit", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel index 83b67e1c4..fdc0e6aa4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_jit_debug", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-jit-debug", diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel index 68e105ed2..fe0d52a76 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_jit_icache_coherence", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-jit-icache-coherence", @@ -53,6 +56,9 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], @@ -98,6 +104,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel index 809be273f..0e699d624 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_runtime", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -33,7 +34,9 @@ rust_library( proc_macro_deps = [ "@cu__paste-1.0.15//:paste", ], - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-runtime", @@ -78,6 +81,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__rustix-0.37.27//:rustix", # cfg(unix) ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ "@cu__rustix-0.37.27//:rustix", # cfg(unix) ], @@ -131,19 +140,27 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__rustix-0.37.27//:rustix", # cfg(unix) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__rustix-0.37.27//:rustix", # cfg(unix) + ], "//conditions:default": [], }), ) cargo_build_script( - name = "wasmtime-runtime_build_script", - srcs = glob(["**/*.rs"]), + name = "wasmtime-runtime_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -170,6 +187,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "wasmtime-runtime_build_script", + actual = ":wasmtime-runtime_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel index 1c9b5511e..971ecd7d8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Apache-2.0 WITH LLVM-exception -# ]) - rust_library( name = "wasmtime_types", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=wasmtime-types", diff --git a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel index 30665d6b9..7df210fa1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.winapi-util-0.1.8.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # Unlicense OR MIT -# ]) - rust_library( name = "winapi_util", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=winapi-util", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel index d1a45ce0f..1b88e46d6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,17 +31,12 @@ rust_library( crate_features = [ "Win32", "Win32_Foundation", - "Win32_NetworkManagement", - "Win32_NetworkManagement_IpHelper", - "Win32_Networking", - "Win32_Networking_WinSock", "Win32_Security", "Win32_Storage", "Win32_Storage_FileSystem", "Win32_System", "Win32_System_Diagnostics", "Win32_System_Diagnostics_Debug", - "Win32_System_IO", "Win32_System_Kernel", "Win32_System_Memory", "Win32_System_SystemInformation", @@ -49,7 +45,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel index cb2b42460..df8b32ead 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_sys", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -46,7 +47,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-sys", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel index f6235e823..3d68ef606 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_targets", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-targets", @@ -54,6 +57,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__windows_x86_64_gnu-0.48.5//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__windows_x86_64_gnu-0.48.5//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel index 8b886b963..eddc343ce 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.52.6.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_targets", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows-targets", @@ -54,6 +57,9 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ "@cu__windows_x86_64_gnu-0.52.6//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "@cu__windows_x86_64_gnu-0.52.6//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) + ], "//conditions:default": [], }), ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel index 2d0821395..3ce452b92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_gnullvm_build_script", + actual = ":windows_aarch64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel index a8a97f5d6..ec79e2200 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_gnullvm_build_script", + actual = ":windows_aarch64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel index 350d5206a..ad39bf532 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_msvc_build_script", + actual = ":windows_aarch64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel index b3909e5cd..47ac38a7a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_aarch64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_aarch64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_aarch64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_aarch64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_aarch64_msvc_build_script", + actual = ":windows_aarch64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel index 85270a149..4d3e79f47 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_gnu_build_script", + actual = ":windows_i686_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel index daab056e7..e3f0ef486 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_gnu_build_script", + actual = ":windows_i686_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel index 07c3ff9ce..d89f239b5 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnullvm-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_gnullvm_build_script", + actual = ":windows_i686_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel index 21077404a..b7019c836 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_msvc_build_script", + actual = ":windows_i686_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel index 150b4e9f8..f6e758e5b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_i686_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_i686_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_i686_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_i686_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_i686_msvc_build_script", + actual = ":windows_i686_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel index 85626006b..aab6efffc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnu_build_script", + actual = ":windows_x86_64_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel index 1b7ee01c9..cbccf337a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnu", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnu", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnu_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnu_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnu_build_script", + actual = ":windows_x86_64_gnu_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel index 88bcdd72d..a81216ee7 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnullvm_build_script", + actual = ":windows_x86_64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel index 68fba5b85..91ac1adff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_gnullvm", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_gnullvm", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_gnullvm_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_gnullvm_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_gnullvm_build_script", + actual = ":windows_x86_64_gnullvm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel index 54d214b42..8089f76b8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_msvc_build_script", + actual = ":windows_x86_64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel index 0b219ff1d..fda09849a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.52.6.bazel @@ -11,17 +11,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # MIT OR Apache-2.0 -# ]) - rust_library( name = "windows_x86_64_msvc", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -30,7 +31,9 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=windows_x86_64_msvc", @@ -45,14 +48,19 @@ rust_library( ) cargo_build_script( - name = "windows_x86_64_msvc_build_script", - srcs = glob(["**/*.rs"]), + name = "windows_x86_64_msvc_bs", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), crate_name = "build_script_build", crate_root = "build.rs", data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -76,6 +84,6 @@ cargo_build_script( alias( name = "build_script_build", - actual = "windows_x86_64_msvc_build_script", + actual = ":windows_x86_64_msvc_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel index 385c5f643..5bb874604 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-0.7.35.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # BSD-2-Clause OR Apache-2.0 OR MIT -# ]) - rust_library( name = "zerocopy", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -32,7 +33,9 @@ rust_library( ], crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=zerocopy", diff --git a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel index ca44749e0..dc6f82dfc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.zerocopy-derive-0.7.35.bazel @@ -10,17 +10,18 @@ load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -# licenses([ -# "TODO", # BSD-2-Clause OR Apache-2.0 OR MIT -# ]) - rust_proc_macro( name = "zerocopy_derive", - srcs = glob(["**/*.rs"]), + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), compile_data = glob( include = ["**"], + allow_empty = True, exclude = [ "**/* *", + ".tmp_git_root/**/*", "BUILD", "BUILD.bazel", "WORKSPACE", @@ -29,7 +30,9 @@ rust_proc_macro( ), crate_root = "src/lib.rs", edition = "2018", - rustc_flags = ["--cap-lints=allow"], + rustc_flags = [ + "--cap-lints=allow", + ], tags = [ "cargo-bazel", "crate-name=zerocopy-derive", diff --git a/bazel/cargo/wasmtime/remote/alias_rules.bzl b/bazel/cargo/wasmtime/remote/alias_rules.bzl new file mode 100644 index 000000000..14b04c127 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/alias_rules.bzl @@ -0,0 +1,47 @@ +"""Alias that transitions its target to `compilation_mode=opt`. Use `transition_alias="opt"` to enable.""" + +load("@rules_cc//cc:defs.bzl", "CcInfo") +load("@rules_rust//rust:rust_common.bzl", "COMMON_PROVIDERS") + +def _transition_alias_impl(ctx): + # `ctx.attr.actual` is a list of 1 item due to the transition + providers = [ctx.attr.actual[0][provider] for provider in COMMON_PROVIDERS] + if CcInfo in ctx.attr.actual[0]: + providers.append(ctx.attr.actual[0][CcInfo]) + return providers + +def _change_compilation_mode(compilation_mode): + def _change_compilation_mode_impl(_settings, _attr): + return { + "//command_line_option:compilation_mode": compilation_mode, + } + + return transition( + implementation = _change_compilation_mode_impl, + inputs = [], + outputs = [ + "//command_line_option:compilation_mode", + ], + ) + +def _transition_alias_rule(compilation_mode): + return rule( + implementation = _transition_alias_impl, + provides = COMMON_PROVIDERS, + attrs = { + "actual": attr.label( + mandatory = True, + doc = "`rust_library()` target to transition to `compilation_mode=opt`.", + providers = COMMON_PROVIDERS, + cfg = _change_compilation_mode(compilation_mode), + ), + "_allowlist_function_transition": attr.label( + default = "@bazel_tools//tools/allowlists/function_transition_allowlist", + ), + }, + doc = "Transitions a Rust library crate to the `compilation_mode=opt`.", + ) + +transition_alias_dbg = _transition_alias_rule("dbg") +transition_alias_fastbuild = _transition_alias_rule("fastbuild") +transition_alias_opt = _transition_alias_rule("opt") diff --git a/bazel/cargo/wasmtime/remote/crates.bzl b/bazel/cargo/wasmtime/remote/crates.bzl index 27c0e39a4..c2726d29f 100644 --- a/bazel/cargo/wasmtime/remote/crates.bzl +++ b/bazel/cargo/wasmtime/remote/crates.bzl @@ -15,6 +15,11 @@ load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:defs.bzl", _crate_reposi load("@rules_rust//crate_universe/private:crates_vendor.bzl", "crates_vendor_remote_repository") def crate_repositories(): + """Generates repositories for vendored crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( crates_vendor_remote_repository, name = "cu", @@ -22,4 +27,6 @@ def crate_repositories(): defs_module = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:defs.bzl"), ) - _crate_repositories() + direct_deps = [struct(repo = "cu", is_dev_dep = False)] + direct_deps.extend(_crate_repositories()) + return direct_deps diff --git a/bazel/cargo/wasmtime/remote/defs.bzl b/bazel/cargo/wasmtime/remote/defs.bzl index fc84e568a..fec029861 100644 --- a/bazel/cargo/wasmtime/remote/defs.bzl +++ b/bazel/cargo/wasmtime/remote/defs.bzl @@ -296,10 +296,10 @@ def aliases( _NORMAL_DEPENDENCIES = { "bazel/cargo/wasmtime": { _COMMON_CONDITION: { - "anyhow": "@cu__anyhow-1.0.86//:anyhow", - "env_logger": "@cu__env_logger-0.10.2//:env_logger", - "once_cell": "@cu__once_cell-1.19.0//:once_cell", - "wasmtime": "@cu__wasmtime-9.0.4//:wasmtime", + "anyhow": Label("@cu__anyhow-1.0.86//:anyhow"), + "env_logger": Label("@cu__env_logger-0.10.2//:env_logger"), + "once_cell": Label("@cu__once_cell-1.19.0//:once_cell"), + "wasmtime": Label("@cu__wasmtime-9.0.4//:wasmtime"), }, }, } @@ -324,7 +324,7 @@ _NORMAL_DEV_ALIASES = { _PROC_MACRO_DEPENDENCIES = { "bazel/cargo/wasmtime": { _COMMON_CONDITION: { - "wasmtime-c-api-macros": "@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros", + "wasmtime-c-api-macros": Label("@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros"), }, }, } @@ -365,41 +365,79 @@ _BUILD_PROC_MACRO_ALIASES = { } _CONDITIONS = { + "aarch64-apple-darwin": ["@rules_rust//rust/platform:aarch64-apple-darwin"], + "aarch64-apple-ios": ["@rules_rust//rust/platform:aarch64-apple-ios"], + "aarch64-apple-ios-sim": ["@rules_rust//rust/platform:aarch64-apple-ios-sim"], + "aarch64-fuchsia": ["@rules_rust//rust/platform:aarch64-fuchsia"], + "aarch64-linux-android": ["@rules_rust//rust/platform:aarch64-linux-android"], "aarch64-pc-windows-gnullvm": [], + "aarch64-pc-windows-msvc": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], + "aarch64-unknown-linux-gnu": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu"], + "aarch64-unknown-nixos-gnu": ["@rules_rust//rust/platform:aarch64-unknown-nixos-gnu"], + "aarch64-unknown-nto-qnx710": ["@rules_rust//rust/platform:aarch64-unknown-nto-qnx710"], + "arm-unknown-linux-gnueabi": ["@rules_rust//rust/platform:arm-unknown-linux-gnueabi"], + "armv7-linux-androideabi": ["@rules_rust//rust/platform:armv7-linux-androideabi"], + "armv7-unknown-linux-gnueabi": ["@rules_rust//rust/platform:armv7-unknown-linux-gnueabi"], "cfg(all(any(target_arch = \"x86_64\", target_arch = \"arm64ec\"), target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], - "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], - "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], - "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], - "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(all(target_arch = \"aarch64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], "cfg(all(target_arch = \"x86\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], - "cfg(all(target_arch = \"x86_64\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(all(target_arch = \"x86_64\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(all(target_arch = \"x86_64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], "cfg(any())": [], "cfg(any(target_arch = \"s390x\", target_arch = \"riscv64\"))": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu"], - "cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\", target_os = \"android\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\", target_os = \"android\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(any(target_os = \"macos\", target_os = \"ios\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios"], - "cfg(any(unix, target_os = \"wasi\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], - "cfg(not(all(target_arch = \"arm\", target_os = \"none\")))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], - "cfg(not(windows))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(any(unix, target_os = \"wasi\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "cfg(not(all(target_arch = \"arm\", target_os = \"none\")))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(not(windows))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(target_os = \"hermit\")": [], "cfg(target_os = \"macos\")": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin"], "cfg(target_os = \"wasi\")": ["@rules_rust//rust/platform:wasm32-wasi"], "cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], - "cfg(unix)": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "cfg(unix)": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(windows)": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "i686-apple-darwin": ["@rules_rust//rust/platform:i686-apple-darwin"], + "i686-linux-android": ["@rules_rust//rust/platform:i686-linux-android"], "i686-pc-windows-gnullvm": [], + "i686-pc-windows-msvc": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], + "i686-unknown-freebsd": ["@rules_rust//rust/platform:i686-unknown-freebsd"], + "i686-unknown-linux-gnu": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], + "powerpc-unknown-linux-gnu": ["@rules_rust//rust/platform:powerpc-unknown-linux-gnu"], + "riscv32imc-unknown-none-elf": ["@rules_rust//rust/platform:riscv32imc-unknown-none-elf"], + "riscv64gc-unknown-none-elf": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf"], + "s390x-unknown-linux-gnu": ["@rules_rust//rust/platform:s390x-unknown-linux-gnu"], + "thumbv7em-none-eabi": ["@rules_rust//rust/platform:thumbv7em-none-eabi"], + "thumbv8m.main-none-eabi": ["@rules_rust//rust/platform:thumbv8m.main-none-eabi"], + "wasm32-unknown-unknown": ["@rules_rust//rust/platform:wasm32-unknown-unknown"], + "wasm32-wasi": ["@rules_rust//rust/platform:wasm32-wasi"], + "x86_64-apple-darwin": ["@rules_rust//rust/platform:x86_64-apple-darwin"], + "x86_64-apple-ios": ["@rules_rust//rust/platform:x86_64-apple-ios"], + "x86_64-fuchsia": ["@rules_rust//rust/platform:x86_64-fuchsia"], + "x86_64-linux-android": ["@rules_rust//rust/platform:x86_64-linux-android"], "x86_64-pc-windows-gnullvm": [], + "x86_64-pc-windows-msvc": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], + "x86_64-unknown-freebsd": ["@rules_rust//rust/platform:x86_64-unknown-freebsd"], + "x86_64-unknown-linux-gnu": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu"], + "x86_64-unknown-nixos-gnu": ["@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], + "x86_64-unknown-none": ["@rules_rust//rust/platform:x86_64-unknown-none"], } ############################################################################### def crate_repositories(): - """A macro for defining repositories for all generated crates""" + """A macro for defining repositories for all generated crates. + + Returns: + A list of repos visible to the module through the module extension. + """ maybe( http_archive, name = "cu__addr2line-0.19.0", @@ -1363,7 +1401,7 @@ def crate_repositories(): maybe( new_git_repository, name = "cu__wasmtime-c-api-macros-0.0.0", - tag = "v9.0.3", + commit = "271b605e8d3d44c5d0a39bb4e65c3efb3869ff74", init_submodules = True, remote = "https://github.com/bytecodealliance/wasmtime", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.0.0.bazel"), @@ -1669,3 +1707,11 @@ def crate_repositories(): strip_prefix = "zerocopy-derive-0.7.35", build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.zerocopy-derive-0.7.35.bazel"), ) + + return [ + struct(repo = "cu__anyhow-1.0.86", is_dev_dep = False), + struct(repo = "cu__env_logger-0.10.2", is_dev_dep = False), + struct(repo = "cu__once_cell-1.19.0", is_dev_dep = False), + struct(repo = "cu__wasmtime-9.0.4", is_dev_dep = False), + struct(repo = "cu__wasmtime-c-api-macros-0.0.0", is_dev_dep = False), + ] diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 33237431f..7b5c5fcbd 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -37,9 +37,9 @@ def proxy_wasm_cpp_host_dependencies(): extra_target_triples = [ "aarch64-unknown-linux-gnu", "wasm32-unknown-unknown", - "wasm32-wasi", + "wasm32-wasi", # TODO: Change to wasm32-wasip1 once https://github.com/bazelbuild/rules_rust/issues/2782 is fixed ], - version = "1.68.0", + version = "1.77.2", ) rust_repository_set( name = "rust_linux_s390x", @@ -48,7 +48,7 @@ def proxy_wasm_cpp_host_dependencies(): "wasm32-unknown-unknown", "wasm32-wasi", ], - version = "1.68.0", + version = "1.77.2", ) crate_universe_dependencies(bootstrap = True) diff --git a/bazel/external/rules_rust.patch b/bazel/external/rules_rust.patch index 67689bec2..a9a57c931 100644 --- a/bazel/external/rules_rust.patch +++ b/bazel/external/rules_rust.patch @@ -1,13 +1,13 @@ # https://github.com/bazelbuild/rules_rust/pull/1315 diff --git a/rust/private/rustc.bzl b/rust/private/rustc.bzl -index 6cdbefeb..284d4afa 100644 +index bfd96ed9..d7e38658 100644 --- a/rust/private/rustc.bzl +++ b/rust/private/rustc.bzl -@@ -1024,7 +1024,7 @@ def rustc_compile_action( - ), - ] - +@@ -1507,7 +1507,7 @@ def rustc_compile_action( + }) + crate_info = rust_common.create_crate_info(**crate_info_dict) + - if crate_info.type in ["staticlib", "cdylib"]: + if crate_info.type in ["staticlib", "cdylib"] and not out_binary: # These rules are not supposed to be depended on by other rust targets, and diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 79e2fd59d..2586ed21b 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -90,13 +90,14 @@ def proxy_wasm_cpp_host_repositories(): url = "https://github.com/bazelbuild/rules_python/releases/download/0.34.0/rules_python-0.34.0.tar.gz", ) + # Keep at 0.42 one because https://github.com/bazelbuild/rules_rust/issues/2665 + # manifests at 0.43 maybe( http_archive, name = "rules_rust", - sha256 = "e3fe2a255589d128c5e59e407ee57c832533f25ce14cc23605d368cf507ce08d", - strip_prefix = "rules_rust-0.24.1", + integrity = "sha256-JLN47ZcAbx9wEr5Jiib4HduZATGLiDgK7oUi/fvotzU=", # NOTE: Update Rust version in bazel/dependencies.bzl. - url = "https://github.com/bazelbuild/rules_rust/archive/0.24.1.tar.gz", + url = "https://github.com/bazelbuild/rules_rust/releases/download/0.42.1/rules_rust-v0.42.1.tar.gz", patches = ["@proxy_wasm_cpp_host//bazel/external:rules_rust.patch"], patch_args = ["-p1"], ) diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 876908515..16b4f763a 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -142,7 +142,7 @@ TEST_P(TestVm, WasmMemoryLimit) { // Backtrace if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); - EXPECT_TRUE(host->isErrorLogged("rust_oom")); + EXPECT_TRUE(host->isErrorLogged("rg_oom")); EXPECT_TRUE(host->isErrorLogged(" - alloc::alloc::handle_alloc_error")); } } From 21a5b089f136712f74bfa03cde43ae8d82e066b6 Mon Sep 17 00:00:00 2001 From: Keith Mattix II Date: Wed, 4 Sep 2024 10:33:20 -0500 Subject: [PATCH 264/287] Update wasmtime (v24.0.0) (#406) Removes Wasmtime + Windows CI because rules_rust has recently dropped Windows: https://github.com/bazelbuild/rules_rust/blob/main/docs/index.md#supported-platforms Signed-off-by: Keith Mattix II --- .github/workflows/test.yml | 7 - bazel/cargo/wasmtime/Cargo.Bazel.lock | 725 +++++++--------- bazel/cargo/wasmtime/Cargo.toml | 10 +- .../remote/BUILD.addr2line-0.19.0.bazel | 47 - bazel/cargo/wasmtime/remote/BUILD.bazel | 16 +- .../wasmtime/remote/BUILD.bincode-1.3.3.bazel | 47 - .../remote/BUILD.bitflags-2.6.0.bazel | 78 +- ...LD.cc-1.1.6.bazel => BUILD.cc-1.1.7.bazel} | 2 +- ...ros-0.1.1.bazel => BUILD.cobs-0.2.3.bazel} | 6 +- .../remote/BUILD.cpp_demangle-0.3.5.bazel | 98 --- ... => BUILD.cranelift-bforest-0.111.0.bazel} | 4 +- ...l => BUILD.cranelift-bitset-0.111.0.bazel} | 15 +- ... => BUILD.cranelift-codegen-0.111.0.bazel} | 34 +- ...UILD.cranelift-codegen-meta-0.111.0.bazel} | 4 +- ...LD.cranelift-codegen-shared-0.111.0.bazel} | 2 +- ... => BUILD.cranelift-control-0.111.0.bazel} | 6 +- .../BUILD.cranelift-entity-0.111.0.bazel | 56 ++ ...=> BUILD.cranelift-frontend-0.111.0.bazel} | 6 +- ...zel => BUILD.cranelift-isle-0.111.0.bazel} | 6 +- ...l => BUILD.cranelift-native-0.111.0.bazel} | 6 +- ...zel => BUILD.cranelift-wasm-0.111.0.bazel} | 14 +- .../wasmtime/remote/BUILD.debugid-0.8.0.bazel | 47 - ....3.bazel => BUILD.embedded-io-0.4.0.bazel} | 8 +- ....24.bazel => BUILD.equivalent-1.0.1.bazel} | 6 +- ...el => BUILD.fallible-iterator-0.3.0.bazel} | 5 +- .../wasmtime/remote/BUILD.fxhash-0.2.1.bazel | 47 - .../remote/BUILD.getrandom-0.2.15.bazel | 127 --- .../wasmtime/remote/BUILD.gimli-0.27.3.bazel | 58 -- ...-0.1.23.bazel => BUILD.gimli-0.29.0.bazel} | 11 +- .../remote/BUILD.hashbrown-0.13.2.bazel | 1 - ...6.4.bazel => BUILD.hashbrown-0.14.5.bazel} | 10 +- ...-preview1.bazel => BUILD.heck-0.4.1.bazel} | 6 +- ...1.3.0.bazel => BUILD.id-arena-2.2.1.bazel} | 6 +- ...0.5.0.bazel => BUILD.indexmap-2.3.0.bazel} | 15 +- .../remote/BUILD.io-lifetimes-1.0.11.bazel | 205 ----- ...0.5.bazel => BUILD.itertools-0.12.1.bazel} | 2 +- .../wasmtime/remote/BUILD.leb128-0.2.5.bazel | 44 + .../wasmtime/remote/BUILD.libc-0.2.155.bazel | 84 -- ...vc-0.48.5.bazel => BUILD.libm-0.2.8.bazel} | 22 +- .../remote/BUILD.linux-raw-sys-0.3.8.bazel | 72 -- ...ch-0.3.2.bazel => BUILD.mach2-0.4.2.bazel} | 6 +- .../remote/BUILD.memoffset-0.8.0.bazel | 98 --- ...0.30.4.bazel => BUILD.object-0.36.2.bazel} | 10 +- .../remote/BUILD.percent-encoding-2.3.1.bazel | 49 -- .../BUILD.pin-project-lite-0.2.14.bazel | 44 + ...1.8.0.bazel => BUILD.postcard-1.0.8.bazel} | 14 +- .../remote/BUILD.ppv-lite86-0.2.17.bazel | 48 - .../wasmtime/remote/BUILD.psm-0.1.21.bazel | 2 +- .../wasmtime/remote/BUILD.rand-0.8.5.bazel | 132 --- .../remote/BUILD.rand_chacha-0.3.1.bazel | 51 -- ....8.1.bazel => BUILD.regalloc2-0.9.3.bazel} | 3 +- .../remote/BUILD.rustc-hash-1.1.0.bazel | 4 + .../remote/BUILD.rustix-0.37.27.bazel | 335 ------- .../remote/BUILD.rustix-0.38.34.bazel | 66 +- ...0.48.5.bazel => BUILD.semver-1.0.23.bazel} | 16 +- .../wasmtime/remote/BUILD.serde-1.0.204.bazel | 4 +- .../remote/BUILD.serde_json-1.0.120.bazel | 8 - .../remote/BUILD.smallvec-1.13.2.bazel | 4 + ...ags-1.3.2.bazel => BUILD.sptr-0.3.2.bazel} | 6 +- .../BUILD.stable_deref_trait-1.2.0.bazel | 4 - .../wasmtime/remote/BUILD.syn-2.0.72.bazel | 3 + ...zel => BUILD.target-lexicon-0.12.16.bazel} | 10 +- ...1.2.1.bazel => BUILD.tracing-0.1.40.bazel} | 15 +- ... => BUILD.tracing-attributes-0.1.27.bazel} | 19 +- ....bazel => BUILD.tracing-core-0.1.32.bazel} | 10 +- .../remote/BUILD.unicode-bidi-0.3.15.bazel | 48 - .../remote/BUILD.unicode-xid-0.2.4.bazel | 44 + .../wasmtime/remote/BUILD.url-2.5.2.bazel | 52 -- .../wasmtime/remote/BUILD.uuid-1.10.0.bazel | 48 - ...bazel => BUILD.wasm-encoder-0.215.0.bazel} | 13 +- .../remote/BUILD.wasmparser-0.103.0.bazel | 48 - ...0.bazel => BUILD.wasmparser-0.215.0.bazel} | 18 +- .../remote/BUILD.wasmprinter-0.215.0.bazel | 49 ++ ....0.4.bazel => BUILD.wasmtime-24.0.0.bazel} | 130 ++- .../remote/BUILD.wasmtime-9.0.4.bazel | 128 --- ...=> BUILD.wasmtime-asm-macros-24.0.0.bazel} | 2 +- ... BUILD.wasmtime-c-api-macros-24.0.0.bazel} | 2 +- ...ILD.wasmtime-component-macro-24.0.0.bazel} | 42 +- ...BUILD.wasmtime-component-util-24.0.0.bazel | 44 + ... => BUILD.wasmtime-cranelift-24.0.0.bazel} | 32 +- ...UILD.wasmtime-cranelift-shared-9.0.4.bazel | 54 -- .../BUILD.wasmtime-environ-24.0.0.bazel | 68 ++ .../remote/BUILD.wasmtime-jit-9.0.4.bazel | 71 -- ...asmtime-jit-icache-coherence-24.0.0.bazel} | 9 +- .../remote/BUILD.wasmtime-slab-24.0.0.bazel | 44 + .../remote/BUILD.wasmtime-types-24.0.0.bazel | 57 ++ ...mtime-versioned-export-macros-24.0.0.bazel | 49 ++ .../BUILD.wasmtime-wit-bindgen-24.0.0.bazel | 50 ++ .../remote/BUILD.windows-sys-0.48.0.bazel | 62 -- .../remote/BUILD.windows-sys-0.52.0.bazel | 7 +- .../remote/BUILD.windows-targets-0.48.5.bazel | 65 -- ...BUILD.windows_aarch64_gnullvm-0.48.5.bazel | 89 -- .../BUILD.windows_aarch64_msvc-0.48.5.bazel | 89 -- .../BUILD.windows_x86_64_gnu-0.48.5.bazel | 89 -- .../BUILD.windows_x86_64_gnullvm-0.48.5.bazel | 89 -- .../BUILD.windows_x86_64_msvc-0.48.5.bazel | 89 -- ...4.bazel => BUILD.wit-parser-0.215.0.bazel} | 23 +- bazel/cargo/wasmtime/remote/defs.bzl | 818 +++++++----------- bazel/external/wasm-c-api.BUILD | 60 -- bazel/external/wasmtime.BUILD | 60 +- bazel/repositories.bzl | 19 +- src/wasmtime/types.h | 2 +- src/wasmtime/wasmtime.cc | 6 +- 103 files changed, 1721 insertions(+), 3874 deletions(-) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.cc-1.1.6.bazel => BUILD.cc-1.1.7.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.tinyvec_macros-0.1.1.bazel => BUILD.cobs-0.2.3.bazel} (92%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-bforest-0.96.4.bazel => BUILD.cranelift-bforest-0.111.0.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-types-9.0.4.bazel => BUILD.cranelift-bitset-0.111.0.bazel} (82%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-0.96.4.bazel => BUILD.cranelift-codegen-0.111.0.bazel} (72%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-meta-0.96.4.bazel => BUILD.cranelift-codegen-meta-0.111.0.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-codegen-shared-0.96.4.bazel => BUILD.cranelift-codegen-shared-0.111.0.bazel} (97%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-control-0.96.4.bazel => BUILD.cranelift-control-0.111.0.bazel} (92%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.111.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-frontend-0.96.4.bazel => BUILD.cranelift-frontend-0.111.0.bazel} (89%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-isle-0.96.4.bazel => BUILD.cranelift-isle-0.111.0.bazel} (95%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-native-0.96.4.bazel => BUILD.cranelift-native-0.111.0.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-wasm-0.96.4.bazel => BUILD.cranelift-wasm-0.111.0.bazel} (77%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.hashbrown-0.12.3.bazel => BUILD.embedded-io-0.4.0.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.rustc-demangle-0.1.24.bazel => BUILD.equivalent-1.0.1.bazel} (92%) rename bazel/cargo/wasmtime/remote/{BUILD.fallible-iterator-0.2.0.bazel => BUILD.fallible-iterator-0.3.0.bazel} (94%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel rename bazel/cargo/wasmtime/remote/{BUILD.unicode-normalization-0.1.23.bazel => BUILD.gimli-0.29.0.bazel} (86%) rename bazel/cargo/wasmtime/remote/{BUILD.cranelift-entity-0.96.4.bazel => BUILD.hashbrown-0.14.5.bazel} (88%) rename bazel/cargo/wasmtime/remote/{BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel => BUILD.heck-0.4.1.bazel} (91%) rename bazel/cargo/wasmtime/remote/{BUILD.autocfg-1.3.0.bazel => BUILD.id-arena-2.2.1.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.idna-0.5.0.bazel => BUILD.indexmap-2.3.0.bazel} (81%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel rename bazel/cargo/wasmtime/remote/{BUILD.itertools-0.10.5.bazel => BUILD.itertools-0.12.1.bazel} (98%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.leb128-0.2.5.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows_i686_msvc-0.48.5.bazel => BUILD.libm-0.2.8.bazel} (85%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel rename bazel/cargo/wasmtime/remote/{BUILD.mach-0.3.2.bazel => BUILD.mach2-0.4.2.bazel} (96%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.object-0.30.4.bazel => BUILD.object-0.36.2.bazel} (88%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.pin-project-lite-0.2.14.bazel rename bazel/cargo/wasmtime/remote/{BUILD.tinyvec-1.8.0.bazel => BUILD.postcard-1.0.8.bazel} (82%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel rename bazel/cargo/wasmtime/remote/{BUILD.regalloc2-0.8.1.bazel => BUILD.regalloc2-0.9.3.bazel} (96%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel rename bazel/cargo/wasmtime/remote/{BUILD.windows_i686_gnu-0.48.5.bazel => BUILD.semver-1.0.23.bazel} (86%) rename bazel/cargo/wasmtime/remote/{BUILD.bitflags-1.3.2.bazel => BUILD.sptr-0.3.2.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.target-lexicon-0.12.15.bazel => BUILD.target-lexicon-0.12.16.bazel} (93%) rename bazel/cargo/wasmtime/remote/{BUILD.form_urlencoded-1.2.1.bazel => BUILD.tracing-0.1.40.bazel} (77%) rename bazel/cargo/wasmtime/remote/{BUILD.rand_core-0.6.4.bazel => BUILD.tracing-attributes-0.1.27.bazel} (77%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-debug-9.0.4.bazel => BUILD.tracing-core-0.1.32.bazel} (88%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.4.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.byteorder-1.5.0.bazel => BUILD.wasm-encoder-0.215.0.bazel} (88%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.fxprof-processed-profile-0.6.0.bazel => BUILD.wasmparser-0.215.0.bazel} (77%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmprinter-0.215.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-runtime-9.0.4.bazel => BUILD.wasmtime-24.0.0.bazel} (50%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-asm-macros-9.0.4.bazel => BUILD.wasmtime-asm-macros-24.0.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-c-api-macros-0.0.0.bazel => BUILD.wasmtime-c-api-macros-24.0.0.bazel} (98%) rename bazel/cargo/wasmtime/remote/{BUILD.indexmap-1.9.3.bazel => BUILD.wasmtime-component-macro-24.0.0.bazel} (70%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-component-util-24.0.0.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-cranelift-9.0.4.bazel => BUILD.wasmtime-cranelift-24.0.0.bazel} (60%) delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-24.0.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel => BUILD.wasmtime-jit-icache-coherence-24.0.0.bazel} (95%) create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-slab-24.0.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-24.0.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-versioned-export-macros-24.0.0.bazel create mode 100644 bazel/cargo/wasmtime/remote/BUILD.wasmtime-wit-bindgen-24.0.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel delete mode 100644 bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel rename bazel/cargo/wasmtime/remote/{BUILD.wasmtime-environ-9.0.4.bazel => BUILD.wit-parser-0.215.0.bazel} (71%) delete mode 100644 bazel/external/wasm-c-api.BUILD diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 66ec91bfc..13264d48f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -260,13 +260,6 @@ jobs: os: macos-13 arch: x86_64 action: test - - name: 'Wasmtime on Windows/x86_64' - engine: 'wasmtime' - repo: 'com_github_bytecodealliance_wasmtime' - os: windows-2019 - arch: x86_64 - action: test - targets: -//test/fuzz/... - name: 'WAVM on Linux/x86_64' engine: 'wavm' repo: 'com_github_wavm_wavm' diff --git a/bazel/cargo/wasmtime/Cargo.Bazel.lock b/bazel/cargo/wasmtime/Cargo.Bazel.lock index cf52418e9..93579f697 100644 --- a/bazel/cargo/wasmtime/Cargo.Bazel.lock +++ b/bazel/cargo/wasmtime/Cargo.Bazel.lock @@ -2,15 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "addr2line" -version = "0.19.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97" -dependencies = [ - "gimli", -] - [[package]] name = "ahash" version = "0.8.11" @@ -44,27 +35,6 @@ version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" -[[package]] -name = "autocfg" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0" - -[[package]] -name = "bincode" -version = "1.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad" -dependencies = [ - "serde", -] - -[[package]] -name = "bitflags" -version = "1.3.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" - [[package]] name = "bitflags" version = "2.6.0" @@ -77,17 +47,11 @@ version = "3.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" -[[package]] -name = "byteorder" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" - [[package]] name = "cc" -version = "1.1.6" +version = "1.1.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f" +checksum = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc" [[package]] name = "cfg-if" @@ -96,82 +60,93 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] -name = "cpp_demangle" -version = "0.3.5" +name = "cobs" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f" -dependencies = [ - "cfg-if", -] +checksum = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15" [[package]] name = "cranelift-bforest" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "182b82f78049f54d3aee5a19870d356ef754226665a695ce2fcdd5d55379718e" +checksum = "b80c3a50b9c4c7e5b5f73c0ed746687774fc9e36ef652b110da8daebf0c6e0e6" dependencies = [ "cranelift-entity", ] +[[package]] +name = "cranelift-bitset" +version = "0.111.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "38778758c2ca918b05acb2199134e0c561fb577c50574259b26190b6c2d95ded" +dependencies = [ + "serde", + "serde_derive", +] + [[package]] name = "cranelift-codegen" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7c027bf04ecae5b048d3554deb888061bc26f426afff47bf06d6ac933dce0a6" +checksum = "58258667ad10e468bfc13a8d620f50dfcd4bb35d668123e97defa2549b9ad397" dependencies = [ "bumpalo", "cranelift-bforest", + "cranelift-bitset", "cranelift-codegen-meta", "cranelift-codegen-shared", "cranelift-control", "cranelift-entity", "cranelift-isle", "gimli", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "log", "regalloc2", + "rustc-hash", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "649f70038235e4c81dba5680d7e5ae83e1081f567232425ab98b55b03afd9904" +checksum = "043f0b702e529dcb07ff92bd7d40e7d5317b5493595172c5eb0983343751ee06" dependencies = [ "cranelift-codegen-shared", ] [[package]] name = "cranelift-codegen-shared" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7a1d1c5ee2611c6a0bdc8d42d5d3dc5ce8bf53a8040561e26e88b9b21f966417" +checksum = "7763578888ab53eca5ce7da141953f828e82c2bfadcffc106d10d1866094ffbb" [[package]] name = "cranelift-control" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da66a68b1f48da863d1d53209b8ddb1a6236411d2d72a280ffa8c2f734f7219e" +checksum = "32db15f08c05df570f11e8ab33cb1ec449a64b37c8a3498377b77650bef33d8b" dependencies = [ "arbitrary", ] [[package]] name = "cranelift-entity" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bd897422dbb66621fa558f4d9209875530c53e3c8f4b13b2849fbb667c431a6" +checksum = "5289cdb399381a27e7bbfa1b42185916007c3d49aeef70b1d01cb4caa8010130" dependencies = [ + "cranelift-bitset", "serde", + "serde_derive", ] [[package]] name = "cranelift-frontend" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05db883114c98cfcd6959f72278d2fec42e01ea6a6982cfe4f20e88eebe86653" +checksum = "31ba8ab24eb9470477e98ddfa3c799a649ac5a0d9a2042868c4c952133c234e8" dependencies = [ "cranelift-codegen", "log", @@ -181,15 +156,15 @@ dependencies = [ [[package]] name = "cranelift-isle" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84559de86e2564152c87e299c8b2559f9107e9c6d274b24ebeb04fb0a5f4abf8" +checksum = "2b72a3c5c166a70426dcb209bdd0bb71a787c1ea76023dc0974fbabca770e8f9" [[package]] name = "cranelift-native" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f40b57f187f0fe1ffaf281df4adba2b4bc623a0f6651954da9f3c184be72761" +checksum = "46a42424c956bbc31fc5c2706073df896156c5420ae8fa2a5d48dbc7b295d71b" dependencies = [ "cranelift-codegen", "libc", @@ -198,9 +173,9 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.96.4" +version = "0.111.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f3eab6084cc789b9dd0b1316241efeb2968199fee709f4bb4fe0fb0923bb468b" +checksum = "49778df4289933d735b93c30a345513e030cf83101de0036e19b760f8aa09f68" dependencies = [ "cranelift-codegen", "cranelift-entity", @@ -221,21 +196,18 @@ dependencies = [ "cfg-if", ] -[[package]] -name = "debugid" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d" -dependencies = [ - "uuid", -] - [[package]] name = "either" version = "1.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0" +[[package]] +name = "embedded-io" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced" + [[package]] name = "env_logger" version = "0.10.2" @@ -249,6 +221,12 @@ dependencies = [ "termcolor", ] +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + [[package]] name = "errno" version = "0.3.9" @@ -256,62 +234,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys", ] [[package]] name = "fallible-iterator" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7" - -[[package]] -name = "form_urlencoded" -version = "1.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" -dependencies = [ - "percent-encoding", -] - -[[package]] -name = "fxhash" -version = "0.2.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c" -dependencies = [ - "byteorder", -] - -[[package]] -name = "fxprof-processed-profile" -version = "0.6.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd" -dependencies = [ - "bitflags 2.6.0", - "debugid", - "fxhash", - "serde", - "serde_json", -] - -[[package]] -name = "getrandom" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" -dependencies = [ - "cfg-if", - "libc", - "wasi", -] +checksum = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649" [[package]] name = "gimli" -version = "0.27.3" +version = "0.29.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" +checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" dependencies = [ "fallible-iterator", "indexmap", @@ -320,19 +256,29 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.12.3" +version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +dependencies = [ + "ahash", +] [[package]] name = "hashbrown" -version = "0.13.2" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e" +checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1" dependencies = [ "ahash", + "serde", ] +[[package]] +name = "heck" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8" + [[package]] name = "hermit-abi" version = "0.3.9" @@ -346,37 +292,22 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] -name = "idna" -version = "0.5.0" +name = "id-arena" +version = "2.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" -dependencies = [ - "unicode-bidi", - "unicode-normalization", -] +checksum = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005" [[package]] name = "indexmap" -version = "1.9.3" +version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +checksum = "de3fc2e30ba82dd1b3911c8de1ffc143c74a914a14e99514d7637e3099df5ea0" dependencies = [ - "autocfg", - "hashbrown 0.12.3", + "equivalent", + "hashbrown 0.14.5", "serde", ] -[[package]] -name = "io-lifetimes" -version = "1.0.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2" -dependencies = [ - "hermit-abi", - "libc", - "windows-sys 0.48.0", -] - [[package]] name = "is-terminal" version = "0.4.12" @@ -385,14 +316,14 @@ checksum = "f23ff5ef2b80d608d61efee834934d862cd92461afc0560dedf493e4c033738b" dependencies = [ "hermit-abi", "libc", - "windows-sys 0.52.0", + "windows-sys", ] [[package]] name = "itertools" -version = "0.10.5" +version = "0.12.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473" +checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569" dependencies = [ "either", ] @@ -403,6 +334,12 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b" +[[package]] +name = "leb128" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" + [[package]] name = "libc" version = "0.2.155" @@ -410,10 +347,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] -name = "linux-raw-sys" -version = "0.3.8" +name = "libm" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519" +checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" [[package]] name = "linux-raw-sys" @@ -428,10 +365,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] -name = "mach" -version = "0.3.2" +name = "mach2" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa" +checksum = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709" dependencies = [ "libc", ] @@ -448,26 +385,17 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b2cffa4ad52c6f791f4f8b15f0c05f9824b2ced1160e88cc393d64fff9a8ac64" dependencies = [ - "rustix 0.38.34", -] - -[[package]] -name = "memoffset" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" -dependencies = [ - "autocfg", + "rustix", ] [[package]] name = "object" -version = "0.30.4" +version = "0.36.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385" +checksum = "3f203fa8daa7bb185f760ae12bd8e097f63d17041dcdcaf675ac54cdf863170e" dependencies = [ "crc32fast", - "hashbrown 0.13.2", + "hashbrown 0.14.5", "indexmap", "memchr", ] @@ -485,16 +413,21 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] -name = "percent-encoding" -version = "2.3.1" +name = "pin-project-lite" +version = "0.2.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" [[package]] -name = "ppv-lite86" -version = "0.2.17" +name = "postcard" +version = "1.0.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" +checksum = "a55c51ee6c0db07e68448e336cf8ea4131a620edefebf9893e759b2d793420f8" +dependencies = [ + "cobs", + "embedded-io", + "serde", +] [[package]] name = "proc-macro2" @@ -523,41 +456,11 @@ dependencies = [ "proc-macro2", ] -[[package]] -name = "rand" -version = "0.8.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" -dependencies = [ - "libc", - "rand_chacha", - "rand_core", -] - -[[package]] -name = "rand_chacha" -version = "0.3.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" -dependencies = [ - "ppv-lite86", - "rand_core", -] - -[[package]] -name = "rand_core" -version = "0.6.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" -dependencies = [ - "getrandom", -] - [[package]] name = "regalloc2" -version = "0.8.1" +version = "0.9.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4a52e724646c6c0800fc456ec43b4165d2f91fba88ceaca06d9e0b400023478" +checksum = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6" dependencies = [ "hashbrown 0.13.2", "log", @@ -595,43 +498,23 @@ version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b" -[[package]] -name = "rustc-demangle" -version = "0.1.24" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f" - [[package]] name = "rustc-hash" version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" -[[package]] -name = "rustix" -version = "0.37.27" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2" -dependencies = [ - "bitflags 1.3.2", - "errno", - "io-lifetimes", - "libc", - "linux-raw-sys 0.3.8", - "windows-sys 0.48.0", -] - [[package]] name = "rustix" version = "0.38.34" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "70dc5ec042f7a43c4a73241207cecc9873a06d45debb38b329f8541d85c2730f" dependencies = [ - "bitflags 2.6.0", + "bitflags", "errno", "libc", - "linux-raw-sys 0.4.14", - "windows-sys 0.52.0", + "linux-raw-sys", + "windows-sys", ] [[package]] @@ -640,6 +523,12 @@ version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f3cb5ba0dc43242ce17de99c180e96db90b235b8a9fdc9543c96d2209116bd9f" +[[package]] +name = "semver" +version = "1.0.23" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" + [[package]] name = "serde" version = "1.0.204" @@ -682,6 +571,15 @@ name = "smallvec" version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" +dependencies = [ + "serde", +] + +[[package]] +name = "sptr" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a" [[package]] name = "stable_deref_trait" @@ -702,9 +600,9 @@ dependencies = [ [[package]] name = "target-lexicon" -version = "0.12.15" +version = "0.12.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2" +checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1" [[package]] name = "termcolor" @@ -736,25 +634,35 @@ dependencies = [ ] [[package]] -name = "tinyvec" -version = "1.8.0" +name = "tracing" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "tinyvec_macros", + "pin-project-lite", + "tracing-attributes", + "tracing-core", ] [[package]] -name = "tinyvec_macros" -version = "0.1.1" +name = "tracing-attributes" +version = "0.1.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" +checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] [[package]] -name = "unicode-bidi" -version = "0.3.15" +name = "tracing-core" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" +dependencies = [ + "once_cell", +] [[package]] name = "unicode-ident" @@ -763,30 +671,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] -name = "unicode-normalization" -version = "0.1.23" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" -dependencies = [ - "tinyvec", -] - -[[package]] -name = "url" -version = "2.5.2" +name = "unicode-xid" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c" -dependencies = [ - "form_urlencoded", - "idna", - "percent-encoding", -] - -[[package]] -name = "uuid" -version = "1.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" +checksum = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c" [[package]] name = "version_check" @@ -795,86 +683,139 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a" [[package]] -name = "wasi" -version = "0.11.0+wasi-snapshot-preview1" +name = "wasm-encoder" +version = "0.215.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" +checksum = "4fb56df3e06b8e6b77e37d2969a50ba51281029a9aeb3855e76b7f49b6418847" +dependencies = [ + "leb128", +] [[package]] name = "wasmparser" -version = "0.103.0" +version = "0.215.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c437373cac5ea84f1113d648d51f71751ffbe3d90c00ae67618cf20d0b5ee7b" +checksum = "53fbde0881f24199b81cf49b6ff8f9c145ac8eb1b7fc439adb5c099734f7d90e" dependencies = [ + "ahash", + "bitflags", + "hashbrown 0.14.5", "indexmap", - "url", + "semver", + "serde", +] + +[[package]] +name = "wasmprinter" +version = "0.215.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d8e9a325d85053408209b3d2ce5eaddd0dd6864d1cff7a007147ba073157defc" +dependencies = [ + "anyhow", + "termcolor", + "wasmparser", ] [[package]] name = "wasmtime" -version = "9.0.4" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "634357e8668774b24c80b210552f3f194e2342a065d6d83845ba22c5817d0770" +checksum = "9a5883d64dfc8423c56e3d8df27cffc44db25336aa468e8e0724fddf30a333d7" dependencies = [ "anyhow", - "bincode", + "bitflags", "bumpalo", + "cc", "cfg-if", - "fxprof-processed-profile", + "hashbrown 0.14.5", "indexmap", "libc", + "libm", "log", + "mach2", + "memfd", "object", "once_cell", "paste", + "postcard", "psm", + "rustix", "serde", - "serde_json", + "serde_derive", + "smallvec", + "sptr", "target-lexicon", "wasmparser", + "wasmtime-asm-macros", + "wasmtime-component-macro", "wasmtime-cranelift", "wasmtime-environ", - "wasmtime-jit", - "wasmtime-runtime", - "windows-sys 0.48.0", + "wasmtime-jit-icache-coherence", + "wasmtime-slab", + "wasmtime-versioned-export-macros", + "windows-sys", ] [[package]] name = "wasmtime-asm-macros" -version = "9.0.4" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d33c73c24ce79b0483a3b091a9acf88871f4490b88998e8974b22236264d304c" +checksum = "1c4dc7e2a379c0dd6be5b55857d14c4b277f43a9c429a9e14403eb61776ae3be" dependencies = [ "cfg-if", ] [[package]] name = "wasmtime-c-api-bazel" -version = "9.0.3" +version = "24.0.0" dependencies = [ "anyhow", "env_logger", + "log", "once_cell", + "tracing", "wasmtime", "wasmtime-c-api-macros", ] [[package]] name = "wasmtime-c-api-macros" -version = "0.0.0" -source = "git+https://github.com/bytecodealliance/wasmtime?tag=v9.0.3#271b605e8d3d44c5d0a39bb4e65c3efb3869ff74" +version = "24.0.0" +source = "git+https://github.com/bytecodealliance/wasmtime?tag=v24.0.0#6fc3d274c7994dad20c816ccc0739bf766b39a11" +dependencies = [ + "proc-macro2", + "quote", +] + +[[package]] +name = "wasmtime-component-macro" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4b07773d1c3dab5f014ec61316ee317aa424033e17e70a63abdf7c3a47e58fcf" dependencies = [ + "anyhow", "proc-macro2", "quote", + "syn", + "wasmtime-component-util", + "wasmtime-wit-bindgen", + "wit-parser", ] +[[package]] +name = "wasmtime-component-util" +version = "24.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e38d735320f4e83478369ce649ad8fe87c6b893220902e798547a225fc0c5874" + [[package]] name = "wasmtime-cranelift" -version = "9.0.4" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5800616a28ed6bd5e8b99ea45646c956d798ae030494ac0689bc3e45d3b689c1" +checksum = "e570d831d0785d93d7d8c722b1eb9a34e0d0c1534317666f65892818358a2da9" dependencies = [ "anyhow", + "cfg-if", "cranelift-codegen", "cranelift-control", "cranelift-entity", @@ -887,122 +828,86 @@ dependencies = [ "target-lexicon", "thiserror", "wasmparser", - "wasmtime-cranelift-shared", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-cranelift-shared" -version = "9.0.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "27e4030b959ac5c5d6ee500078977e813f8768fa2b92fc12be01856cd0c76c55" -dependencies = [ - "anyhow", - "cranelift-codegen", - "cranelift-control", - "cranelift-native", - "gimli", - "object", - "target-lexicon", "wasmtime-environ", + "wasmtime-versioned-export-macros", ] [[package]] name = "wasmtime-environ" -version = "9.0.4" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ec815d01a8d38aceb7ed4678f9ba551ae6b8a568a63810ac3ad9293b0fd01c8" +checksum = "c5fe80dfbd81687431a7d4f25929fae1ae96894786d5c96b14ae41164ee97377" dependencies = [ "anyhow", + "cranelift-bitset", "cranelift-entity", "gimli", "indexmap", "log", "object", + "postcard", "serde", + "serde_derive", "target-lexicon", - "thiserror", + "wasm-encoder", "wasmparser", + "wasmprinter", "wasmtime-types", ] [[package]] -name = "wasmtime-jit" -version = "9.0.4" +name = "wasmtime-jit-icache-coherence" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2712eafe829778b426cad0e1769fef944898923dd29f0039e34e0d53ba72b234" +checksum = "d15de8429db996f0d17a4163a35eccc3f874cbfb50f29c379951ea1bbb39452e" dependencies = [ - "addr2line", "anyhow", - "bincode", "cfg-if", - "cpp_demangle", - "gimli", - "log", - "object", - "rustc-demangle", - "serde", - "target-lexicon", - "wasmtime-environ", - "wasmtime-jit-icache-coherence", - "wasmtime-runtime", - "windows-sys 0.48.0", + "libc", + "windows-sys", ] [[package]] -name = "wasmtime-jit-debug" -version = "9.0.4" +name = "wasmtime-slab" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fb78eacf4a6e47260d8ef8cc81ea8ddb91397b2e848b3fb01567adebfe89b5" -dependencies = [ - "once_cell", -] +checksum = "1f68d38fa6b30c5e1fc7d608263062997306f79e577ebd197ddcd6b0f55d87d1" [[package]] -name = "wasmtime-jit-icache-coherence" -version = "9.0.4" +name = "wasmtime-types" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1364900b05f7d6008516121e8e62767ddb3e176bdf4c84dfa85da1734aeab79" +checksum = "6634e7079d9c5cfc81af8610ed59b488cc5b7f9777a2f4c1667a2565c2e45249" dependencies = [ - "cfg-if", - "libc", - "windows-sys 0.48.0", + "anyhow", + "cranelift-entity", + "serde", + "serde_derive", + "smallvec", + "wasmparser", ] [[package]] -name = "wasmtime-runtime" -version = "9.0.4" +name = "wasmtime-versioned-export-macros" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a16ffe4de9ac9669175c0ea5c6c51ffc596dfb49320aaa6f6c57eff58cef069" +checksum = "3850e3511d6c7f11a72d571890b0ed5f6204681f7f050b9de2690e7f13123fed" dependencies = [ - "anyhow", - "cc", - "cfg-if", - "indexmap", - "libc", - "log", - "mach", - "memfd", - "memoffset", - "paste", - "rand", - "rustix 0.37.27", - "wasmtime-asm-macros", - "wasmtime-environ", - "wasmtime-jit-debug", - "windows-sys 0.48.0", + "proc-macro2", + "quote", + "syn", ] [[package]] -name = "wasmtime-types" -version = "9.0.4" +name = "wasmtime-wit-bindgen" +version = "24.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19961c9a3b04d5e766875a5c467f6f5d693f508b3e81f8dc4a1444aa94f041c9" +checksum = "3cb331ac7ed1d5ba49cddcdb6b11973752a857148858bb308777d2fc5584121f" dependencies = [ - "cranelift-entity", - "serde", - "thiserror", - "wasmparser", + "anyhow", + "heck", + "indexmap", + "wit-parser", ] [[package]] @@ -1011,16 +916,7 @@ version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b" dependencies = [ - "windows-sys 0.52.0", -] - -[[package]] -name = "windows-sys" -version = "0.48.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" -dependencies = [ - "windows-targets 0.48.5", + "windows-sys", ] [[package]] @@ -1029,22 +925,7 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets 0.52.6", -] - -[[package]] -name = "windows-targets" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" -dependencies = [ - "windows_aarch64_gnullvm 0.48.5", - "windows_aarch64_msvc 0.48.5", - "windows_i686_gnu 0.48.5", - "windows_i686_msvc 0.48.5", - "windows_x86_64_gnu 0.48.5", - "windows_x86_64_gnullvm 0.48.5", - "windows_x86_64_msvc 0.48.5", + "windows-targets", ] [[package]] @@ -1053,46 +934,28 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm 0.52.6", - "windows_aarch64_msvc 0.52.6", - "windows_i686_gnu 0.52.6", + "windows_aarch64_gnullvm", + "windows_aarch64_msvc", + "windows_i686_gnu", "windows_i686_gnullvm", - "windows_i686_msvc 0.52.6", - "windows_x86_64_gnu 0.52.6", - "windows_x86_64_gnullvm 0.52.6", - "windows_x86_64_msvc 0.52.6", + "windows_i686_msvc", + "windows_x86_64_gnu", + "windows_x86_64_gnullvm", + "windows_x86_64_msvc", ] -[[package]] -name = "windows_aarch64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" - [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" -[[package]] -name = "windows_aarch64_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" - [[package]] name = "windows_aarch64_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" -[[package]] -name = "windows_i686_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" - [[package]] name = "windows_i686_gnu" version = "0.52.6" @@ -1105,36 +968,18 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" -[[package]] -name = "windows_i686_msvc" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" - [[package]] name = "windows_i686_msvc" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" -[[package]] -name = "windows_x86_64_gnu" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" - [[package]] name = "windows_x86_64_gnu" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" -[[package]] -name = "windows_x86_64_gnullvm" -version = "0.48.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" - [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" @@ -1143,15 +988,27 @@ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" [[package]] name = "windows_x86_64_msvc" -version = "0.48.5" +version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" [[package]] -name = "windows_x86_64_msvc" -version = "0.52.6" +name = "wit-parser" +version = "0.215.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +checksum = "935a97eaffd57c3b413aa510f8f0b550a4a9fe7d59e79cd8b89a83dcb860321f" +dependencies = [ + "anyhow", + "id-arena", + "indexmap", + "log", + "semver", + "serde", + "serde_derive", + "serde_json", + "unicode-xid", + "wasmparser", +] [[package]] name = "zerocopy" diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 74b561763..8abf88812 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,8 +1,8 @@ [package] edition = "2021" name = "wasmtime-c-api-bazel" -version = "9.0.3" -rust-version = "1.66.0" +version = "24.0.0" +rust-version = "1.78.0" [lib] path = "fake_lib.rs" @@ -11,5 +11,7 @@ path = "fake_lib.rs" env_logger = "0.10" anyhow = "1.0" once_cell = "1.12" -wasmtime = {version = "9.0.3", default-features = false, features = ['cranelift']} -wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v9.0.3"} +log = {version = "0.4.8", default-features = false} +tracing = "0.1.26" +wasmtime = {version = "24.0.0", default-features = false, features = ['cranelift', 'runtime', 'gc', 'std']} +wasmtime-c-api-macros = {git = "https://github.com/bytecodealliance/wasmtime", tag = "v24.0.0"} diff --git a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel deleted file mode 100644 index ff529c9e8..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.addr2line-0.19.0.bazel +++ /dev/null @@ -1,47 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "addr2line", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=addr2line", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.19.0", - deps = [ - "@cu__gimli-0.27.3//:gimli", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bazel b/bazel/cargo/wasmtime/remote/BUILD.bazel index 59ac51f8d..db793c6e6 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bazel @@ -43,20 +43,32 @@ alias( tags = ["manual"], ) +alias( + name = "log", + actual = "@cu__log-0.4.22//:log", + tags = ["manual"], +) + alias( name = "once_cell", actual = "@cu__once_cell-1.19.0//:once_cell", tags = ["manual"], ) +alias( + name = "tracing", + actual = "@cu__tracing-0.1.40//:tracing", + tags = ["manual"], +) + alias( name = "wasmtime", - actual = "@cu__wasmtime-9.0.4//:wasmtime", + actual = "@cu__wasmtime-24.0.0//:wasmtime", tags = ["manual"], ) alias( name = "wasmtime-c-api-macros", - actual = "@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros", + actual = "@cu__wasmtime-c-api-macros-24.0.0//:wasmtime_c_api_macros", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel deleted file mode 100644 index 2287a26f4..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.bincode-1.3.3.bazel +++ /dev/null @@ -1,47 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "bincode", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=bincode", - "manual", - "noclippy", - "norustfmt", - ], - version = "1.3.3", - deps = [ - "@cu__serde-1.0.204//:serde", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel index cb8de7812..31767882b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.bitflags-2.6.0.bazel @@ -28,9 +28,81 @@ rust_library( "WORKSPACE.bazel", ], ), - crate_features = [ - "std", - ], + crate_features = select({ + "@rules_rust//rust/platform:aarch64-apple-darwin": [ + "std", # aarch64-apple-darwin + ], + "@rules_rust//rust/platform:aarch64-apple-ios": [ + "std", # aarch64-apple-ios + ], + "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ + "std", # aarch64-apple-ios-sim + ], + "@rules_rust//rust/platform:aarch64-fuchsia": [ + "std", # aarch64-fuchsia + ], + "@rules_rust//rust/platform:aarch64-linux-android": [ + "std", # aarch64-linux-android + ], + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "std", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "std", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ + "std", # aarch64-unknown-nto-qnx710 + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "std", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-linux-androideabi": [ + "std", # armv7-linux-androideabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "std", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-apple-darwin": [ + "std", # i686-apple-darwin + ], + "@rules_rust//rust/platform:i686-linux-android": [ + "std", # i686-linux-android + ], + "@rules_rust//rust/platform:i686-unknown-freebsd": [ + "std", # i686-unknown-freebsd + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "std", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "std", # powerpc-unknown-linux-gnu + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "std", # s390x-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-apple-darwin": [ + "std", # x86_64-apple-darwin + ], + "@rules_rust//rust/platform:x86_64-apple-ios": [ + "std", # x86_64-apple-ios + ], + "@rules_rust//rust/platform:x86_64-fuchsia": [ + "std", # x86_64-fuchsia + ], + "@rules_rust//rust/platform:x86_64-linux-android": [ + "std", # x86_64-linux-android + ], + "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ + "std", # x86_64-unknown-freebsd + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "std", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "std", # x86_64-unknown-nixos-gnu + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2021", rustc_flags = [ diff --git a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.7.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cc-1.1.7.bazel index 64ef363ba..14f88e535 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.6.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cc-1.1.7.bazel @@ -40,5 +40,5 @@ rust_library( "noclippy", "norustfmt", ], - version = "1.1.6", + version = "1.1.7", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.cobs-0.2.3.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cobs-0.2.3.bazel index 52641b700..00da2e823 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec_macros-0.1.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cobs-0.2.3.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "tinyvec_macros", + name = "cobs", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -35,10 +35,10 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=tinyvec_macros", + "crate-name=cobs", "manual", "noclippy", "norustfmt", ], - version = "0.1.1", + version = "0.2.3", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel deleted file mode 100644 index b9f77aaaa..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.cpp_demangle-0.3.5.bazel +++ /dev/null @@ -1,98 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "cpp_demangle", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=cpp_demangle", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.3.5", - deps = [ - "@cu__cfg-if-1.0.0//:cfg_if", - "@cu__cpp_demangle-0.3.5//:build_script_build", - ], -) - -cargo_build_script( - name = "cpp_demangle_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_features = [ - "default", - "std", - ], - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=cpp_demangle", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.3.5", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":cpp_demangle_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.111.0.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.111.0.bazel index afd0429ad..a4651a993 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bforest-0.111.0.bazel @@ -40,8 +40,8 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ - "@cu__cranelift-entity-0.96.4//:cranelift_entity", + "@cu__cranelift-entity-0.111.0//:cranelift_entity", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bitset-0.111.0.bazel similarity index 82% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-bitset-0.111.0.bazel index 971ecd7d8..7d70417f0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-bitset-0.111.0.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "wasmtime_types", + name = "cranelift_bitset", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -28,23 +28,26 @@ rust_library( "WORKSPACE.bazel", ], ), + crate_features = [ + "enable-serde", + ], crate_root = "src/lib.rs", edition = "2021", + proc_macro_deps = [ + "@cu__serde_derive-1.0.204//:serde_derive", + ], rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-bazel", - "crate-name=wasmtime-types", + "crate-name=cranelift-bitset", "manual", "noclippy", "norustfmt", ], - version = "9.0.4", + version = "0.111.0", deps = [ - "@cu__cranelift-entity-0.96.4//:cranelift_entity", "@cu__serde-1.0.204//:serde", - "@cu__thiserror-1.0.63//:thiserror", - "@cu__wasmparser-0.103.0//:wasmparser", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.111.0.bazel similarity index 72% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.111.0.bazel index c4e2ce3a5..cb569892f 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-0.111.0.bazel @@ -30,9 +30,10 @@ rust_library( ], ), crate_features = [ - "default", "gimli", + "host-arch", "std", + "trace-log", "unwind", ], crate_root = "src/lib.rs", @@ -47,20 +48,22 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ "@cu__bumpalo-3.16.0//:bumpalo", - "@cu__cranelift-bforest-0.96.4//:cranelift_bforest", - "@cu__cranelift-codegen-0.96.4//:build_script_build", - "@cu__cranelift-codegen-shared-0.96.4//:cranelift_codegen_shared", - "@cu__cranelift-control-0.96.4//:cranelift_control", - "@cu__cranelift-entity-0.96.4//:cranelift_entity", - "@cu__gimli-0.27.3//:gimli", - "@cu__hashbrown-0.13.2//:hashbrown", + "@cu__cranelift-bforest-0.111.0//:cranelift_bforest", + "@cu__cranelift-bitset-0.111.0//:cranelift_bitset", + "@cu__cranelift-codegen-0.111.0//:build_script_build", + "@cu__cranelift-codegen-shared-0.111.0//:cranelift_codegen_shared", + "@cu__cranelift-control-0.111.0//:cranelift_control", + "@cu__cranelift-entity-0.111.0//:cranelift_entity", + "@cu__gimli-0.29.0//:gimli", + "@cu__hashbrown-0.14.5//:hashbrown", "@cu__log-0.4.22//:log", - "@cu__regalloc2-0.8.1//:regalloc2", + "@cu__regalloc2-0.9.3//:regalloc2", + "@cu__rustc-hash-1.1.0//:rustc_hash", "@cu__smallvec-1.13.2//:smallvec", - "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__target-lexicon-0.12.16//:target_lexicon", ], ) @@ -71,9 +74,10 @@ cargo_build_script( allow_empty = False, ), crate_features = [ - "default", "gimli", + "host-arch", "std", + "trace-log", "unwind", ], crate_name = "build_script_build", @@ -101,11 +105,11 @@ cargo_build_script( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", visibility = ["//visibility:private"], deps = [ - "@cu__cranelift-codegen-meta-0.96.4//:cranelift_codegen_meta", - "@cu__cranelift-isle-0.96.4//:cranelift_isle", + "@cu__cranelift-codegen-meta-0.111.0//:cranelift_codegen_meta", + "@cu__cranelift-isle-0.111.0//:cranelift_isle", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.111.0.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.111.0.bazel index 3a2667b6c..9ccb599a1 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-meta-0.111.0.bazel @@ -40,8 +40,8 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ - "@cu__cranelift-codegen-shared-0.96.4//:cranelift_codegen_shared", + "@cu__cranelift-codegen-shared-0.111.0//:cranelift_codegen_shared", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.111.0.bazel similarity index 97% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.111.0.bazel index ee874dbbe..8820100ff 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-codegen-shared-0.111.0.bazel @@ -40,5 +40,5 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.111.0.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.111.0.bazel index 1acdd26f4..51c64ada2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-control-0.111.0.bazel @@ -28,6 +28,10 @@ rust_library( "WORKSPACE.bazel", ], ), + crate_features = [ + "default", + "fuzz", + ], crate_root = "src/lib.rs", edition = "2021", rustc_flags = [ @@ -40,7 +44,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ "@cu__arbitrary-1.3.2//:arbitrary", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.111.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.111.0.bazel new file mode 100644 index 000000000..f59f1f47b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.111.0.bazel @@ -0,0 +1,56 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "cranelift_entity", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "enable-serde", + "serde", + "serde_derive", + ], + crate_root = "src/lib.rs", + edition = "2021", + proc_macro_deps = [ + "@cu__serde_derive-1.0.204//:serde_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=cranelift-entity", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.111.0", + deps = [ + "@cu__cranelift-bitset-0.111.0//:cranelift_bitset", + "@cu__serde-1.0.204//:serde", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.111.0.bazel similarity index 89% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.111.0.bazel index e579e72ff..b1ae57324 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-frontend-0.111.0.bazel @@ -44,11 +44,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ - "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", + "@cu__cranelift-codegen-0.111.0//:cranelift_codegen", "@cu__log-0.4.22//:log", "@cu__smallvec-1.13.2//:smallvec", - "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__target-lexicon-0.12.16//:target_lexicon", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.111.0.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.111.0.bazel index 4565c4841..687a5406a 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-isle-0.111.0.bazel @@ -44,9 +44,9 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ - "@cu__cranelift-isle-0.96.4//:build_script_build", + "@cu__cranelift-isle-0.111.0//:build_script_build", ], ) @@ -84,7 +84,7 @@ cargo_build_script( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", visibility = ["//visibility:private"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.111.0.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.111.0.bazel index eab2947a2..c6b0a99f0 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-native-0.111.0.bazel @@ -44,10 +44,10 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ - "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", - "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__cranelift-codegen-0.111.0//:cranelift_codegen", + "@cu__target-lexicon-0.12.16//:target_lexicon", ] + select({ "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_arch = "s390x", target_arch = "riscv64")) diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.111.0.bazel similarity index 77% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.111.0.bazel index e3ee293fd..38d4bb412 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.cranelift-wasm-0.111.0.bazel @@ -44,15 +44,15 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.111.0", deps = [ - "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", - "@cu__cranelift-entity-0.96.4//:cranelift_entity", - "@cu__cranelift-frontend-0.96.4//:cranelift_frontend", - "@cu__itertools-0.10.5//:itertools", + "@cu__cranelift-codegen-0.111.0//:cranelift_codegen", + "@cu__cranelift-entity-0.111.0//:cranelift_entity", + "@cu__cranelift-frontend-0.111.0//:cranelift_frontend", + "@cu__itertools-0.12.1//:itertools", "@cu__log-0.4.22//:log", "@cu__smallvec-1.13.2//:smallvec", - "@cu__wasmparser-0.103.0//:wasmparser", - "@cu__wasmtime-types-9.0.4//:wasmtime_types", + "@cu__wasmparser-0.215.0//:wasmparser", + "@cu__wasmtime-types-24.0.0//:wasmtime_types", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel deleted file mode 100644 index 770421fd9..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.debugid-0.8.0.bazel +++ /dev/null @@ -1,47 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "debugid", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=debugid", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.8.0", - deps = [ - "@cu__uuid-1.10.0//:uuid", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.embedded-io-0.4.0.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.embedded-io-0.4.0.bazel index afbc39185..c9ef73301 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.12.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.embedded-io-0.4.0.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "hashbrown", + name = "embedded_io", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,7 +29,7 @@ rust_library( ], ), crate_features = [ - "raw", + "alloc", ], crate_root = "src/lib.rs", edition = "2021", @@ -38,10 +38,10 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=hashbrown", + "crate-name=embedded-io", "manual", "noclippy", "norustfmt", ], - version = "0.12.3", + version = "0.4.0", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel b/bazel/cargo/wasmtime/remote/BUILD.equivalent-1.0.1.bazel similarity index 92% rename from bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel rename to bazel/cargo/wasmtime/remote/BUILD.equivalent-1.0.1.bazel index dcb8e9d6a..c3be9a81d 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-demangle-0.1.24.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.equivalent-1.0.1.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "rustc_demangle", + name = "equivalent", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -35,10 +35,10 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=rustc-demangle", + "crate-name=equivalent", "manual", "noclippy", "norustfmt", ], - version = "0.1.24", + version = "1.0.1", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.3.0.bazel similarity index 94% rename from bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.3.0.bazel index dc1e8ed17..b2bdbf6fc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.fallible-iterator-0.3.0.bazel @@ -28,9 +28,6 @@ rust_library( "WORKSPACE.bazel", ], ), - crate_features = [ - "std", - ], crate_root = "src/lib.rs", edition = "2018", rustc_flags = [ @@ -43,5 +40,5 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.2.0", + version = "0.3.0", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel deleted file mode 100644 index bcbd8d053..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.fxhash-0.2.1.bazel +++ /dev/null @@ -1,47 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "fxhash", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=fxhash", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.2.1", - deps = [ - "@cu__byteorder-1.5.0//:byteorder", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel deleted file mode 100644 index cda329e87..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.getrandom-0.2.15.bazel +++ /dev/null @@ -1,127 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "getrandom", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=getrandom", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.2.15", - deps = [ - "@cu__cfg-if-1.0.0//:cfg_if", - ] + select({ - "@rules_rust//rust/platform:aarch64-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-apple-ios": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-fuchsia": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:armv7-linux-androideabi": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-unknown-freebsd": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:wasm32-wasi": [ - "@cu__wasi-0.11.0-wasi-snapshot-preview1//:wasi", # cfg(target_os = "wasi") - ], - "@rules_rust//rust/platform:x86_64-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-apple-ios": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-fuchsia": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel deleted file mode 100644 index 730e42927..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.gimli-0.27.3.bazel +++ /dev/null @@ -1,58 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "gimli", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "fallible-iterator", - "indexmap", - "read", - "read-core", - "stable_deref_trait", - "std", - "write", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=gimli", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.27.3", - deps = [ - "@cu__fallible-iterator-0.2.0//:fallible_iterator", - "@cu__indexmap-1.9.3//:indexmap", - "@cu__stable_deref_trait-1.2.0//:stable_deref_trait", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.29.0.bazel similarity index 86% rename from bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel rename to bazel/cargo/wasmtime/remote/BUILD.gimli-0.29.0.bazel index b7d71a5eb..852f5bdee 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-normalization-0.1.23.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.gimli-0.29.0.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "unicode_normalization", + name = "gimli", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,7 +29,10 @@ rust_library( ], ), crate_features = [ + "read", + "read-core", "std", + "write", ], crate_root = "src/lib.rs", edition = "2018", @@ -38,13 +41,13 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=unicode-normalization", + "crate-name=gimli", "manual", "noclippy", "norustfmt", ], - version = "0.1.23", + version = "0.29.0", deps = [ - "@cu__tinyvec-1.8.0//:tinyvec", + "@cu__indexmap-2.3.0//:indexmap", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel index be9008e31..4bcf220d3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.13.2.bazel @@ -32,7 +32,6 @@ rust_library( "ahash", "default", "inline-more", - "raw", ], crate_root = "src/lib.rs", edition = "2021", diff --git a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.14.5.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.14.5.bazel index 46fb0d85b..921bfbbea 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.cranelift-entity-0.96.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.hashbrown-0.14.5.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "cranelift_entity", + name = "hashbrown", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,7 +29,8 @@ rust_library( ], ), crate_features = [ - "enable-serde", + "ahash", + "raw", "serde", ], crate_root = "src/lib.rs", @@ -39,13 +40,14 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=cranelift-entity", + "crate-name=hashbrown", "manual", "noclippy", "norustfmt", ], - version = "0.96.4", + version = "0.14.5", deps = [ + "@cu__ahash-0.8.11//:ahash", "@cu__serde-1.0.204//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel b/bazel/cargo/wasmtime/remote/BUILD.heck-0.4.1.bazel similarity index 91% rename from bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.heck-0.4.1.bazel index 3eccac75f..5f94cda10 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.heck-0.4.1.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "wasi", + name = "heck", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -35,10 +35,10 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=wasi", + "crate-name=heck", "manual", "noclippy", "norustfmt", ], - version = "0.11.0+wasi-snapshot-preview1", + version = "0.4.1", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.id-arena-2.2.1.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.id-arena-2.2.1.bazel index 291ad98c6..1248a97fb 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.autocfg-1.3.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.id-arena-2.2.1.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "autocfg", + name = "id_arena", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -35,10 +35,10 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=autocfg", + "crate-name=id-arena", "manual", "noclippy", "norustfmt", ], - version = "1.3.0", + version = "2.2.1", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.indexmap-2.3.0.bazel similarity index 81% rename from bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.indexmap-2.3.0.bazel index 76739ff91..07d4be633 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.idna-0.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.indexmap-2.3.0.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "idna", + name = "indexmap", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,25 +29,26 @@ rust_library( ], ), crate_features = [ - "alloc", "default", + "serde", "std", ], crate_root = "src/lib.rs", - edition = "2018", + edition = "2021", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-bazel", - "crate-name=idna", + "crate-name=indexmap", "manual", "noclippy", "norustfmt", ], - version = "0.5.0", + version = "2.3.0", deps = [ - "@cu__unicode-bidi-0.3.15//:unicode_bidi", - "@cu__unicode-normalization-0.1.23//:unicode_normalization", + "@cu__equivalent-1.0.1//:equivalent", + "@cu__hashbrown-0.14.5//:hashbrown", + "@cu__serde-1.0.204//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel b/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel deleted file mode 100644 index a56d0f5ef..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.io-lifetimes-1.0.11.bazel +++ /dev/null @@ -1,205 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "io_lifetimes", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "close", - "hermit-abi", - "libc", - "windows-sys", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=io-lifetimes", - "manual", - "noclippy", - "norustfmt", - ], - version = "1.0.11", - deps = [ - "@cu__io-lifetimes-1.0.11//:build_script_build", - ] + select({ - "@rules_rust//rust/platform:aarch64-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:aarch64-apple-ios": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:aarch64-fuchsia": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:aarch64-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) - ], - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:armv7-linux-androideabi": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:i686-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:i686-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) - ], - "@rules_rust//rust/platform:i686-unknown-freebsd": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:thumbv7em-none-eabi": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:wasm32-unknown-unknown": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:wasm32-wasi": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-apple-ios": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-fuchsia": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) - ], - "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "@rules_rust//rust/platform:x86_64-unknown-none": [ - "@cu__libc-0.2.155//:libc", # cfg(not(windows)) - ], - "//conditions:default": [], - }), -) - -cargo_build_script( - name = "io-lifetimes_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_features = [ - "close", - "hermit-abi", - "libc", - "windows-sys", - ], - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=io-lifetimes", - "manual", - "noclippy", - "norustfmt", - ], - version = "1.0.11", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":io-lifetimes_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.12.1.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.itertools-0.12.1.bazel index 467ee0e92..6578e4624 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.itertools-0.10.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.itertools-0.12.1.bazel @@ -45,7 +45,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.10.5", + version = "0.12.1", deps = [ "@cu__either-1.13.0//:either", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.leb128-0.2.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.leb128-0.2.5.bazel new file mode 100644 index 000000000..12f06a0c6 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.leb128-0.2.5.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "leb128", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=leb128", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.5", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel index a776bec66..07f451864 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libc-0.2.155.bazel @@ -48,24 +48,12 @@ rust_library( "@rules_rust//rust/platform:aarch64-linux-android": [ "extra_traits", # aarch64-linux-android ], - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "extra_traits", # aarch64-unknown-linux-gnu - ], - "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "extra_traits", # aarch64-unknown-nixos-gnu - ], "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ "extra_traits", # aarch64-unknown-nto-qnx710 ], - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "extra_traits", # arm-unknown-linux-gnueabi - ], "@rules_rust//rust/platform:armv7-linux-androideabi": [ "extra_traits", # armv7-linux-androideabi ], - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "extra_traits", # armv7-unknown-linux-gnueabi - ], "@rules_rust//rust/platform:i686-apple-darwin": [ "extra_traits", # i686-apple-darwin ], @@ -75,33 +63,12 @@ rust_library( "@rules_rust//rust/platform:i686-unknown-freebsd": [ "extra_traits", # i686-unknown-freebsd ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "extra_traits", # i686-unknown-linux-gnu - ], "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ "extra_traits", # powerpc-unknown-linux-gnu ], - "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ - "extra_traits", # riscv32imc-unknown-none-elf - ], - "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ - "extra_traits", # riscv64gc-unknown-none-elf - ], "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ "extra_traits", # s390x-unknown-linux-gnu ], - "@rules_rust//rust/platform:thumbv7em-none-eabi": [ - "extra_traits", # thumbv7em-none-eabi - ], - "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ - "extra_traits", # thumbv8m.main-none-eabi - ], - "@rules_rust//rust/platform:wasm32-unknown-unknown": [ - "extra_traits", # wasm32-unknown-unknown - ], - "@rules_rust//rust/platform:wasm32-wasi": [ - "extra_traits", # wasm32-wasi - ], "@rules_rust//rust/platform:x86_64-apple-darwin": [ "extra_traits", # x86_64-apple-darwin ], @@ -117,15 +84,6 @@ rust_library( "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ "extra_traits", # x86_64-unknown-freebsd ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "extra_traits", # x86_64-unknown-linux-gnu - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "extra_traits", # x86_64-unknown-nixos-gnu - ], - "@rules_rust//rust/platform:x86_64-unknown-none": [ - "extra_traits", # x86_64-unknown-none - ], "//conditions:default": [], }), crate_root = "src/lib.rs", @@ -171,24 +129,12 @@ cargo_build_script( "@rules_rust//rust/platform:aarch64-linux-android": [ "extra_traits", # aarch64-linux-android ], - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "extra_traits", # aarch64-unknown-linux-gnu - ], - "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "extra_traits", # aarch64-unknown-nixos-gnu - ], "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ "extra_traits", # aarch64-unknown-nto-qnx710 ], - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "extra_traits", # arm-unknown-linux-gnueabi - ], "@rules_rust//rust/platform:armv7-linux-androideabi": [ "extra_traits", # armv7-linux-androideabi ], - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "extra_traits", # armv7-unknown-linux-gnueabi - ], "@rules_rust//rust/platform:i686-apple-darwin": [ "extra_traits", # i686-apple-darwin ], @@ -198,33 +144,12 @@ cargo_build_script( "@rules_rust//rust/platform:i686-unknown-freebsd": [ "extra_traits", # i686-unknown-freebsd ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "extra_traits", # i686-unknown-linux-gnu - ], "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ "extra_traits", # powerpc-unknown-linux-gnu ], - "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ - "extra_traits", # riscv32imc-unknown-none-elf - ], - "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ - "extra_traits", # riscv64gc-unknown-none-elf - ], "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ "extra_traits", # s390x-unknown-linux-gnu ], - "@rules_rust//rust/platform:thumbv7em-none-eabi": [ - "extra_traits", # thumbv7em-none-eabi - ], - "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ - "extra_traits", # thumbv8m.main-none-eabi - ], - "@rules_rust//rust/platform:wasm32-unknown-unknown": [ - "extra_traits", # wasm32-unknown-unknown - ], - "@rules_rust//rust/platform:wasm32-wasi": [ - "extra_traits", # wasm32-wasi - ], "@rules_rust//rust/platform:x86_64-apple-darwin": [ "extra_traits", # x86_64-apple-darwin ], @@ -240,15 +165,6 @@ cargo_build_script( "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ "extra_traits", # x86_64-unknown-freebsd ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "extra_traits", # x86_64-unknown-linux-gnu - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "extra_traits", # x86_64-unknown-nixos-gnu - ], - "@rules_rust//rust/platform:x86_64-unknown-none": [ - "extra_traits", # x86_64-unknown-none - ], "//conditions:default": [], }), crate_name = "build_script_build", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.libm-0.2.8.bazel similarity index 85% rename from bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.libm-0.2.8.bazel index b7019c836..cf70de29c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_msvc-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.libm-0.2.8.bazel @@ -12,7 +12,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "windows_i686_msvc", + name = "libm", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,6 +29,9 @@ rust_library( "WORKSPACE.bazel", ], ), + crate_features = [ + "default", + ], crate_root = "src/lib.rs", edition = "2018", rustc_flags = [ @@ -36,23 +39,26 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=windows_i686_msvc", + "crate-name=libm", "manual", "noclippy", "norustfmt", ], - version = "0.48.5", + version = "0.2.8", deps = [ - "@cu__windows_i686_msvc-0.48.5//:build_script_build", + "@cu__libm-0.2.8//:build_script_build", ], ) cargo_build_script( - name = "windows_i686_msvc_bs", + name = "libm_bs", srcs = glob( include = ["**/*.rs"], allow_empty = False, ), + crate_features = [ + "default", + ], crate_name = "build_script_build", crate_root = "build.rs", data = glob( @@ -73,17 +79,17 @@ cargo_build_script( ], tags = [ "cargo-bazel", - "crate-name=windows_i686_msvc", + "crate-name=libm", "manual", "noclippy", "norustfmt", ], - version = "0.48.5", + version = "0.2.8", visibility = ["//visibility:private"], ) alias( name = "build_script_build", - actual = ":windows_i686_msvc_bs", + actual = ":libm_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel b/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel deleted file mode 100644 index 97edbe88e..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.linux-raw-sys-0.3.8.bazel +++ /dev/null @@ -1,72 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "linux_raw_sys", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "general", - "ioctl", - "no_std", - ] + select({ - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "errno", # aarch64-unknown-linux-gnu - ], - "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "errno", # aarch64-unknown-nixos-gnu - ], - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "errno", # arm-unknown-linux-gnueabi - ], - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "errno", # armv7-unknown-linux-gnueabi - ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "errno", # i686-unknown-linux-gnu - ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "errno", # x86_64-unknown-linux-gnu - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "errno", # x86_64-unknown-nixos-gnu - ], - "//conditions:default": [], - }), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=linux-raw-sys", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.3.8", -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.mach2-0.4.2.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.mach2-0.4.2.bazel index 287bf9f10..6c5f412cc 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.mach-0.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.mach2-0.4.2.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "mach", + name = "mach2", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -38,12 +38,12 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=mach", + "crate-name=mach2", "manual", "noclippy", "norustfmt", ], - version = "0.3.2", + version = "0.4.2", deps = select({ "@rules_rust//rust/platform:aarch64-apple-darwin": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "macos", target_os = "ios")) diff --git a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel deleted file mode 100644 index bbe30d36d..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.memoffset-0.8.0.bazel +++ /dev/null @@ -1,98 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "memoffset", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=memoffset", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.8.0", - deps = [ - "@cu__memoffset-0.8.0//:build_script_build", - ], -) - -cargo_build_script( - name = "memoffset_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_features = [ - "default", - ], - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2015", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=memoffset", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.8.0", - visibility = ["//visibility:private"], - deps = [ - "@cu__autocfg-1.3.0//:autocfg", - ], -) - -alias( - name = "build_script_build", - actual = ":memoffset_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.object-0.36.2.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.object-0.36.2.bazel index 1ed53c2aa..11133ca1e 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.object-0.30.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.object-0.36.2.bazel @@ -30,10 +30,7 @@ rust_library( ), crate_features = [ "coff", - "crc32fast", "elf", - "hashbrown", - "indexmap", "macho", "pe", "read_core", @@ -41,6 +38,7 @@ rust_library( "write", "write_core", "write_std", + "xcoff", ], crate_root = "src/lib.rs", edition = "2018", @@ -54,11 +52,11 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.30.4", + version = "0.36.2", deps = [ "@cu__crc32fast-1.4.2//:crc32fast", - "@cu__hashbrown-0.13.2//:hashbrown", - "@cu__indexmap-1.9.3//:indexmap", + "@cu__hashbrown-0.14.5//:hashbrown", + "@cu__indexmap-2.3.0//:indexmap", "@cu__memchr-2.7.4//:memchr", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel deleted file mode 100644 index abd37dbdb..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.percent-encoding-2.3.1.bazel +++ /dev/null @@ -1,49 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "percent_encoding", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "alloc", - "default", - "std", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=percent-encoding", - "manual", - "noclippy", - "norustfmt", - ], - version = "2.3.1", -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.pin-project-lite-0.2.14.bazel b/bazel/cargo/wasmtime/remote/BUILD.pin-project-lite-0.2.14.bazel new file mode 100644 index 000000000..65aba34bd --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.pin-project-lite-0.2.14.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "pin_project_lite", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2018", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=pin-project-lite", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.14", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.postcard-1.0.8.bazel similarity index 82% rename from bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.postcard-1.0.8.bazel index ef4c698ca..d3af18cb4 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.tinyvec-1.8.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.postcard-1.0.8.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "tinyvec", + name = "postcard", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -30,8 +30,8 @@ rust_library( ), crate_features = [ "alloc", - "default", - "tinyvec_macros", + "embedded-io", + "use-std", ], crate_root = "src/lib.rs", edition = "2018", @@ -40,13 +40,15 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=tinyvec", + "crate-name=postcard", "manual", "noclippy", "norustfmt", ], - version = "1.8.0", + version = "1.0.8", deps = [ - "@cu__tinyvec_macros-0.1.1//:tinyvec_macros", + "@cu__cobs-0.2.3//:cobs", + "@cu__embedded-io-0.4.0//:embedded_io", + "@cu__serde-1.0.204//:serde", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel b/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel deleted file mode 100644 index 8c821bdcd..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.ppv-lite86-0.2.17.bazel +++ /dev/null @@ -1,48 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "ppv_lite86", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "simd", - "std", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=ppv-lite86", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.2.17", -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel index f7cdddb5c..ec02d2243 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.psm-0.1.21.bazel @@ -81,7 +81,7 @@ cargo_build_script( version = "0.1.21", visibility = ["//visibility:private"], deps = [ - "@cu__cc-1.1.6//:cc", + "@cu__cc-1.1.7//:cc", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel deleted file mode 100644 index b9067b104..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rand-0.8.5.bazel +++ /dev/null @@ -1,132 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "rand", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "alloc", - "default", - "getrandom", - "libc", - "rand_chacha", - "small_rng", - "std", - "std_rng", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=rand", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.8.5", - deps = [ - "@cu__rand_chacha-0.3.1//:rand_chacha", - "@cu__rand_core-0.6.4//:rand_core", - ] + select({ - "@rules_rust//rust/platform:aarch64-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-apple-ios": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-fuchsia": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:armv7-linux-androideabi": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-unknown-freebsd": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-apple-darwin": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-apple-ios": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-fuchsia": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-linux-android": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(unix) - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel deleted file mode 100644 index 90a0195e3..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_chacha-0.3.1.bazel +++ /dev/null @@ -1,51 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "rand_chacha", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "std", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=rand_chacha", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.3.1", - deps = [ - "@cu__ppv-lite86-0.2.17//:ppv_lite86", - "@cu__rand_core-0.6.4//:rand_core", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.9.3.bazel similarity index 96% rename from bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.9.3.bazel index b31ecd423..cbd3ed5fd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.8.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.regalloc2-0.9.3.bazel @@ -32,6 +32,7 @@ rust_library( "checker", "default", "std", + "trace-log", ], crate_root = "src/lib.rs", edition = "2018", @@ -45,7 +46,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.8.1", + version = "0.9.3", deps = [ "@cu__hashbrown-0.13.2//:hashbrown", "@cu__log-0.4.22//:log", diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel index 7bcaa5a87..4892ae611 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustc-hash-1.1.0.bazel @@ -28,6 +28,10 @@ rust_library( "WORKSPACE.bazel", ], ), + crate_features = [ + "default", + "std", + ], crate_root = "src/lib.rs", edition = "2015", rustc_flags = [ diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel deleted file mode 100644 index 01df1d783..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.37.27.bazel +++ /dev/null @@ -1,335 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "rustix", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - aliases = select({ - "@rules_rust//rust/platform:aarch64-apple-darwin": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:aarch64-apple-ios": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:aarch64-apple-ios-sim": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:aarch64-fuchsia": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:aarch64-linux-android": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:aarch64-pc-windows-msvc": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) - }, - "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:armv7-linux-androideabi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:i686-apple-darwin": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:i686-linux-android": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:i686-pc-windows-msvc": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) - }, - "@rules_rust//rust/platform:i686-unknown-freebsd": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:s390x-unknown-linux-gnu": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:thumbv7em-none-eabi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:thumbv8m.main-none-eabi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:wasm32-unknown-unknown": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:wasm32-wasi": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:x86_64-apple-darwin": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:x86_64-apple-ios": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:x86_64-fuchsia": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:x86_64-linux-android": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:x86_64-pc-windows-msvc": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(windows) - }, - "@rules_rust//rust/platform:x86_64-unknown-freebsd": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "@rules_rust//rust/platform:x86_64-unknown-none": { - "@cu__errno-0.3.9//:errno": "libc_errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - }, - "//conditions:default": {}, - }), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "default", - "io-lifetimes", - "libc", - "mm", - "std", - "use-libc-auxv", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=rustix", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.37.27", - deps = [ - "@cu__bitflags-1.3.2//:bitflags", - "@cu__io-lifetimes-1.0.11//:io_lifetimes", - "@cu__rustix-0.37.27//:build_script_build", - ] + select({ - "@rules_rust//rust/platform:aarch64-apple-darwin": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:aarch64-apple-ios": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:aarch64-fuchsia": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:aarch64-linux-android": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@cu__errno-0.3.9//:errno", # cfg(windows) - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) - ], - "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ], - "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ], - "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ], - "@rules_rust//rust/platform:armv7-linux-androideabi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ], - "@rules_rust//rust/platform:i686-apple-darwin": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:i686-linux-android": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@cu__errno-0.3.9//:errno", # cfg(windows) - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) - ], - "@rules_rust//rust/platform:i686-unknown-freebsd": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ], - "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:riscv32imc-unknown-none-elf": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:riscv64gc-unknown-none-elf": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:thumbv7em-none-eabi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:thumbv8m.main-none-eabi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:wasm32-unknown-unknown": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:wasm32-wasi": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:x86_64-apple-darwin": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:x86_64-apple-ios": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:x86_64-fuchsia": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:x86_64-linux-android": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@cu__errno-0.3.9//:errno", # cfg(windows) - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(windows) - ], - "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "@cu__libc-0.2.155//:libc", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - "@cu__linux-raw-sys-0.3.8//:linux_raw_sys", # cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64"))))) - ], - "@rules_rust//rust/platform:x86_64-unknown-none": [ - "@cu__errno-0.3.9//:errno", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - "@cu__libc-0.2.155//:libc", # cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"), all(target_endian = "little", any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "powerpc64", target_arch = "riscv64", target_arch = "mips", target_arch = "mips64")))))))) - ], - "//conditions:default": [], - }), -) - -cargo_build_script( - name = "rustix_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_features = [ - "default", - "io-lifetimes", - "libc", - "mm", - "std", - "use-libc-auxv", - ], - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=rustix", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.37.27", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":rustix_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel index ffe2b64ba..8cde617b3 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.rustix-0.38.34.bazel @@ -116,11 +116,40 @@ rust_library( crate_features = [ "alloc", "default", - "fs", "libc-extra-traits", + "mm", "std", "use-libc-auxv", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "fs", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "fs", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "fs", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "fs", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "fs", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "fs", # powerpc-unknown-linux-gnu + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "fs", # s390x-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "fs", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "fs", # x86_64-unknown-nixos-gnu + ], + "//conditions:default": [], + }), crate_root = "src/lib.rs", edition = "2021", rustc_flags = [ @@ -286,11 +315,40 @@ cargo_build_script( crate_features = [ "alloc", "default", - "fs", "libc-extra-traits", + "mm", "std", "use-libc-auxv", - ], + ] + select({ + "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ + "fs", # aarch64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ + "fs", # aarch64-unknown-nixos-gnu + ], + "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ + "fs", # arm-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ + "fs", # armv7-unknown-linux-gnueabi + ], + "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ + "fs", # i686-unknown-linux-gnu + ], + "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ + "fs", # powerpc-unknown-linux-gnu + ], + "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ + "fs", # s390x-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ + "fs", # x86_64-unknown-linux-gnu + ], + "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ + "fs", # x86_64-unknown-nixos-gnu + ], + "//conditions:default": [], + }), crate_name = "build_script_build", crate_root = "build.rs", data = glob( diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.semver-1.0.23.bazel similarity index 86% rename from bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel rename to bazel/cargo/wasmtime/remote/BUILD.semver-1.0.23.bazel index 4d3e79f47..cb1d7f86c 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_i686_gnu-0.48.5.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.semver-1.0.23.bazel @@ -12,7 +12,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "windows_i686_gnu", + name = "semver", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -36,19 +36,19 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=windows_i686_gnu", + "crate-name=semver", "manual", "noclippy", "norustfmt", ], - version = "0.48.5", + version = "1.0.23", deps = [ - "@cu__windows_i686_gnu-0.48.5//:build_script_build", + "@cu__semver-1.0.23//:build_script_build", ], ) cargo_build_script( - name = "windows_i686_gnu_bs", + name = "semver_bs", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -73,17 +73,17 @@ cargo_build_script( ], tags = [ "cargo-bazel", - "crate-name=windows_i686_gnu", + "crate-name=semver", "manual", "noclippy", "norustfmt", ], - version = "0.48.5", + version = "1.0.23", visibility = ["//visibility:private"], ) alias( name = "build_script_build", - actual = ":windows_i686_gnu_bs", + actual = ":semver_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel index a71502593..7e417ffd9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde-1.0.204.bazel @@ -30,7 +30,7 @@ rust_library( ], ), crate_features = [ - "default", + "alloc", "derive", "serde_derive", "std", @@ -63,7 +63,7 @@ cargo_build_script( allow_empty = False, ), crate_features = [ - "default", + "alloc", "derive", "serde_derive", "std", diff --git a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel index 9d19ca094..108736275 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.serde_json-1.0.120.bazel @@ -29,10 +29,6 @@ rust_library( "WORKSPACE.bazel", ], ), - crate_features = [ - "default", - "std", - ], crate_root = "src/lib.rs", edition = "2021", rustc_flags = [ @@ -60,10 +56,6 @@ cargo_build_script( include = ["**/*.rs"], allow_empty = False, ), - crate_features = [ - "default", - "std", - ], crate_name = "build_script_build", crate_root = "build.rs", data = glob( diff --git a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel index f078ae453..d6bcdee92 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.smallvec-1.13.2.bazel @@ -29,6 +29,7 @@ rust_library( ], ), crate_features = [ + "serde", "union", ], crate_root = "src/lib.rs", @@ -44,4 +45,7 @@ rust_library( "norustfmt", ], version = "1.13.2", + deps = [ + "@cu__serde-1.0.204//:serde", + ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.sptr-0.3.2.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel rename to bazel/cargo/wasmtime/remote/BUILD.sptr-0.3.2.bazel index e8fde40cb..e4da3ae80 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.bitflags-1.3.2.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.sptr-0.3.2.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "bitflags", + name = "sptr", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -38,10 +38,10 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=bitflags", + "crate-name=sptr", "manual", "noclippy", "norustfmt", ], - version = "1.3.2", + version = "0.3.2", ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel index 1555e8f62..3bce00c61 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.stable_deref_trait-1.2.0.bazel @@ -28,10 +28,6 @@ rust_library( "WORKSPACE.bazel", ], ), - crate_features = [ - "alloc", - "std", - ], crate_root = "src/lib.rs", edition = "2015", rustc_flags = [ diff --git a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel index 0d8dd09e2..acacb26fd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.syn-2.0.72.bazel @@ -32,9 +32,12 @@ rust_library( "clone-impls", "default", "derive", + "extra-traits", + "full", "parsing", "printing", "proc-macro", + "visit-mut", ], crate_root = "src/lib.rs", edition = "2021", diff --git a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.16.bazel similarity index 93% rename from bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel rename to bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.16.bazel index 475bad918..200965695 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.15.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.target-lexicon-0.12.16.bazel @@ -30,7 +30,7 @@ rust_library( ], ), crate_features = [ - "std", + "default", ], crate_root = "src/lib.rs", edition = "2018", @@ -44,9 +44,9 @@ rust_library( "noclippy", "norustfmt", ], - version = "0.12.15", + version = "0.12.16", deps = [ - "@cu__target-lexicon-0.12.15//:build_script_build", + "@cu__target-lexicon-0.12.16//:build_script_build", ], ) @@ -57,7 +57,7 @@ cargo_build_script( allow_empty = False, ), crate_features = [ - "std", + "default", ], crate_name = "build_script_build", crate_root = "build.rs", @@ -84,7 +84,7 @@ cargo_build_script( "noclippy", "norustfmt", ], - version = "0.12.15", + version = "0.12.16", visibility = ["//visibility:private"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel b/bazel/cargo/wasmtime/remote/BUILD.tracing-0.1.40.bazel similarity index 77% rename from bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel rename to bazel/cargo/wasmtime/remote/BUILD.tracing-0.1.40.bazel index 4a84a5c66..e8bbf2590 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.form_urlencoded-1.2.1.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tracing-0.1.40.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "form_urlencoded", + name = "tracing", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,24 +29,29 @@ rust_library( ], ), crate_features = [ - "alloc", + "attributes", "default", "std", + "tracing-attributes", ], crate_root = "src/lib.rs", edition = "2018", + proc_macro_deps = [ + "@cu__tracing-attributes-0.1.27//:tracing_attributes", + ], rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-bazel", - "crate-name=form_urlencoded", + "crate-name=tracing", "manual", "noclippy", "norustfmt", ], - version = "1.2.1", + version = "0.1.40", deps = [ - "@cu__percent-encoding-2.3.1//:percent_encoding", + "@cu__pin-project-lite-0.2.14//:pin_project_lite", + "@cu__tracing-core-0.1.32//:tracing_core", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.tracing-attributes-0.1.27.bazel similarity index 77% rename from bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.tracing-attributes-0.1.27.bazel index b89c60f80..8dc144d30 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.rand_core-0.6.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tracing-attributes-0.1.27.bazel @@ -6,12 +6,12 @@ # bazel run @//bazel/cargo/wasmtime:crates_vendor ############################################################################### -load("@rules_rust//rust:defs.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -rust_library( - name = "rand_core", +rust_proc_macro( + name = "tracing_attributes", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -28,11 +28,6 @@ rust_library( "WORKSPACE.bazel", ], ), - crate_features = [ - "alloc", - "getrandom", - "std", - ], crate_root = "src/lib.rs", edition = "2018", rustc_flags = [ @@ -40,13 +35,15 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=rand_core", + "crate-name=tracing-attributes", "manual", "noclippy", "norustfmt", ], - version = "0.6.4", + version = "0.1.27", deps = [ - "@cu__getrandom-0.2.15//:getrandom", + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__syn-2.0.72//:syn", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.tracing-core-0.1.32.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.tracing-core-0.1.32.bazel index fdc0e6aa4..cd5b7378b 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-debug-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.tracing-core-0.1.32.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "wasmtime_jit_debug", + name = "tracing_core", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,22 +29,22 @@ rust_library( ], ), crate_features = [ - "gdb_jit_int", "once_cell", + "std", ], crate_root = "src/lib.rs", - edition = "2021", + edition = "2018", rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-bazel", - "crate-name=wasmtime-jit-debug", + "crate-name=tracing-core", "manual", "noclippy", "norustfmt", ], - version = "9.0.4", + version = "0.1.32", deps = [ "@cu__once_cell-1.19.0//:once_cell", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel deleted file mode 100644 index a48d6d3d8..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.unicode-bidi-0.3.15.bazel +++ /dev/null @@ -1,48 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "unicode_bidi", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "hardcoded-data", - "std", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=unicode-bidi", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.3.15", -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.4.bazel new file mode 100644 index 000000000..a8b5dda0b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.unicode-xid-0.2.4.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "unicode_xid", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2015", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=unicode-xid", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.2.4", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel b/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel deleted file mode 100644 index cdbc74f57..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.url-2.5.2.bazel +++ /dev/null @@ -1,52 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "url", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "default", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=url", - "manual", - "noclippy", - "norustfmt", - ], - version = "2.5.2", - deps = [ - "@cu__form_urlencoded-1.2.1//:form_urlencoded", - "@cu__idna-0.5.0//:idna", - "@cu__percent-encoding-2.3.1//:percent_encoding", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel deleted file mode 100644 index 747c240ff..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.uuid-1.10.0.bazel +++ /dev/null @@ -1,48 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "uuid", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "default", - "std", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=uuid", - "manual", - "noclippy", - "norustfmt", - ], - version = "1.10.0", -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasm-encoder-0.215.0.bazel similarity index 88% rename from bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasm-encoder-0.215.0.bazel index a2e358ed0..e24ef2076 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.byteorder-1.5.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasm-encoder-0.215.0.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "byteorder", + name = "wasm_encoder", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -28,10 +28,6 @@ rust_library( "WORKSPACE.bazel", ], ), - crate_features = [ - "default", - "std", - ], crate_root = "src/lib.rs", edition = "2021", rustc_flags = [ @@ -39,10 +35,13 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=byteorder", + "crate-name=wasm-encoder", "manual", "noclippy", "norustfmt", ], - version = "1.5.0", + version = "0.215.0", + deps = [ + "@cu__leb128-0.2.5//:leb128", + ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel deleted file mode 100644 index 16aa1860f..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.103.0.bazel +++ /dev/null @@ -1,48 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "wasmparser", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=wasmparser", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.103.0", - deps = [ - "@cu__indexmap-1.9.3//:indexmap", - "@cu__url-2.5.2//:url", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.215.0.bazel similarity index 77% rename from bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.215.0.bazel index fe14db14b..3f3d22eb9 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.fxprof-processed-profile-0.6.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmparser-0.215.0.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "fxprof_processed_profile", + name = "wasmparser", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -28,6 +28,11 @@ rust_library( "WORKSPACE.bazel", ], ), + crate_features = [ + "serde", + "std", + "validate", + ], crate_root = "src/lib.rs", edition = "2021", rustc_flags = [ @@ -35,17 +40,18 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=fxprof-processed-profile", + "crate-name=wasmparser", "manual", "noclippy", "norustfmt", ], - version = "0.6.0", + version = "0.215.0", deps = [ + "@cu__ahash-0.8.11//:ahash", "@cu__bitflags-2.6.0//:bitflags", - "@cu__debugid-0.8.0//:debugid", - "@cu__fxhash-0.2.1//:fxhash", + "@cu__hashbrown-0.14.5//:hashbrown", + "@cu__indexmap-2.3.0//:indexmap", + "@cu__semver-1.0.23//:semver", "@cu__serde-1.0.204//:serde", - "@cu__serde_json-1.0.120//:serde_json", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmprinter-0.215.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmprinter-0.215.0.bazel new file mode 100644 index 000000000..5ee382b0f --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmprinter-0.215.0.bazel @@ -0,0 +1,49 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "wasmprinter", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmprinter", + "manual", + "noclippy", + "norustfmt", + ], + version = "0.215.0", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__termcolor-1.4.1//:termcolor", + "@cu__wasmparser-0.215.0//:wasmparser", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-24.0.0.bazel similarity index 50% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-24.0.0.bazel index 0e699d624..1f77ab476 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-runtime-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-24.0.0.bazel @@ -12,7 +12,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "wasmtime_runtime", + name = "wasmtime", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,130 +29,165 @@ rust_library( "WORKSPACE.bazel", ], ), + crate_features = [ + "cranelift", + "gc", + "runtime", + "std", + ], crate_root = "src/lib.rs", edition = "2021", proc_macro_deps = [ "@cu__paste-1.0.15//:paste", + "@cu__serde_derive-1.0.204//:serde_derive", + "@cu__wasmtime-versioned-export-macros-24.0.0//:wasmtime_versioned_export_macros", ], rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-bazel", - "crate-name=wasmtime-runtime", + "crate-name=wasmtime", "manual", "noclippy", "norustfmt", ], - version = "9.0.4", + version = "24.0.0", deps = [ "@cu__anyhow-1.0.86//:anyhow", + "@cu__bitflags-2.6.0//:bitflags", + "@cu__bumpalo-3.16.0//:bumpalo", "@cu__cfg-if-1.0.0//:cfg_if", - "@cu__indexmap-1.9.3//:indexmap", + "@cu__hashbrown-0.14.5//:hashbrown", + "@cu__indexmap-2.3.0//:indexmap", "@cu__libc-0.2.155//:libc", + "@cu__libm-0.2.8//:libm", "@cu__log-0.4.22//:log", - "@cu__memfd-0.6.4//:memfd", - "@cu__memoffset-0.8.0//:memoffset", - "@cu__rand-0.8.5//:rand", - "@cu__wasmtime-asm-macros-9.0.4//:wasmtime_asm_macros", - "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", - "@cu__wasmtime-jit-debug-9.0.4//:wasmtime_jit_debug", - "@cu__wasmtime-runtime-9.0.4//:build_script_build", + "@cu__object-0.36.2//:object", + "@cu__once_cell-1.19.0//:once_cell", + "@cu__postcard-1.0.8//:postcard", + "@cu__serde-1.0.204//:serde", + "@cu__smallvec-1.13.2//:smallvec", + "@cu__sptr-0.3.2//:sptr", + "@cu__target-lexicon-0.12.16//:target_lexicon", + "@cu__wasmparser-0.215.0//:wasmparser", + "@cu__wasmtime-24.0.0//:build_script_build", + "@cu__wasmtime-asm-macros-24.0.0//:wasmtime_asm_macros", + "@cu__wasmtime-cranelift-24.0.0//:wasmtime_cranelift", + "@cu__wasmtime-environ-24.0.0//:wasmtime_environ", + "@cu__wasmtime-jit-icache-coherence-24.0.0//:wasmtime_jit_icache_coherence", + "@cu__wasmtime-slab-24.0.0//:wasmtime_slab", ] + select({ "@rules_rust//rust/platform:aarch64-apple-darwin": [ - "@cu__mach-0.3.2//:mach", # cfg(target_os = "macos") - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__mach2-0.4.2//:mach2", # cfg(target_os = "macos") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:aarch64-apple-ios": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:aarch64-apple-ios-sim": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:aarch64-fuchsia": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:aarch64-linux-android": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(target_os = "windows") ], "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:arm-unknown-linux-gnueabi": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:armv7-linux-androideabi": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:i686-apple-darwin": [ - "@cu__mach-0.3.2//:mach", # cfg(target_os = "macos") - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__mach2-0.4.2//:mach2", # cfg(target_os = "macos") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:i686-linux-android": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(target_os = "windows") ], "@rules_rust//rust/platform:i686-unknown-freebsd": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:powerpc-unknown-linux-gnu": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:s390x-unknown-linux-gnu": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__psm-0.1.21//:psm", # cfg(target_arch = "s390x") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:x86_64-apple-darwin": [ - "@cu__mach-0.3.2//:mach", # cfg(target_os = "macos") - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__mach2-0.4.2//:mach2", # cfg(target_os = "macos") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:x86_64-apple-ios": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:x86_64-fuchsia": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:x86_64-linux-android": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(target_os = "windows") ], "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "@cu__rustix-0.37.27//:rustix", # cfg(unix) + "@cu__memfd-0.6.4//:memfd", # cfg(target_os = "linux") + "@cu__rustix-0.38.34//:rustix", # cfg(unix) ], "//conditions:default": [], }), ) cargo_build_script( - name = "wasmtime-runtime_bs", + name = "wasmtime_bs", srcs = glob( include = ["**/*.rs"], allow_empty = False, ), + crate_features = [ + "cranelift", + "gc", + "runtime", + "std", + ], crate_name = "build_script_build", crate_root = "build.rs", data = glob( @@ -168,25 +203,28 @@ cargo_build_script( ], ), edition = "2021", + proc_macro_deps = [ + "@cu__wasmtime-versioned-export-macros-24.0.0//:wasmtime_versioned_export_macros", + ], rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-bazel", - "crate-name=wasmtime-runtime", + "crate-name=wasmtime", "manual", "noclippy", "norustfmt", ], - version = "9.0.4", + version = "24.0.0", visibility = ["//visibility:private"], deps = [ - "@cu__cc-1.1.6//:cc", + "@cu__cc-1.1.7//:cc", ], ) alias( name = "build_script_build", - actual = ":wasmtime-runtime_bs", + actual = ":wasmtime_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel deleted file mode 100644 index c4ae22def..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-9.0.4.bazel +++ /dev/null @@ -1,128 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "wasmtime", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "cranelift", - ], - crate_root = "src/lib.rs", - edition = "2021", - proc_macro_deps = [ - "@cu__paste-1.0.15//:paste", - ], - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=wasmtime", - "manual", - "noclippy", - "norustfmt", - ], - version = "9.0.4", - deps = [ - "@cu__anyhow-1.0.86//:anyhow", - "@cu__bincode-1.3.3//:bincode", - "@cu__bumpalo-3.16.0//:bumpalo", - "@cu__cfg-if-1.0.0//:cfg_if", - "@cu__fxprof-processed-profile-0.6.0//:fxprof_processed_profile", - "@cu__indexmap-1.9.3//:indexmap", - "@cu__libc-0.2.155//:libc", - "@cu__log-0.4.22//:log", - "@cu__object-0.30.4//:object", - "@cu__once_cell-1.19.0//:once_cell", - "@cu__psm-0.1.21//:psm", - "@cu__serde-1.0.204//:serde", - "@cu__serde_json-1.0.120//:serde_json", - "@cu__target-lexicon-0.12.15//:target_lexicon", - "@cu__wasmparser-0.103.0//:wasmparser", - "@cu__wasmtime-9.0.4//:build_script_build", - "@cu__wasmtime-cranelift-9.0.4//:wasmtime_cranelift", - "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", - "@cu__wasmtime-jit-9.0.4//:wasmtime_jit", - "@cu__wasmtime-runtime-9.0.4//:wasmtime_runtime", - ] + select({ - "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") - ], - "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") - ], - "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") - ], - "//conditions:default": [], - }), -) - -cargo_build_script( - name = "wasmtime_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_features = [ - "cranelift", - ], - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=wasmtime", - "manual", - "noclippy", - "norustfmt", - ], - version = "9.0.4", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":wasmtime_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-24.0.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-24.0.0.bazel index 0a6c533c4..d90c660db 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-asm-macros-24.0.0.bazel @@ -40,7 +40,7 @@ rust_library( "noclippy", "norustfmt", ], - version = "9.0.4", + version = "24.0.0", deps = [ "@cu__cfg-if-1.0.0//:cfg_if", ], diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-24.0.0.bazel similarity index 98% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-24.0.0.bazel index f2f8f3489..735e52d30 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-0.0.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-c-api-macros-24.0.0.bazel @@ -40,7 +40,7 @@ rust_proc_macro( "noclippy", "norustfmt", ], - version = "0.0.0", + version = "24.0.0", deps = [ "@cu__proc-macro2-1.0.86//:proc_macro2", "@cu__quote-1.0.36//:quote", diff --git a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-component-macro-24.0.0.bazel similarity index 70% rename from bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-component-macro-24.0.0.bazel index bc6860693..5e50e4fc8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.indexmap-1.9.3.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-component-macro-24.0.0.bazel @@ -7,12 +7,12 @@ ############################################################################### load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") package(default_visibility = ["//visibility:public"]) -rust_library( - name = "indexmap", +rust_proc_macro( + name = "wasmtime_component_macro", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -29,11 +29,6 @@ rust_library( "WORKSPACE.bazel", ], ), - crate_features = [ - "serde", - "serde-1", - "std", - ], crate_root = "src/lib.rs", edition = "2021", rustc_flags = [ @@ -41,30 +36,30 @@ rust_library( ], tags = [ "cargo-bazel", - "crate-name=indexmap", + "crate-name=wasmtime-component-macro", "manual", "noclippy", "norustfmt", ], - version = "1.9.3", + version = "24.0.0", deps = [ - "@cu__hashbrown-0.12.3//:hashbrown", - "@cu__indexmap-1.9.3//:build_script_build", - "@cu__serde-1.0.204//:serde", + "@cu__anyhow-1.0.86//:anyhow", + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__syn-2.0.72//:syn", + "@cu__wasmtime-component-macro-24.0.0//:build_script_build", + "@cu__wasmtime-component-util-24.0.0//:wasmtime_component_util", + "@cu__wasmtime-wit-bindgen-24.0.0//:wasmtime_wit_bindgen", + "@cu__wit-parser-0.215.0//:wit_parser", ], ) cargo_build_script( - name = "indexmap_bs", + name = "wasmtime-component-macro_bs", srcs = glob( include = ["**/*.rs"], allow_empty = False, ), - crate_features = [ - "serde", - "serde-1", - "std", - ], crate_name = "build_script_build", crate_root = "build.rs", data = glob( @@ -85,20 +80,17 @@ cargo_build_script( ], tags = [ "cargo-bazel", - "crate-name=indexmap", + "crate-name=wasmtime-component-macro", "manual", "noclippy", "norustfmt", ], - version = "1.9.3", + version = "24.0.0", visibility = ["//visibility:private"], - deps = [ - "@cu__autocfg-1.3.0//:autocfg", - ], ) alias( name = "build_script_build", - actual = ":indexmap_bs", + actual = ":wasmtime-component-macro_bs", tags = ["manual"], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-component-util-24.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-component-util-24.0.0.bazel new file mode 100644 index 000000000..9823cd36b --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-component-util-24.0.0.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "wasmtime_component_util", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-component-util", + "manual", + "noclippy", + "norustfmt", + ], + version = "24.0.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-24.0.0.bazel similarity index 60% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-24.0.0.bazel index 38458b9dc..4687bb7c8 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-24.0.0.bazel @@ -28,8 +28,14 @@ rust_library( "WORKSPACE.bazel", ], ), + crate_features = [ + "gc", + ], crate_root = "src/lib.rs", edition = "2021", + proc_macro_deps = [ + "@cu__wasmtime-versioned-export-macros-24.0.0//:wasmtime_versioned_export_macros", + ], rustc_flags = [ "--cap-lints=allow", ], @@ -40,22 +46,22 @@ rust_library( "noclippy", "norustfmt", ], - version = "9.0.4", + version = "24.0.0", deps = [ "@cu__anyhow-1.0.86//:anyhow", - "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", - "@cu__cranelift-control-0.96.4//:cranelift_control", - "@cu__cranelift-entity-0.96.4//:cranelift_entity", - "@cu__cranelift-frontend-0.96.4//:cranelift_frontend", - "@cu__cranelift-native-0.96.4//:cranelift_native", - "@cu__cranelift-wasm-0.96.4//:cranelift_wasm", - "@cu__gimli-0.27.3//:gimli", + "@cu__cfg-if-1.0.0//:cfg_if", + "@cu__cranelift-codegen-0.111.0//:cranelift_codegen", + "@cu__cranelift-control-0.111.0//:cranelift_control", + "@cu__cranelift-entity-0.111.0//:cranelift_entity", + "@cu__cranelift-frontend-0.111.0//:cranelift_frontend", + "@cu__cranelift-native-0.111.0//:cranelift_native", + "@cu__cranelift-wasm-0.111.0//:cranelift_wasm", + "@cu__gimli-0.29.0//:gimli", "@cu__log-0.4.22//:log", - "@cu__object-0.30.4//:object", - "@cu__target-lexicon-0.12.15//:target_lexicon", + "@cu__object-0.36.2//:object", + "@cu__target-lexicon-0.12.16//:target_lexicon", "@cu__thiserror-1.0.63//:thiserror", - "@cu__wasmparser-0.103.0//:wasmparser", - "@cu__wasmtime-cranelift-shared-9.0.4//:wasmtime_cranelift_shared", - "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", + "@cu__wasmparser-0.215.0//:wasmparser", + "@cu__wasmtime-environ-24.0.0//:wasmtime_environ", ], ) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel deleted file mode 100644 index f588a1bb2..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-cranelift-shared-9.0.4.bazel +++ /dev/null @@ -1,54 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "wasmtime_cranelift_shared", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=wasmtime-cranelift-shared", - "manual", - "noclippy", - "norustfmt", - ], - version = "9.0.4", - deps = [ - "@cu__anyhow-1.0.86//:anyhow", - "@cu__cranelift-codegen-0.96.4//:cranelift_codegen", - "@cu__cranelift-control-0.96.4//:cranelift_control", - "@cu__cranelift-native-0.96.4//:cranelift_native", - "@cu__gimli-0.27.3//:gimli", - "@cu__object-0.30.4//:object", - "@cu__target-lexicon-0.12.15//:target_lexicon", - "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-24.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-24.0.0.bazel new file mode 100644 index 000000000..879839848 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-24.0.0.bazel @@ -0,0 +1,68 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "wasmtime_environ", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "compile", + "gc", + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + proc_macro_deps = [ + "@cu__serde_derive-1.0.204//:serde_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-environ", + "manual", + "noclippy", + "norustfmt", + ], + version = "24.0.0", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__cranelift-bitset-0.111.0//:cranelift_bitset", + "@cu__cranelift-entity-0.111.0//:cranelift_entity", + "@cu__gimli-0.29.0//:gimli", + "@cu__indexmap-2.3.0//:indexmap", + "@cu__log-0.4.22//:log", + "@cu__object-0.36.2//:object", + "@cu__postcard-1.0.8//:postcard", + "@cu__serde-1.0.204//:serde", + "@cu__target-lexicon-0.12.16//:target_lexicon", + "@cu__wasm-encoder-0.215.0//:wasm_encoder", + "@cu__wasmparser-0.215.0//:wasmparser", + "@cu__wasmprinter-0.215.0//:wasmprinter", + "@cu__wasmtime-types-24.0.0//:wasmtime_types", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel deleted file mode 100644 index d8ad49538..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-9.0.4.bazel +++ /dev/null @@ -1,71 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "wasmtime_jit", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2021", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=wasmtime-jit", - "manual", - "noclippy", - "norustfmt", - ], - version = "9.0.4", - deps = [ - "@cu__addr2line-0.19.0//:addr2line", - "@cu__anyhow-1.0.86//:anyhow", - "@cu__bincode-1.3.3//:bincode", - "@cu__cfg-if-1.0.0//:cfg_if", - "@cu__cpp_demangle-0.3.5//:cpp_demangle", - "@cu__gimli-0.27.3//:gimli", - "@cu__log-0.4.22//:log", - "@cu__object-0.30.4//:object", - "@cu__rustc-demangle-0.1.24//:rustc_demangle", - "@cu__serde-1.0.204//:serde", - "@cu__target-lexicon-0.12.15//:target_lexicon", - "@cu__wasmtime-environ-9.0.4//:wasmtime_environ", - "@cu__wasmtime-jit-icache-coherence-9.0.4//:wasmtime_jit_icache_coherence", - "@cu__wasmtime-runtime-9.0.4//:wasmtime_runtime", - ] + select({ - "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") - ], - "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") - ], - "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-24.0.0.bazel similarity index 95% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-24.0.0.bazel index fe0d52a76..a1c3e8bdd 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-jit-icache-coherence-24.0.0.bazel @@ -40,8 +40,9 @@ rust_library( "noclippy", "norustfmt", ], - version = "9.0.4", + version = "24.0.0", deps = [ + "@cu__anyhow-1.0.86//:anyhow", "@cu__cfg-if-1.0.0//:cfg_if", ] + select({ "@rules_rust//rust/platform:aarch64-apple-darwin": [ @@ -51,7 +52,7 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(target_os = "windows") ], "@rules_rust//rust/platform:aarch64-unknown-linux-gnu": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) @@ -75,7 +76,7 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(target_os = "windows") ], "@rules_rust//rust/platform:i686-unknown-freebsd": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) @@ -96,7 +97,7 @@ rust_library( "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) ], "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@cu__windows-sys-0.48.0//:windows_sys", # cfg(target_os = "windows") + "@cu__windows-sys-0.52.0//:windows_sys", # cfg(target_os = "windows") ], "@rules_rust//rust/platform:x86_64-unknown-freebsd": [ "@cu__libc-0.2.155//:libc", # cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android")) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-slab-24.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-slab-24.0.0.bazel new file mode 100644 index 000000000..6a2147b54 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-slab-24.0.0.bazel @@ -0,0 +1,44 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "wasmtime_slab", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-slab", + "manual", + "noclippy", + "norustfmt", + ], + version = "24.0.0", +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-24.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-24.0.0.bazel new file mode 100644 index 000000000..4305c4a59 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-types-24.0.0.bazel @@ -0,0 +1,57 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "wasmtime_types", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_features = [ + "std", + ], + crate_root = "src/lib.rs", + edition = "2021", + proc_macro_deps = [ + "@cu__serde_derive-1.0.204//:serde_derive", + ], + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-types", + "manual", + "noclippy", + "norustfmt", + ], + version = "24.0.0", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__cranelift-entity-0.111.0//:cranelift_entity", + "@cu__serde-1.0.204//:serde", + "@cu__smallvec-1.13.2//:smallvec", + "@cu__wasmparser-0.215.0//:wasmparser", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-versioned-export-macros-24.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-versioned-export-macros-24.0.0.bazel new file mode 100644 index 000000000..27dcf699a --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-versioned-export-macros-24.0.0.bazel @@ -0,0 +1,49 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_proc_macro") + +package(default_visibility = ["//visibility:public"]) + +rust_proc_macro( + name = "wasmtime_versioned_export_macros", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-versioned-export-macros", + "manual", + "noclippy", + "norustfmt", + ], + version = "24.0.0", + deps = [ + "@cu__proc-macro2-1.0.86//:proc_macro2", + "@cu__quote-1.0.36//:quote", + "@cu__syn-2.0.72//:syn", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-wit-bindgen-24.0.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-wit-bindgen-24.0.0.bazel new file mode 100644 index 000000000..53a8655c1 --- /dev/null +++ b/bazel/cargo/wasmtime/remote/BUILD.wasmtime-wit-bindgen-24.0.0.bazel @@ -0,0 +1,50 @@ +############################################################################### +# @generated +# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To +# regenerate this file, run the following: +# +# bazel run @//bazel/cargo/wasmtime:crates_vendor +############################################################################### + +load("@rules_rust//rust:defs.bzl", "rust_library") + +package(default_visibility = ["//visibility:public"]) + +rust_library( + name = "wasmtime_wit_bindgen", + srcs = glob( + include = ["**/*.rs"], + allow_empty = False, + ), + compile_data = glob( + include = ["**"], + allow_empty = True, + exclude = [ + "**/* *", + ".tmp_git_root/**/*", + "BUILD", + "BUILD.bazel", + "WORKSPACE", + "WORKSPACE.bazel", + ], + ), + crate_root = "src/lib.rs", + edition = "2021", + rustc_flags = [ + "--cap-lints=allow", + ], + tags = [ + "cargo-bazel", + "crate-name=wasmtime-wit-bindgen", + "manual", + "noclippy", + "norustfmt", + ], + version = "24.0.0", + deps = [ + "@cu__anyhow-1.0.86//:anyhow", + "@cu__heck-0.4.1//:heck", + "@cu__indexmap-2.3.0//:indexmap", + "@cu__wit-parser-0.215.0//:wit_parser", + ], +) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel deleted file mode 100644 index 1b88e46d6..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.48.0.bazel +++ /dev/null @@ -1,62 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "windows_sys", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_features = [ - "Win32", - "Win32_Foundation", - "Win32_Security", - "Win32_Storage", - "Win32_Storage_FileSystem", - "Win32_System", - "Win32_System_Diagnostics", - "Win32_System_Diagnostics_Debug", - "Win32_System_Kernel", - "Win32_System_Memory", - "Win32_System_SystemInformation", - "Win32_System_Threading", - "default", - ], - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows-sys", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.0", - deps = [ - "@cu__windows-targets-0.48.5//:windows_targets", - ], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel index df8b32ead..eaa163139 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.windows-sys-0.52.0.bazel @@ -31,16 +31,15 @@ rust_library( crate_features = [ "Win32", "Win32_Foundation", - "Win32_NetworkManagement", - "Win32_NetworkManagement_IpHelper", - "Win32_Networking", - "Win32_Networking_WinSock", + "Win32_Security", "Win32_Storage", "Win32_Storage_FileSystem", "Win32_System", "Win32_System_Console", "Win32_System_Diagnostics", "Win32_System_Diagnostics_Debug", + "Win32_System_Kernel", + "Win32_System_Memory", "Win32_System_SystemInformation", "Win32_System_Threading", "default", diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel deleted file mode 100644 index 3d68ef606..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows-targets-0.48.5.bazel +++ /dev/null @@ -1,65 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "windows_targets", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows-targets", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - deps = select({ - "@rules_rust//rust/platform:aarch64-pc-windows-msvc": [ - "@cu__windows_aarch64_msvc-0.48.5//:windows_aarch64_msvc", # cfg(all(target_arch = "aarch64", target_env = "msvc", not(windows_raw_dylib))) - ], - "@rules_rust//rust/platform:i686-pc-windows-msvc": [ - "@cu__windows_i686_msvc-0.48.5//:windows_i686_msvc", # cfg(all(target_arch = "x86", target_env = "msvc", not(windows_raw_dylib))) - ], - "@rules_rust//rust/platform:i686-unknown-linux-gnu": [ - "@cu__windows_i686_gnu-0.48.5//:windows_i686_gnu", # cfg(all(target_arch = "x86", target_env = "gnu", not(windows_raw_dylib))) - ], - "@rules_rust//rust/platform:x86_64-pc-windows-msvc": [ - "@cu__windows_x86_64_msvc-0.48.5//:windows_x86_64_msvc", # cfg(all(target_arch = "x86_64", target_env = "msvc", not(windows_raw_dylib))) - ], - "@rules_rust//rust/platform:x86_64-unknown-linux-gnu": [ - "@cu__windows_x86_64_gnu-0.48.5//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) - ], - "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu": [ - "@cu__windows_x86_64_gnu-0.48.5//:windows_x86_64_gnu", # cfg(all(target_arch = "x86_64", target_env = "gnu", not(target_abi = "llvm"), not(windows_raw_dylib))) - ], - "//conditions:default": [], - }), -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel deleted file mode 100644 index 3ce452b92..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_gnullvm-0.48.5.bazel +++ /dev/null @@ -1,89 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "windows_aarch64_gnullvm", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_aarch64_gnullvm", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - deps = [ - "@cu__windows_aarch64_gnullvm-0.48.5//:build_script_build", - ], -) - -cargo_build_script( - name = "windows_aarch64_gnullvm_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_aarch64_gnullvm", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":windows_aarch64_gnullvm_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel deleted file mode 100644 index ad39bf532..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_aarch64_msvc-0.48.5.bazel +++ /dev/null @@ -1,89 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "windows_aarch64_msvc", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_aarch64_msvc", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - deps = [ - "@cu__windows_aarch64_msvc-0.48.5//:build_script_build", - ], -) - -cargo_build_script( - name = "windows_aarch64_msvc_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_aarch64_msvc", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":windows_aarch64_msvc_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel deleted file mode 100644 index aab6efffc..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnu-0.48.5.bazel +++ /dev/null @@ -1,89 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "windows_x86_64_gnu", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_x86_64_gnu", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - deps = [ - "@cu__windows_x86_64_gnu-0.48.5//:build_script_build", - ], -) - -cargo_build_script( - name = "windows_x86_64_gnu_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_x86_64_gnu", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":windows_x86_64_gnu_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel deleted file mode 100644 index a81216ee7..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_gnullvm-0.48.5.bazel +++ /dev/null @@ -1,89 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "windows_x86_64_gnullvm", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_x86_64_gnullvm", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - deps = [ - "@cu__windows_x86_64_gnullvm-0.48.5//:build_script_build", - ], -) - -cargo_build_script( - name = "windows_x86_64_gnullvm_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_x86_64_gnullvm", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":windows_x86_64_gnullvm_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel b/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel deleted file mode 100644 index 8089f76b8..000000000 --- a/bazel/cargo/wasmtime/remote/BUILD.windows_x86_64_msvc-0.48.5.bazel +++ /dev/null @@ -1,89 +0,0 @@ -############################################################################### -# @generated -# DO NOT MODIFY: This file is auto-generated by a crate_universe tool. To -# regenerate this file, run the following: -# -# bazel run @//bazel/cargo/wasmtime:crates_vendor -############################################################################### - -load("@rules_rust//cargo:defs.bzl", "cargo_build_script") -load("@rules_rust//rust:defs.bzl", "rust_library") - -package(default_visibility = ["//visibility:public"]) - -rust_library( - name = "windows_x86_64_msvc", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - compile_data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - crate_root = "src/lib.rs", - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_x86_64_msvc", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - deps = [ - "@cu__windows_x86_64_msvc-0.48.5//:build_script_build", - ], -) - -cargo_build_script( - name = "windows_x86_64_msvc_bs", - srcs = glob( - include = ["**/*.rs"], - allow_empty = False, - ), - crate_name = "build_script_build", - crate_root = "build.rs", - data = glob( - include = ["**"], - allow_empty = True, - exclude = [ - "**/* *", - ".tmp_git_root/**/*", - "BUILD", - "BUILD.bazel", - "WORKSPACE", - "WORKSPACE.bazel", - ], - ), - edition = "2018", - rustc_flags = [ - "--cap-lints=allow", - ], - tags = [ - "cargo-bazel", - "crate-name=windows_x86_64_msvc", - "manual", - "noclippy", - "norustfmt", - ], - version = "0.48.5", - visibility = ["//visibility:private"], -) - -alias( - name = "build_script_build", - actual = ":windows_x86_64_msvc_bs", - tags = ["manual"], -) diff --git a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel b/bazel/cargo/wasmtime/remote/BUILD.wit-parser-0.215.0.bazel similarity index 71% rename from bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel rename to bazel/cargo/wasmtime/remote/BUILD.wit-parser-0.215.0.bazel index 933d5a71f..f2e6ad6a2 100644 --- a/bazel/cargo/wasmtime/remote/BUILD.wasmtime-environ-9.0.4.bazel +++ b/bazel/cargo/wasmtime/remote/BUILD.wit-parser-0.215.0.bazel @@ -11,7 +11,7 @@ load("@rules_rust//rust:defs.bzl", "rust_library") package(default_visibility = ["//visibility:public"]) rust_library( - name = "wasmtime_environ", + name = "wit_parser", srcs = glob( include = ["**/*.rs"], allow_empty = False, @@ -30,28 +30,29 @@ rust_library( ), crate_root = "src/lib.rs", edition = "2021", + proc_macro_deps = [ + "@cu__serde_derive-1.0.204//:serde_derive", + ], rustc_flags = [ "--cap-lints=allow", ], tags = [ "cargo-bazel", - "crate-name=wasmtime-environ", + "crate-name=wit-parser", "manual", "noclippy", "norustfmt", ], - version = "9.0.4", + version = "0.215.0", deps = [ "@cu__anyhow-1.0.86//:anyhow", - "@cu__cranelift-entity-0.96.4//:cranelift_entity", - "@cu__gimli-0.27.3//:gimli", - "@cu__indexmap-1.9.3//:indexmap", + "@cu__id-arena-2.2.1//:id_arena", + "@cu__indexmap-2.3.0//:indexmap", "@cu__log-0.4.22//:log", - "@cu__object-0.30.4//:object", + "@cu__semver-1.0.23//:semver", "@cu__serde-1.0.204//:serde", - "@cu__target-lexicon-0.12.15//:target_lexicon", - "@cu__thiserror-1.0.63//:thiserror", - "@cu__wasmparser-0.103.0//:wasmparser", - "@cu__wasmtime-types-9.0.4//:wasmtime_types", + "@cu__serde_json-1.0.120//:serde_json", + "@cu__unicode-xid-0.2.4//:unicode_xid", + "@cu__wasmparser-0.215.0//:wasmparser", ], ) diff --git a/bazel/cargo/wasmtime/remote/defs.bzl b/bazel/cargo/wasmtime/remote/defs.bzl index fec029861..0f2656ce1 100644 --- a/bazel/cargo/wasmtime/remote/defs.bzl +++ b/bazel/cargo/wasmtime/remote/defs.bzl @@ -298,8 +298,10 @@ _NORMAL_DEPENDENCIES = { _COMMON_CONDITION: { "anyhow": Label("@cu__anyhow-1.0.86//:anyhow"), "env_logger": Label("@cu__env_logger-0.10.2//:env_logger"), + "log": Label("@cu__log-0.4.22//:log"), "once_cell": Label("@cu__once_cell-1.19.0//:once_cell"), - "wasmtime": Label("@cu__wasmtime-9.0.4//:wasmtime"), + "tracing": Label("@cu__tracing-0.1.40//:tracing"), + "wasmtime": Label("@cu__wasmtime-24.0.0//:wasmtime"), }, }, } @@ -324,7 +326,7 @@ _NORMAL_DEV_ALIASES = { _PROC_MACRO_DEPENDENCIES = { "bazel/cargo/wasmtime": { _COMMON_CONDITION: { - "wasmtime-c-api-macros": Label("@cu__wasmtime-c-api-macros-0.0.0//:wasmtime_c_api_macros"), + "wasmtime-c-api-macros": Label("@cu__wasmtime-c-api-macros-24.0.0//:wasmtime_c_api_macros"), }, }, } @@ -379,26 +381,22 @@ _CONDITIONS = { "armv7-linux-androideabi": ["@rules_rust//rust/platform:armv7-linux-androideabi"], "armv7-unknown-linux-gnueabi": ["@rules_rust//rust/platform:armv7-unknown-linux-gnueabi"], "cfg(all(any(target_arch = \"x86_64\", target_arch = \"arm64ec\"), target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], - "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], "cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-linux-android"], - "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\")))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"))))": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], - "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", any(target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\"), all(target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"powerpc64\", target_arch = \"riscv64\", target_arch = \"mips\", target_arch = \"mips64\"))))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", any(target_arch = \"arm\", all(target_arch = \"aarch64\", target_pointer_width = \"64\"), target_arch = \"riscv64\", all(rustix_use_experimental_asm, target_arch = \"powerpc64\"), all(rustix_use_experimental_asm, target_arch = \"mips\"), all(rustix_use_experimental_asm, target_arch = \"mips32r6\"), all(rustix_use_experimental_asm, target_arch = \"mips64\"), all(rustix_use_experimental_asm, target_arch = \"mips64r6\"), target_arch = \"x86\", all(target_arch = \"x86_64\", target_pointer_width = \"64\")))))))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-none"], "cfg(all(target_arch = \"aarch64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc"], "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], - "cfg(all(target_arch = \"x86\", target_env = \"gnu\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-unknown-linux-gnu"], "cfg(all(target_arch = \"x86\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:i686-pc-windows-msvc"], "cfg(all(target_arch = \"x86_64\", target_env = \"gnu\", not(target_abi = \"llvm\"), not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], - "cfg(all(target_arch = \"x86_64\", target_env = \"msvc\", not(windows_raw_dylib)))": ["@rules_rust//rust/platform:x86_64-pc-windows-msvc"], "cfg(any())": [], "cfg(any(target_arch = \"s390x\", target_arch = \"riscv64\"))": ["@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu"], "cfg(any(target_os = \"linux\", target_os = \"macos\", target_os = \"freebsd\", target_os = \"android\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(any(target_os = \"macos\", target_os = \"ios\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios"], "cfg(any(unix, target_os = \"wasi\"))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(not(all(target_arch = \"arm\", target_os = \"none\")))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], - "cfg(not(windows))": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:aarch64-apple-ios", "@rules_rust//rust/platform:aarch64-apple-ios-sim", "@rules_rust//rust/platform:aarch64-fuchsia", "@rules_rust//rust/platform:aarch64-linux-android", "@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:aarch64-unknown-nto-qnx710", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-linux-androideabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:i686-linux-android", "@rules_rust//rust/platform:i686-unknown-freebsd", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:riscv32imc-unknown-none-elf", "@rules_rust//rust/platform:riscv64gc-unknown-none-elf", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:thumbv7em-none-eabi", "@rules_rust//rust/platform:thumbv8m.main-none-eabi", "@rules_rust//rust/platform:wasm32-unknown-unknown", "@rules_rust//rust/platform:wasm32-wasi", "@rules_rust//rust/platform:x86_64-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-ios", "@rules_rust//rust/platform:x86_64-fuchsia", "@rules_rust//rust/platform:x86_64-linux-android", "@rules_rust//rust/platform:x86_64-unknown-freebsd", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu", "@rules_rust//rust/platform:x86_64-unknown-none"], + "cfg(target_arch = \"s390x\")": ["@rules_rust//rust/platform:s390x-unknown-linux-gnu"], "cfg(target_os = \"hermit\")": [], + "cfg(target_os = \"linux\")": ["@rules_rust//rust/platform:aarch64-unknown-linux-gnu", "@rules_rust//rust/platform:aarch64-unknown-nixos-gnu", "@rules_rust//rust/platform:arm-unknown-linux-gnueabi", "@rules_rust//rust/platform:armv7-unknown-linux-gnueabi", "@rules_rust//rust/platform:i686-unknown-linux-gnu", "@rules_rust//rust/platform:powerpc-unknown-linux-gnu", "@rules_rust//rust/platform:s390x-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-linux-gnu", "@rules_rust//rust/platform:x86_64-unknown-nixos-gnu"], "cfg(target_os = \"macos\")": ["@rules_rust//rust/platform:aarch64-apple-darwin", "@rules_rust//rust/platform:i686-apple-darwin", "@rules_rust//rust/platform:x86_64-apple-darwin"], "cfg(target_os = \"wasi\")": ["@rules_rust//rust/platform:wasm32-wasi"], "cfg(target_os = \"windows\")": ["@rules_rust//rust/platform:aarch64-pc-windows-msvc", "@rules_rust//rust/platform:i686-pc-windows-msvc", "@rules_rust//rust/platform:x86_64-pc-windows-msvc"], @@ -438,16 +436,6 @@ def crate_repositories(): Returns: A list of repos visible to the module through the module extension. """ - maybe( - http_archive, - name = "cu__addr2line-0.19.0", - sha256 = "a76fd60b23679b7d19bd066031410fb7e458ccc5e958eb5c325888ce4baedc97", - type = "tar.gz", - urls = ["https://static.crates.io/crates/addr2line/0.19.0/download"], - strip_prefix = "addr2line-0.19.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.addr2line-0.19.0.bazel"), - ) - maybe( http_archive, name = "cu__ahash-0.8.11", @@ -488,36 +476,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.arbitrary-1.3.2.bazel"), ) - maybe( - http_archive, - name = "cu__autocfg-1.3.0", - sha256 = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0", - type = "tar.gz", - urls = ["https://static.crates.io/crates/autocfg/1.3.0/download"], - strip_prefix = "autocfg-1.3.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.autocfg-1.3.0.bazel"), - ) - - maybe( - http_archive, - name = "cu__bincode-1.3.3", - sha256 = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad", - type = "tar.gz", - urls = ["https://static.crates.io/crates/bincode/1.3.3/download"], - strip_prefix = "bincode-1.3.3", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.bincode-1.3.3.bazel"), - ) - - maybe( - http_archive, - name = "cu__bitflags-1.3.2", - sha256 = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a", - type = "tar.gz", - urls = ["https://static.crates.io/crates/bitflags/1.3.2/download"], - strip_prefix = "bitflags-1.3.2", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.bitflags-1.3.2.bazel"), - ) - maybe( http_archive, name = "cu__bitflags-2.6.0", @@ -540,22 +498,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__byteorder-1.5.0", - sha256 = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b", - type = "tar.gz", - urls = ["https://static.crates.io/crates/byteorder/1.5.0/download"], - strip_prefix = "byteorder-1.5.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.byteorder-1.5.0.bazel"), - ) - - maybe( - http_archive, - name = "cu__cc-1.1.6", - sha256 = "2aba8f4e9906c7ce3c73463f62a7f0c65183ada1a2d47e397cc8810827f9694f", + name = "cu__cc-1.1.7", + sha256 = "26a5c3fd7bfa1ce3897a3a3501d362b2d87b7f2583ebcb4a949ec25911025cbc", type = "tar.gz", - urls = ["https://static.crates.io/crates/cc/1.1.6/download"], - strip_prefix = "cc-1.1.6", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cc-1.1.6.bazel"), + urls = ["https://static.crates.io/crates/cc/1.1.7/download"], + strip_prefix = "cc-1.1.7", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cc-1.1.7.bazel"), ) maybe( @@ -570,132 +518,132 @@ def crate_repositories(): maybe( http_archive, - name = "cu__cpp_demangle-0.3.5", - sha256 = "eeaa953eaad386a53111e47172c2fedba671e5684c8dd601a5f474f4f118710f", + name = "cu__cobs-0.2.3", + sha256 = "67ba02a97a2bd10f4b59b25c7973101c79642302776489e030cd13cdab09ed15", type = "tar.gz", - urls = ["https://static.crates.io/crates/cpp_demangle/0.3.5/download"], - strip_prefix = "cpp_demangle-0.3.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cpp_demangle-0.3.5.bazel"), + urls = ["https://static.crates.io/crates/cobs/0.2.3/download"], + strip_prefix = "cobs-0.2.3", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cobs-0.2.3.bazel"), ) maybe( http_archive, - name = "cu__cranelift-bforest-0.96.4", - sha256 = "182b82f78049f54d3aee5a19870d356ef754226665a695ce2fcdd5d55379718e", + name = "cu__cranelift-bforest-0.111.0", + sha256 = "b80c3a50b9c4c7e5b5f73c0ed746687774fc9e36ef652b110da8daebf0c6e0e6", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-bforest/0.96.4/download"], - strip_prefix = "cranelift-bforest-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-bforest/0.111.0/download"], + strip_prefix = "cranelift-bforest-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-bforest-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-codegen-0.96.4", - sha256 = "e7c027bf04ecae5b048d3554deb888061bc26f426afff47bf06d6ac933dce0a6", + name = "cu__cranelift-bitset-0.111.0", + sha256 = "38778758c2ca918b05acb2199134e0c561fb577c50574259b26190b6c2d95ded", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-codegen/0.96.4/download"], - strip_prefix = "cranelift-codegen-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-bitset/0.111.0/download"], + strip_prefix = "cranelift-bitset-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-bitset-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-codegen-meta-0.96.4", - sha256 = "649f70038235e4c81dba5680d7e5ae83e1081f567232425ab98b55b03afd9904", + name = "cu__cranelift-codegen-0.111.0", + sha256 = "58258667ad10e468bfc13a8d620f50dfcd4bb35d668123e97defa2549b9ad397", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-codegen-meta/0.96.4/download"], - strip_prefix = "cranelift-codegen-meta-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-codegen/0.111.0/download"], + strip_prefix = "cranelift-codegen-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-codegen-shared-0.96.4", - sha256 = "7a1d1c5ee2611c6a0bdc8d42d5d3dc5ce8bf53a8040561e26e88b9b21f966417", + name = "cu__cranelift-codegen-meta-0.111.0", + sha256 = "043f0b702e529dcb07ff92bd7d40e7d5317b5493595172c5eb0983343751ee06", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-codegen-shared/0.96.4/download"], - strip_prefix = "cranelift-codegen-shared-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-codegen-meta/0.111.0/download"], + strip_prefix = "cranelift-codegen-meta-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-meta-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-control-0.96.4", - sha256 = "da66a68b1f48da863d1d53209b8ddb1a6236411d2d72a280ffa8c2f734f7219e", + name = "cu__cranelift-codegen-shared-0.111.0", + sha256 = "7763578888ab53eca5ce7da141953f828e82c2bfadcffc106d10d1866094ffbb", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-control/0.96.4/download"], - strip_prefix = "cranelift-control-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-control-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-codegen-shared/0.111.0/download"], + strip_prefix = "cranelift-codegen-shared-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-codegen-shared-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-entity-0.96.4", - sha256 = "9bd897422dbb66621fa558f4d9209875530c53e3c8f4b13b2849fbb667c431a6", + name = "cu__cranelift-control-0.111.0", + sha256 = "32db15f08c05df570f11e8ab33cb1ec449a64b37c8a3498377b77650bef33d8b", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-entity/0.96.4/download"], - strip_prefix = "cranelift-entity-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-control/0.111.0/download"], + strip_prefix = "cranelift-control-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-control-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-frontend-0.96.4", - sha256 = "05db883114c98cfcd6959f72278d2fec42e01ea6a6982cfe4f20e88eebe86653", + name = "cu__cranelift-entity-0.111.0", + sha256 = "5289cdb399381a27e7bbfa1b42185916007c3d49aeef70b1d01cb4caa8010130", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-frontend/0.96.4/download"], - strip_prefix = "cranelift-frontend-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-entity/0.111.0/download"], + strip_prefix = "cranelift-entity-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-entity-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-isle-0.96.4", - sha256 = "84559de86e2564152c87e299c8b2559f9107e9c6d274b24ebeb04fb0a5f4abf8", + name = "cu__cranelift-frontend-0.111.0", + sha256 = "31ba8ab24eb9470477e98ddfa3c799a649ac5a0d9a2042868c4c952133c234e8", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-isle/0.96.4/download"], - strip_prefix = "cranelift-isle-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-frontend/0.111.0/download"], + strip_prefix = "cranelift-frontend-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-frontend-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-native-0.96.4", - sha256 = "3f40b57f187f0fe1ffaf281df4adba2b4bc623a0f6651954da9f3c184be72761", + name = "cu__cranelift-isle-0.111.0", + sha256 = "2b72a3c5c166a70426dcb209bdd0bb71a787c1ea76023dc0974fbabca770e8f9", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-native/0.96.4/download"], - strip_prefix = "cranelift-native-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-isle/0.111.0/download"], + strip_prefix = "cranelift-isle-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-isle-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__cranelift-wasm-0.96.4", - sha256 = "f3eab6084cc789b9dd0b1316241efeb2968199fee709f4bb4fe0fb0923bb468b", + name = "cu__cranelift-native-0.111.0", + sha256 = "46a42424c956bbc31fc5c2706073df896156c5420ae8fa2a5d48dbc7b295d71b", type = "tar.gz", - urls = ["https://static.crates.io/crates/cranelift-wasm/0.96.4/download"], - strip_prefix = "cranelift-wasm-0.96.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.96.4.bazel"), + urls = ["https://static.crates.io/crates/cranelift-native/0.111.0/download"], + strip_prefix = "cranelift-native-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-native-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__crc32fast-1.4.2", - sha256 = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3", + name = "cu__cranelift-wasm-0.111.0", + sha256 = "49778df4289933d735b93c30a345513e030cf83101de0036e19b760f8aa09f68", type = "tar.gz", - urls = ["https://static.crates.io/crates/crc32fast/1.4.2/download"], - strip_prefix = "crc32fast-1.4.2", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.4.2.bazel"), + urls = ["https://static.crates.io/crates/cranelift-wasm/0.111.0/download"], + strip_prefix = "cranelift-wasm-0.111.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.cranelift-wasm-0.111.0.bazel"), ) maybe( http_archive, - name = "cu__debugid-0.8.0", - sha256 = "bef552e6f588e446098f6ba40d89ac146c8c7b64aade83c051ee00bb5d2bc18d", + name = "cu__crc32fast-1.4.2", + sha256 = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3", type = "tar.gz", - urls = ["https://static.crates.io/crates/debugid/0.8.0/download"], - strip_prefix = "debugid-0.8.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.debugid-0.8.0.bazel"), + urls = ["https://static.crates.io/crates/crc32fast/1.4.2/download"], + strip_prefix = "crc32fast-1.4.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.crc32fast-1.4.2.bazel"), ) maybe( @@ -710,102 +658,92 @@ def crate_repositories(): maybe( http_archive, - name = "cu__env_logger-0.10.2", - sha256 = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580", + name = "cu__embedded-io-0.4.0", + sha256 = "ef1a6892d9eef45c8fa6b9e0086428a2cca8491aca8f787c534a3d6d0bcb3ced", type = "tar.gz", - urls = ["https://static.crates.io/crates/env_logger/0.10.2/download"], - strip_prefix = "env_logger-0.10.2", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.10.2.bazel"), + urls = ["https://static.crates.io/crates/embedded-io/0.4.0/download"], + strip_prefix = "embedded-io-0.4.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.embedded-io-0.4.0.bazel"), ) maybe( http_archive, - name = "cu__errno-0.3.9", - sha256 = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba", - type = "tar.gz", - urls = ["https://static.crates.io/crates/errno/0.3.9/download"], - strip_prefix = "errno-0.3.9", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.errno-0.3.9.bazel"), - ) - - maybe( - http_archive, - name = "cu__fallible-iterator-0.2.0", - sha256 = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7", + name = "cu__env_logger-0.10.2", + sha256 = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580", type = "tar.gz", - urls = ["https://static.crates.io/crates/fallible-iterator/0.2.0/download"], - strip_prefix = "fallible-iterator-0.2.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.fallible-iterator-0.2.0.bazel"), + urls = ["https://static.crates.io/crates/env_logger/0.10.2/download"], + strip_prefix = "env_logger-0.10.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.env_logger-0.10.2.bazel"), ) maybe( http_archive, - name = "cu__form_urlencoded-1.2.1", - sha256 = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456", + name = "cu__equivalent-1.0.1", + sha256 = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5", type = "tar.gz", - urls = ["https://static.crates.io/crates/form_urlencoded/1.2.1/download"], - strip_prefix = "form_urlencoded-1.2.1", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.form_urlencoded-1.2.1.bazel"), + urls = ["https://static.crates.io/crates/equivalent/1.0.1/download"], + strip_prefix = "equivalent-1.0.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.equivalent-1.0.1.bazel"), ) maybe( http_archive, - name = "cu__fxhash-0.2.1", - sha256 = "c31b6d751ae2c7f11320402d34e41349dd1016f8d5d45e48c4312bc8625af50c", + name = "cu__errno-0.3.9", + sha256 = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba", type = "tar.gz", - urls = ["https://static.crates.io/crates/fxhash/0.2.1/download"], - strip_prefix = "fxhash-0.2.1", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.fxhash-0.2.1.bazel"), + urls = ["https://static.crates.io/crates/errno/0.3.9/download"], + strip_prefix = "errno-0.3.9", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.errno-0.3.9.bazel"), ) maybe( http_archive, - name = "cu__fxprof-processed-profile-0.6.0", - sha256 = "27d12c0aed7f1e24276a241aadc4cb8ea9f83000f34bc062b7cc2d51e3b0fabd", + name = "cu__fallible-iterator-0.3.0", + sha256 = "2acce4a10f12dc2fb14a218589d4f1f62ef011b2d0cc4b3cb1bba8e94da14649", type = "tar.gz", - urls = ["https://static.crates.io/crates/fxprof-processed-profile/0.6.0/download"], - strip_prefix = "fxprof-processed-profile-0.6.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.fxprof-processed-profile-0.6.0.bazel"), + urls = ["https://static.crates.io/crates/fallible-iterator/0.3.0/download"], + strip_prefix = "fallible-iterator-0.3.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.fallible-iterator-0.3.0.bazel"), ) maybe( http_archive, - name = "cu__getrandom-0.2.15", - sha256 = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7", + name = "cu__gimli-0.29.0", + sha256 = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd", type = "tar.gz", - urls = ["https://static.crates.io/crates/getrandom/0.2.15/download"], - strip_prefix = "getrandom-0.2.15", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.getrandom-0.2.15.bazel"), + urls = ["https://static.crates.io/crates/gimli/0.29.0/download"], + strip_prefix = "gimli-0.29.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.gimli-0.29.0.bazel"), ) maybe( http_archive, - name = "cu__gimli-0.27.3", - sha256 = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e", + name = "cu__hashbrown-0.13.2", + sha256 = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e", type = "tar.gz", - urls = ["https://static.crates.io/crates/gimli/0.27.3/download"], - strip_prefix = "gimli-0.27.3", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.gimli-0.27.3.bazel"), + urls = ["https://static.crates.io/crates/hashbrown/0.13.2/download"], + strip_prefix = "hashbrown-0.13.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.13.2.bazel"), ) maybe( http_archive, - name = "cu__hashbrown-0.12.3", - sha256 = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888", + name = "cu__hashbrown-0.14.5", + sha256 = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1", type = "tar.gz", - urls = ["https://static.crates.io/crates/hashbrown/0.12.3/download"], - strip_prefix = "hashbrown-0.12.3", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.12.3.bazel"), + urls = ["https://static.crates.io/crates/hashbrown/0.14.5/download"], + strip_prefix = "hashbrown-0.14.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.14.5.bazel"), ) maybe( http_archive, - name = "cu__hashbrown-0.13.2", - sha256 = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e", + name = "cu__heck-0.4.1", + sha256 = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8", type = "tar.gz", - urls = ["https://static.crates.io/crates/hashbrown/0.13.2/download"], - strip_prefix = "hashbrown-0.13.2", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.hashbrown-0.13.2.bazel"), + urls = ["https://static.crates.io/crates/heck/0.4.1/download"], + strip_prefix = "heck-0.4.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.heck-0.4.1.bazel"), ) maybe( @@ -830,32 +768,22 @@ def crate_repositories(): maybe( http_archive, - name = "cu__idna-0.5.0", - sha256 = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6", + name = "cu__id-arena-2.2.1", + sha256 = "25a2bc672d1148e28034f176e01fffebb08b35768468cc954630da77a1449005", type = "tar.gz", - urls = ["https://static.crates.io/crates/idna/0.5.0/download"], - strip_prefix = "idna-0.5.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.idna-0.5.0.bazel"), + urls = ["https://static.crates.io/crates/id-arena/2.2.1/download"], + strip_prefix = "id-arena-2.2.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.id-arena-2.2.1.bazel"), ) maybe( http_archive, - name = "cu__indexmap-1.9.3", - sha256 = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99", + name = "cu__indexmap-2.3.0", + sha256 = "de3fc2e30ba82dd1b3911c8de1ffc143c74a914a14e99514d7637e3099df5ea0", type = "tar.gz", - urls = ["https://static.crates.io/crates/indexmap/1.9.3/download"], - strip_prefix = "indexmap-1.9.3", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.indexmap-1.9.3.bazel"), - ) - - maybe( - http_archive, - name = "cu__io-lifetimes-1.0.11", - sha256 = "eae7b9aee968036d54dce06cebaefd919e4472e753296daccd6d344e3e2df0c2", - type = "tar.gz", - urls = ["https://static.crates.io/crates/io-lifetimes/1.0.11/download"], - strip_prefix = "io-lifetimes-1.0.11", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.io-lifetimes-1.0.11.bazel"), + urls = ["https://static.crates.io/crates/indexmap/2.3.0/download"], + strip_prefix = "indexmap-2.3.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.indexmap-2.3.0.bazel"), ) maybe( @@ -870,12 +798,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__itertools-0.10.5", - sha256 = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473", + name = "cu__itertools-0.12.1", + sha256 = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569", type = "tar.gz", - urls = ["https://static.crates.io/crates/itertools/0.10.5/download"], - strip_prefix = "itertools-0.10.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.itertools-0.10.5.bazel"), + urls = ["https://static.crates.io/crates/itertools/0.12.1/download"], + strip_prefix = "itertools-0.12.1", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.itertools-0.12.1.bazel"), ) maybe( @@ -888,6 +816,16 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.itoa-1.0.11.bazel"), ) + maybe( + http_archive, + name = "cu__leb128-0.2.5", + sha256 = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67", + type = "tar.gz", + urls = ["https://static.crates.io/crates/leb128/0.2.5/download"], + strip_prefix = "leb128-0.2.5", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.leb128-0.2.5.bazel"), + ) + maybe( http_archive, name = "cu__libc-0.2.155", @@ -900,12 +838,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__linux-raw-sys-0.3.8", - sha256 = "ef53942eb7bf7ff43a617b3e2c1c4a5ecf5944a7c1bc12d7ee39bbb15e5c1519", + name = "cu__libm-0.2.8", + sha256 = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058", type = "tar.gz", - urls = ["https://static.crates.io/crates/linux-raw-sys/0.3.8/download"], - strip_prefix = "linux-raw-sys-0.3.8", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.linux-raw-sys-0.3.8.bazel"), + urls = ["https://static.crates.io/crates/libm/0.2.8/download"], + strip_prefix = "libm-0.2.8", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.libm-0.2.8.bazel"), ) maybe( @@ -930,12 +868,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__mach-0.3.2", - sha256 = "b823e83b2affd8f40a9ee8c29dbc56404c1e34cd2710921f2801e2cf29527afa", + name = "cu__mach2-0.4.2", + sha256 = "19b955cdeb2a02b9117f121ce63aa52d08ade45de53e48fe6a38b39c10f6f709", type = "tar.gz", - urls = ["https://static.crates.io/crates/mach/0.3.2/download"], - strip_prefix = "mach-0.3.2", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.mach-0.3.2.bazel"), + urls = ["https://static.crates.io/crates/mach2/0.4.2/download"], + strip_prefix = "mach2-0.4.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.mach2-0.4.2.bazel"), ) maybe( @@ -960,22 +898,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__memoffset-0.8.0", - sha256 = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1", + name = "cu__object-0.36.2", + sha256 = "3f203fa8daa7bb185f760ae12bd8e097f63d17041dcdcaf675ac54cdf863170e", type = "tar.gz", - urls = ["https://static.crates.io/crates/memoffset/0.8.0/download"], - strip_prefix = "memoffset-0.8.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.memoffset-0.8.0.bazel"), - ) - - maybe( - http_archive, - name = "cu__object-0.30.4", - sha256 = "03b4680b86d9cfafba8fc491dc9b6df26b68cf40e9e6cd73909194759a63c385", - type = "tar.gz", - urls = ["https://static.crates.io/crates/object/0.30.4/download"], - strip_prefix = "object-0.30.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.object-0.30.4.bazel"), + urls = ["https://static.crates.io/crates/object/0.36.2/download"], + strip_prefix = "object-0.36.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.object-0.36.2.bazel"), ) maybe( @@ -1000,22 +928,22 @@ def crate_repositories(): maybe( http_archive, - name = "cu__percent-encoding-2.3.1", - sha256 = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e", + name = "cu__pin-project-lite-0.2.14", + sha256 = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02", type = "tar.gz", - urls = ["https://static.crates.io/crates/percent-encoding/2.3.1/download"], - strip_prefix = "percent-encoding-2.3.1", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.percent-encoding-2.3.1.bazel"), + urls = ["https://static.crates.io/crates/pin-project-lite/0.2.14/download"], + strip_prefix = "pin-project-lite-0.2.14", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.pin-project-lite-0.2.14.bazel"), ) maybe( http_archive, - name = "cu__ppv-lite86-0.2.17", - sha256 = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de", + name = "cu__postcard-1.0.8", + sha256 = "a55c51ee6c0db07e68448e336cf8ea4131a620edefebf9893e759b2d793420f8", type = "tar.gz", - urls = ["https://static.crates.io/crates/ppv-lite86/0.2.17/download"], - strip_prefix = "ppv-lite86-0.2.17", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.ppv-lite86-0.2.17.bazel"), + urls = ["https://static.crates.io/crates/postcard/1.0.8/download"], + strip_prefix = "postcard-1.0.8", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.postcard-1.0.8.bazel"), ) maybe( @@ -1050,42 +978,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__rand-0.8.5", - sha256 = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404", - type = "tar.gz", - urls = ["https://static.crates.io/crates/rand/0.8.5/download"], - strip_prefix = "rand-0.8.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rand-0.8.5.bazel"), - ) - - maybe( - http_archive, - name = "cu__rand_chacha-0.3.1", - sha256 = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88", - type = "tar.gz", - urls = ["https://static.crates.io/crates/rand_chacha/0.3.1/download"], - strip_prefix = "rand_chacha-0.3.1", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rand_chacha-0.3.1.bazel"), - ) - - maybe( - http_archive, - name = "cu__rand_core-0.6.4", - sha256 = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c", + name = "cu__regalloc2-0.9.3", + sha256 = "ad156d539c879b7a24a363a2016d77961786e71f48f2e2fc8302a92abd2429a6", type = "tar.gz", - urls = ["https://static.crates.io/crates/rand_core/0.6.4/download"], - strip_prefix = "rand_core-0.6.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rand_core-0.6.4.bazel"), - ) - - maybe( - http_archive, - name = "cu__regalloc2-0.8.1", - sha256 = "d4a52e724646c6c0800fc456ec43b4165d2f91fba88ceaca06d9e0b400023478", - type = "tar.gz", - urls = ["https://static.crates.io/crates/regalloc2/0.8.1/download"], - strip_prefix = "regalloc2-0.8.1", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.8.1.bazel"), + urls = ["https://static.crates.io/crates/regalloc2/0.9.3/download"], + strip_prefix = "regalloc2-0.9.3", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.regalloc2-0.9.3.bazel"), ) maybe( @@ -1118,16 +1016,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.regex-syntax-0.8.4.bazel"), ) - maybe( - http_archive, - name = "cu__rustc-demangle-0.1.24", - sha256 = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f", - type = "tar.gz", - urls = ["https://static.crates.io/crates/rustc-demangle/0.1.24/download"], - strip_prefix = "rustc-demangle-0.1.24", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rustc-demangle-0.1.24.bazel"), - ) - maybe( http_archive, name = "cu__rustc-hash-1.1.0", @@ -1138,16 +1026,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rustc-hash-1.1.0.bazel"), ) - maybe( - http_archive, - name = "cu__rustix-0.37.27", - sha256 = "fea8ca367a3a01fe35e6943c400addf443c0f57670e6ec51196f71a4b8762dd2", - type = "tar.gz", - urls = ["https://static.crates.io/crates/rustix/0.37.27/download"], - strip_prefix = "rustix-0.37.27", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.rustix-0.37.27.bazel"), - ) - maybe( http_archive, name = "cu__rustix-0.38.34", @@ -1168,6 +1046,16 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.ryu-1.0.18.bazel"), ) + maybe( + http_archive, + name = "cu__semver-1.0.23", + sha256 = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b", + type = "tar.gz", + urls = ["https://static.crates.io/crates/semver/1.0.23/download"], + strip_prefix = "semver-1.0.23", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.semver-1.0.23.bazel"), + ) + maybe( http_archive, name = "cu__serde-1.0.204", @@ -1218,6 +1106,16 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.smallvec-1.13.2.bazel"), ) + maybe( + http_archive, + name = "cu__sptr-0.3.2", + sha256 = "3b9b39299b249ad65f3b7e96443bad61c02ca5cd3589f46cb6d610a0fd6c0d6a", + type = "tar.gz", + urls = ["https://static.crates.io/crates/sptr/0.3.2/download"], + strip_prefix = "sptr-0.3.2", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.sptr-0.3.2.bazel"), + ) + maybe( http_archive, name = "cu__stable_deref_trait-1.2.0", @@ -1240,12 +1138,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__target-lexicon-0.12.15", - sha256 = "4873307b7c257eddcb50c9bedf158eb669578359fb28428bef438fec8e6ba7c2", + name = "cu__target-lexicon-0.12.16", + sha256 = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1", type = "tar.gz", - urls = ["https://static.crates.io/crates/target-lexicon/0.12.15/download"], - strip_prefix = "target-lexicon-0.12.15", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.15.bazel"), + urls = ["https://static.crates.io/crates/target-lexicon/0.12.16/download"], + strip_prefix = "target-lexicon-0.12.16", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.target-lexicon-0.12.16.bazel"), ) maybe( @@ -1280,32 +1178,32 @@ def crate_repositories(): maybe( http_archive, - name = "cu__tinyvec-1.8.0", - sha256 = "445e881f4f6d382d5f27c034e25eb92edd7c784ceab92a0937db7f2e9471b938", + name = "cu__tracing-0.1.40", + sha256 = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef", type = "tar.gz", - urls = ["https://static.crates.io/crates/tinyvec/1.8.0/download"], - strip_prefix = "tinyvec-1.8.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.tinyvec-1.8.0.bazel"), + urls = ["https://static.crates.io/crates/tracing/0.1.40/download"], + strip_prefix = "tracing-0.1.40", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.tracing-0.1.40.bazel"), ) maybe( http_archive, - name = "cu__tinyvec_macros-0.1.1", - sha256 = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20", + name = "cu__tracing-attributes-0.1.27", + sha256 = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7", type = "tar.gz", - urls = ["https://static.crates.io/crates/tinyvec_macros/0.1.1/download"], - strip_prefix = "tinyvec_macros-0.1.1", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.tinyvec_macros-0.1.1.bazel"), + urls = ["https://static.crates.io/crates/tracing-attributes/0.1.27/download"], + strip_prefix = "tracing-attributes-0.1.27", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.tracing-attributes-0.1.27.bazel"), ) maybe( http_archive, - name = "cu__unicode-bidi-0.3.15", - sha256 = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75", + name = "cu__tracing-core-0.1.32", + sha256 = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54", type = "tar.gz", - urls = ["https://static.crates.io/crates/unicode-bidi/0.3.15/download"], - strip_prefix = "unicode-bidi-0.3.15", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.unicode-bidi-0.3.15.bazel"), + urls = ["https://static.crates.io/crates/tracing-core/0.1.32/download"], + strip_prefix = "tracing-core-0.1.32", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.tracing-core-0.1.32.bazel"), ) maybe( @@ -1320,32 +1218,12 @@ def crate_repositories(): maybe( http_archive, - name = "cu__unicode-normalization-0.1.23", - sha256 = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5", - type = "tar.gz", - urls = ["https://static.crates.io/crates/unicode-normalization/0.1.23/download"], - strip_prefix = "unicode-normalization-0.1.23", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.unicode-normalization-0.1.23.bazel"), - ) - - maybe( - http_archive, - name = "cu__url-2.5.2", - sha256 = "22784dbdf76fdde8af1aeda5622b546b422b6fc585325248a2bf9f5e41e94d6c", + name = "cu__unicode-xid-0.2.4", + sha256 = "f962df74c8c05a667b5ee8bcf162993134c104e96440b663c8daa176dc772d8c", type = "tar.gz", - urls = ["https://static.crates.io/crates/url/2.5.2/download"], - strip_prefix = "url-2.5.2", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.url-2.5.2.bazel"), - ) - - maybe( - http_archive, - name = "cu__uuid-1.10.0", - sha256 = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314", - type = "tar.gz", - urls = ["https://static.crates.io/crates/uuid/1.10.0/download"], - strip_prefix = "uuid-1.10.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.uuid-1.10.0.bazel"), + urls = ["https://static.crates.io/crates/unicode-xid/0.2.4/download"], + strip_prefix = "unicode-xid-0.2.4", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.unicode-xid-0.2.4.bazel"), ) maybe( @@ -1360,152 +1238,162 @@ def crate_repositories(): maybe( http_archive, - name = "cu__wasi-0.11.0-wasi-snapshot-preview1", - sha256 = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423", + name = "cu__wasm-encoder-0.215.0", + sha256 = "4fb56df3e06b8e6b77e37d2969a50ba51281029a9aeb3855e76b7f49b6418847", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wasm-encoder/0.215.0/download"], + strip_prefix = "wasm-encoder-0.215.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasm-encoder-0.215.0.bazel"), + ) + + maybe( + http_archive, + name = "cu__wasmparser-0.215.0", + sha256 = "53fbde0881f24199b81cf49b6ff8f9c145ac8eb1b7fc439adb5c099734f7d90e", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasi/0.11.0+wasi-snapshot-preview1/download"], - strip_prefix = "wasi-0.11.0+wasi-snapshot-preview1", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasi-0.11.0+wasi-snapshot-preview1.bazel"), + urls = ["https://static.crates.io/crates/wasmparser/0.215.0/download"], + strip_prefix = "wasmparser-0.215.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.215.0.bazel"), ) maybe( http_archive, - name = "cu__wasmparser-0.103.0", - sha256 = "2c437373cac5ea84f1113d648d51f71751ffbe3d90c00ae67618cf20d0b5ee7b", + name = "cu__wasmprinter-0.215.0", + sha256 = "d8e9a325d85053408209b3d2ce5eaddd0dd6864d1cff7a007147ba073157defc", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmparser/0.103.0/download"], - strip_prefix = "wasmparser-0.103.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmparser-0.103.0.bazel"), + urls = ["https://static.crates.io/crates/wasmprinter/0.215.0/download"], + strip_prefix = "wasmprinter-0.215.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmprinter-0.215.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-9.0.4", - sha256 = "634357e8668774b24c80b210552f3f194e2342a065d6d83845ba22c5817d0770", + name = "cu__wasmtime-24.0.0", + sha256 = "9a5883d64dfc8423c56e3d8df27cffc44db25336aa468e8e0724fddf30a333d7", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime/9.0.4/download"], - strip_prefix = "wasmtime-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime/24.0.0/download"], + strip_prefix = "wasmtime-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-asm-macros-9.0.4", - sha256 = "d33c73c24ce79b0483a3b091a9acf88871f4490b88998e8974b22236264d304c", + name = "cu__wasmtime-asm-macros-24.0.0", + sha256 = "1c4dc7e2a379c0dd6be5b55857d14c4b277f43a9c429a9e14403eb61776ae3be", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-asm-macros/9.0.4/download"], - strip_prefix = "wasmtime-asm-macros-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-asm-macros/24.0.0/download"], + strip_prefix = "wasmtime-asm-macros-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-asm-macros-24.0.0.bazel"), ) maybe( new_git_repository, - name = "cu__wasmtime-c-api-macros-0.0.0", - commit = "271b605e8d3d44c5d0a39bb4e65c3efb3869ff74", + name = "cu__wasmtime-c-api-macros-24.0.0", + commit = "6fc3d274c7994dad20c816ccc0739bf766b39a11", init_submodules = True, remote = "https://github.com/bytecodealliance/wasmtime", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-0.0.0.bazel"), - strip_prefix = "crates/c-api/macros", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-c-api-macros-24.0.0.bazel"), + strip_prefix = "crates/c-api-macros", ) maybe( http_archive, - name = "cu__wasmtime-cranelift-9.0.4", - sha256 = "5800616a28ed6bd5e8b99ea45646c956d798ae030494ac0689bc3e45d3b689c1", + name = "cu__wasmtime-component-macro-24.0.0", + sha256 = "4b07773d1c3dab5f014ec61316ee317aa424033e17e70a63abdf7c3a47e58fcf", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-cranelift/9.0.4/download"], - strip_prefix = "wasmtime-cranelift-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-component-macro/24.0.0/download"], + strip_prefix = "wasmtime-component-macro-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-component-macro-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-cranelift-shared-9.0.4", - sha256 = "27e4030b959ac5c5d6ee500078977e813f8768fa2b92fc12be01856cd0c76c55", + name = "cu__wasmtime-component-util-24.0.0", + sha256 = "e38d735320f4e83478369ce649ad8fe87c6b893220902e798547a225fc0c5874", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-cranelift-shared/9.0.4/download"], - strip_prefix = "wasmtime-cranelift-shared-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-shared-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-component-util/24.0.0/download"], + strip_prefix = "wasmtime-component-util-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-component-util-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-environ-9.0.4", - sha256 = "9ec815d01a8d38aceb7ed4678f9ba551ae6b8a568a63810ac3ad9293b0fd01c8", + name = "cu__wasmtime-cranelift-24.0.0", + sha256 = "e570d831d0785d93d7d8c722b1eb9a34e0d0c1534317666f65892818358a2da9", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-environ/9.0.4/download"], - strip_prefix = "wasmtime-environ-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-cranelift/24.0.0/download"], + strip_prefix = "wasmtime-cranelift-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-cranelift-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-jit-9.0.4", - sha256 = "2712eafe829778b426cad0e1769fef944898923dd29f0039e34e0d53ba72b234", + name = "cu__wasmtime-environ-24.0.0", + sha256 = "c5fe80dfbd81687431a7d4f25929fae1ae96894786d5c96b14ae41164ee97377", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-jit/9.0.4/download"], - strip_prefix = "wasmtime-jit-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-environ/24.0.0/download"], + strip_prefix = "wasmtime-environ-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-environ-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-jit-debug-9.0.4", - sha256 = "65fb78eacf4a6e47260d8ef8cc81ea8ddb91397b2e848b3fb01567adebfe89b5", + name = "cu__wasmtime-jit-icache-coherence-24.0.0", + sha256 = "d15de8429db996f0d17a4163a35eccc3f874cbfb50f29c379951ea1bbb39452e", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-jit-debug/9.0.4/download"], - strip_prefix = "wasmtime-jit-debug-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-debug-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-jit-icache-coherence/24.0.0/download"], + strip_prefix = "wasmtime-jit-icache-coherence-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-icache-coherence-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-jit-icache-coherence-9.0.4", - sha256 = "d1364900b05f7d6008516121e8e62767ddb3e176bdf4c84dfa85da1734aeab79", + name = "cu__wasmtime-slab-24.0.0", + sha256 = "1f68d38fa6b30c5e1fc7d608263062997306f79e577ebd197ddcd6b0f55d87d1", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-jit-icache-coherence/9.0.4/download"], - strip_prefix = "wasmtime-jit-icache-coherence-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-jit-icache-coherence-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-slab/24.0.0/download"], + strip_prefix = "wasmtime-slab-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-slab-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-runtime-9.0.4", - sha256 = "4a16ffe4de9ac9669175c0ea5c6c51ffc596dfb49320aaa6f6c57eff58cef069", + name = "cu__wasmtime-types-24.0.0", + sha256 = "6634e7079d9c5cfc81af8610ed59b488cc5b7f9777a2f4c1667a2565c2e45249", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-runtime/9.0.4/download"], - strip_prefix = "wasmtime-runtime-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-runtime-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-types/24.0.0/download"], + strip_prefix = "wasmtime-types-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__wasmtime-types-9.0.4", - sha256 = "19961c9a3b04d5e766875a5c467f6f5d693f508b3e81f8dc4a1444aa94f041c9", + name = "cu__wasmtime-versioned-export-macros-24.0.0", + sha256 = "3850e3511d6c7f11a72d571890b0ed5f6204681f7f050b9de2690e7f13123fed", type = "tar.gz", - urls = ["https://static.crates.io/crates/wasmtime-types/9.0.4/download"], - strip_prefix = "wasmtime-types-9.0.4", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-types-9.0.4.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-versioned-export-macros/24.0.0/download"], + strip_prefix = "wasmtime-versioned-export-macros-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-versioned-export-macros-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__winapi-util-0.1.8", - sha256 = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b", + name = "cu__wasmtime-wit-bindgen-24.0.0", + sha256 = "3cb331ac7ed1d5ba49cddcdb6b11973752a857148858bb308777d2fc5584121f", type = "tar.gz", - urls = ["https://static.crates.io/crates/winapi-util/0.1.8/download"], - strip_prefix = "winapi-util-0.1.8", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.winapi-util-0.1.8.bazel"), + urls = ["https://static.crates.io/crates/wasmtime-wit-bindgen/24.0.0/download"], + strip_prefix = "wasmtime-wit-bindgen-24.0.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wasmtime-wit-bindgen-24.0.0.bazel"), ) maybe( http_archive, - name = "cu__windows-sys-0.48.0", - sha256 = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9", + name = "cu__winapi-util-0.1.8", + sha256 = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b", type = "tar.gz", - urls = ["https://static.crates.io/crates/windows-sys/0.48.0/download"], - strip_prefix = "windows-sys-0.48.0", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.48.0.bazel"), + urls = ["https://static.crates.io/crates/winapi-util/0.1.8/download"], + strip_prefix = "winapi-util-0.1.8", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.winapi-util-0.1.8.bazel"), ) maybe( @@ -1518,16 +1406,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-sys-0.52.0.bazel"), ) - maybe( - http_archive, - name = "cu__windows-targets-0.48.5", - sha256 = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows-targets/0.48.5/download"], - strip_prefix = "windows-targets-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows-targets-0.52.6", @@ -1538,16 +1416,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows-targets-0.52.6.bazel"), ) - maybe( - http_archive, - name = "cu__windows_aarch64_gnullvm-0.48.5", - sha256 = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows_aarch64_gnullvm/0.48.5/download"], - strip_prefix = "windows_aarch64_gnullvm-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows_aarch64_gnullvm-0.52.6", @@ -1558,16 +1426,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_gnullvm-0.52.6.bazel"), ) - maybe( - http_archive, - name = "cu__windows_aarch64_msvc-0.48.5", - sha256 = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows_aarch64_msvc/0.48.5/download"], - strip_prefix = "windows_aarch64_msvc-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows_aarch64_msvc-0.52.6", @@ -1578,16 +1436,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_aarch64_msvc-0.52.6.bazel"), ) - maybe( - http_archive, - name = "cu__windows_i686_gnu-0.48.5", - sha256 = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows_i686_gnu/0.48.5/download"], - strip_prefix = "windows_i686_gnu-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnu-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows_i686_gnu-0.52.6", @@ -1608,16 +1456,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_gnullvm-0.52.6.bazel"), ) - maybe( - http_archive, - name = "cu__windows_i686_msvc-0.48.5", - sha256 = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows_i686_msvc/0.48.5/download"], - strip_prefix = "windows_i686_msvc-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows_i686_msvc-0.52.6", @@ -1628,16 +1466,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_i686_msvc-0.52.6.bazel"), ) - maybe( - http_archive, - name = "cu__windows_x86_64_gnu-0.48.5", - sha256 = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows_x86_64_gnu/0.48.5/download"], - strip_prefix = "windows_x86_64_gnu-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows_x86_64_gnu-0.52.6", @@ -1648,16 +1476,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnu-0.52.6.bazel"), ) - maybe( - http_archive, - name = "cu__windows_x86_64_gnullvm-0.48.5", - sha256 = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows_x86_64_gnullvm/0.48.5/download"], - strip_prefix = "windows_x86_64_gnullvm-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows_x86_64_gnullvm-0.52.6", @@ -1668,16 +1486,6 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_gnullvm-0.52.6.bazel"), ) - maybe( - http_archive, - name = "cu__windows_x86_64_msvc-0.48.5", - sha256 = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538", - type = "tar.gz", - urls = ["https://static.crates.io/crates/windows_x86_64_msvc/0.48.5/download"], - strip_prefix = "windows_x86_64_msvc-0.48.5", - build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.48.5.bazel"), - ) - maybe( http_archive, name = "cu__windows_x86_64_msvc-0.52.6", @@ -1688,6 +1496,16 @@ def crate_repositories(): build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.windows_x86_64_msvc-0.52.6.bazel"), ) + maybe( + http_archive, + name = "cu__wit-parser-0.215.0", + sha256 = "935a97eaffd57c3b413aa510f8f0b550a4a9fe7d59e79cd8b89a83dcb860321f", + type = "tar.gz", + urls = ["https://static.crates.io/crates/wit-parser/0.215.0/download"], + strip_prefix = "wit-parser-0.215.0", + build_file = Label("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:BUILD.wit-parser-0.215.0.bazel"), + ) + maybe( http_archive, name = "cu__zerocopy-0.7.35", @@ -1711,7 +1529,9 @@ def crate_repositories(): return [ struct(repo = "cu__anyhow-1.0.86", is_dev_dep = False), struct(repo = "cu__env_logger-0.10.2", is_dev_dep = False), + struct(repo = "cu__log-0.4.22", is_dev_dep = False), struct(repo = "cu__once_cell-1.19.0", is_dev_dep = False), - struct(repo = "cu__wasmtime-9.0.4", is_dev_dep = False), - struct(repo = "cu__wasmtime-c-api-macros-0.0.0", is_dev_dep = False), + struct(repo = "cu__tracing-0.1.40", is_dev_dep = False), + struct(repo = "cu__wasmtime-24.0.0", is_dev_dep = False), + struct(repo = "cu__wasmtime-c-api-macros-24.0.0", is_dev_dep = False), ] diff --git a/bazel/external/wasm-c-api.BUILD b/bazel/external/wasm-c-api.BUILD deleted file mode 100644 index 4946da7db..000000000 --- a/bazel/external/wasm-c-api.BUILD +++ /dev/null @@ -1,60 +0,0 @@ -load("@rules_cc//cc:defs.bzl", "cc_library") - -licenses(["notice"]) # Apache 2 - -package(default_visibility = ["//visibility:public"]) - -cc_library( - name = "wasmtime_lib", - hdrs = [ - "include/wasm.h", - ], - deps = [ - "@com_github_bytecodealliance_wasmtime//:rust_c_api", - ], -) - -genrule( - name = "prefixed_wasmtime_c_api_headers", - srcs = [ - "include/wasm.h", - ], - outs = [ - "include/prefixed_wasm.h", - ], - cmd = """ - sed -e 's/\\ wasm_/\\ wasmtime_wasm_/g' \ - -e 's/\\*wasm_/\\*wasmtime_wasm_/g' \ - -e 's/(wasm_/(wasmtime_wasm_/g' \ - $(<) >$@ - """, -) - -genrule( - name = "prefixed_wasmtime_c_api_lib", - srcs = [ - "@com_github_bytecodealliance_wasmtime//:rust_c_api", - ], - outs = [ - "prefixed_wasmtime_c_api.a", - ], - cmd = """ - for symbol in $$(nm -P $(<) 2>/dev/null | grep -E ^_?wasm_ | cut -d" " -f1); do - echo $$symbol | sed -r 's/^(_?)(wasm_[a-z_]+)$$/\\1\\2 \\1wasmtime_\\2/' >>prefixed - done - # This should be OBJCOPY, but bazel-zig-cc doesn't define it. - objcopy --redefine-syms=prefixed $(<) $@ - """, - toolchains = ["@bazel_tools//tools/cpp:current_cc_toolchain"], -) - -cc_library( - name = "prefixed_wasmtime_lib", - srcs = [ - ":prefixed_wasmtime_c_api_lib", - ], - hdrs = [ - ":prefixed_wasmtime_c_api_headers", - ], - linkstatic = 1, -) diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index 584366615..79a331f18 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -1,15 +1,71 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_rust//rust:defs.bzl", "rust_static_library") licenses(["notice"]) # Apache 2 package(default_visibility = ["//visibility:public"]) +cc_library( + name = "wasmtime_lib", + hdrs = [ + "crates/c-api/include/wasm.h", + ], + deps = [ + ":rust_c_api", + ], +) + +genrule( + name = "prefixed_wasmtime_c_api_headers", + srcs = [ + "crates/c-api/include/wasm.h", + ], + outs = [ + "include/prefixed_wasm.h", + ], + cmd = """ + sed -e 's/\\ wasm_/\\ wasmtime_wasm_/g' \ + -e 's/\\*wasm_/\\*wasmtime_wasm_/g' \ + -e 's/(wasm_/(wasmtime_wasm_/g' \ + $(<) >$@ + """, +) + +genrule( + name = "prefixed_wasmtime_c_api_lib", + srcs = [ + ":rust_c_api", + ], + outs = [ + "prefixed_wasmtime_c_api.a", + ], + cmd = """ + for symbol in $$(nm -P $(<) 2>/dev/null | grep -E ^_?wasm_ | cut -d" " -f1); do + echo $$symbol | sed -r 's/^(_?)(wasm_[a-z_]+)$$/\\1\\2 \\1wasmtime_\\2/' >>prefixed + done + # This should be OBJCOPY, but bazel-zig-cc doesn't define it. + objcopy --redefine-syms=prefixed $(<) $@ + """, + toolchains = ["@bazel_tools//tools/cpp:current_cc_toolchain"], +) + +cc_library( + name = "prefixed_wasmtime_lib", + srcs = [ + ":prefixed_wasmtime_c_api_lib", + ], + hdrs = [ + ":prefixed_wasmtime_c_api_headers", + ], + linkstatic = 1, +) + rust_static_library( name = "rust_c_api", srcs = glob(["crates/c-api/src/**/*.rs"]), - crate_features = [], + crate_features = ["cranelift"], crate_root = "crates/c-api/src/lib.rs", - edition = "2018", + edition = "2021", proc_macro_deps = [ "@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:wasmtime-c-api-macros", ], diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 2586ed21b..2665f24d5 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -240,28 +240,19 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasmtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wasmtime.BUILD", - sha256 = "917da461249b11a3176a39573723f78c627259576d0ca10b00d6e7f7fa047081", - strip_prefix = "wasmtime-9.0.3", - url = "https://github.com/bytecodealliance/wasmtime/archive/v9.0.3.tar.gz", - ) - - maybe( - http_archive, - name = "com_github_webassembly_wasm_c_api", - build_file = "@proxy_wasm_cpp_host//bazel/external:wasm-c-api.BUILD", - sha256 = "c774044f51431429e878bd1b9e2a4e38932f861f9211df72f75e9427eb6b8d32", - strip_prefix = "wasm-c-api-c9d31284651b975f05ac27cee0bab1377560b87e", - url = "https://github.com/WebAssembly/wasm-c-api/archive/c9d31284651b975f05ac27cee0bab1377560b87e.tar.gz", + sha256 = "2ccb49bb3bfa4d86907ad4c80d1147aef6156c7b6e3f7f14ed02a39de9761155", + strip_prefix = "wasmtime-24.0.0", + url = "https://github.com/bytecodealliance/wasmtime/archive/v24.0.0.tar.gz", ) native.bind( name = "wasmtime", - actual = "@com_github_webassembly_wasm_c_api//:wasmtime_lib", + actual = "@com_github_bytecodealliance_wasmtime//:wasmtime_lib", ) native.bind( name = "prefixed_wasmtime", - actual = "@com_github_webassembly_wasm_c_api//:prefixed_wasmtime_lib", + actual = "@com_github_bytecodealliance_wasmtime//:prefixed_wasmtime_lib", ) # WAVM with dependencies. diff --git a/src/wasmtime/types.h b/src/wasmtime/types.h index 4ab725c04..14fe75053 100644 --- a/src/wasmtime/types.h +++ b/src/wasmtime/types.h @@ -13,7 +13,7 @@ // limitations under the License. #include "src/common/types.h" -#include "include/wasm.h" +#include "crates/c-api/include/wasm.h" namespace proxy_wasm::wasmtime { diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index 2cfc21888..c4a7646f0 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -26,7 +26,7 @@ #include "src/wasmtime/types.h" -#include "include/wasm.h" +#include "crates/c-api/include/wasm.h" namespace proxy_wasm { namespace wasmtime { @@ -215,8 +215,8 @@ static const char *printValKind(wasm_valkind_t kind) { return "f32"; case WASM_F64: return "f64"; - case WASM_ANYREF: - return "anyref"; + case WASM_EXTERNREF: + return "externref"; case WASM_FUNCREF: return "funcref"; default: From 7c975bb77a76c0f307564525246edabf85c6a32c Mon Sep 17 00:00:00 2001 From: martijneken Date: Tue, 10 Sep 2024 10:10:03 -0400 Subject: [PATCH 265/287] fix: Upgrade deprecated artifact upload/download handlers (#415) Seen on https://github.com/proxy-wasm/proxy-wasm-cpp-host/pull/380 CI: Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: v2`. Learn more: https://github.blog/changelog/2024-02-13-deprecation-notice-v1-and-v2-of-the-artifact-actions/ Signed-off-by: Martijn Stevenson --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 13264d48f..811c6a369 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,7 +75,7 @@ jobs: done - name: Upload test data - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: test_data path: bazel-bin/test/test_data/*.wasm @@ -306,7 +306,7 @@ jobs: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.engine }}-${{ steps.cache-key.outputs.uniq }}- - name: Download test data - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: name: test_data path: test/test_data/ From 0699c0515e354454f7c4b41bbd4e041459d33df2 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Wed, 11 Sep 2024 23:57:47 +0800 Subject: [PATCH 266/287] bump wamr to 2.1.1 and able to consume precompiled content (#380) - skip leading paddings in .aot section Signed-off-by: liang.he@intel.com --- bazel/external/wamr.BUILD | 21 ++++++++++++++++++--- bazel/repositories.bzl | 8 ++++---- src/wamr/wamr.cc | 33 ++++++++++++++++++++++++--------- 3 files changed, 46 insertions(+), 16 deletions(-) diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index 8c2955d57..dcf8d87ef 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -12,11 +12,24 @@ filegroup( cmake( name = "wamr_lib", generate_args = [ + # disable WASI "-DWAMR_BUILD_LIBC_WASI=0", - "-DWAMR_BUILD_MULTI_MODULE=0", + "-DWAMR_BUILD_LIBC_BUILTIN=0", + # MVP + "-DWAMR_BUILD_BULK_MEMORY=1", + "-DWAMR_BUILD_REF_TYPES=1", "-DWAMR_BUILD_TAIL_CALL=1", - "-DWAMR_DISABLE_HW_BOUND_CHECK=0", - "-DWAMR_DISABLE_STACK_HW_BOUND_CHECK=1", + # WAMR private features + "-DWAMR_BUILD_MULTI_MODULE=0", + # Some tests have indicated that the following three factors have + # a minimal impact on performance. + # - Get function names from name section + "-DWAMR_BUILD_CUSTOM_NAME_SECTION=1", + "-DWAMR_BUILD_LOAD_CUSTOM_SECTION=1", + # - Show Wasm call stack if met a trap + "-DWAMR_BUILD_DUMP_CALL_STACK=1", + # Cache module files + "-DWAMR_BUILD_WASM_CACHE=0", "-GNinja", ] + select({ "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": [ @@ -26,6 +39,8 @@ cmake( "-DWAMR_BUILD_INTERP=0", "-DWAMR_BUILD_JIT=1", "-DWAMR_BUILD_SIMD=1", + # linux perf. only for jit and aot + # "-DWAMR_BUILD_LINUX_PERF=1", ], "//conditions:default": [ "-DWAMR_BUILD_AOT=0", diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 2665f24d5..0bede2208 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -198,10 +198,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - # WAMR-1.2.1 - sha256 = "7548d4bbea8dbb9b005e83bd571f93a12fb3f0b5e87a8b0130f004dd92df4b0b", - strip_prefix = "wasm-micro-runtime-WAMR-1.2.1", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/refs/tags/WAMR-1.2.1.zip", + # WAMR-2.1.1 + sha256 = "a0824762abbcbb3dd6b7bb07530f198ece5d792a12a879bc2a99100590fdb151", + strip_prefix = "wasm-micro-runtime-WAMR-2.1.1", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/refs/tags/WAMR-2.1.1.zip", ) native.bind( diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index ea3d140e7..482a59bf1 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -56,7 +56,8 @@ class Wamr : public WasmVm { Wamr() = default; std::string_view getEngineName() override { return "wamr"; } - std::string_view getPrecompiledSectionName() override { return ""; } + // must use the exact name given by test-tools/append-aot-to-wasm/append_aot_to_wasm.py + std::string_view getPrecompiledSectionName() override { return "wamr-aot"; } Cloneable cloneable() override { return Cloneable::CompiledBytecode; } std::unique_ptr clone() override; @@ -118,18 +119,32 @@ class Wamr : public WasmVm { std::unordered_map module_functions_; }; -bool Wamr::load(std::string_view bytecode, std::string_view /*precompiled*/, +bool Wamr::load(std::string_view bytecode, std::string_view precompiled, const std::unordered_map & /*function_names*/) { store_ = wasm_store_new(engine()); if (store_ == nullptr) { return false; } - wasm_byte_vec_t binary = {.size = bytecode.size(), - .data = (char *)bytecode.data(), - .num_elems = bytecode.size(), - .size_of_elem = sizeof(byte_t), - .lock = nullptr}; + wasm_byte_vec_t binary = {0}; + if (precompiled.empty()) { + binary.size = bytecode.size(); + binary.data = const_cast(bytecode.data()); + binary.num_elems = bytecode.size(); + binary.size_of_elem = sizeof(byte_t); + binary.lock = nullptr; + } else { + // skip leading paddings + auto padding_count = static_cast(precompiled[0]); + precompiled.remove_prefix(padding_count + 1); + + binary.size = precompiled.size(); + binary.data = const_cast(precompiled.data()); + binary.num_elems = precompiled.size(); + binary.size_of_elem = sizeof(byte_t); + binary.lock = nullptr; + } + module_ = wasm_module_new(store_.get(), &binary); if (module_ == nullptr) { return false; @@ -224,8 +239,8 @@ static const char *printValKind(wasm_valkind_t kind) { return "f32"; case WASM_F64: return "f64"; - case WASM_ANYREF: - return "anyref"; + case WASM_EXTERNREF: + return "externref"; case WASM_FUNCREF: return "funcref"; default: From 3212034ee6e75d54cbf91b65cc659772166442f4 Mon Sep 17 00:00:00 2001 From: code Date: Mon, 30 Sep 2024 03:08:03 +0800 Subject: [PATCH 267/287] compdb add the compdb support to the proxy_wasm_cpp_host (#419) * compdb add the compdb support to the proxy_wasm_cpp_host Signed-off-by: wangbaiping --- .gitignore | 3 ++ CONTRIBUTING.md | 4 ++ DEVELOPMENT.md | 11 +++++ README.md | 4 ++ bazel/repositories.bzl | 9 ++++ tools/gen_compilation_database.py | 79 +++++++++++++++++++++++++++++++ 6 files changed, 110 insertions(+) create mode 100644 DEVELOPMENT.md create mode 100755 tools/gen_compilation_database.py diff --git a/.gitignore b/.gitignore index a6ef824c1..54c8a3b00 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ /bazel-* +/external +/compile_commands.json +/.cache/ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 654a07164..d3f60f57a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -26,3 +26,7 @@ information on using pull requests. This project follows [Google's Open Source Community Guidelines](https://opensource.google/conduct/). + +## Development + +See the [Development Guidelines](DEVELOPMENT.md). diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md new file mode 100644 index 000000000..791fe23a1 --- /dev/null +++ b/DEVELOPMENT.md @@ -0,0 +1,11 @@ +# Development guidelines + +## Generate compilation database + +[JSON Compilation Database](https://clang.llvm.org/docs/JSONCompilationDatabase.html) files can be used by [clangd](https://clangd.llvm.org/) or similar tools to add source code cross-references and code completion functionality to editors. + +The following command can be used to generate the `compile_commands.json` file: + +``` +BAZEL_BUILD_OPTION_LIST="--define=engine=multi" ./tools/gen_compilation_database.py --include_all //test/... //:lib +``` diff --git a/README.md b/README.md index 8cb5694ee..bd198e723 100644 --- a/README.md +++ b/README.md @@ -1 +1,5 @@ # WebAssembly for Proxies (C++ host implementation) + +## How to Contribute + +See [CONTRIBUTING](CONTRIBUTING.md). diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 0bede2208..908ffe492 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -135,6 +135,15 @@ def proxy_wasm_cpp_host_repositories(): urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/95bb82ce45c41d9100fd1ec15d2ffc67f7f3ceee.tar.gz"], ) + # Compile DB dependencies. + maybe( + http_archive, + name = "bazel_compdb", + sha256 = "acd2a9eaf49272bb1480c67d99b82662f005b596a8c11739046a4220ec73c4da", + strip_prefix = "bazel-compilation-database-40864791135333e1446a04553b63cbe744d358d0", + url = "https://github.com/grailbio/bazel-compilation-database/archive/40864791135333e1446a04553b63cbe744d358d0.tar.gz", + ) + # Test dependencies. maybe( diff --git a/tools/gen_compilation_database.py b/tools/gen_compilation_database.py new file mode 100755 index 000000000..bff3d82d5 --- /dev/null +++ b/tools/gen_compilation_database.py @@ -0,0 +1,79 @@ +#!/usr/bin/env python3 + +# Copyright 2016-2019 Envoy Project Authors +# Copyright 2020 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import argparse +import json +import os +import shlex +import subprocess +from pathlib import Path + +# This is copied from https://github.com/envoyproxy/envoy and remove unnecessary code. + +# This method is equivalent to https://github.com/grailbio/bazel-compilation-database/blob/master/generate.py +def generate_compilation_database(args): + # We need to download all remote outputs for generated source code. This option lives here to override those + # specified in bazelrc. + bazel_startup_options = shlex.split(os.environ.get("BAZEL_STARTUP_OPTION_LIST", "")) + bazel_options = shlex.split(os.environ.get("BAZEL_BUILD_OPTION_LIST", "")) + [ + "--remote_download_outputs=all", + ] + + source_dir_targets = args.bazel_targets + + subprocess.check_call(["bazel", *bazel_startup_options, "build"] + bazel_options + [ + "--aspects=@bazel_compdb//:aspects.bzl%compilation_database_aspect", + "--output_groups=compdb_files,header_files" + ] + source_dir_targets) + + execroot = subprocess.check_output( + ["bazel", *bazel_startup_options, "info", *bazel_options, + "execution_root"]).decode().strip() + + db_entries = [] + for db in Path(execroot).glob('**/*.compile_commands.json'): + db_entries.extend(json.loads(db.read_text())) + + def replace_execroot_marker(db_entry): + if 'directory' in db_entry and db_entry['directory'] == '__EXEC_ROOT__': + db_entry['directory'] = execroot + if 'command' in db_entry: + db_entry['command'] = ( + db_entry['command'].replace('-isysroot __BAZEL_XCODE_SDKROOT__', '')) + return db_entry + + return list(map(replace_execroot_marker, db_entries)) + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description='Generate JSON compilation database') + parser.add_argument('--include_external', action='https://github.com/store_true') + parser.add_argument('--include_genfiles', action='https://github.com/store_true') + parser.add_argument('--include_headers', action='https://github.com/store_true') + parser.add_argument('--include_all', action='https://github.com/store_true') + parser.add_argument( + '--system-clang', + action='https://github.com/store_true', + help= + 'Use `clang++` instead of the bazel wrapper for commands. This may help if `clangd` cannot find/run the tools.' + ) + parser.add_argument('bazel_targets', nargs='*', default=[]) + + args = parser.parse_args() + db = generate_compilation_database(args) + + with open("compile_commands.json", "w") as db_file: + json.dump(db, db_file, indent=2) From 63cb9c1a40d8e6382d3f302721e09b8c45466661 Mon Sep 17 00:00:00 2001 From: Keith Mattix II Date: Fri, 13 Dec 2024 13:01:25 -0600 Subject: [PATCH 268/287] Fix references to prefix_wasm_api (#420) Signed-off-by: Keith Mattix II --- bazel/external/wasmtime.BUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index 79a331f18..27da86e46 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -21,7 +21,7 @@ genrule( "crates/c-api/include/wasm.h", ], outs = [ - "include/prefixed_wasm.h", + "crates/c-api/include/prefixed_wasm.h", ], cmd = """ sed -e 's/\\ wasm_/\\ wasmtime_wasm_/g' \ From c4d7bb0fda912e24c64daf2aa749ec54cec99412 Mon Sep 17 00:00:00 2001 From: Matt Leon Date: Thu, 19 Dec 2024 13:59:36 -0500 Subject: [PATCH 269/287] feat(go-sdk): add wasi hostcalls used by the Go SDK (#427) The full Go sdk imports hostcalls not currently exported to the wasm module, making the wasm module fail on instantiation. Per discussion with the Go core maintainers, these functions do not need to be implemented, but they must be present. Signed-off-by: Matt Leon --- include/proxy-wasm/exports.h | 10 +++++++--- src/exports.cc | 25 +++++++++++++++++++++++++ src/wasm.cc | 5 ++++- 3 files changed, 36 insertions(+), 4 deletions(-) diff --git a/include/proxy-wasm/exports.h b/include/proxy-wasm/exports.h index 376a4d3b6..91c51150c 100644 --- a/include/proxy-wasm/exports.h +++ b/include/proxy-wasm/exports.h @@ -139,10 +139,13 @@ Word wasi_unstable_fd_read(Word, Word, Word, Word); Word wasi_unstable_fd_seek(Word, int64_t, Word, Word); Word wasi_unstable_fd_close(Word); Word wasi_unstable_fd_fdstat_get(Word fd, Word statOut); +Word wasi_unstable_fd_fdstat_set_flags(Word fd, Word flags); Word wasi_unstable_environ_get(Word, Word); Word wasi_unstable_environ_sizes_get(Word count_ptr, Word buf_size_ptr); Word wasi_unstable_args_get(Word argc_ptr, Word argv_buf_size_ptr); Word wasi_unstable_args_sizes_get(Word argc_ptr, Word argv_buf_size_ptr); +Word wasi_unstable_sched_yield(); +Word wasi_unstable_poll_oneoff(Word in, Word out, Word nsubscriptions, Word nevents); void wasi_unstable_proc_exit(Word); Word wasi_unstable_clock_time_get(Word, uint64_t, Word); Word wasi_unstable_random_get(Word, Word); @@ -170,9 +173,10 @@ void emscripten_notify_memory_growth(Word); _f(continue_stream) _f(close_stream) _f(get_log_level) #define FOR_ALL_WASI_FUNCTIONS(_f) \ - _f(fd_write) _f(fd_read) _f(fd_seek) _f(fd_close) _f(fd_fdstat_get) _f(environ_get) \ - _f(environ_sizes_get) _f(args_get) _f(args_sizes_get) _f(clock_time_get) _f(random_get) \ - _f(proc_exit) _f(path_open) _f(fd_prestat_get) _f(fd_prestat_dir_name) + _f(fd_write) _f(fd_read) _f(fd_seek) _f(fd_close) _f(fd_fdstat_get) _f(fd_fdstat_set_flags) \ + _f(environ_get) _f(environ_sizes_get) _f(args_get) _f(args_sizes_get) _f(clock_time_get) \ + _f(random_get) _f(sched_yield) _f(poll_oneoff) _f(proc_exit) _f(path_open) \ + _f(fd_prestat_get) _f(fd_prestat_dir_name) // Helpers to generate a stub to pass to VM, in place of a restricted proxy-wasm capability. #define _CREATE_PROXY_WASM_STUB(_fn) \ diff --git a/src/exports.cc b/src/exports.cc index 0290dcf0f..25ca06c9d 100644 --- a/src/exports.cc +++ b/src/exports.cc @@ -646,6 +646,9 @@ Word grpc_send(Word token, Word message_ptr, Word message_size, Word end_stream) return context->grpcSend(token, message.value(), end_stream != 0U); } +// WASIp1 typings in comments sourced from +// https://github.com/WebAssembly/wasi-libc/blob/446cb3f1aa21f9b1a1eab372f82d65d19003e924/libc-bottom-half/headers/public/wasi/api.h + // __wasi_errno_t path_open(__wasi_fd_t fd, __wasi_lookupflags_t dirflags, const char *path, // size_t path_len, __wasi_oflags_t oflags, __wasi_rights_t fs_rights_base, __wasi_rights_t // fs_rights_inheriting, __wasi_fdflags_t fdflags, __wasi_fd_t *retptr0) @@ -776,6 +779,13 @@ Word wasi_unstable_fd_fdstat_get(Word fd, Word statOut) { return 0; // __WASI_ESUCCESS } +// __wasi_errno_t __wasi_fd_fdstat_set_flags(__wasi_fd_t fd, __wasi_fdflags_t flags) +Word wasi_unstable_fd_fdstat_set_flags(Word /*fd*/, Word /*flags*/) { + // Flags that can be specified: append, dsync, nonblock, rsync, and sync. Proxy-wasm only supports + // STDOUT and STDERR, but none of these flags have any effect in Proxy-Wasm. + return 52; // __WASI_ERRNO_ENOSYS +} + // __wasi_errno_t __wasi_environ_get(char **environ, char *environ_buf); Word wasi_unstable_environ_get(Word environ_array_ptr, Word environ_buf) { auto *context = contextOrEffectiveContext(); @@ -879,6 +889,21 @@ Word wasi_unstable_random_get(Word result_buf_ptr, Word buf_len) { return 0; // __WASI_ESUCCESS } +// __wasi_errno_t __wasi_sched_yield() +Word wasi_unstable_sched_yield() { + // Per POSIX man pages, it is valid to return success if the calling thread is the only thread in + // the highest priority list. This is vacuously true for wasm without threads. There are no valid + // error cases defined. + return 0; // __WASI_ESUCCESS +} + +// __wasi_errno_t __wasi_poll_oneoff(const __wasi_subscription_t *in, __wasi_event_t *out, +// __wasi_size_t nsubscriptions, __wasi_size_t *nevents) +Word wasi_unstable_poll_oneoff(Word /*in*/, Word /*out*/, Word /*nsubscriptions*/, + Word /*nevents_ptr*/) { + return 52; // __WASI_ERRNO_ENOSYS +} + // void __wasi_proc_exit(__wasi_exitcode_t rval); void wasi_unstable_proc_exit(Word /*exit_code*/) { auto *context = contextOrEffectiveContext(); diff --git a/src/wasm.cc b/src/wasm.cc index cb1dd9b3a..e8a7ce436 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -394,7 +394,10 @@ void WasmBase::startVm(ContextBase *root_context) { // time "wasi_unstable.clock_time_get", "wasi_snapshot_preview1.clock_time_get", // random - "wasi_unstable.random_get", "wasi_snapshot_preview1.random_get"}); + "wasi_unstable.random_get", "wasi_snapshot_preview1.random_get", + // Go runtime initialization + "wasi_unstable.fd_fdstat_get", "wasi_snapshot_preview1.fd_fdstat_get", + "wasi_unstable.fd_fdstat_set_flags", "wasi_snapshot_preview1.fd_fdstat_set_flags"}); if (_initialize_) { // WASI reactor. _initialize_(root_context); From 3095c6822328749f078f104d9b90cfd66eb80924 Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Sat, 12 Jul 2025 19:01:05 -0400 Subject: [PATCH 270/287] chore: workflow runner fixes (#436) Assorted changes to get workflows working again: - Update format workflows to use ubuntu-22.04 - Update windows-2019 to windows-2022 and add a missing include needed to build with that - Enable manual triggering of workflows Fixes #435 --------- Signed-off-by: Michael Warres --- .github/workflows/format.yml | 10 ++++++---- .github/workflows/test.yml | 4 +++- include/proxy-wasm/signature_util.h | 1 + 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index de71b24cc..1004f123f 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -31,6 +31,8 @@ on: schedule: - cron: '0 0 * * *' + workflow_dispatch: + concurrency: group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }} @@ -41,7 +43,7 @@ jobs: addlicense: name: verify licenses - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -61,7 +63,7 @@ jobs: buildifier: name: check format with buildifier - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -99,7 +101,7 @@ jobs: clang_format: name: check format with clang-format - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 @@ -115,7 +117,7 @@ jobs: clang_tidy: name: check format with clang-tidy - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 811c6a369..5a6dd8f49 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,6 +31,8 @@ on: schedule: - cron: '0 0 * * *' + workflow_dispatch: + concurrency: group: ${{ github.head_ref || github.run_id }}-${{ github.workflow }} @@ -127,7 +129,7 @@ jobs: flags: --config=clang-tsan - name: 'NullVM on Windows/x86_64' engine: 'null' - os: windows-2019 + os: windows-2022 arch: x86_64 action: test targets: -//test/fuzz/... diff --git a/include/proxy-wasm/signature_util.h b/include/proxy-wasm/signature_util.h index 68579dcd1..a5c9c39df 100644 --- a/include/proxy-wasm/signature_util.h +++ b/include/proxy-wasm/signature_util.h @@ -14,6 +14,7 @@ #pragma once +#include #include namespace proxy_wasm { From 7a212bcaa2b68716e71bd6b8d7206acd53bb1ab1 Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Sat, 12 Jul 2025 23:58:32 -0400 Subject: [PATCH 271/287] feat: add knob to customise on{Request,Response}Headers StopIteration behavior (#434) Add protected ContextBase::allow_on_headers_stop_iteration_ field that can be used by host implementations to control whether or not ContextBase propagates FilterHeaderStatus::StopIteration returned by onRequestHeaders() or onResponseHeaders() without modification. Follow-on envoyproxy/envoy#40213 adds an option in Envoy WasmFilter PluginConfig that sets the value of this field. For details, see [Envoy Wasm / Proxy-Wasm support for FilterHeadersStatus::StopIteration](https://docs.google.com/document/d/1Whd1C0k-H2NHrPOmlAqqauFz6ObSTP017juJIYyciB0/edit?usp=sharing). This PR is one part of implementing [Option B: WasmFilter config knob](https://docs.google.com/document/d/1Whd1C0k-H2NHrPOmlAqqauFz6ObSTP017juJIYyciB0/edit?tab=t.0#bookmark=id.5wxldlapsp54). Note that default behavior of proxy-wasm-cpp-host and ContextBase is unchanged. --------- Signed-off-by: Michael Warres --- include/proxy-wasm/context.h | 7 +++ src/context.cc | 10 ++-- test/BUILD | 15 ++++++ test/stop_iteration_test.cc | 81 ++++++++++++++++++++++++++++++++ test/test_data/BUILD | 5 ++ test/test_data/stop_iteration.cc | 31 ++++++++++++ test/utility.h | 2 + 7 files changed, 147 insertions(+), 4 deletions(-) create mode 100644 test/stop_iteration_test.cc create mode 100644 test/test_data/stop_iteration.cc diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 12937041f..7f675525c 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -397,6 +397,13 @@ class ContextBase : public RootInterface, bool destroyed_ = false; bool stream_failed_ = false; // Set true after failStream is called in case of VM failure. + // If true, convertVmCallResultToFilterHeadersStatus() propagates + // FilterHeadersStatus::StopIteration unmodified to callers. If false, it + // translates FilterHeaderStatus::StopIteration to + // FilterHeadersStatus::StopAllIterationAndWatermark, which is the default + // behavior for v0.2.* of the Proxy-Wasm ABI. + bool allow_on_headers_stop_iteration_ = false; + private: // helper functions FilterHeadersStatus convertVmCallResultToFilterHeadersStatus(uint64_t result); diff --git a/src/context.cc b/src/context.cc index 5353a52a5..d8dbc9a2a 100644 --- a/src/context.cc +++ b/src/context.cc @@ -493,10 +493,12 @@ FilterHeadersStatus ContextBase::convertVmCallResultToFilterHeadersStatus(uint64 result > static_cast(FilterHeadersStatus::StopAllIterationAndWatermark)) { return FilterHeadersStatus::StopAllIterationAndWatermark; } - if (result == static_cast(FilterHeadersStatus::StopIteration)) { - // Always convert StopIteration (pause processing headers, but continue processing body) - // to StopAllIterationAndWatermark (pause all processing), since the former breaks all - // assumptions about HTTP processing. + if (result == static_cast(FilterHeadersStatus::StopIteration) && + !allow_on_headers_stop_iteration_) { + // Default behavior for Proxy-Wasm 0.2.* ABI is to translate StopIteration + // (pause processing headers, but continue processing body) to + // StopAllIterationAndWatermark (pause all processing), as described in + // https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/143. return FilterHeadersStatus::StopAllIterationAndWatermark; } return static_cast(result); diff --git a/test/BUILD b/test/BUILD index 61973ce17..73787e4b0 100644 --- a/test/BUILD +++ b/test/BUILD @@ -132,6 +132,21 @@ cc_test( ], ) +cc_test( + name = "stop_iteration_test", + srcs = ["stop_iteration_test.cc"], + data = [ + "//test/test_data:stop_iteration.wasm", + ], + linkstatic = 1, + deps = [ + ":utility_lib", + "//:lib", + "@com_google_googletest//:gtest", + "@com_google_googletest//:gtest_main", + ], +) + cc_test( name = "security_test", srcs = ["security_test.cc"], diff --git a/test/stop_iteration_test.cc b/test/stop_iteration_test.cc new file mode 100644 index 000000000..9ff443f24 --- /dev/null +++ b/test/stop_iteration_test.cc @@ -0,0 +1,81 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "gtest/gtest.h" +#include "include/proxy-wasm/wasm.h" +#include "test/utility.h" + +namespace proxy_wasm { + +INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines()), + [](const testing::TestParamInfo &info) { + return info.param; + }); + +// TestVm is parameterized for each engine and creates a VM on construction. +TEST_P(TestVm, AllowOnHeadersStopIteration) { + // Read the wasm source. + auto source = readTestWasmFile("stop_iteration.wasm"); + ASSERT_FALSE(source.empty()); + + // Create a WasmBase and load the plugin. + auto wasm = std::make_shared(std::move(vm_)); + ASSERT_TRUE(wasm->load(source, /*allow_precompiled=*/false)); + ASSERT_TRUE(wasm->initialize()); + + // Create a plugin. + const auto plugin = std::make_shared( + /*name=*/"test", /*root_id=*/"", /*vm_id=*/"", + /*engine=*/wasm->wasm_vm()->getEngineName(), /*plugin_config=*/"", + /*fail_open=*/false, /*key=*/""); + + // Create root context, call onStart() and onConfigure() + ContextBase *root_context = wasm->start(plugin); + ASSERT_TRUE(root_context != nullptr); + ASSERT_TRUE(wasm->configure(root_context, plugin)); + + auto wasm_handle = std::make_shared(wasm); + auto plugin_handle = std::make_shared(wasm_handle, plugin); + + // By default, stream context onRequestHeaders and onResponseHeaders + // translates FilterHeadersStatus::StopIteration to + // FilterHeadersStatus::StopAllIterationAndWatermark. + { + auto stream_context = TestContext(wasm.get(), root_context->id(), plugin_handle); + stream_context.onCreate(); + EXPECT_EQ(stream_context.onRequestHeaders(/*headers=*/0, /*end_of_stream=*/false), + FilterHeadersStatus::StopAllIterationAndWatermark); + EXPECT_EQ(stream_context.onResponseHeaders(/*headers=*/0, /*end_of_stream=*/false), + FilterHeadersStatus::StopAllIterationAndWatermark); + stream_context.onDone(); + stream_context.onDelete(); + } + ASSERT_FALSE(wasm->isFailed()); + + // Create a stream context that propagates FilterHeadersStatus::StopIteration. + { + auto stream_context = TestContext(wasm.get(), root_context->id(), plugin_handle); + stream_context.set_allow_on_headers_stop_iteration(true); + stream_context.onCreate(); + EXPECT_EQ(stream_context.onRequestHeaders(/*headers=*/0, /*end_of_stream=*/false), + FilterHeadersStatus::StopIteration); + EXPECT_EQ(stream_context.onResponseHeaders(/*headers=*/0, /*end_of_stream=*/false), + FilterHeadersStatus::StopIteration); + stream_context.onDone(); + stream_context.onDelete(); + } + ASSERT_FALSE(wasm->isFailed()); +} + +} // namespace proxy_wasm diff --git a/test/test_data/BUILD b/test/test_data/BUILD index bd70b8eb9..e5ecd439e 100644 --- a/test/test_data/BUILD +++ b/test/test_data/BUILD @@ -89,3 +89,8 @@ proxy_wasm_cc_binary( name = "http_logging.wasm", srcs = ["http_logging.cc"], ) + +proxy_wasm_cc_binary( + name = "stop_iteration.wasm", + srcs = ["stop_iteration.cc"], +) diff --git a/test/test_data/stop_iteration.cc b/test/test_data/stop_iteration.cc new file mode 100644 index 000000000..55594285f --- /dev/null +++ b/test/test_data/stop_iteration.cc @@ -0,0 +1,31 @@ +// Copyright 2025 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +#include "proxy_wasm_intrinsics.h" + +class StopIterationContext : public Context { +public: + explicit StopIterationContext(uint32_t id, RootContext *root) : Context(id, root) {} + + FilterHeadersStatus onRequestHeaders(uint32_t headers, bool end_of_stream) override { + return FilterHeadersStatus::StopIteration; + } + + FilterHeadersStatus onResponseHeaders(uint32_t headers, bool end_of_stream) override { + return FilterHeadersStatus::StopIteration; + } +}; + +static RegisterContextFactory register_StaticContext(CONTEXT_FACTORY(StopIterationContext), + ROOT_FACTORY(RootContext)); diff --git a/test/utility.h b/test/utility.h index 27b3b0493..ccd2a59b6 100644 --- a/test/utility.h +++ b/test/utility.h @@ -133,6 +133,8 @@ class TestContext : public ContextBase { .count(); } + void set_allow_on_headers_stop_iteration(bool allow) { allow_on_headers_stop_iteration_ = allow; } + private: std::string log_; static std::string global_log_; From 65bb78fbf8beb6d3670701d35711e691c0c4c4ce Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Sat, 12 Jul 2025 23:59:47 -0400 Subject: [PATCH 272/287] add leonm1@ to CODEOWNERS (#437) Signed-off-by: Michael Warres --- CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CODEOWNERS b/CODEOWNERS index e0a504f38..e4190bb47 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1 +1 @@ -* @PiotrSikora @martijneken @mpwarres +* @PiotrSikora @martijneken @mpwarres @leonm1 From ad8303f41070c1689ebdba69935ca360d17dba8a Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Tue, 15 Jul 2025 10:52:58 -0400 Subject: [PATCH 273/287] chore!:remove support for wavm (#438) * remove support for wavm Signed-off-by: Michael Warres * apply clang-format Signed-off-by: Michael Warres --------- Signed-off-by: Michael Warres Signed-off-by: Matt Leon --- .github/workflows/test.yml | 8 - BUILD | 31 --- bazel/BUILD | 5 - bazel/external/wavm.BUILD | 28 -- bazel/repositories.bzl | 27 -- bazel/select.bzl | 7 - include/proxy-wasm/wasm.h | 2 +- include/proxy-wasm/wasm_vm.h | 7 +- include/proxy-wasm/wavm.h | 26 -- src/wavm/wavm.cc | 492 ----------------------------------- test/runtime_test.cc | 24 +- test/utility.cc | 3 - test/utility.h | 7 - test/wasm_vm_test.cc | 6 - 14 files changed, 7 insertions(+), 666 deletions(-) delete mode 100644 bazel/external/wavm.BUILD delete mode 100644 include/proxy-wasm/wavm.h delete mode 100644 src/wavm/wavm.cc diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a6dd8f49..5f33c3316 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -262,14 +262,6 @@ jobs: os: macos-13 arch: x86_64 action: test - - name: 'WAVM on Linux/x86_64' - engine: 'wavm' - repo: 'com_github_wavm_wavm' - os: ubuntu-22.04 - arch: x86_64 - action: test - flags: --config=clang - cache: true steps: - uses: actions/checkout@v2 diff --git a/BUILD b/BUILD index 215459eb2..6db5fd903 100644 --- a/BUILD +++ b/BUILD @@ -19,7 +19,6 @@ load( "proxy_wasm_select_engine_wamr", "proxy_wasm_select_engine_wasmedge", "proxy_wasm_select_engine_wasmtime", - "proxy_wasm_select_engine_wavm", ) load("@rules_cc//cc:defs.bzl", "cc_library") @@ -281,34 +280,6 @@ cc_library( ], ) -cc_library( - name = "wavm_lib", - srcs = [ - "src/wavm/wavm.cc", - ], - hdrs = ["include/proxy-wasm/wavm.h"], - copts = [ - "-DWAVM_API=", - "-Wno-non-virtual-dtor", - "-Wno-old-style-cast", - ], - defines = [ - "PROXY_WASM_HAS_RUNTIME_WAVM", - "PROXY_WASM_HOST_ENGINE_WAVM", - ], - linkopts = select({ - "@platforms//os:macos": [], - "@platforms//os:windows": [], - "//conditions:default": [ - "-ldl", - ], - }), - deps = [ - ":wasm_vm_headers", - "//external:wavm", - ], -) - cc_library( name = "lib", deps = [ @@ -324,7 +295,5 @@ cc_library( ) + proxy_wasm_select_engine_wasmtime( [":wasmtime_lib"], [":prefixed_wasmtime_lib"], - ) + proxy_wasm_select_engine_wavm( - [":wavm_lib"], ), ) diff --git a/bazel/BUILD b/bazel/BUILD index 650fa29d8..a3487f891 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -46,11 +46,6 @@ config_setting( values = {"define": "engine=wasmtime"}, ) -config_setting( - name = "engine_wavm", - values = {"define": "engine=wavm"}, -) - config_setting( name = "multiengine", values = {"define": "engine=multi"}, diff --git a/bazel/external/wavm.BUILD b/bazel/external/wavm.BUILD deleted file mode 100644 index b315efdea..000000000 --- a/bazel/external/wavm.BUILD +++ /dev/null @@ -1,28 +0,0 @@ -load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") - -licenses(["notice"]) # Apache 2 - -package(default_visibility = ["//visibility:public"]) - -filegroup( - name = "srcs", - srcs = glob(["**"]), -) - -cmake( - name = "wavm_lib", - cache_entries = { - "LLVM_DIR": "$EXT_BUILD_DEPS/copy_llvm/llvm/lib/cmake/llvm", - "WAVM_ENABLE_STATIC_LINKING": "on", - "WAVM_ENABLE_RELEASE_ASSERTS": "on", - "WAVM_ENABLE_UNWIND": "on", - "CMAKE_CXX_FLAGS": "-Wno-unused-command-line-argument", - }, - generate_args = ["-GNinja"], - lib_source = ":srcs", - out_static_libs = [ - "libWAVM.a", - "libWAVMUnwind.a", - ], - deps = ["@llvm//:llvm_lib"], -) diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 908ffe492..38108bd81 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -263,30 +263,3 @@ def proxy_wasm_cpp_host_repositories(): name = "prefixed_wasmtime", actual = "@com_github_bytecodealliance_wasmtime//:prefixed_wasmtime_lib", ) - - # WAVM with dependencies. - - maybe( - http_archive, - name = "com_github_wavm_wavm", - build_file = "@proxy_wasm_cpp_host//bazel/external:wavm.BUILD", - sha256 = "7cfa3d7334c96f89553bb44eeee736a192826a78b4db114042d38d6882748f5b", - strip_prefix = "WAVM-nightly-2022-05-14", - url = "https://github.com/WAVM/WAVM/archive/refs/tags/nightly/2022-05-14.tar.gz", - ) - - native.bind( - name = "wavm", - actual = "@com_github_wavm_wavm//:wavm_lib", - ) - - maybe( - http_archive, - name = "llvm", - build_file = "@proxy_wasm_cpp_host//bazel/external:llvm.BUILD", - sha256 = "7d9a8405f557cefc5a21bf5672af73903b64749d9bc3a50322239f56f34ffddf", - strip_prefix = "llvm-12.0.1.src", - url = "https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.1/llvm-12.0.1.src.tar.xz", - patches = ["@proxy_wasm_cpp_host//bazel/external:llvm.patch"], - patch_args = ["-p1"], - ) diff --git a/bazel/select.bzl b/bazel/select.bzl index 747aef33c..cc4da38d1 100644 --- a/bazel/select.bzl +++ b/bazel/select.bzl @@ -47,10 +47,3 @@ def proxy_wasm_select_engine_wasmedge(xs): "@proxy_wasm_cpp_host//bazel:multiengine": xs, "//conditions:default": [], }) - -def proxy_wasm_select_engine_wavm(xs): - return select({ - "@proxy_wasm_cpp_host//bazel:engine_wavm": xs, - "@proxy_wasm_cpp_host//bazel:multiengine": xs, - "//conditions:default": [], - }) diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 9fa2bda1f..3ab64b243 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -373,7 +373,7 @@ class PluginHandleBase : public std::enable_shared_from_this { using PluginHandleFactory = std::function( std::shared_ptr base_wasm, std::shared_ptr plugin)>; -// Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wavm' by cloning or by +// Get an existing ThreadLocal VM matching 'vm_id' or create one using 'base_wasm' by cloning or by // using it it as a template. std::shared_ptr getOrCreateThreadLocalPlugin( const std::shared_ptr &base_handle, const std::shared_ptr &plugin, diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index a573212e0..db54ebd86 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -189,10 +189,9 @@ class WasmVm { /** * Whether or not the VM implementation supports cloning. Cloning is VM system dependent. * When a VM is configured a single VM is instantiated to check that the .wasm file is valid and - * to do VM system specific initialization. In the case of WAVM this is potentially ahead-of-time - * compilation. Then, if cloning is supported, we clone that VM for each worker, potentially - * copying and sharing the initialized data structures for efficiency. Otherwise we create an new - * VM from scratch for each worker. + * to do VM system specific initialization. Then, if cloning is supported, we clone that VM for + * each worker, potentially copying and sharing the initialized data structures for efficiency. + * Otherwise we create an new VM from scratch for each worker. * @return one of enum Cloneable with the VMs cloneability. */ virtual Cloneable cloneable() = 0; diff --git a/include/proxy-wasm/wavm.h b/include/proxy-wasm/wavm.h deleted file mode 100644 index 1ebbe8397..000000000 --- a/include/proxy-wasm/wavm.h +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#pragma once - -#include - -#include "include/proxy-wasm/wasm_vm.h" - -namespace proxy_wasm { - -std::unique_ptr createWavmVm(); - -} // namespace proxy_wasm diff --git a/src/wavm/wavm.cc b/src/wavm/wavm.cc deleted file mode 100644 index 670eb7c41..000000000 --- a/src/wavm/wavm.cc +++ /dev/null @@ -1,492 +0,0 @@ -// Copyright 2016-2019 Envoy Project Authors -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -#include "include/proxy-wasm/wavm.h" -#include "include/proxy-wasm/wasm_vm.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include "WAVM/IR/Module.h" -#include "WAVM/IR/Operators.h" -#include "WAVM/IR/Types.h" -#include "WAVM/IR/Validate.h" -#include "WAVM/IR/Value.h" -#include "WAVM/Inline/Assert.h" -#include "WAVM/Inline/BasicTypes.h" -#include "WAVM/Inline/Errors.h" -#include "WAVM/Inline/Hash.h" -#include "WAVM/Inline/HashMap.h" -#include "WAVM/Inline/IndexMap.h" -#include "WAVM/Inline/IntrusiveSharedPtr.h" -#include "WAVM/Platform/Mutex.h" -#include "WAVM/Platform/Thread.h" -#include "WAVM/Runtime/Intrinsics.h" -#include "WAVM/Runtime/Linker.h" -#include "WAVM/Runtime/Runtime.h" -#include "WAVM/RuntimeABI/RuntimeABI.h" -#include "WAVM/WASM/WASM.h" -#include "WAVM/WASTParse/WASTParse.h" - -#ifdef NDEBUG -#define ASSERT(_x) _x -#else -#define ASSERT(_x) \ - do { \ - if (!_x) \ - ::exit(1); \ - } while (0) -#endif - -using namespace WAVM; -using namespace WAVM::IR; - -namespace WAVM::IR { -template <> constexpr ValueType inferValueType() { return ValueType::i32; } -} // namespace WAVM::IR - -namespace proxy_wasm { - -// Forward declarations. -template -void getFunctionWavm(WasmVm *vm, std::string_view function_name, - std::function *function); -template -void getFunctionWavm(WasmVm *vm, std::string_view function_name, - std::function *function); -template -void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, - R (*function)(Args...)); - -namespace Wavm { - -struct Wavm; - -namespace { - -#define CALL_WITH_CONTEXT(_x, _context, _wavm) \ - do { \ - try { \ - SaveRestoreContext _saved_context(static_cast(_context)); \ - WAVM::Runtime::catchRuntimeExceptions( \ - [&] { _x; }, \ - [&](WAVM::Runtime::Exception *exception) { \ - _wavm->fail(FailState::RuntimeError, getFailMessage(function_name, exception)); \ - throw std::exception(); \ - }); \ - } catch (...) { \ - } \ - } while (0) - -std::string getFailMessage(std::string_view function_name, WAVM::Runtime::Exception *exception) { - std::string message = "Function: " + std::string(function_name) + - " failed: " + WAVM::Runtime::describeExceptionType(exception->type) + - "\nProxy-Wasm plugin in-VM backtrace:\n"; - std::vector callstack_descriptions = - WAVM::Runtime::describeCallStack(exception->callStack); - - // Since the first frame is on host and useless for developers, e.g.: `host!envoy+112901013` - // we start with index 1 here - for (size_t i = 1; i < callstack_descriptions.size(); i++) { - std::ostringstream oss; - std::string description = callstack_descriptions[i]; - if (description.find("wasm!") == std::string::npos) { - // end of WASM's call stack - break; - } - oss << std::setw(3) << std::setfill(' ') << std::to_string(i); - message += oss.str() + ": " + description + "\n"; - } - - WAVM::Runtime::destroyException(exception); - return message; -} - -struct WasmUntaggedValue : public WAVM::IR::UntaggedValue { - WasmUntaggedValue() = default; - WasmUntaggedValue(I32 inI32) { i32 = inI32; } - WasmUntaggedValue(I64 inI64) { i64 = inI64; } - WasmUntaggedValue(U32 inU32) { u32 = inU32; } - WasmUntaggedValue(Word w) { u32 = static_cast(w.u64_); } - WasmUntaggedValue(U64 inU64) { u64 = inU64; } - WasmUntaggedValue(F32 inF32) { f32 = inF32; } - WasmUntaggedValue(F64 inF64) { f64 = inF64; } -}; - -class RootResolver : public WAVM::Runtime::Resolver { -public: - RootResolver(WAVM::Runtime::Compartment * /*compartment*/, WasmVm *vm) : vm_(vm) {} - - ~RootResolver() override { module_name_to_instance_map_.clear(); } - - bool resolve(const std::string &module_name, const std::string &export_name, ExternType type, - WAVM::Runtime::Object *&out_object) override { - auto *named_instance = module_name_to_instance_map_.get(module_name); - if (named_instance != nullptr) { - out_object = getInstanceExport(*named_instance, export_name); - if (out_object != nullptr) { - if (!isA(out_object, type)) { - vm_->fail(FailState::UnableToInitializeCode, - "Failed to load WASM module due to a type mismatch in an import: " + - std::string(module_name) + "." + export_name + " " + - asString(WAVM::Runtime::getExternType(out_object)) + - " but was expecting type: " + asString(type)); - return false; - } - return true; - } - } - for (auto *r : resolvers_) { - if (r->resolve(module_name, export_name, type, out_object)) { - return true; - } - } - vm_->fail(FailState::MissingFunction, - "Failed to load Wasm module due to a missing import: " + std::string(module_name) + - "." + std::string(export_name) + " " + asString(type)); - return false; - } - - HashMap &moduleNameToInstanceMap() { - return module_name_to_instance_map_; - } - - void addResolver(WAVM::Runtime::Resolver *r) { resolvers_.push_back(r); } - -private: - WasmVm *vm_; - HashMap module_name_to_instance_map_{}; - std::vector resolvers_{}; -}; - -const uint64_t WasmPageSize = 1 << 16; - -} // namespace - -template struct NativeWord { using type = T; }; -template <> struct NativeWord { using type = uint32_t; }; - -template typename NativeWord::type ToNative(const T &t) { return t; } -template <> typename NativeWord::type ToNative(const Word &t) { return t.u32(); } - -struct PairHash { - template std::size_t operator()(const std::pair &x) const { - return std::hash()(x.first) + std::hash()(x.second); - } -}; - -struct Wavm : public WasmVm { - Wavm() = default; - ~Wavm() override; - - // WasmVm - std::string_view getEngineName() override { return "wavm"; } - Cloneable cloneable() override { return Cloneable::InstantiatedModule; }; - std::unique_ptr clone() override; - bool load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map &function_names) override; - bool link(std::string_view debug_name) override; - uint64_t getMemorySize() override; - std::optional getMemory(uint64_t pointer, uint64_t size) override; - bool setMemory(uint64_t pointer, uint64_t size, const void *data) override; - bool getWord(uint64_t pointer, Word *data) override; - bool setWord(uint64_t pointer, Word data) override; - size_t getWordSize() override { return sizeof(uint32_t); }; - std::string_view getPrecompiledSectionName() override; - -#define _GET_FUNCTION(_T) \ - void getFunction(std::string_view function_name, _T *f) override { \ - getFunctionWavm(this, function_name, f); \ - }; - FOR_ALL_WASM_VM_EXPORTS(_GET_FUNCTION) -#undef _GET_FUNCTION - -#define _REGISTER_CALLBACK(_T) \ - void registerCallback(std::string_view module_name, std::string_view function_name, _T, \ - typename ConvertFunctionTypeWordToUint32<_T>::type f) override { \ - registerCallbackWavm(this, module_name, function_name, f); \ - }; - FOR_ALL_WASM_VM_IMPORTS(_REGISTER_CALLBACK) -#undef _REGISTER_CALLBACK - - void terminate() override {} - bool usesWasmByteOrder() override { return true; } - - IR::Module ir_module_; - WAVM::Runtime::ModuleRef module_ = nullptr; - WAVM::Runtime::GCPointer module_instance_; - WAVM::Runtime::Memory *memory_{}; - WAVM::Runtime::GCPointer compartment_; - WAVM::Runtime::GCPointer context_; - std::map intrinsic_modules_{}; - std::map> - intrinsic_module_instances_{}; - std::vector> host_functions_{}; - uint8_t *memory_base_ = nullptr; -}; - -Wavm::~Wavm() { - module_instance_ = nullptr; - context_ = nullptr; - intrinsic_module_instances_.clear(); - intrinsic_modules_.clear(); - host_functions_.clear(); - if (compartment_ != nullptr) { - ASSERT(tryCollectCompartment(std::move(compartment_))); - } -} - -std::unique_ptr Wavm::clone() { - auto wavm = std::make_unique(); - if (wavm == nullptr) { - return nullptr; - } - - wavm->compartment_ = WAVM::Runtime::cloneCompartment(compartment_); - if (wavm->compartment_ == nullptr) { - return nullptr; - } - - wavm->context_ = WAVM::Runtime::cloneContext(context_, wavm->compartment_); - if (wavm->context_ == nullptr) { - return nullptr; - } - - wavm->memory_ = WAVM::Runtime::remapToClonedCompartment(memory_, wavm->compartment_); - wavm->memory_base_ = WAVM::Runtime::getMemoryBaseAddress(wavm->memory_); - wavm->module_instance_ = - WAVM::Runtime::remapToClonedCompartment(module_instance_, wavm->compartment_); - - for (auto &p : intrinsic_module_instances_) { - wavm->intrinsic_module_instances_.emplace( - p.first, WAVM::Runtime::remapToClonedCompartment(p.second, wavm->compartment_)); - } - - auto *integration_clone = integration()->clone(); - if (integration_clone == nullptr) { - return nullptr; - } - wavm->integration().reset(integration_clone); - - return wavm; -} - -bool Wavm::load(std::string_view bytecode, std::string_view precompiled, - const std::unordered_map & /*function_names*/) { - compartment_ = WAVM::Runtime::createCompartment(); - if (compartment_ == nullptr) { - return false; - } - - context_ = WAVM::Runtime::createContext(compartment_); - if (context_ == nullptr) { - return false; - } - - if (!WASM::loadBinaryModule(reinterpret_cast(bytecode.data()), - bytecode.size(), ir_module_)) { - return false; - } - - if (!precompiled.empty()) { - module_ = WAVM::Runtime::loadPrecompiledModule( - ir_module_, {precompiled.data(), precompiled.data() + precompiled.size()}); - if (module_ == nullptr) { - return false; - } - - } else { - module_ = WAVM::Runtime::compileModule(ir_module_); - if (module_ == nullptr) { - return false; - } - } - - return true; -} - -bool Wavm::link(std::string_view debug_name) { - RootResolver rootResolver(compartment_, this); - for (auto &p : intrinsic_modules_) { - auto *instance = Intrinsics::instantiateModule(compartment_, {&intrinsic_modules_[p.first]}, - std::string(p.first)); - if (instance == nullptr) { - return false; - } - intrinsic_module_instances_.emplace(p.first, instance); - rootResolver.moduleNameToInstanceMap().set(p.first, instance); - } - - WAVM::Runtime::LinkResult link_result = linkModule(ir_module_, rootResolver); - if (!link_result.missingImports.empty()) { - for (auto &i : link_result.missingImports) { - integration()->error("Missing Wasm import " + i.moduleName + " " + i.exportName); - } - fail(FailState::MissingFunction, "Failed to load Wasm module due to a missing import(s)"); - return false; - } - - module_instance_ = instantiateModule( - compartment_, module_, std::move(link_result.resolvedImports), std::string(debug_name)); - if (module_instance_ == nullptr) { - return false; - } - - memory_ = getDefaultMemory(module_instance_); - if (memory_ == nullptr) { - return false; - } - - memory_base_ = WAVM::Runtime::getMemoryBaseAddress(memory_); - - return true; -} - -uint64_t Wavm::getMemorySize() { return WAVM::Runtime::getMemoryNumPages(memory_) * WasmPageSize; } - -std::optional Wavm::getMemory(uint64_t pointer, uint64_t size) { - auto memory_num_bytes = WAVM::Runtime::getMemoryNumPages(memory_) * WasmPageSize; - if (pointer + size > memory_num_bytes) { - return std::nullopt; - } - return std::string_view(reinterpret_cast(memory_base_ + pointer), size); -} - -bool Wavm::setMemory(uint64_t pointer, uint64_t size, const void *data) { - auto memory_num_bytes = WAVM::Runtime::getMemoryNumPages(memory_) * WasmPageSize; - if (pointer + size > memory_num_bytes) { - return false; - } - auto *p = reinterpret_cast(memory_base_ + pointer); - memcpy(p, data, size); - return true; -} - -bool Wavm::getWord(uint64_t pointer, Word *data) { - auto memory_num_bytes = WAVM::Runtime::getMemoryNumPages(memory_) * WasmPageSize; - if (pointer + sizeof(uint32_t) > memory_num_bytes) { - return false; - } - auto *p = reinterpret_cast(memory_base_ + pointer); - uint32_t data32; - memcpy(&data32, p, sizeof(uint32_t)); - data->u64_ = wasmtoh(data32, true); - return true; -} - -bool Wavm::setWord(uint64_t pointer, Word data) { - uint32_t data32 = htowasm(data.u32(), true); - return setMemory(pointer, sizeof(uint32_t), &data32); -} - -std::string_view Wavm::getPrecompiledSectionName() { return "wavm.precompiled_object"; } - -} // namespace Wavm - -std::unique_ptr createWavmVm() { return std::make_unique(); } - -template -IR::FunctionType inferHostFunctionType(R (*/*func*/)(Args...)) { - return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...}), - IR::CallingConvention::c); -} - -using namespace Wavm; - -template -void registerCallbackWavm(WasmVm *vm, std::string_view module_name, std::string_view function_name, - R (*f)(Args...)) { - auto *wavm = dynamic_cast(vm); - wavm->host_functions_.emplace_back(new Intrinsics::Function( - &wavm->intrinsic_modules_[std::string(module_name)], function_name.data(), - reinterpret_cast(f), inferHostFunctionType(f))); -} - -template -IR::FunctionType inferStdFunctionType(std::function * /*func*/) { - return IR::FunctionType(IR::inferResultType(), IR::TypeTuple({IR::inferValueType()...})); -} - -static bool checkFunctionType(WAVM::Runtime::Function *f, IR::FunctionType t) { - return getFunctionType(f) == t; -} - -template -void getFunctionWavm(WasmVm *vm, std::string_view function_name, - std::function *function) { - auto *wavm = dynamic_cast(vm); - auto *f = - asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); - if (!f) { - f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); - } - if (!f) { - *function = nullptr; - return; - } - if (!checkFunctionType(f, inferStdFunctionType(function))) { - *function = nullptr; - wavm->fail(FailState::UnableToInitializeCode, - "Bad function signature for: " + std::string(function_name)); - return; - } - *function = [wavm, f, function_name](ContextBase *context, Args... args) -> R { - WasmUntaggedValue values[] = {args...}; - WasmUntaggedValue return_value; - CALL_WITH_CONTEXT( - invokeFunction(wavm->context_, f, getFunctionType(f), &values[0], &return_value), context, - wavm); - if (wavm->isFailed()) { - return 0; - } - return static_cast(return_value.i32); - }; -} - -template -void getFunctionWavm(WasmVm *vm, std::string_view function_name, - std::function *function) { - auto *wavm = dynamic_cast(vm); - auto *f = - asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); - if (!f) { - f = asFunctionNullable(getInstanceExport(wavm->module_instance_, std::string(function_name))); - } - if (!f) { - *function = nullptr; - return; - } - if (!checkFunctionType(f, inferStdFunctionType(function))) { - *function = nullptr; - wavm->fail(FailState::UnableToInitializeCode, - "Bad function signature for: " + std::string(function_name)); - return; - } - *function = [wavm, f, function_name](ContextBase *context, Args... args) { - WasmUntaggedValue values[] = {args...}; - CALL_WITH_CONTEXT(invokeFunction(wavm->context_, f, getFunctionType(f), &values[0]), context, - wavm); - }; -} - -} // namespace proxy_wasm diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 16b4f763a..41e3946f1 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -53,12 +53,6 @@ TEST_P(TestVm, BadSignature) { } TEST_P(TestVm, StraceLogLevel) { - if (engine_ == "wavm") { - // TODO(mathetake): strace is yet to be implemented for WAVM. - // See https://github.com/proxy-wasm/proxy-wasm-cpp-host/issues/120. - return; - } - auto source = readTestWasmFile("clock.wasm"); ASSERT_FALSE(source.empty()); auto wasm = TestWasm(std::move(vm_)); @@ -134,11 +128,7 @@ TEST_P(TestVm, WasmMemoryLimit) { auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: infinite_memory failed")); // Trap message - if (engine_ == "wavm") { - EXPECT_TRUE(host->isErrorLogged("wavm.reachedUnreachable")); - } else { - EXPECT_TRUE(host->isErrorLogged("unreachable")); - } + EXPECT_TRUE(host->isErrorLogged("unreachable")); // Backtrace if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); @@ -163,11 +153,7 @@ TEST_P(TestVm, Trap) { auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: trigger failed")); // Trap message - if (engine_ == "wavm") { - EXPECT_TRUE(host->isErrorLogged("wavm.reachedUnreachable")); - } else { - EXPECT_TRUE(host->isErrorLogged("unreachable")); - } + EXPECT_TRUE(host->isErrorLogged("unreachable")); // Backtrace if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); @@ -192,11 +178,7 @@ TEST_P(TestVm, Trap2) { auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: trigger2 failed")); // Trap message - if (engine_ == "wavm") { - EXPECT_TRUE(host->isErrorLogged("wavm.reachedUnreachable")); - } else { - EXPECT_TRUE(host->isErrorLogged("unreachable")); - } + EXPECT_TRUE(host->isErrorLogged("unreachable")); // Backtrace if (engine_ == "v8") { EXPECT_TRUE(host->isErrorLogged("Proxy-Wasm plugin in-VM backtrace:")); diff --git a/test/utility.cc b/test/utility.cc index ee6f2b951..b4c10053f 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -31,9 +31,6 @@ std::vector getWasmEngines() { #endif #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) "wasmtime", -#endif -#if defined(PROXY_WASM_HOST_ENGINE_WAVM) - "wavm", #endif "" }; diff --git a/test/utility.h b/test/utility.h index ccd2a59b6..eaaaa3197 100644 --- a/test/utility.h +++ b/test/utility.h @@ -27,9 +27,6 @@ #if defined(PROXY_WASM_HOST_ENGINE_V8) #include "include/proxy-wasm/v8.h" #endif -#if defined(PROXY_WASM_HOST_ENGINE_WAVM) -#include "include/proxy-wasm/wavm.h" -#endif #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) #include "include/proxy-wasm/wasmtime.h" #endif @@ -172,10 +169,6 @@ class TestVm : public testing::TestWithParam { } else if (engine == "v8") { vm = proxy_wasm::createV8Vm(); #endif -#if defined(PROXY_WASM_HOST_ENGINE_WAVM) - } else if (engine == "wavm") { - vm = proxy_wasm::createWavmVm(); -#endif #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) } else if (engine == "wasmtime") { vm = proxy_wasm::createWasmtimeVm(); diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc index 6b4ece60f..d6f9d280a 100644 --- a/test/wasm_vm_test.cc +++ b/test/wasm_vm_test.cc @@ -35,8 +35,6 @@ TEST_P(TestVm, Basic) { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); } else if (engine_ == "wasmtime" || engine_ == "v8" || engine_ == "wamr") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::CompiledBytecode); - } else if (engine_ == "wavm") { - EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::InstantiatedModule); } else { FAIL(); } @@ -95,10 +93,6 @@ TEST_P(TestVm, CloneUntilOutOfMemory) { if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { return; } - if (engine_ == "wavm") { - // TODO(PiotrSikora): Figure out why this fails on the CI. - return; - } auto source = readTestWasmFile("abi_export.wasm"); ASSERT_TRUE(vm_->load(source, {}, {})); From 497e4ef09659a9ffe2e88c28a053528c8b9e0fd7 Mon Sep 17 00:00:00 2001 From: Matt Leon Date: Thu, 17 Jul 2025 09:29:11 -0400 Subject: [PATCH 274/287] build: compile with C++20 (#441) * build using c++20 std=c++20 is used by both v8 and Envoy. Switching to use it is necessary to build with more recent versions of v8, and will also reduce overall build surprises when importing proxy-wasm-cpp-host into Envoy. Signed-off-by: Michael Warres * change --config=clang-asan-strict to --config=clang-asan Signed-off-by: Michael Warres * chore: support clang-18 and ubuntu-24.04 These changes make Proxy-Wasm build cleanly with clang-18 and pass clang-tidy-18 checks. Signed-off-by: Matt Leon * chore: ignore c++20 + clang-18 + gcc-14 findings Signed-off-by: Matt Leon --------- Signed-off-by: Michael Warres Signed-off-by: Matt Leon Co-authored-by: Michael Warres --- .bazelrc | 9 ++++--- .clang-tidy | 15 +++++++++++ .github/workflows/format.yml | 14 +++++----- .github/workflows/test.yml | 38 +++++++++++++-------------- bazel/external/bazel_clang_tidy.patch | 11 -------- bazel/external/v8.patch | 5 +++- bazel/external/wasmedge.BUILD | 3 +++ bazel/repositories.bzl | 14 +++++----- src/null/null_plugin.cc | 1 - src/wasmedge/wasmedge.cc | 1 + test/utility.cc | 11 ++++---- test/utility.h | 3 +++ 12 files changed, 68 insertions(+), 57 deletions(-) diff --git a/.bazelrc b/.bazelrc index ab9a27f84..97009c8a9 100644 --- a/.bazelrc +++ b/.bazelrc @@ -10,6 +10,7 @@ build --action_env=PATH build:clang --action_env=BAZEL_COMPILER=clang build:clang --action_env=CC=clang build:clang --action_env=CXX=clang++ +build:clang --copt -Wno-pragma-once-outside-header --cxxopt -Wno-pragma-once-outside-header # Common flags for Clang sanitizers. build:clang-xsan --config=clang @@ -80,10 +81,10 @@ build:zig-cc-linux-aarch64 --test_env=QEMU_LD_PREFIX=/usr/aarch64-linux-gnu/ build --enable_platform_specific_config -# Use C++17. -build:linux --cxxopt=-std=c++17 -build:macos --cxxopt=-std=c++17 -build:windows --cxxopt="/std:c++17" +# Use C++20. +build:linux --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 +build:macos --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 +build:windows --cxxopt="/std:c++20" --host_cxxopt="/std:c++20" # Enable symlinks and runfiles on Windows (enabled by default on other platforms). startup --windows_enable_symlinks diff --git a/.clang-tidy b/.clang-tidy index ceab9ad4a..df9f5c944 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,17 +1,28 @@ Checks: clang-*, + -clang-analyzer-core.CallAndMessage, -clang-analyzer-optin.portability.UnixAPI, -clang-analyzer-unix.Malloc, -clang-diagnostic-pragma-once-outside-header, + -clang-diagnostic-builtin-macro-redefined, cppcoreguidelines-pro-type-member-init, cppcoreguidelines-pro-type-static-cast-downcast, misc-*, -misc-non-private-member-variables-in-classes, + -misc-use-anonymous-namespace, + -misc-const-correctness, + -misc-include-cleaner, + -misc-unused-parameters, modernize-*, -modernize-avoid-c-arrays, -modernize-use-trailing-return-type, + -modernize-return-braced-init-list, + -modernize-use-default-member-init, + -modernize-type-traits, + -modernize-use-emplace, llvm-include-order, performance-*, -performance-no-int-to-ptr, + -performance-avoid-endl, portability-*, readability-*, -readability-convert-member-functions-to-static, @@ -19,5 +30,9 @@ Checks: clang-*, -readability-magic-numbers, -readability-make-member-function-const, -readability-simplify-boolean-expr, + -readability-identifier-length, + -readability-container-data-pointer, + -readability-redundant-casting, + -readability-avoid-return-with-void-value, WarningsAsErrors: '*' diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 1004f123f..fa4ba153c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -43,7 +43,7 @@ jobs: addlicense: name: verify licenses - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 @@ -63,7 +63,7 @@ jobs: buildifier: name: check format with buildifier - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 @@ -101,29 +101,29 @@ jobs: clang_format: name: check format with clang-format - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 - name: Install dependencies (Linux) - run: sudo apt update -y && sudo apt install -y clang-format-12 + run: sudo apt update -y && sudo apt install -y clang-format-18 - name: Format (clang-format) run: | - find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-12 -i + find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-18 -i git diff --exit-code clang_tidy: name: check format with clang-tidy - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 - name: Install dependencies (Linux) - run: sudo apt update -y && sudo apt install -y clang-tidy-12 lld-12 && sudo ln -sf /usr/bin/lld-12 /usr/bin/lld + run: sudo apt update -y && sudo apt install -y clang-tidy-18 lld-18 && sudo ln -sf /usr/bin/lld-18 /usr/bin/lld - name: Bazel cache uses: PiotrSikora/cache@v2.1.7-with-skip-cache diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f33c3316..dbb3eed27 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,7 @@ jobs: test_data: name: build test data - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v2 @@ -111,19 +111,19 @@ jobs: include: - name: 'NullVM on Linux/x86_64' engine: 'null' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=gcc - name: 'NullVM on Linux/x86_64 with ASan' engine: 'null' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test - flags: --config=clang-asan-strict --define=crypto=system + flags: --config=clang-asan --define=crypto=system - name: 'NullVM on Linux/x86_64 with TSan' engine: 'null' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang-tsan @@ -136,7 +136,7 @@ jobs: - name: 'V8 on Linux/x86_64' engine: 'v8' repo: 'v8' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang --define=crypto=system @@ -144,7 +144,7 @@ jobs: - name: 'V8 on Linux/x86_64 with ASan' engine: 'v8' repo: 'v8' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang-asan @@ -152,7 +152,7 @@ jobs: - name: 'V8 on Linux/x86_64 with TSan' engine: 'v8' repo: 'v8' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang-tsan @@ -160,7 +160,7 @@ jobs: - name: 'V8 on Linux/x86_64 with GCC' engine: 'v8' repo: 'v8' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=gcc @@ -168,7 +168,7 @@ jobs: - name: 'V8 on Linux/aarch64' engine: 'v8' repo: 'v8' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: aarch64 action: test targets: -//test/fuzz/... @@ -185,7 +185,7 @@ jobs: - name: 'WAMR interp on Linux/x86_64' engine: 'wamr-interp' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang @@ -198,11 +198,11 @@ jobs: - name: 'WAMR jit on Linux/x86_64' engine: 'wamr-jit' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang - deps: lld-12 + deps: lld-18 cache: true - name: 'WAMR jit on macOS/x86_64' engine: 'wamr-jit' @@ -214,7 +214,7 @@ jobs: - name: 'WasmEdge on Linux/x86_64' engine: 'wasmedge' repo: 'com_github_wasmedge_wasmedge' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang @@ -227,21 +227,21 @@ jobs: - name: 'Wasmtime on Linux/x86_64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test flags: --config=clang -c opt - name: 'Wasmtime on Linux/x86_64 with ASan' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: x86_64 action: test - flags: --config=clang-asan-strict --define=crypto=system + flags: --config=clang-asan --define=crypto=system - name: 'Wasmtime on Linux/aarch64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: aarch64 action: build flags: --config=zig-cc-linux-aarch64 @@ -249,7 +249,7 @@ jobs: - name: 'Wasmtime on Linux/s390x' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-22.04 + os: ubuntu-24.04 arch: s390x action: test flags: --config=clang --test_timeout=1800 diff --git a/bazel/external/bazel_clang_tidy.patch b/bazel/external/bazel_clang_tidy.patch index 9c84b3c7f..82711d83e 100644 --- a/bazel/external/bazel_clang_tidy.patch +++ b/bazel/external/bazel_clang_tidy.patch @@ -1,5 +1,4 @@ # 1. Treat .h files as C++ headers. -# 2. Hardcode clang-tidy-12. diff --git a/clang_tidy/clang_tidy.bzl b/clang_tidy/clang_tidy.bzl index 3a5ed07..5db5c6c 100644 @@ -15,13 +14,3 @@ index 3a5ed07..5db5c6c 100644 # start args passed to the compiler args.add("--") -diff --git a/clang_tidy/run_clang_tidy.sh b/clang_tidy/run_clang_tidy.sh -index 582bab1..b9ebb94 100755 ---- a/clang_tidy/run_clang_tidy.sh -+++ b/clang_tidy/run_clang_tidy.sh -@@ -11,4 +11,4 @@ shift - touch $OUTPUT - truncate -s 0 $OUTPUT - --clang-tidy "$@" -+clang-tidy-12 "$@" diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index 58e7f9ba0..ba1ae19dd 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -20,11 +20,14 @@ diff --git a/bazel/defs.bzl b/bazel/defs.bzl index e957c0fad3..063627b72b 100644 --- a/bazel/defs.bzl +++ b/bazel/defs.bzl -@@ -131,6 +131,7 @@ def _default_args(): +@@ -131,6 +131,10 @@ def _default_args(): "-Wno-redundant-move", "-Wno-return-type", "-Wno-stringop-overflow", + "-Wno-nonnull", ++ "-Wno-error=pessimizing-move", ++ "-Wno-error=dangling-reference", ++ "-Wno-error=dangling-pointer=", # Use GNU dialect, because GCC doesn't allow using # ##__VA_ARGS__ when in standards-conforming mode. "-std=gnu++17", diff --git a/bazel/external/wasmedge.BUILD b/bazel/external/wasmedge.BUILD index 1869bf969..2c6e89204 100644 --- a/bazel/external/wasmedge.BUILD +++ b/bazel/external/wasmedge.BUILD @@ -18,6 +18,9 @@ cmake( "WASMEDGE_BUILD_TOOLS": "Off", "WASMEDGE_FORCE_DISABLE_LTO": "On", }, + env = { + "CXXFLAGS": "-Wno-error=dangling-reference -Wno-error=maybe-uninitialized -Wno-error=array-bounds= -Wno-error=deprecated-declarations -std=c++20", + }, generate_args = ["-GNinja"], lib_source = ":srcs", out_static_libs = ["libwasmedge.a"], diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 38108bd81..94e9fc5f3 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -130,9 +130,9 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "proxy_wasm_cpp_sdk", - sha256 = "89792fc1abca331f29f99870476a04146de5e82ff903bdffca90e6729c1f2470", - strip_prefix = "proxy-wasm-cpp-sdk-95bb82ce45c41d9100fd1ec15d2ffc67f7f3ceee", - urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/95bb82ce45c41d9100fd1ec15d2ffc67f7f3ceee.tar.gz"], + sha256 = "26c4c0f9f645de7e789dc92f113d7352ee54ac43bb93ae3a8a22945f1ce71590", + strip_prefix = "proxy-wasm-cpp-sdk-7465dee8b2953beebff99f6dc3720ad0c79bab99", + urls = ["https://github.com/proxy-wasm/proxy-wasm-cpp-sdk/archive/7465dee8b2953beebff99f6dc3720ad0c79bab99.tar.gz"], ) # Compile DB dependencies. @@ -149,11 +149,9 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, name = "com_google_googletest", - sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", - strip_prefix = "googletest-release-1.10.0", - urls = ["https://github.com/google/googletest/archive/release-1.10.0.tar.gz"], - patches = ["@proxy_wasm_cpp_host//bazel/external:googletest.patch"], - patch_args = ["-p1"], + sha256 = "65fab701d9829d38cb77c14acdc431d2108bfdbf8979e40eb8ae567edf10b27c", + strip_prefix = "googletest-1.17.0", + urls = ["https://github.com/google/googletest/releases/download/v1.17.0/googletest-1.17.0.tar.gz"], ) # NullVM dependencies. diff --git a/src/null/null_plugin.cc b/src/null/null_plugin.cc index 0f74496a2..689225687 100644 --- a/src/null/null_plugin.cc +++ b/src/null/null_plugin.cc @@ -26,7 +26,6 @@ #include #include -#include "include/proxy-wasm/null_plugin.h" #include "include/proxy-wasm/null_vm.h" #include "include/proxy-wasm/wasm.h" diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc index 38b8a9c9c..596af0c9e 100644 --- a/src/wasmedge/wasmedge.cc +++ b/src/wasmedge/wasmedge.cc @@ -19,6 +19,7 @@ #include "wasmedge/wasmedge.h" +#include #include #include #include diff --git a/test/utility.cc b/test/utility.cc index b4c10053f..7bdf9d2ad 100644 --- a/test/utility.cc +++ b/test/utility.cc @@ -21,19 +21,18 @@ std::string TestContext::global_log_; std::vector getWasmEngines() { std::vector engines = { #if defined(PROXY_WASM_HOST_ENGINE_V8) - "v8", + "v8", #endif #if defined(PROXY_WASM_HOST_ENGINE_WAMR) - "wamr", + "wamr", #endif #if defined(PROXY_WASM_HOST_ENGINE_WASMEDGE) - "wasmedge", + "wasmedge", #endif #if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) - "wasmtime", + "wasmtime", #endif - "" - }; + ""}; engines.pop_back(); return engines; } diff --git a/test/utility.h b/test/utility.h index eaaaa3197..0eb743037 100644 --- a/test/utility.h +++ b/test/utility.h @@ -192,4 +192,7 @@ class TestVm : public testing::TestWithParam { std::string engine_; }; +// TODO: remove when #412 is fixed. +GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(TestVm); + } // namespace proxy_wasm From 1000bc25c77aee28383fc66648dad00b31e460aa Mon Sep 17 00:00:00 2001 From: Matt Leon Date: Sat, 26 Jul 2025 12:56:23 -0400 Subject: [PATCH 275/287] chore: update V8 to 13.8.258.26 (#442) * update V8 to 13.8.258.26 Signed-off-by: Michael Warres * add missing files to v8.patch Signed-off-by: Michael Warres * chore: Update v8 to use 13.8 interface Signed-off-by: Matt Leon * chore: use bazel repos for missing v8 dependencies Signed-off-by: Matt Leon * chore: fix test expectation Signed-off-by: Matt Leon * chore: disable failing test This test fails with the new V8 version Signed-off-by: Matt Leon * chore: fix sed to work on darwin BSD sed requires an extension to create a backup file when used with in-place editing. Signed-off-by: Matt Leon * fix: remove racy call to isolate->IsExecutionTerminating() Signed-off-by: Matt Leon * fix: remove V8's libatomic dependency Signed-off-by: Matt Leon * chore: use toolchains_llvm with clang 19.1.0 Fixes macos build Signed-off-by: Matt Leon * chore: update aarch64 build to run on native aarch64 runner Signed-off-by: Matt Leon * chore: update hermetic-llvm to be platform-agnostic and use in CI Signed-off-by: Matt Leon * chore: Silence tsan warnings inside V8 These warnings flag a Join() function protected by a mutex. Such a function marks that the racy operation has ended. Signed-off-by: Matt Leon --------- Signed-off-by: Michael Warres Signed-off-by: Matt Leon Co-authored-by: Michael Warres --- .bazelrc | 19 +- .github/workflows/test.yml | 17 +- bazel/BUILD | 2 + bazel/cc_defs.bzl | 22 ++ bazel/dependencies.bzl | 45 +++- bazel/dependencies_import.bzl | 3 + bazel/external/dragonbox.BUILD | 12 + bazel/external/fp16.BUILD | 15 ++ bazel/external/intel_ittapi.BUILD | 21 ++ bazel/external/simdutf.BUILD | 11 + bazel/external/v8.patch | 355 ++++++++++++++++++++++++++---- bazel/external/v8_include.patch | 41 ---- bazel/repositories.bzl | 101 +++++++-- bazel/tsan_suppressions.txt | 3 + src/v8/v8.cc | 87 ++++---- test/BUILD | 3 +- test/fuzz/BUILD | 2 +- test/runtime_test.cc | 2 +- test/wasm_vm_test.cc | 2 +- 19 files changed, 586 insertions(+), 177 deletions(-) create mode 100644 bazel/cc_defs.bzl create mode 100644 bazel/external/dragonbox.BUILD create mode 100644 bazel/external/fp16.BUILD create mode 100644 bazel/external/intel_ittapi.BUILD create mode 100644 bazel/external/simdutf.BUILD delete mode 100644 bazel/external/v8_include.patch create mode 100644 bazel/tsan_suppressions.txt diff --git a/.bazelrc b/.bazelrc index 97009c8a9..5a0373356 100644 --- a/.bazelrc +++ b/.bazelrc @@ -55,6 +55,7 @@ build:clang-tsan --config=clang-xsan build:clang-tsan --copt -DTHREAD_SANITIZER=1 build:clang-tsan --copt -fsanitize=thread build:clang-tsan --linkopt -fsanitize=thread +build:clang-tsan --test_env=TSAN_OPTIONS=suppressions=bazel/tsan_suppressions.txt # Use Clang-Tidy tool. build:clang-tidy --config=clang @@ -67,17 +68,14 @@ build:gcc --action_env=BAZEL_COMPILER=gcc build:gcc --action_env=CC=gcc build:gcc --action_env=CXX=g++ -# Use Zig C/C++ compiler. -build:zig-cc --incompatible_enable_cc_toolchain_resolution -build:zig-cc --extra_toolchains @zig_sdk//:aarch64-linux-gnu.2.28_toolchain -build:zig-cc --extra_toolchains @zig_sdk//:x86_64-linux-gnu.2.28_toolchain -build:zig-cc --host_copt=-fno-sanitize=undefined +build:hermetic-llvm --incompatible_enable_cc_toolchain_resolution +build:hermetic-llvm --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1 +build:hermetic-llvm --extra_toolchains @emsdk//emscripten_toolchain:cc-toolchain-wasm -# Use Zig C/C++ compiler (cross-compile to Linux/aarch64). -build:zig-cc-linux-aarch64 --config=zig-cc -build:zig-cc-linux-aarch64 --platforms @zig_sdk//:linux_aarch64_platform -build:zig-cc-linux-aarch64 --run_under=qemu-aarch64-static -build:zig-cc-linux-aarch64 --test_env=QEMU_LD_PREFIX=/usr/aarch64-linux-gnu/ +build:hermetic-llvm-macos --config=hermetic-llvm +# Below flags mitigate https://github.com/bazel-contrib/toolchains_llvm/pull/229. +build:hermetic-llvm-macos --features=-libtool +build:hermetic-llvm-macos --features=-supports_dynamic_linker build --enable_platform_specific_config @@ -86,6 +84,7 @@ build:linux --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 build:macos --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 build:windows --cxxopt="/std:c++20" --host_cxxopt="/std:c++20" + # Enable symlinks and runfiles on Windows (enabled by default on other platforms). startup --windows_enable_symlinks build:windows --enable_runfiles diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index dbb3eed27..7cb78e3b5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -139,7 +139,7 @@ jobs: os: ubuntu-24.04 arch: x86_64 action: test - flags: --config=clang --define=crypto=system + flags: --config=hermetic-llvm --define=crypto=system cache: true - name: 'V8 on Linux/x86_64 with ASan' engine: 'v8' @@ -147,7 +147,7 @@ jobs: os: ubuntu-24.04 arch: x86_64 action: test - flags: --config=clang-asan + flags: --config=hermetic-llvm --config=clang-asan cache: true - name: 'V8 on Linux/x86_64 with TSan' engine: 'v8' @@ -155,7 +155,7 @@ jobs: os: ubuntu-24.04 arch: x86_64 action: test - flags: --config=clang-tsan + flags: --config=hermetic-llvm --config=clang-tsan cache: true - name: 'V8 on Linux/x86_64 with GCC' engine: 'v8' @@ -168,12 +168,11 @@ jobs: - name: 'V8 on Linux/aarch64' engine: 'v8' repo: 'v8' - os: ubuntu-24.04 + os: ubuntu-24.04-arm arch: aarch64 action: test targets: -//test/fuzz/... - flags: --config=zig-cc-linux-aarch64 --@v8//bazel/config:v8_target_cpu=arm64 - deps: qemu-user-static libc6-arm64-cross + flags: --config=hermetic-llvm --@v8//bazel/config:v8_target_cpu=arm64 cache: true - name: 'V8 on macOS/x86_64' engine: 'v8' @@ -181,6 +180,7 @@ jobs: os: macos-13 arch: x86_64 action: test + flags: --config=hermetic-llvm-macos cache: true - name: 'WAMR interp on Linux/x86_64' engine: 'wamr-interp' @@ -241,11 +241,10 @@ jobs: - name: 'Wasmtime on Linux/aarch64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-24.04 + os: ubuntu-24.04-arm arch: aarch64 action: build - flags: --config=zig-cc-linux-aarch64 - deps: qemu-user-static libc6-arm64-cross + flags: --config=hermetic-llvm - name: 'Wasmtime on Linux/s390x' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' diff --git a/bazel/BUILD b/bazel/BUILD index a3487f891..15f323fa7 100644 --- a/bazel/BUILD +++ b/bazel/BUILD @@ -68,3 +68,5 @@ selects.config_setting_group( ":linux_s390x", ], ) + +exports_files(["tsan_suppressions.txt"]) diff --git a/bazel/cc_defs.bzl b/bazel/cc_defs.bzl new file mode 100644 index 000000000..5951de438 --- /dev/null +++ b/bazel/cc_defs.bzl @@ -0,0 +1,22 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +load("@rules_cc//cc:defs.bzl", _cc_test = "cc_test") +load("@rules_fuzzing//fuzzing:cc_defs.bzl", _cc_fuzz_test = "cc_fuzz_test") + +def cc_test(data = [], **kwargs): + _cc_test(data = data + ["//bazel:tsan_suppressions.txt"], **kwargs) + +def cc_fuzz_test(data = [], **kwargs): + _cc_fuzz_test(data = data + ["//bazel:tsan_suppressions.txt"], **kwargs) diff --git a/bazel/dependencies.bzl b/bazel/dependencies.bzl index 7b5c5fcbd..683fb9964 100644 --- a/bazel/dependencies.bzl +++ b/bazel/dependencies.bzl @@ -12,13 +12,15 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@bazel-zig-cc//toolchain:defs.bzl", zig_register_toolchains = "register_toolchains") load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") +load("@envoy_toolshed//sysroot:sysroot.bzl", "setup_sysroots") load("@proxy_wasm_cpp_host//bazel/cargo/wasmsign/remote:crates.bzl", wasmsign_crate_repositories = "crate_repositories") load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime/remote:crates.bzl", wasmtime_crate_repositories = "crate_repositories") load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains") load("@rules_rust//crate_universe:repositories.bzl", "crate_universe_dependencies") load("@rules_rust//rust:repositories.bzl", "rust_repositories", "rust_repository_set") +load("@toolchains_llvm//toolchain:deps.bzl", "bazel_toolchain_dependencies") +load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain") def proxy_wasm_cpp_host_dependencies(): # Bazel extensions. @@ -52,14 +54,39 @@ def proxy_wasm_cpp_host_dependencies(): ) crate_universe_dependencies(bootstrap = True) - zig_register_toolchains( - version = "0.9.1", - url_format = "https://ziglang.org/download/%7Bversion%7D/zig-%7Bhost_platform%7D-%7Bversion%7D.tar.xz", - host_platform_sha256 = { - "linux-aarch64": "5d99a39cded1870a3fa95d4de4ce68ac2610cca440336cfd252ffdddc2b90e66", - "linux-x86_64": "be8da632c1d3273f766b69244d80669fe4f5e27798654681d77c992f17c237d7", - "macos-aarch64": "8c473082b4f0f819f1da05de2dbd0c1e891dff7d85d2c12b6ee876887d438287", - "macos-x86_64": "2d94984972d67292b55c1eb1c00de46580e9916575d083003546e9a01166754c", + setup_sysroots() + bazel_toolchain_dependencies() + llvm_toolchain( + name = "llvm_toolchain", + llvm_version = "19.1.0", + sha256 = { + "linux-x86_64": "cee77d641690466a193d9b88c89705de1c02bbad46bde6a3b126793c0a0f2923", + "linux-aarch64": "7bb54afd330fe1a1c2d4c593fa1e2dbe2abd9bf34fb3597994ff41e443cf144b", + "darwin-aarch64": "9da86f64a99f5ce9b679caf54e938736ca269c5e069d0c94ad08b995c5f25c16", + "darwin-x86_64": "264f2f1e8b67f066749349ae8b4943d346cd44e099464164ef21b42a57663540", + }, + strip_prefix = { + "linux-x86_64": "LLVM-19.1.0-Linux-X64", + "linux-aarch64": "clang+llvm-19.1.0-aarch64-linux-gnu", + "darwin-aarch64": "LLVM-19.1.0-macOS-ARM64", + "darwin-x86_64": "LLVM-19.1.0-macOS-X64", + }, + urls = { + "linux-x86_64": ["https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.0/LLVM-19.1.0-Linux-X64.tar.xz"], + "linux-aarch64": ["https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.0/clang+llvm-19.1.0-aarch64-linux-gnu.tar.xz"], + "darwin-aarch64": ["https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.0/LLVM-19.1.0-macOS-ARM64.tar.xz"], + "darwin-x86_64": ["https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.0/LLVM-19.1.0-macOS-X64.tar.xz"], + }, + ) + + llvm_toolchain( + name = "llvm_aarch64", + llvm_version = "19.1.0", + toolchain_roots = { + "": "@llvm_toolchain_llvm//", + }, + sysroot = { + "linux-aarch64": "@sysroot_linux_arm64//:sysroot", }, ) diff --git a/bazel/dependencies_import.bzl b/bazel/dependencies_import.bzl index 1f23f7d0b..e4cf5e879 100644 --- a/bazel/dependencies_import.bzl +++ b/bazel/dependencies_import.bzl @@ -13,11 +13,14 @@ # limitations under the License. load("@fuzzing_py_deps//:requirements.bzl", pip_fuzzing_dependencies = "install_deps") +load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains") load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies") load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies") load("@v8_python_deps//:requirements.bzl", pip_v8_dependencies = "install_deps") def proxy_wasm_cpp_host_dependencies_import(): + llvm_register_toolchains() + rules_foreign_cc_dependencies() rules_fuzzing_dependencies() diff --git a/bazel/external/dragonbox.BUILD b/bazel/external/dragonbox.BUILD new file mode 100644 index 000000000..d0bdf231e --- /dev/null +++ b/bazel/external/dragonbox.BUILD @@ -0,0 +1,12 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "dragonbox", + srcs = [], + hdrs = ["include/dragonbox/dragonbox.h"], + includes = ["include/"], +) diff --git a/bazel/external/fp16.BUILD b/bazel/external/fp16.BUILD new file mode 100644 index 000000000..f3fbfda1f --- /dev/null +++ b/bazel/external/fp16.BUILD @@ -0,0 +1,15 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +licenses(["notice"]) # MIT + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "FP16", + hdrs = [ + "include/fp16.h", + "include/fp16/bitcasts.h", + "include/fp16/fp16.h", + ], + includes = ["include/"], +) diff --git a/bazel/external/intel_ittapi.BUILD b/bazel/external/intel_ittapi.BUILD new file mode 100644 index 000000000..13351d38a --- /dev/null +++ b/bazel/external/intel_ittapi.BUILD @@ -0,0 +1,21 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +licenses(["notice"]) + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "lib_ittapi", + srcs = [ + "include/ittnotify.h", + "include/jitprofiling.h", + "src/ittnotify/ittnotify_config.h", + "src/ittnotify/jitprofiling.c", + ], + hdrs = [ + "include/ittnotify.h", + "src/ittnotify/ittnotify_types.h", + ], + includes = ["include/"], + visibility = ["//visibility:public"], +) diff --git a/bazel/external/simdutf.BUILD b/bazel/external/simdutf.BUILD new file mode 100644 index 000000000..ee4896494 --- /dev/null +++ b/bazel/external/simdutf.BUILD @@ -0,0 +1,11 @@ +load("@rules_cc//cc:defs.bzl", "cc_library") + +licenses(["notice"]) # Apache 2 + +package(default_visibility = ["//visibility:public"]) + +cc_library( + name = "simdutf", + srcs = ["simdutf.cpp"], + hdrs = ["simdutf.h"], +) diff --git a/bazel/external/v8.patch b/bazel/external/v8.patch index ba1ae19dd..a124cf9a5 100644 --- a/bazel/external/v8.patch +++ b/bazel/external/v8.patch @@ -1,13 +1,20 @@ -# 1. Disable pointer compression (limits the maximum number of WasmVMs). -# 2. Don't expose Wasm C API (only Wasm C++ API). -# 3. Fix gcc build error by disabling nonnull warning. -# 4. Allow compiling v8 on macOS 10.15 to 13.0. TODO(dio): Will remove this patch when https://bugs.chromium.org/p/v8/issues/detail?id=13428 is fixed. +From bc2a85e39fd55879b9baed51429c08b27d5514c8 Mon Sep 17 00:00:00 2001 +From: Matt Leon +Date: Wed, 16 Jul 2025 16:55:02 -0400 +Subject: [PATCH 1/7] Disable pointer compression + +Pointer compression limits the maximum number of WasmVMs. + +Signed-off-by: Matt Leon +--- + BUILD.bazel | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BUILD.bazel b/BUILD.bazel -index 4e89f90e7e..3fcb38b3f3 100644 +index 3f5a87d054e..0a693b7ee10 100644 --- a/BUILD.bazel +++ b/BUILD.bazel -@@ -157,7 +157,7 @@ v8_int( +@@ -292,7 +292,7 @@ v8_int( # If no explicit value for v8_enable_pointer_compression, we set it to 'none'. v8_string( name = "v8_enable_pointer_compression", @@ -16,45 +23,80 @@ index 4e89f90e7e..3fcb38b3f3 100644 ) # Default setting for v8_enable_pointer_compression. +-- +2.50.0.727.gbf7dc18ff4-goog + + +From 61898e9a63ac89a37261c081b84714cfc400a4b1 Mon Sep 17 00:00:00 2001 +From: Matt Leon +Date: Wed, 16 Jul 2025 16:56:31 -0400 +Subject: [PATCH 2/7] Restore _allowlist_function_transition + +Reverts v8 commit b26554ec368e9553782012c96aa5e99b163eaff2, which removed use of +_allowlist_function_transition from v8 bazel/defs.bzl, since it is still required +by the version of Bazel we currently use (6.5.0). + +Signed-off-by: Matt Leon +--- + bazel/defs.bzl | 3 +++ + bazel/v8-non-pointer-compression.bzl | 11 +++++++++++ + 2 files changed, 14 insertions(+) + diff --git a/bazel/defs.bzl b/bazel/defs.bzl -index e957c0fad3..063627b72b 100644 +index 0539ea176ac..14d7ace5e59 100644 --- a/bazel/defs.bzl +++ b/bazel/defs.bzl -@@ -131,6 +131,10 @@ def _default_args(): - "-Wno-redundant-move", - "-Wno-return-type", - "-Wno-stringop-overflow", -+ "-Wno-nonnull", -+ "-Wno-error=pessimizing-move", -+ "-Wno-error=dangling-reference", -+ "-Wno-error=dangling-pointer=", - # Use GNU dialect, because GCC doesn't allow using - # ##__VA_ARGS__ when in standards-conforming mode. - "-std=gnu++17", -@@ -151,6 +152,18 @@ def _default_args(): - "-fno-integrated-as", - ], - "//conditions:default": [], -+ }) + select({ -+ "@v8//bazel/config:is_macos": [ -+ # The clang available on macOS catalina has a warning that isn't clean on v8 code. -+ "-Wno-range-loop-analysis", -+ -+ # To supress warning on deprecated declaration on v8 code. For example: -+ # external/v8/src/base/platform/platform-darwin.cc:56:22: 'getsectdatafromheader_64' -+ # is deprecated: first deprecated in macOS 13.0. -+ # https://bugs.chromium.org/p/v8/issues/detail?id=13428. -+ "-Wno-deprecated-declarations", -+ ], -+ "//conditions:default": [], - }), - includes = ["include"], - linkopts = select({ +@@ -485,6 +485,9 @@ _v8_mksnapshot = rule( + cfg = "exec", + ), + "target_os": attr.string(mandatory = True), ++ "_allowlist_function_transition": attr.label( ++ default = "@bazel_tools//tools/allowlists/function_transition_allowlist", ++ ), + "prefix": attr.string(mandatory = True), + "suffix": attr.string(mandatory = True), + }, +diff --git a/bazel/v8-non-pointer-compression.bzl b/bazel/v8-non-pointer-compression.bzl +index 8c929454840..57336154cf7 100644 +--- a/bazel/v8-non-pointer-compression.bzl ++++ b/bazel/v8-non-pointer-compression.bzl +@@ -47,6 +47,17 @@ v8_binary_non_pointer_compression = rule( + # Note specificaly how it's configured with v8_target_cpu_transition, which + # ensures that setting propagates down the graph. + "binary": attr.label(cfg = v8_disable_pointer_compression), ++ # This is a stock Bazel requirement for any rule that uses Starlark ++ # transitions. It's okay to copy the below verbatim for all such rules. ++ # ++ # The purpose of this requirement is to give the ability to restrict ++ # which packages can invoke these rules, since Starlark transitions ++ # make much larger graphs possible that can have memory and performance ++ # consequences for your build. The whitelist defaults to "everything". ++ # But you can redefine it more strictly if you feel that's prudent. ++ "_allowlist_function_transition": attr.label( ++ default = "@bazel_tools//tools/allowlists/function_transition_allowlist", ++ ), + }, + # Making this executable means it works with "$ bazel run". + executable = True, +-- +2.50.0.727.gbf7dc18ff4-goog + + +From 4a6e7158fd4ca48c75c8e33ea15760c9beea1d2f Mon Sep 17 00:00:00 2001 +From: Matt Leon +Date: Wed, 16 Jul 2025 16:56:52 -0400 +Subject: [PATCH 3/7] Don't expose Wasm C API (only Wasm C++ API). + +Signed-off-by: Matt Leon +--- + src/wasm/c-api.cc | 4 ++++ + 1 file changed, 4 insertions(+) + diff --git a/src/wasm/c-api.cc b/src/wasm/c-api.cc -index 4473e205c0..65a6ec7e1d 100644 +index 05e4029f183..d705be96a16 100644 --- a/src/wasm/c-api.cc +++ b/src/wasm/c-api.cc -@@ -2247,6 +2247,8 @@ auto Instance::exports() const -> ownvec { +@@ -2472,6 +2472,8 @@ WASM_EXPORT auto Instance::exports() const -> ownvec { } // namespace wasm @@ -63,9 +105,242 @@ index 4473e205c0..65a6ec7e1d 100644 // BEGIN FILE wasm-c.cc extern "C" { -@@ -3274,3 +3276,5 @@ wasm_instance_t* wasm_frame_instance(const wasm_frame_t* frame) { +@@ -3518,3 +3520,5 @@ wasm_instance_t* wasm_frame_instance(const wasm_frame_t* frame) { #undef WASM_DEFINE_SHARABLE_REF } // extern "C" + +#endif +-- +2.50.0.727.gbf7dc18ff4-goog + + +From 7b593eb8086dcfe9012d4fa694d622f21dadb731 Mon Sep 17 00:00:00 2001 +From: Matt Leon +Date: Wed, 16 Jul 2025 16:58:02 -0400 +Subject: [PATCH 4/7] Stub out fast_float for bazel-supplied version + +Signed-off-by: Matt Leon +--- + BUILD.bazel | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/BUILD.bazel b/BUILD.bazel +index 0a693b7ee10..eafd9dad20c 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -4438,7 +4438,7 @@ v8_library( + ], + deps = [ + ":lib_dragonbox", +- "//third_party/fast_float/src:fast_float", ++ "@fast_float//:fast_float", + ":lib_fp16", + ":simdutf", + ":v8_libbase", +-- +2.50.0.727.gbf7dc18ff4-goog + + +From b442d34b12dd513946f509d9db86839ce8aa4d7f Mon Sep 17 00:00:00 2001 +From: Matt Leon +Date: Wed, 16 Jul 2025 20:04:05 -0400 +Subject: [PATCH 5/7] Stub out vendored dependencies for bazel-sourced versions + +Signed-off-by: Matt Leon +--- + BUILD.bazel | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/BUILD.bazel b/BUILD.bazel +index eafd9dad20c..ce36666e36e 100644 +--- a/BUILD.bazel ++++ b/BUILD.bazel +@@ -4437,10 +4437,10 @@ v8_library( + ":noicu/generated_torque_definitions", + ], + deps = [ +- ":lib_dragonbox", ++ "@dragonbox//:dragonbox", + "@fast_float//:fast_float", +- ":lib_fp16", +- ":simdutf", ++ "@fp16//:FP16", ++ "@simdutf//:simdutf", + ":v8_libbase", + "@abseil-cpp//absl/container:btree", + "@abseil-cpp//absl/container:flat_hash_map", +-- +2.50.0.727.gbf7dc18ff4-goog + + +From e0b8f32cc057a3c0875437d5d54d012cabcab458 Mon Sep 17 00:00:00 2001 +From: Matt Leon +Date: Wed, 16 Jul 2025 20:29:10 -0400 +Subject: [PATCH 6/7] Add build flags to make V8 compile with GCC + +Signed-off-by: Matt Leon +--- + bazel/defs.bzl | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/bazel/defs.bzl b/bazel/defs.bzl +index 14d7ace5e59..c7a48d4e805 100644 +--- a/bazel/defs.bzl ++++ b/bazel/defs.bzl +@@ -117,6 +117,9 @@ def _default_args(): + "-Wno-implicit-int-float-conversion", + "-Wno-deprecated-copy", + "-Wno-non-virtual-dtor", ++ "-Wno-invalid-offsetof", ++ "-Wno-dangling-pointer", ++ "-Wno-dangling-reference", + "-isystem .", + ], + "//conditions:default": [], +-- +2.50.0.727.gbf7dc18ff4-goog + + +From 7ce2d6bd14b338ab91a8636a8694b9ef180b2f90 Mon Sep 17 00:00:00 2001 +From: Matt Leon +Date: Fri, 18 Jul 2025 17:28:42 -0400 +Subject: [PATCH 7/7] Hack out atomic simd support in V8. + +Atomic simdutf requires __cpp_lib_atomic_ref >= 201806, which is only +supported in clang libc++ 19+. The version of LLVM used in Envoy as of +2025-07-18 is libc++ 18, so this is not supported. + +The simdutf documentation indicates this atomic form is not tested and +is not recommended for use: +https://github.com/simdutf/simdutf/blob/5d1b6248f29a8ed0eb90f79be268be41730e39f8/include/simdutf/implementation.h#L3066-L3068 + +In addition, this is in the implementation of a JS array buffer. Since +proxy-wasm-cpp-host does not make use of JS array buffers or shared +memory between web workers, we're stubbing it out. + +Mostly reverts +https://github.com/v8/v8/commit/6d6c1e680c7b8ea5f62a76e9c3d88d3fb0a88df0. + +Signed-off-by: Matt Leon +--- + bazel/defs.bzl | 2 +- + src/builtins/builtins-typed-array.cc | 8 ++++++++ + src/objects/simd.cc | 10 ++++++++++ + 3 files changed, 19 insertions(+), 1 deletion(-) + +diff --git a/bazel/defs.bzl b/bazel/defs.bzl +index c7a48d4e805..a73b3812882 100644 +--- a/bazel/defs.bzl ++++ b/bazel/defs.bzl +@@ -180,7 +180,7 @@ def _default_args(): + "Advapi32.lib", + ], + "@v8//bazel/config:is_macos": ["-pthread"], +- "//conditions:default": ["-Wl,--no-as-needed -ldl -latomic -pthread"], ++ "//conditions:default": ["-Wl,--no-as-needed -ldl -pthread"], + }) + select({ + ":should_add_rdynamic": ["-rdynamic"], + "//conditions:default": [], +diff --git a/src/builtins/builtins-typed-array.cc b/src/builtins/builtins-typed-array.cc +index 918cb873481..bc933e8dc1d 100644 +--- a/src/builtins/builtins-typed-array.cc ++++ b/src/builtins/builtins-typed-array.cc +@@ -520,17 +520,21 @@ simdutf::result ArrayBufferSetFromBase64( + DirectHandle typed_array, size_t& output_length) { + output_length = array_length; + simdutf::result simd_result; ++#ifdef WANT_ATOMIC_REF + if (typed_array->buffer()->is_shared()) { + simd_result = simdutf::atomic_base64_to_binary_safe( + reinterpret_cast(input_vector), input_length, + reinterpret_cast(typed_array->DataPtr()), output_length, + alphabet, last_chunk_handling, /*decode_up_to_bad_char*/ true); + } else { ++#endif + simd_result = simdutf::base64_to_binary_safe( + reinterpret_cast(input_vector), input_length, + reinterpret_cast(typed_array->DataPtr()), output_length, + alphabet, last_chunk_handling, /*decode_up_to_bad_char*/ true); ++#ifdef WANT_ATOMIC_REF + } ++#endif + + return simd_result; + } +@@ -833,15 +837,19 @@ BUILTIN(Uint8ArrayPrototypeToBase64) { + // 11. Return CodePointsToString(outAscii). + + size_t simd_result_size; ++#ifdef WANT_ATOMIC_REF + if (uint8array->buffer()->is_shared()) { + simd_result_size = simdutf::atomic_binary_to_base64( + std::bit_cast(uint8array->DataPtr()), length, + reinterpret_cast(output->GetChars(no_gc)), alphabet); + } else { ++#endif + simd_result_size = simdutf::binary_to_base64( + std::bit_cast(uint8array->DataPtr()), length, + reinterpret_cast(output->GetChars(no_gc)), alphabet); ++#ifdef WANT_ATOMIC_REF + } ++#endif + DCHECK_EQ(simd_result_size, output_length); + USE(simd_result_size); + } +diff --git a/src/objects/simd.cc b/src/objects/simd.cc +index 0ef570ceb7d..9217fa76072 100644 +--- a/src/objects/simd.cc ++++ b/src/objects/simd.cc +@@ -477,6 +477,7 @@ void Uint8ArrayToHexSlow(const char* bytes, size_t length, + } + } + ++#ifdef WANT_ATOMIC_REF + void AtomicUint8ArrayToHexSlow(const char* bytes, size_t length, + DirectHandle string_output) { + int index = 0; +@@ -492,6 +493,7 @@ void AtomicUint8ArrayToHexSlow(const char* bytes, size_t length, + index += 2; + } + } ++#endif + + inline uint16_t ByteToHex(uint8_t byte) { + const uint16_t correction = (('a' - '0' - 10) << 8) + ('a' - '0' - 10); +@@ -645,11 +647,15 @@ Tagged Uint8ArrayToHex(const char* bytes, size_t length, bool is_shared, + } + #endif + ++#ifdef WANT_ATOMIC_REF + if (is_shared) { + AtomicUint8ArrayToHexSlow(bytes, length, string_output); + } else { ++#endif + Uint8ArrayToHexSlow(bytes, length, string_output); ++#ifdef WANT_ATOMIC_REF + } ++#endif + return *string_output; + } + +@@ -1082,12 +1088,16 @@ bool ArrayBufferFromHex(const base::Vector& input_vector, bool is_shared, + for (uint32_t i = 0; i < output_length * 2; i += 2) { + result = HandleRemainingHexValues(input_vector, i); + if (result.has_value()) { ++#ifdef WANT_ATOMIC_REF + if (is_shared) { + std::atomic_ref(buffer[index++]) + .store(result.value(), std::memory_order_relaxed); + } else { ++#endif + buffer[index++] = result.value(); ++#ifdef WANT_ATOMIC_REF + } ++#endif + } else { + return false; + } +-- +2.50.0.727.gbf7dc18ff4-goog + diff --git a/bazel/external/v8_include.patch b/bazel/external/v8_include.patch deleted file mode 100644 index 0d0fe210c..000000000 --- a/bazel/external/v8_include.patch +++ /dev/null @@ -1,41 +0,0 @@ -# fix include types for late clang (15.0.7) / gcc (13.2.1) -# for Arch linux / Fedora, like in -# In file included from external/v8/src/torque/torque.cc:5: -# In file included from external/v8/src/torque/source-positions.h:10: -# In file included from external/v8/src/torque/contextual.h:10: -# In file included from external/v8/src/base/macros.h:12: -# external/v8/src/base/logging.h:154:26: error: use of undeclared identifier 'uint16_t' - -diff --git a/src/base/logging.h b/src/base/logging.h ---- a/src/base/logging.h -+++ b/src/base/logging.h -@@ -5,6 +5,7 @@ - #ifndef V8_BASE_LOGGING_H_ - #define V8_BASE_LOGGING_H_ - -+#include - #include - #include - #include -diff --git a/src/base/macros.h b/src/base/macros.h ---- a/src/base/macros.h -+++ b/src/base/macros.h -@@ -5,6 +5,7 @@ - #ifndef V8_BASE_MACROS_H_ - #define V8_BASE_MACROS_H_ - -+#include - #include - #include - -diff --git a/src/inspector/v8-string-conversions.h b/src/inspector/v8-string-conversions.h ---- a/src/inspector/v8-string-conversions.h -+++ b/src/inspector/v8-string-conversions.h -@@ -5,6 +5,7 @@ - #ifndef V8_INSPECTOR_V8_STRING_CONVERSIONS_H_ - #define V8_INSPECTOR_V8_STRING_CONVERSIONS_H_ - -+#include - #include - - // Conversion routines between UT8 and UTF16, used by string-16.{h,cc}. You may diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 94e9fc5f3..159244263 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -60,10 +60,18 @@ def proxy_wasm_cpp_host_repositories(): maybe( http_archive, - name = "bazel-zig-cc", - sha256 = "ff89e0220c72cdc774e451a35e5c3b9f1593d0df71341844b2108c181ac0eef9", - strip_prefix = "hermetic_cc_toolchain-0.4.4", - url = "https://github.com/uber/hermetic_cc_toolchain/archive/refs/tags/v0.4.4.tar.gz", + name = "envoy_toolshed", + sha256 = "e2252e46e64417d5cedd9f1eb34a622bce5e13b43837e5fe051c83066b0a400b", + strip_prefix = "toolshed-bazel-bins-v0.1.13/bazel", + url = "https://github.com/envoyproxy/toolshed/archive/refs/tags/bazel-bins-v0.1.13.tar.gz", + ) + maybe( + http_archive, + name = "toolchains_llvm", + sha256 = "b7cd301ef7b0ece28d20d3e778697a5e3b81828393150bed04838c0c52963a01", + strip_prefix = "toolchains_llvm-0.10.3", + canonical_id = "v0.10.3", + url = "https://github.com/grailbio/bazel-toolchain/releases/download/0.10.3/toolchains_llvm-0.10.3.tar.gz", ) maybe( @@ -169,34 +177,89 @@ def proxy_wasm_cpp_host_repositories(): maybe( git_repository, name = "v8", - # 10.7.193.13 - commit = "6c8b357a84847a479cd329478522feefc1c3195a", + # 13.8.258.26 + commit = "de9d0f8b56ae61896e4d2ac577fc589efb14f87d", remote = "https://chromium.googlesource.com/v8/v8", - shallow_since = "1664374400 +0000", + shallow_since = "1752074621 -0400", patches = [ "@proxy_wasm_cpp_host//bazel/external:v8.patch", - "@proxy_wasm_cpp_host//bazel/external:v8_include.patch", ], patch_args = ["-p1"], + patch_cmds = [ + "find ./src ./include -type f -exec sed -i.bak -e 's!#include \"third_party/simdutf/simdutf.h\"!#include \"simdutf.h\"!' {} \\;", + "find ./src ./include -type f -exec sed -i.bak -e 's!#include \"third_party/fp16/src/include/fp16.h\"!#include \"fp16.h\"!' {} \\;", + "find ./src ./include -type f -exec sed -i.bak -e 's!#include \"third_party/dragonbox/src/include/dragonbox/dragonbox.h\"!#include \"dragonbox/dragonbox.h\"!' {} \\;", + "find ./src ./include -type f -exec sed -i.bak -e 's!#include \"third_party/fast_float/src/include/fast_float/!#include \"fast_float/!' {} \\;", + ], + repo_mapping = { + "@abseil-cpp": "@com_google_absl", + }, ) - native.bind( - name = "wee8", - actual = "@v8//:wee8", + maybe( + http_archive, + name = "highway", + sha256 = "7e0be78b8318e8bdbf6fa545d2ecb4c90f947df03f7aadc42c1967f019e63343", + urls = [ + "https://github.com/google/highway/archive/refs/tags/1.2.0.tar.gz", + ], + strip_prefix = "highway-1.2.0", + ) + + maybe( + http_archive, + name = "fast_float", + sha256 = "d2a08e722f461fe699ba61392cd29e6b23be013d0f56e50c7786d0954bffcb17", + urls = [ + "https://github.com/fastfloat/fast_float/archive/refs/tags/v7.0.0.tar.gz", + ], + strip_prefix = "fast_float-7.0.0", + ) + + maybe( + http_archive, + name = "dragonbox", + urls = [ + "https://github.com/jk-jeon/dragonbox/archive/6c7c925b571d54486b9ffae8d9d18a822801cbda.zip", + ], + strip_prefix = "dragonbox-6c7c925b571d54486b9ffae8d9d18a822801cbda", + sha256 = "2f10448d665355b41f599e869ac78803f82f13b070ce7ef5ae7b5cceb8a178f3", + build_file = "@proxy_wasm_cpp_host//bazel/external:dragonbox.BUILD", ) maybe( - new_git_repository, - name = "com_googlesource_chromium_base_trace_event_common", - build_file = "@v8//:bazel/BUILD.trace_event_common", - commit = "521ac34ebd795939c7e16b37d9d3ddb40e8ed556", - remote = "https://chromium.googlesource.com/chromium/src/base/trace_event/common.git", - shallow_since = "1662508800 +0000", + http_archive, + name = "fp16", + urls = [ + "https://github.com/Maratyszcza/FP16/archive/0a92994d729ff76a58f692d3028ca1b64b145d91.zip", + ], + strip_prefix = "FP16-0a92994d729ff76a58f692d3028ca1b64b145d91", + sha256 = "e66e65515fa09927b348d3d584c68be4215cfe664100d01c9dbc7655a5716d70", + build_file = "@proxy_wasm_cpp_host//bazel/external:fp16.BUILD", + ) + + maybe( + http_archive, + name = "simdutf", + sha256 = "512374f8291d3daf102ccd0ad223b1a8318358f7c1295efd4d9a3abbb8e4b6ff", + urls = [ + "https://github.com/simdutf/simdutf/releases/download/v7.3.0/singleheader.zip", + ], + build_file = "@proxy_wasm_cpp_host//bazel/external:simdutf.BUILD", + ) + + maybe( + http_archive, + name = "intel_ittapi", + strip_prefix = "ittapi-a3911fff01a775023a06af8754f9ec1e5977dd97", + sha256 = "1d0dddfc5abb786f2340565c82c6edd1cff10c917616a18ce62ee0b94dbc2ed4", + urls = ["https://github.com/intel/ittapi/archive/a3911fff01a775023a06af8754f9ec1e5977dd97.tar.gz"], + build_file = "@proxy_wasm_cpp_host//bazel/external:intel_ittapi.BUILD", ) native.bind( - name = "base_trace_event_common", - actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common", + name = "wee8", + actual = "@v8//:wee8", ) # WAMR with dependencies. diff --git a/bazel/tsan_suppressions.txt b/bazel/tsan_suppressions.txt new file mode 100644 index 000000000..8754c04f3 --- /dev/null +++ b/bazel/tsan_suppressions.txt @@ -0,0 +1,3 @@ +# False positive in V8 worker shutdown +race:v8::platform::DefaultJobHandle::Join +race:v8::platform::DefaultJobHandle::Cancel diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 61779c1d5..bc5b82850 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -140,20 +140,20 @@ class V8 : public WasmVm { static std::string printValue(const wasm::Val &value) { switch (value.kind()) { - case wasm::I32: + case wasm::ValKind::I32: return std::to_string(value.get()); - case wasm::I64: + case wasm::ValKind::I64: return std::to_string(value.get()); - case wasm::F32: + case wasm::ValKind::F32: return std::to_string(value.get()); - case wasm::F64: + case wasm::ValKind::F64: return std::to_string(value.get()); default: return "unknown"; } } -static std::string printValues(const wasm::Val values[], size_t size) { +static std::string printValues(const wasm::vec &values, size_t size) { if (size == 0) { return ""; } @@ -170,17 +170,17 @@ static std::string printValues(const wasm::Val values[], size_t size) { static const char *printValKind(wasm::ValKind kind) { switch (kind) { - case wasm::I32: + case wasm::ValKind::I32: return "i32"; - case wasm::I64: + case wasm::ValKind::I64: return "i64"; - case wasm::F32: + case wasm::ValKind::F32: return "f32"; - case wasm::F64: + case wasm::ValKind::F64: return "f64"; - case wasm::ANYREF: - return "anyref"; - case wasm::FUNCREF: + case wasm::ValKind::EXTERNREF: + return "externref"; + case wasm::ValKind::FUNCREF: return "funcref"; default: return "unknown"; @@ -229,11 +229,11 @@ template wasm::Val makeVal(T t) { return wasm::Val::make(t); } template <> wasm::Val makeVal(Word t) { return wasm::Val::make(static_cast(t.u64_)); } template constexpr auto convertArgToValKind(); -template <> constexpr auto convertArgToValKind() { return wasm::I32; }; -template <> constexpr auto convertArgToValKind() { return wasm::I32; }; -template <> constexpr auto convertArgToValKind() { return wasm::I64; }; -template <> constexpr auto convertArgToValKind() { return wasm::I64; }; -template <> constexpr auto convertArgToValKind() { return wasm::F64; }; +template <> constexpr auto convertArgToValKind() { return wasm::ValKind::I32; }; +template <> constexpr auto convertArgToValKind() { return wasm::ValKind::I32; }; +template <> constexpr auto convertArgToValKind() { return wasm::ValKind::I64; }; +template <> constexpr auto convertArgToValKind() { return wasm::ValKind::I64; }; +template <> constexpr auto convertArgToValKind() { return wasm::ValKind::F64; }; template constexpr auto convertArgsTupleToValTypesImpl(std::index_sequence /*comptime*/) { @@ -343,7 +343,8 @@ bool V8::link(std::string_view /*debug_name*/) { assert(module_ != nullptr); const auto import_types = module_.get()->imports(); - std::vector imports; + wasm::vec imports = + wasm::vec::make_uninitialized(import_types.size()); for (size_t i = 0; i < import_types.size(); i++) { std::string_view module(import_types[i]->module().get(), import_types[i]->module().size()); @@ -352,7 +353,7 @@ bool V8::link(std::string_view /*debug_name*/) { switch (import_type->kind()) { - case wasm::EXTERN_FUNC: { + case wasm::ExternKind::FUNC: { auto it = host_functions_.find(std::string(module) + "." + std::string(name)); if (it == host_functions_.end()) { fail(FailState::UnableToInitializeCode, @@ -372,10 +373,10 @@ bool V8::link(std::string_view /*debug_name*/) { printValTypes(func->type()->results())); return false; } - imports.push_back(func); + imports[i] = func; } break; - case wasm::EXTERN_GLOBAL: { + case wasm::ExternKind::GLOBAL: { // TODO(PiotrSikora): add support when/if needed. fail(FailState::UnableToInitializeCode, "Failed to load Wasm module due to a missing import: " + std::string(module) + "." + @@ -383,7 +384,7 @@ bool V8::link(std::string_view /*debug_name*/) { return false; } break; - case wasm::EXTERN_MEMORY: { + case wasm::ExternKind::MEMORY: { assert(memory_ == nullptr); auto type = wasm::MemoryType::make(import_type->memory()->limits()); if (type == nullptr) { @@ -393,10 +394,10 @@ bool V8::link(std::string_view /*debug_name*/) { if (memory_ == nullptr) { return false; } - imports.push_back(memory_.get()); + imports[i] = memory_.get(); } break; - case wasm::EXTERN_TABLE: { + case wasm::ExternKind::TABLE: { assert(table_ == nullptr); auto type = wasm::TableType::make(wasm::ValType::make(import_type->table()->element()->kind()), @@ -408,16 +409,12 @@ bool V8::link(std::string_view /*debug_name*/) { if (table_ == nullptr) { return false; } - imports.push_back(table_.get()); + imports[i] = table_.get(); } break; } } - if (import_types.size() != imports.size()) { - return false; - } - - instance_ = wasm::Instance::make(store_.get(), module_.get(), imports.data()); + instance_ = wasm::Instance::make(store_.get(), module_.get(), imports); if (instance_ == nullptr) { fail(FailState::UnableToInitializeCode, "Failed to create new Wasm instance"); return false; @@ -435,16 +432,16 @@ bool V8::link(std::string_view /*debug_name*/) { switch (export_type->kind()) { - case wasm::EXTERN_FUNC: { + case wasm::ExternKind::FUNC: { assert(export_item->func() != nullptr); module_functions_.insert_or_assign(std::string(name), export_item->func()->copy()); } break; - case wasm::EXTERN_GLOBAL: { + case wasm::ExternKind::GLOBAL: { // TODO(PiotrSikora): add support when/if needed. } break; - case wasm::EXTERN_MEMORY: { + case wasm::ExternKind::MEMORY: { assert(export_item->memory() != nullptr); assert(memory_ == nullptr); memory_ = exports[i]->memory()->copy(); @@ -453,7 +450,7 @@ bool V8::link(std::string_view /*debug_name*/) { } } break; - case wasm::EXTERN_TABLE: { + case wasm::ExternKind::TABLE: { // TODO(PiotrSikora): add support when/if needed. } break; } @@ -531,7 +528,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view convertArgsTupleToValTypes>()); auto func = wasm::Func::make( store_.get(), type.get(), - [](void *data, const wasm::Val params[], wasm::Val /*results*/[]) -> wasm::own { + [](void *data, const wasm::vec ¶ms, + wasm::vec & /*results*/) -> wasm::own { auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { @@ -567,7 +565,8 @@ void V8::registerHostFunctionImpl(std::string_view module_name, std::string_view convertArgsTupleToValTypes>()); auto func = wasm::Func::make( store_.get(), type.get(), - [](void *data, const wasm::Val params[], wasm::Val results[]) -> wasm::own { + [](void *data, const wasm::vec ¶ms, + wasm::vec &results) -> wasm::own { auto *func_data = reinterpret_cast(data); const bool log = func_data->vm_->cmpLogLevel(LogLevel::trace); if (log) { @@ -621,20 +620,21 @@ void V8::getModuleFunctionImpl(std::string_view function_name, const bool log = cmpLogLevel(LogLevel::trace); SaveRestoreContext saved_context(context); wasm::own trap = nullptr; + wasm::vec results = wasm::vec::make_uninitialized(); // Workaround for MSVC++ not supporting zero-sized arrays. if constexpr (sizeof...(args) > 0) { - wasm::Val params[] = {makeVal(args)...}; + wasm::vec params = wasm::vec::make(makeVal(args)...); if (log) { integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(params, sizeof...(Args)) + ")"); } - trap = func->call(params, nullptr); + trap = func->call(params, results); } else { if (log) { integration()->trace("[host->vm] " + std::string(function_name) + "()"); } - trap = func->call(nullptr, nullptr); + trap = func->call(wasm::vec::make_uninitialized(), results); } if (trap) { @@ -671,12 +671,12 @@ void V8::getModuleFunctionImpl(std::string_view function_name, *function = [func, function_name, this](ContextBase *context, Args... args) -> R { const bool log = cmpLogLevel(LogLevel::trace); SaveRestoreContext saved_context(context); - wasm::Val results[1]; + wasm::vec results = wasm::vec::make_uninitialized(1); wasm::own trap = nullptr; // Workaround for MSVC++ not supporting zero-sized arrays. if constexpr (sizeof...(args) > 0) { - wasm::Val params[] = {makeVal(args)...}; + wasm::vec params = wasm::vec::make(makeVal(args)...); if (log) { integration()->trace("[host->vm] " + std::string(function_name) + "(" + printValues(params, sizeof...(Args)) + ")"); @@ -686,7 +686,7 @@ void V8::getModuleFunctionImpl(std::string_view function_name, if (log) { integration()->trace("[host->vm] " + std::string(function_name) + "()"); } - trap = func->call(nullptr, results); + trap = func->call(wasm::vec::make_uninitialized(), results); } if (trap) { @@ -706,9 +706,6 @@ void V8::terminate() { auto *store_impl = reinterpret_cast(store_.get()); auto *isolate = store_impl->isolate(); isolate->TerminateExecution(); - while (isolate->IsExecutionTerminating()) { - std::this_thread::yield(); - } } std::string V8::getFailMessage(std::string_view function_name, wasm::own trap) { diff --git a/test/BUILD b/test/BUILD index 73787e4b0..97e70558a 100644 --- a/test/BUILD +++ b/test/BUILD @@ -13,7 +13,8 @@ # limitations under the License. load("@proxy_wasm_cpp_host//bazel:select.bzl", "proxy_wasm_select_engine_null") -load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test") +load("@rules_cc//cc:defs.bzl", "cc_library") +load("//bazel:cc_defs.bzl", "cc_test") licenses(["notice"]) # Apache 2 diff --git a/test/fuzz/BUILD b/test/fuzz/BUILD index 71b099007..2221f6367 100644 --- a/test/fuzz/BUILD +++ b/test/fuzz/BUILD @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -load("@rules_fuzzing//fuzzing:cc_defs.bzl", "cc_fuzz_test") +load("//bazel:cc_defs.bzl", "cc_fuzz_test") licenses(["notice"]) # Apache 2 diff --git a/test/runtime_test.cc b/test/runtime_test.cc index 41e3946f1..2e9080978 100644 --- a/test/runtime_test.cc +++ b/test/runtime_test.cc @@ -102,7 +102,7 @@ TEST_P(TestVm, TerminateExecution) { // Check integration logs. auto *host = dynamic_cast(wasm.wasm_vm()->integration().get()); EXPECT_TRUE(host->isErrorLogged("Function: infinite_loop failed")); - EXPECT_TRUE(host->isErrorLogged("termination_exception")); + EXPECT_TRUE(host->isErrorLogged("TerminationException")); } TEST_P(TestVm, WasmMemoryLimit) { diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc index d6f9d280a..4d084cc75 100644 --- a/test/wasm_vm_test.cc +++ b/test/wasm_vm_test.cc @@ -89,7 +89,7 @@ TEST_P(TestVm, Clone) { #if defined(__linux__) && defined(__x86_64__) -TEST_P(TestVm, CloneUntilOutOfMemory) { +TEST_P(TestVm, DISABLED_CloneUntilOutOfMemory) { if (vm_->cloneable() == proxy_wasm::Cloneable::NotCloneable) { return; } From 74f8572f45633cccb48239c5ecaca10d16490729 Mon Sep 17 00:00:00 2001 From: Matt Leon Date: Tue, 29 Jul 2025 15:51:01 -0400 Subject: [PATCH 276/287] chore: fix github bazel cache (#445) GitHub's actions cache appears to be empty, even with recent pushes to main. This config has been working well in Google's github.com/GoogleCloudPlatform/service-extensions repo, which should be building all the same things as this repo. Using --disk_cache avoids putting a bunch of junk in the cache that the previous xdg cache dir entry had to manually strip out. Signed-off-by: Matt Leon --- .github/workflows/format.yml | 63 +++++++++---------- .github/workflows/test.yml | 114 ++++++++++++++++------------------- 2 files changed, 80 insertions(+), 97 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index fa4ba153c..051459d7c 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -125,49 +125,40 @@ jobs: - name: Install dependencies (Linux) run: sudo apt update -y && sudo apt install -y clang-tidy-18 lld-18 && sudo ln -sf /usr/bin/lld-18 /usr/bin/lld - - name: Bazel cache - uses: PiotrSikora/cache@v2.1.7-with-skip-cache + - name: set cache name + id: vars + # The cache tag consists of the following parts: + # * clang-tidy- prefix + # * matrix.name, which separates the cache for each build type. + # * hash of WORKSPACE, .bazelrc, and .bazelversion, which is + # purely to differentiate caches for substantial changes in bazel. + # * github.sha, which is the commit hash of the commit used to generate + # the cache entry. + run: echo "CACHE_TAG=clang-tidy-${{ matrix.name }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion') }}" >> "$GITHUB_OUTPUT" + + - name: bazel cache + uses: actions/cache/restore@v3 with: - path: | - ~/.cache/bazel - key: clang_tidy-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl', 'bazel/cargo/wasmsign/remote/crates.bzl') }} + path: /tmp/bazel/cache + key: ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} + restore-keys: | + ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} + ${{ steps.vars.outputs.CACHE_TAG }}- + clang-tidy-${{ matrix.name }}- + clang-tidy- - name: Bazel build run: > bazel build --config clang-tidy --define engine=multi + --disk_cache /tmp/bazel/cache --copt=-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //... - - name: Skip Bazel cache update - if: ${{ github.ref != 'refs/heads/main' }} - run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV - - - name: Cleanup Bazel cache - if: ${{ github.ref == 'refs/heads/main' }} - run: | - export OUTPUT=$(${{ matrix.run_under }} bazel info output_base) - echo "===== BEFORE =====" - du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 - # BoringSSL's test data (90 MiB). - rm -rf ${OUTPUT}/external/boringssl/crypto_test_data.cc - rm -rf ${OUTPUT}/external/boringssl/src/crypto/*/test/ - rm -rf ${OUTPUT}/external/boringssl/src/third_party/wycheproof_testvectors/ - # LLVM's tests (500 MiB). - rm -rf ${OUTPUT}/external/llvm*/test/ - # V8's tests (100 MiB). - if [ -d "${OUTPUT}/external/v8/test/torque" ]; then - mv ${OUTPUT}/external/v8/test/torque ${OUTPUT}/external/v8/test_torque - rm -rf ${OUTPUT}/external/v8/test/* - mv ${OUTPUT}/external/v8/test_torque ${OUTPUT}/external/v8/test/torque - fi - # Unnecessary CMake tools (65 MiB). - rm -rf ${OUTPUT}/external/cmake-*/bin/{ccmake,cmake-gui,cpack,ctest} - # Distfiles for Rust toolchains (350 MiB). - rm -rf ${OUTPUT}/external/rust_*/*.tar.gz - # Bazel's repository cache (650-800 MiB) and install base (155 MiB). - rm -rf ${OUTPUT}/../cache - rm -rf ${OUTPUT}/../install - echo "===== AFTER =====" - du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 + - name: save bazel cache + uses: actions/cache/save@v3 + if: always() + with: + path: /tmp/bazel/cache + key: ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7cb78e3b5..9ec572f34 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -48,12 +48,26 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Bazel cache - uses: PiotrSikora/cache@v2.1.7-with-skip-cache + - name: set cache name + id: vars + # The cache tag consists of the following parts: + # * test-deps-bazel-cache- prefix + # * hash of WORKSPACE, .bazelrc, and .bazelversion, which is + # purely to differentiate caches for substantial changes in bazel. + # * github.sha, which is the commit hash of the commit used to generate + # the cache entry. + run: echo "CACHE_TAG=test-deps-bazel-cache-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion') }}" >> "$GITHUB_OUTPUT" + + - name: bazel cache + uses: actions/cache/restore@v3 with: - path: | - ~/.cache/bazel - key: test_data-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl', 'bazel/cargo/wasmsign/crates.bzl') }} + path: /tmp/bazel/cache + key: ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} + restore-keys: | + ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} + ${{ steps.vars.outputs.CACHE_TAG }}- + test-deps-bazel-cache-${{ matrix.name }}- + test-deps-bazel-cache- - name: Bazel build run: > @@ -61,6 +75,7 @@ jobs: --verbose_failures --test_output=errors --config=clang + --disk_cache /tmp/bazel/cache -c opt $(bazel query 'kind(was.*_rust_binary, //test/test_data/...)') $(bazel query 'kind(_optimized_wasm_cc_binary, //test/test_data/...)') @@ -84,19 +99,12 @@ jobs: if-no-files-found: error retention-days: 3 - - name: Skip Bazel cache update - if: ${{ github.ref != 'refs/heads/main' }} - run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV - - - name: Cleanup Bazel cache - if: ${{ github.ref == 'refs/heads/main' }} - run: | - export OUTPUT=$(bazel info output_base) - # Distfiles for Rust toolchains (350 MiB). - rm -rf ${OUTPUT}/external/rust_*/*.tar.gz - # Bazel's repository cache (650-800 MiB) and install base (155 MiB). - rm -rf $(bazel info repository_cache) - rm -rf $(bazel info install_base) + - name: save bazel cache + uses: actions/cache/save@v3 + if: always() + with: + path: /tmp/bazel/cache + key: ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} build: name: ${{ matrix.action }} with ${{ matrix.name }} @@ -282,21 +290,27 @@ jobs: if: startsWith(matrix.run_under, 'docker') run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes - - name: Set cache key - if: ${{ matrix.cache }} - run: echo "::set-output name=uniq::$(bazel query --output build //external:${{ matrix.repo }} | grep -E 'sha256|commit' | cut -d\" -f2)-$(echo ${{ matrix.flags }} | sha256sum)" - id: cache-key - - - name: Bazel cache - if: ${{ matrix.cache }} - uses: PiotrSikora/cache@v2.1.7-with-skip-cache + - name: set cache name + id: vars + # The cache tag consists of the following parts: + # * bazel-cache- prefix + # * matrix.name, which separates the cache for each build type. + # * hash of WORKSPACE, .bazelrc, and .bazelversion, which is + # purely to differentiate caches for substantial changes in bazel. + # * github.sha, which is the commit hash of the commit used to generate + # the cache entry. + run: echo "CACHE_TAG=bazel-cache-${{ matrix.name }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion') }}" >> "$GITHUB_OUTPUT" + + - name: bazel cache + uses: actions/cache/restore@v3 with: - path: | - ~/.cache/bazel - /private/var/tmp/_bazel_runner/ - key: ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.engine }}-${{ steps.cache-key.outputs.uniq }}-${{ hashFiles('WORKSPACE', '.bazelrc', '.bazelversion', 'bazel/dependencies.bzl', 'bazel/repositories.bzl') }} + path: /tmp/bazel/cache + key: ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} restore-keys: | - ${{ matrix.arch }}-${{ matrix.os }}-${{ matrix.engine }}-${{ steps.cache-key.outputs.uniq }}- + ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} + ${{ steps.vars.outputs.CACHE_TAG }}- + bazel-cache-${{ matrix.name }}- + bazel-cache- - name: Download test data uses: actions/download-artifact@v4 @@ -321,6 +335,7 @@ jobs: --verbose_failures --test_output=errors --define engine=${{ matrix.engine }} + --disk_cache /tmp/bazel/cache ${{ matrix.flags }} -- //test/... ${{ matrix.targets }} @@ -332,38 +347,15 @@ jobs: --verbose_failures --test_output=errors --define engine=${{ matrix.engine }} + --disk_cache /tmp/bazel/cache ${{ matrix.flags }} --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test - - name: Skip Bazel cache update - if: ${{ matrix.cache && github.ref != 'refs/heads/main' }} - run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV + - name: save bazel cache + uses: actions/cache/save@v3 + if: always() + with: + path: /tmp/bazel/cache + key: ${{ steps.vars.outputs.CACHE_TAG }}-${{ github.sha }} - - name: Cleanup Bazel cache - if: ${{ matrix.cache && github.ref == 'refs/heads/main' }} - run: | - export OUTPUT=$(${{ matrix.run_under }} bazel info output_base) - echo "===== BEFORE =====" - du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 - # BoringSSL's test data (90 MiB). - rm -rf ${OUTPUT}/external/boringssl/crypto_test_data.cc - rm -rf ${OUTPUT}/external/boringssl/src/crypto/*/test/ - rm -rf ${OUTPUT}/external/boringssl/src/third_party/wycheproof_testvectors/ - # LLVM's tests (500 MiB). - rm -rf ${OUTPUT}/external/llvm*/test/ - # V8's tests (100 MiB). - if [ -d "${OUTPUT}/external/v8/test/torque" ]; then - mv ${OUTPUT}/external/v8/test/torque ${OUTPUT}/external/v8/test_torque - rm -rf ${OUTPUT}/external/v8/test/* - mv ${OUTPUT}/external/v8/test_torque ${OUTPUT}/external/v8/test/torque - fi - # Unnecessary CMake tools (65 MiB). - rm -rf ${OUTPUT}/external/cmake-*/bin/{ccmake,cmake-gui,cpack,ctest} - # Distfiles for Rust toolchains (350 MiB). - rm -rf ${OUTPUT}/external/rust_*/*.tar.gz - # Bazel's repository cache (650-800 MiB) and install base (155 MiB). - rm -rf ${OUTPUT}/../cache - rm -rf ${OUTPUT}/../install - echo "===== AFTER =====" - du -s ${OUTPUT}/external/* $(dirname ${OUTPUT})/* | sort -rn | head -20 From a374efd1f0295c6da6825f55795dab6495215035 Mon Sep 17 00:00:00 2001 From: rachgreen33 Date: Thu, 31 Jul 2025 13:43:05 -0400 Subject: [PATCH 277/287] Feat: Add additional virtual keywords to wasm base. (#444) * Feat: Add additional virtual keywords to wasm base. Signed-off-by: Rachel Green --- include/proxy-wasm/context.h | 8 ++++---- include/proxy-wasm/wasm.h | 22 +++++++++++----------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/include/proxy-wasm/context.h b/include/proxy-wasm/context.h index 7f675525c..208633acc 100644 --- a/include/proxy-wasm/context.h +++ b/include/proxy-wasm/context.h @@ -150,14 +150,14 @@ class ContextBase : public RootInterface, const std::shared_ptr &plugin_handle); // Stream context. virtual ~ContextBase(); - WasmBase *wasm() const { return wasm_; } + virtual WasmBase *wasm() const { return wasm_; } uint32_t id() const { return id_; } // The VM Context used for calling "malloc" has an id_ == 0. bool isVmContext() const { return id_ == 0; } // Root Contexts have the VM Context as a parent. bool isRootContext() const { return parent_context_id_ == 0; } - ContextBase *parent_context() const { return parent_context_; } - ContextBase *root_context() const { + virtual ContextBase *parent_context() const { return parent_context_; } + virtual ContextBase *root_context() const { const ContextBase *previous = this; ContextBase *parent = parent_context_; while (parent != previous) { @@ -170,7 +170,7 @@ class ContextBase : public RootInterface, std::string_view log_prefix() const { return isRootContext() ? root_log_prefix_ : plugin_->log_prefix(); } - WasmVm *wasmVm() const; + virtual WasmVm *wasmVm() const; // Called before deleting the context. virtual void destroy(); diff --git a/include/proxy-wasm/wasm.h b/include/proxy-wasm/wasm.h index 3ab64b243..9b85710bd 100644 --- a/include/proxy-wasm/wasm.h +++ b/include/proxy-wasm/wasm.h @@ -54,18 +54,18 @@ class WasmBase : public std::enable_shared_from_this { WasmBase(const std::shared_ptr &base_wasm_handle, const WasmVmFactory &factory); virtual ~WasmBase(); - bool load(const std::string &code, bool allow_precompiled = false); - bool initialize(); - void startVm(ContextBase *root_context); - bool configure(ContextBase *root_context, std::shared_ptr plugin); + virtual bool load(const std::string &code, bool allow_precompiled = false); + virtual bool initialize(); + virtual void startVm(ContextBase *root_context); + virtual bool configure(ContextBase *root_context, std::shared_ptr plugin); // Returns the root ContextBase or nullptr if onStart returns false. - ContextBase *start(const std::shared_ptr &plugin); + virtual ContextBase *start(const std::shared_ptr &plugin); std::string_view vm_id() const { return vm_id_; } std::string_view vm_key() const { return vm_key_; } WasmVm *wasm_vm() const { return wasm_vm_.get(); } - ContextBase *vm_context() const { return vm_context_.get(); } - ContextBase *getRootContext(const std::shared_ptr &plugin, bool allow_closed); + virtual ContextBase *vm_context() const { return vm_context_.get(); } + virtual ContextBase *getRootContext(const std::shared_ptr &plugin, bool allow_closed); ContextBase *getContext(uint32_t id) { auto it = contexts_.find(id); if (it != contexts_.end()) @@ -321,14 +321,14 @@ using WasmHandleCloneFactory = class WasmHandleBase : public std::enable_shared_from_this { public: explicit WasmHandleBase(std::shared_ptr wasm_base) : wasm_base_(wasm_base) {} - ~WasmHandleBase() { + virtual ~WasmHandleBase() { if (wasm_base_) { wasm_base_->startShutdown(); } } - bool canary(const std::shared_ptr &plugin, - const WasmHandleCloneFactory &clone_factory); + virtual bool canary(const std::shared_ptr &plugin, + const WasmHandleCloneFactory &clone_factory); void kill() { wasm_base_ = nullptr; } @@ -356,7 +356,7 @@ class PluginHandleBase : public std::enable_shared_from_this { explicit PluginHandleBase(std::shared_ptr wasm_handle, std::shared_ptr plugin) : plugin_(plugin), wasm_handle_(wasm_handle) {} - ~PluginHandleBase() { + virtual ~PluginHandleBase() { if (wasm_handle_) { wasm_handle_->wasm()->startShutdown(plugin_->key()); } From 4fbf3127cafe2038546f6a65e5624ab297e007d7 Mon Sep 17 00:00:00 2001 From: Matt Leon Date: Fri, 22 Aug 2025 15:36:25 -0400 Subject: [PATCH 278/287] chore: Add license headers to BUILD files (#451) addlicense v1.2.0 supports linting .BUILD files, so the verify licenses check will fail for all future PRs without this commit. https://github.com/google/addlicense/releases/tag/v1.2.0 Signed-off-by: Matt Leon --- bazel/cargo/wasmsign/Cargo.toml | 14 ++++++++++++++ bazel/cargo/wasmtime/Cargo.toml | 14 ++++++++++++++ bazel/external/Dockerfile.bazel | 14 ++++++++++++++ bazel/external/dragonbox.BUILD | 14 ++++++++++++++ bazel/external/fp16.BUILD | 14 ++++++++++++++ bazel/external/intel_ittapi.BUILD | 14 ++++++++++++++ bazel/external/llvm.BUILD | 14 ++++++++++++++ bazel/external/simdutf.BUILD | 14 ++++++++++++++ bazel/external/wamr.BUILD | 14 ++++++++++++++ bazel/external/wamr_llvm.BUILD | 14 ++++++++++++++ bazel/external/wasmedge.BUILD | 14 ++++++++++++++ bazel/external/wasmtime.BUILD | 14 ++++++++++++++ 12 files changed, 168 insertions(+) diff --git a/bazel/cargo/wasmsign/Cargo.toml b/bazel/cargo/wasmsign/Cargo.toml index 815f8b03a..5267cb2d1 100644 --- a/bazel/cargo/wasmsign/Cargo.toml +++ b/bazel/cargo/wasmsign/Cargo.toml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [package] edition = "2018" name = "wasmsign-bazel" diff --git a/bazel/cargo/wasmtime/Cargo.toml b/bazel/cargo/wasmtime/Cargo.toml index 8abf88812..b038be7fd 100644 --- a/bazel/cargo/wasmtime/Cargo.toml +++ b/bazel/cargo/wasmtime/Cargo.toml @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [package] edition = "2021" name = "wasmtime-c-api-bazel" diff --git a/bazel/external/Dockerfile.bazel b/bazel/external/Dockerfile.bazel index 2c4bfbbfa..9b16abeb3 100644 --- a/bazel/external/Dockerfile.bazel +++ b/bazel/external/Dockerfile.bazel @@ -1,4 +1,18 @@ # syntax=docker/dockerfile:1 +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Prep: # docker run --rm --privileged tonistiigi/binfmt --install all diff --git a/bazel/external/dragonbox.BUILD b/bazel/external/dragonbox.BUILD index d0bdf231e..00f3ee074 100644 --- a/bazel/external/dragonbox.BUILD +++ b/bazel/external/dragonbox.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_library") licenses(["notice"]) # Apache 2 diff --git a/bazel/external/fp16.BUILD b/bazel/external/fp16.BUILD index f3fbfda1f..f82146cff 100644 --- a/bazel/external/fp16.BUILD +++ b/bazel/external/fp16.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_library") licenses(["notice"]) # MIT diff --git a/bazel/external/intel_ittapi.BUILD b/bazel/external/intel_ittapi.BUILD index 13351d38a..cc867842f 100644 --- a/bazel/external/intel_ittapi.BUILD +++ b/bazel/external/intel_ittapi.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_library") licenses(["notice"]) diff --git a/bazel/external/llvm.BUILD b/bazel/external/llvm.BUILD index 38909ee9a..9dccf5c98 100644 --- a/bazel/external/llvm.BUILD +++ b/bazel/external/llvm.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") licenses(["notice"]) # Apache 2 diff --git a/bazel/external/simdutf.BUILD b/bazel/external/simdutf.BUILD index ee4896494..834467e35 100644 --- a/bazel/external/simdutf.BUILD +++ b/bazel/external/simdutf.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_library") licenses(["notice"]) # Apache 2 diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index dcf8d87ef..d0f10b226 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") licenses(["notice"]) # Apache 2 diff --git a/bazel/external/wamr_llvm.BUILD b/bazel/external/wamr_llvm.BUILD index 789e5a442..6fe496145 100644 --- a/bazel/external/wamr_llvm.BUILD +++ b/bazel/external/wamr_llvm.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") licenses(["notice"]) # Apache 2 diff --git a/bazel/external/wasmedge.BUILD b/bazel/external/wasmedge.BUILD index 2c6e89204..e8fba783e 100644 --- a/bazel/external/wasmedge.BUILD +++ b/bazel/external/wasmedge.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_foreign_cc//foreign_cc:defs.bzl", "cmake") licenses(["notice"]) # Apache 2 diff --git a/bazel/external/wasmtime.BUILD b/bazel/external/wasmtime.BUILD index 27da86e46..f359d9361 100644 --- a/bazel/external/wasmtime.BUILD +++ b/bazel/external/wasmtime.BUILD @@ -1,3 +1,17 @@ +# Copyright 2025 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + load("@rules_cc//cc:defs.bzl", "cc_library") load("@rules_rust//rust:defs.bzl", "rust_static_library") From cbc2dd9924fd05abcdc14b7a325f7630858a8eea Mon Sep 17 00:00:00 2001 From: Matt Leon Date: Fri, 22 Aug 2025 15:38:32 -0400 Subject: [PATCH 279/287] workflows: remove unaccessed files from cache before saving (#452) Caches are growing organically (started around 400MiB, now at 2+GiB). This strategy is used by github.com/GoogleCloudPlatform/service-extensions to evict unneeded cached entries. Signed-off-by: Matt Leon --- .github/workflows/test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9ec572f34..8c42a546e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -99,6 +99,15 @@ jobs: if-no-files-found: error retention-days: 3 + - name: remove unaccessed files from cache + shell: bash + run: > + find /tmp/bazel/cache + -type f + -name '*' + -amin +360 + -exec rm {} \; + - name: save bazel cache uses: actions/cache/save@v3 if: always() @@ -352,6 +361,15 @@ jobs: --per_file_copt=src/signature_util.cc,test/signature_util_test.cc@-DPROXY_WASM_VERIFY_WITH_ED25519_PUBKEY=\"$(xxd -p -c 256 test/test_data/signature_key1.pub | cut -b9-)\" //test:signature_util_test + - name: remove unaccessed files from cache + shell: bash + run: > + find /tmp/bazel/cache + -type f + -name '*' + -amin +360 + -exec rm {} \; + - name: save bazel cache uses: actions/cache/save@v3 if: always() From ee4dfe6204f1e0b9d93fcd7ae3a817806ea8ab7b Mon Sep 17 00:00:00 2001 From: rachgreen33 Date: Sat, 30 Aug 2025 13:53:58 -0400 Subject: [PATCH 280/287] Feat: Support creating warmed VM in the proxy wasm V8 VM API. (#447) * Support creating warmed VM in the proxy wasm V8 VM API. Signed-off-by: Rachel Green --- include/proxy-wasm/null_vm.h | 2 ++ include/proxy-wasm/v8.h | 1 + include/proxy-wasm/wamr.h | 1 + include/proxy-wasm/wasm_vm.h | 5 ++++ include/proxy-wasm/wasmtime.h | 1 + src/v8/v8.cc | 18 ++++++++++++- src/wamr/wamr.cc | 18 ++++++++++++- src/wasmedge/wasmedge.cc | 19 +++++++++++--- src/wasmtime/wasmtime.cc | 19 +++++++++++++- test/wasm_vm_test.cc | 48 +++++++++++++++++++++++++++++++++++ 10 files changed, 126 insertions(+), 6 deletions(-) diff --git a/include/proxy-wasm/null_vm.h b/include/proxy-wasm/null_vm.h index a0a3798ff..703266df3 100644 --- a/include/proxy-wasm/null_vm.h +++ b/include/proxy-wasm/null_vm.h @@ -63,6 +63,8 @@ struct NullVm : public WasmVm { void terminate() override {} bool usesWasmByteOrder() override { return false; } + void warm() override {} + std::string plugin_name_; std::unique_ptr plugin_; }; diff --git a/include/proxy-wasm/v8.h b/include/proxy-wasm/v8.h index 73c91b956..5531f52cb 100644 --- a/include/proxy-wasm/v8.h +++ b/include/proxy-wasm/v8.h @@ -21,6 +21,7 @@ namespace proxy_wasm { +bool initV8Engine(); std::unique_ptr createV8Vm(); } // namespace proxy_wasm diff --git a/include/proxy-wasm/wamr.h b/include/proxy-wasm/wamr.h index 98ff72e31..32a05e94a 100644 --- a/include/proxy-wasm/wamr.h +++ b/include/proxy-wasm/wamr.h @@ -21,6 +21,7 @@ namespace proxy_wasm { +bool initWamrEngine(); std::unique_ptr createWamrVm(); } // namespace proxy_wasm diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index db54ebd86..c14624ac0 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -308,6 +308,11 @@ class WasmVm { */ virtual bool usesWasmByteOrder() = 0; + /** + * Warm the VM such as engine and runtime. + */ + virtual void warm() = 0; + bool isFailed() { return failed_ != FailState::Ok; } void fail(FailState fail_state, std::string_view message) { integration()->error(message); diff --git a/include/proxy-wasm/wasmtime.h b/include/proxy-wasm/wasmtime.h index e3fe4b48c..11c4ae7a3 100644 --- a/include/proxy-wasm/wasmtime.h +++ b/include/proxy-wasm/wasmtime.h @@ -18,6 +18,7 @@ namespace proxy_wasm { +bool initWasmtimeEngine(); std::unique_ptr createWasmtimeVm(); } // namespace proxy_wasm diff --git a/src/v8/v8.cc b/src/v8/v8.cc index bc5b82850..9e184f292 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -103,6 +103,8 @@ class V8 : public WasmVm { void terminate() override; bool usesWasmByteOrder() override { return true; } + void warm() override; + private: wasm::own trap(std::string message); @@ -124,6 +126,9 @@ class V8 : public WasmVm { void getModuleFunctionImpl(std::string_view function_name, std::function *function); + // Initialize the V8 engine and store if necessary. + void initStore(); + wasm::own store_; wasm::own module_; wasm::own> shared_module_; @@ -260,9 +265,16 @@ template constexpr T convertValTypesToArgsTuple(const U // V8 implementation. +void V8::initStore() { + if (store_ != nullptr) { + return; + } + store_ = wasm::Store::make(engine()); +} + bool V8::load(std::string_view bytecode, std::string_view precompiled, const std::unordered_map &function_names) { - store_ = wasm::Store::make(engine()); + initStore(); if (store_ == nullptr) { return false; } @@ -708,6 +720,8 @@ void V8::terminate() { isolate->TerminateExecution(); } +void V8::warm() { initStore(); } + std::string V8::getFailMessage(std::string_view function_name, wasm::own trap) { auto message = "Function: " + std::string(function_name) + " failed: "; message += std::string(trap->message().get(), trap->message().size()); @@ -741,6 +755,8 @@ std::string V8::getFailMessage(std::string_view function_name, wasm::own createV8Vm() { return std::make_unique(); } } // namespace proxy_wasm diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 482a59bf1..88dc9f007 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -90,6 +90,8 @@ class Wamr : public WasmVm { void terminate() override {} bool usesWasmByteOrder() override { return true; } + void warm() override; + private: template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, @@ -107,6 +109,9 @@ class Wamr : public WasmVm { void getModuleFunctionImpl(std::string_view function_name, std::function *function); + // Initialize the Wamr store if necessary. + void initStore(); + WasmStorePtr store_; WasmModulePtr module_; WasmSharedModulePtr shared_module_; @@ -119,9 +124,16 @@ class Wamr : public WasmVm { std::unordered_map module_functions_; }; +void Wamr::initStore() { + if (store_ != nullptr) { + return; + } + store_ = wasm_store_new(engine()); +} + bool Wamr::load(std::string_view bytecode, std::string_view precompiled, const std::unordered_map & /*function_names*/) { - store_ = wasm_store_new(engine()); + initStore(); if (store_ == nullptr) { return false; } @@ -697,8 +709,12 @@ void Wamr::getModuleFunctionImpl(std::string_view function_name, }; }; +void Wamr::warm() { initStore(); } + } // namespace wamr +bool initWamrEngine() { return wamr::engine() != nullptr; } + std::unique_ptr createWamrVm() { return std::make_unique(); } } // namespace proxy_wasm diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc index 596af0c9e..263ed1883 100644 --- a/src/wasmedge/wasmedge.cc +++ b/src/wasmedge/wasmedge.cc @@ -264,6 +264,9 @@ class WasmEdge : public WasmVm { }; FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) #undef _GET_MODULE_FUNCTION + + void warm() override; + private: template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, @@ -284,6 +287,9 @@ class WasmEdge : public WasmVm { void terminate() override {} bool usesWasmByteOrder() override { return true; } + // Initialize the WasmEdge store if necessary. + void initStore(); + WasmEdgeLoaderPtr loader_; WasmEdgeValidatorPtr validator_; WasmEdgeExecutorPtr executor_; @@ -314,13 +320,18 @@ bool WasmEdge::load(std::string_view bytecode, std::string_view /*precompiled*/, return true; } +void WasmEdge::initStore() { + if (store_ != nullptr) { + return; + } + store_ = WasmEdge_StoreCreate(); +} + bool WasmEdge::link(std::string_view /*debug_name*/) { assert(ast_module_ != nullptr); // Create store and register imports. - if (store_ == nullptr) { - store_ = WasmEdge_StoreCreate(); - } + initStore(); if (store_ == nullptr) { return false; } @@ -609,6 +620,8 @@ void WasmEdge::getModuleFunctionImpl(std::string_view function_name, }; } +void WasmEdge::warm() { initStore(); } + } // namespace WasmEdge std::unique_ptr createWasmEdgeVm() { return std::make_unique(); } diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index c4a7646f0..ac0361623 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -80,6 +80,9 @@ class Wasmtime : public WasmVm { }; FOR_ALL_WASM_VM_EXPORTS(_GET_MODULE_FUNCTION) #undef _GET_MODULE_FUNCTION + + void warm() override; + private: template void registerHostFunctionImpl(std::string_view module_name, std::string_view function_name, @@ -100,6 +103,9 @@ class Wasmtime : public WasmVm { void terminate() override {} bool usesWasmByteOrder() override { return true; } + // Initialize the Wasmtime store if necessary. + void initStore(); + WasmStorePtr store_; WasmModulePtr module_; WasmSharedModulePtr shared_module_; @@ -111,9 +117,16 @@ class Wasmtime : public WasmVm { std::unordered_map module_functions_; }; +void Wasmtime::initStore() { + if (store_ != nullptr) { + return; + } + store_ = wasm_store_new(engine()); +} + bool Wasmtime::load(std::string_view bytecode, std::string_view /*precompiled*/, const std::unordered_map & /*function_names*/) { - store_ = wasm_store_new(engine()); + initStore(); if (store_ == nullptr) { return false; } @@ -693,8 +706,12 @@ void Wasmtime::getModuleFunctionImpl(std::string_view function_name, }; }; +void Wasmtime::warm() { initStore(); } + } // namespace wasmtime +bool initWasmtimeEngine() { return wasmtime::engine() != nullptr; } + std::unique_ptr createWasmtimeVm() { return std::make_unique(); } } // namespace proxy_wasm diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc index 4d084cc75..bb2bab193 100644 --- a/test/wasm_vm_test.cc +++ b/test/wasm_vm_test.cc @@ -30,6 +30,54 @@ INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines() return info.param; }); +TEST_P(TestVm, Init) { + std::chrono::time_point time2; + + auto time1 = std::chrono::steady_clock::now(); + if (engine_ == "v8") { +#if defined(PROXY_WASM_HOST_ENGINE_V8) + EXPECT_TRUE(proxy_wasm::initV8Engine()); + time2 = std::chrono::steady_clock::now(); + EXPECT_TRUE(proxy_wasm::initV8Engine()); +#endif + } else if (engine_ == "wamr") { +#if defined(PROXY_WASM_HOST_ENGINE_WAMR) + EXPECT_TRUE(proxy_wasm::initWamrEngine()); + time2 = std::chrono::steady_clock::now(); + EXPECT_TRUE(proxy_wasm::initWamrEngine()); +#endif + } else if (engine_ == "wasmtime") { +#if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) + EXPECT_TRUE(proxy_wasm::initWasmtimeEngine()); + time2 = std::chrono::steady_clock::now(); + EXPECT_TRUE(proxy_wasm::initWasmtimeEngine()); +#endif + } else { + return; + } + auto time3 = std::chrono::steady_clock::now(); + + auto cold = std::chrono::duration_cast(time2 - time1).count(); + auto warm = std::chrono::duration_cast(time3 - time2).count(); + + std::cout << "\"cold\" engine time: " << cold << "ns" << std::endl; + std::cout << "\"warm\" engine time: " << warm << "ns" << std::endl; + + // Default warm time in nanoseconds. + int warm_time_ns_limit = 10000; + +#if defined(__linux__) && defined(__s390x__) + // Linux 390x is significantly slower, so we use a more lenient limit. + warm_time_ns_limit = 75000; +#endif + + // Verify that getting a "warm" engine takes less than 10us. + EXPECT_LE(warm, warm_time_ns_limit); + + // Verify that getting a "warm" engine takes at least 50x less time than getting a "cold" one. + EXPECT_LE(warm * 50, cold); +} + TEST_P(TestVm, Basic) { if (engine_ == "wasmedge") { EXPECT_EQ(vm_->cloneable(), proxy_wasm::Cloneable::NotCloneable); From 26969ea51f5f6cc7652f18c26d95ff5feb465f9f Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Thu, 4 Sep 2025 09:32:28 -0400 Subject: [PATCH 281/287] chore: update WAMR to 2.4.1 (#453) Signed-off-by: Michael Warres --- bazel/external/wamr.BUILD | 2 +- bazel/repositories.bzl | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bazel/external/wamr.BUILD b/bazel/external/wamr.BUILD index d0f10b226..a3375e2cb 100644 --- a/bazel/external/wamr.BUILD +++ b/bazel/external/wamr.BUILD @@ -69,7 +69,7 @@ cmake( "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": ["-ldl"], "//conditions:default": [], }), - out_static_libs = ["libvmlib.a"], + out_static_libs = ["libiwasm.a"], deps = select({ "@proxy_wasm_cpp_host//bazel:engine_wamr_jit": ["@llvm-15_0_7//:llvm_wamr_lib"], "//conditions:default": [], diff --git a/bazel/repositories.bzl b/bazel/repositories.bzl index 159244263..09939a706 100644 --- a/bazel/repositories.bzl +++ b/bazel/repositories.bzl @@ -268,10 +268,10 @@ def proxy_wasm_cpp_host_repositories(): http_archive, name = "com_github_bytecodealliance_wasm_micro_runtime", build_file = "@proxy_wasm_cpp_host//bazel/external:wamr.BUILD", - # WAMR-2.1.1 - sha256 = "a0824762abbcbb3dd6b7bb07530f198ece5d792a12a879bc2a99100590fdb151", - strip_prefix = "wasm-micro-runtime-WAMR-2.1.1", - url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/refs/tags/WAMR-2.1.1.zip", + # WAMR-2.4.1 + sha256 = "ca18bbf304f47287bf43707564db63b8908dd6d0d6ac40bb39271a7144def4cc", + strip_prefix = "wasm-micro-runtime-WAMR-2.4.1", + url = "https://github.com/bytecodealliance/wasm-micro-runtime/archive/refs/tags/WAMR-2.4.1.zip", ) native.bind( From 8b2e6535d929ed7092693e429f6bb81575a818a5 Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Sun, 14 Sep 2025 23:09:07 -0400 Subject: [PATCH 282/287] fix: avoid potential unaligned loads, found by fuzzer (#456) Signed-off-by: Michael Warres --- src/pairs_util.cc | 39 +++++++++++++++++++++++++++------------ 1 file changed, 27 insertions(+), 12 deletions(-) diff --git a/src/pairs_util.cc b/src/pairs_util.cc index d21135788..b8121882f 100644 --- a/src/pairs_util.cc +++ b/src/pairs_util.cc @@ -15,6 +15,7 @@ #include "include/proxy-wasm/pairs_util.h" +#include #include #include #include @@ -25,6 +26,23 @@ namespace proxy_wasm { +namespace { + +// Read trivially copyable type from char buffer and return value. Does not +// check if char buffer is large enough to contain instance of `T`. +template inline T unalignedLoad(const char *buffer) { + // Checking for undefined behaviour wrt std::memcpy. + static_assert(std::is_trivially_copyable_v, + "type must be trivially copyable to use std::memcpy"); + T result; + // Use std::memcpy to get around strict type aliasing rules. + std::memcpy(&result, buffer, sizeof(T)); + + return result; +} + +} // namespace + using Sizes = std::vector>; size_t PairsUtil::pairsSize(const Pairs &pairs) { @@ -113,10 +131,13 @@ Pairs PairsUtil::toPairs(std::string_view buffer) { if (pos + sizeof(uint32_t) > end) { return {}; } - uint32_t num_pairs = wasmtoh(*reinterpret_cast(pos), - contextOrEffectiveContext() != nullptr - ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() - : false); + + // clang complains that this is unused when the wasmtoh macro drops its + // second argument on non-big-endian platforms. + [[maybe_unused]] const bool uses_wasm_byte_order = + contextOrEffectiveContext() != nullptr && + contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder(); + uint32_t num_pairs = wasmtoh(unalignedLoad(pos), uses_wasm_byte_order); pos += sizeof(uint32_t); // Check if we're not going to exceed the limit. @@ -135,20 +156,14 @@ Pairs PairsUtil::toPairs(std::string_view buffer) { if (pos + sizeof(uint32_t) > end) { return {}; } - s.first = wasmtoh(*reinterpret_cast(pos), - contextOrEffectiveContext() != nullptr - ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() - : false); + s.first = wasmtoh(unalignedLoad(pos), uses_wasm_byte_order); pos += sizeof(uint32_t); // Read value length. if (pos + sizeof(uint32_t) > end) { return {}; } - s.second = wasmtoh(*reinterpret_cast(pos), - contextOrEffectiveContext() != nullptr - ? contextOrEffectiveContext()->wasmVm()->usesWasmByteOrder() - : false); + s.second = wasmtoh(unalignedLoad(pos), uses_wasm_byte_order); pos += sizeof(uint32_t); } From 3025566375cd8d7f8cc6e2d6899fa9d6da03aca8 Mon Sep 17 00:00:00 2001 From: Michael Warres Date: Mon, 6 Oct 2025 22:51:30 -0400 Subject: [PATCH 283/287] Execute proxy-wasm-cpp-host ubuntu-24.04 actions on larger runner (#460) Signed-off-by: Michael Warres --- .github/workflows/format.yml | 8 ++++---- .github/workflows/test.yml | 28 ++++++++++++++-------------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index 051459d7c..8f61d3582 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -43,7 +43,7 @@ jobs: addlicense: name: verify licenses - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-16core steps: - uses: actions/checkout@v2 @@ -63,7 +63,7 @@ jobs: buildifier: name: check format with buildifier - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-16core steps: - uses: actions/checkout@v2 @@ -101,7 +101,7 @@ jobs: clang_format: name: check format with clang-format - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-16core steps: - uses: actions/checkout@v2 @@ -117,7 +117,7 @@ jobs: clang_tidy: name: check format with clang-tidy - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-16core steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8c42a546e..cc6ddbc5f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -43,7 +43,7 @@ jobs: test_data: name: build test data - runs-on: ubuntu-24.04 + runs-on: ubuntu-24.04-16core steps: - uses: actions/checkout@v2 @@ -128,19 +128,19 @@ jobs: include: - name: 'NullVM on Linux/x86_64' engine: 'null' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=gcc - name: 'NullVM on Linux/x86_64 with ASan' engine: 'null' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=clang-asan --define=crypto=system - name: 'NullVM on Linux/x86_64 with TSan' engine: 'null' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=clang-tsan @@ -153,7 +153,7 @@ jobs: - name: 'V8 on Linux/x86_64' engine: 'v8' repo: 'v8' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=hermetic-llvm --define=crypto=system @@ -161,7 +161,7 @@ jobs: - name: 'V8 on Linux/x86_64 with ASan' engine: 'v8' repo: 'v8' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=hermetic-llvm --config=clang-asan @@ -169,7 +169,7 @@ jobs: - name: 'V8 on Linux/x86_64 with TSan' engine: 'v8' repo: 'v8' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=hermetic-llvm --config=clang-tsan @@ -177,7 +177,7 @@ jobs: - name: 'V8 on Linux/x86_64 with GCC' engine: 'v8' repo: 'v8' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=gcc @@ -202,7 +202,7 @@ jobs: - name: 'WAMR interp on Linux/x86_64' engine: 'wamr-interp' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=clang @@ -215,7 +215,7 @@ jobs: - name: 'WAMR jit on Linux/x86_64' engine: 'wamr-jit' repo: 'com_github_bytecodealliance_wasm_micro_runtime' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=clang @@ -231,7 +231,7 @@ jobs: - name: 'WasmEdge on Linux/x86_64' engine: 'wasmedge' repo: 'com_github_wasmedge_wasmedge' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=clang @@ -244,14 +244,14 @@ jobs: - name: 'Wasmtime on Linux/x86_64' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=clang -c opt - name: 'Wasmtime on Linux/x86_64 with ASan' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: x86_64 action: test flags: --config=clang-asan --define=crypto=system @@ -265,7 +265,7 @@ jobs: - name: 'Wasmtime on Linux/s390x' engine: 'wasmtime' repo: 'com_github_bytecodealliance_wasmtime' - os: ubuntu-24.04 + os: ubuntu-24.04-16core arch: s390x action: test flags: --config=clang --test_timeout=1800 From f3f9969a3f52bb512b5f1d20120ddd33871150c3 Mon Sep 17 00:00:00 2001 From: rachgreen33 Date: Mon, 20 Oct 2025 15:00:04 -0400 Subject: [PATCH 284/287] chore: Update V8 flag initialization to use V8 API (#458) * Set flags via the v8 API, instead of directly modifying them --------- Signed-off-by: Rachel Green --- src/v8/v8.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 9e184f292..932a60043 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -28,9 +28,10 @@ #include "include/proxy-wasm/limits.h" +#include "absl/strings/str_format.h" +#include "include/v8-initialization.h" #include "include/v8-version.h" #include "include/v8.h" -#include "src/flags/flags.h" #include "src/wasm/c-api.h" #include "wasm-api/wasm.hh" @@ -42,10 +43,13 @@ wasm::Engine *engine() { static wasm::own engine; std::call_once(init, []() { - ::v8::internal::v8_flags.liftoff = false; - ::v8::internal::v8_flags.wasm_max_mem_pages = - PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES / PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES; + // Disable the Liftoff compiler to force optimized JIT up-front. + std::string args = absl::StrFormat("--wasm_max_mem_pages=%u --no-liftoff", + PROXY_WASM_HOST_MAX_WASM_MEMORY_SIZE_BYTES / + PROXY_WASM_HOST_WASM_MEMORY_PAGE_SIZE_BYTES); + ::v8::V8::SetFlagsFromString(args.c_str(), args.size()); ::v8::V8::EnableWebAssemblyTrapHandler(true); + engine = wasm::Engine::make(); }); From 14fa83a43bddadef6da8a37135f1dee57f8b29a3 Mon Sep 17 00:00:00 2001 From: rachgreen33 Date: Thu, 20 Nov 2025 14:30:27 -0500 Subject: [PATCH 285/287] Feat: Allow invocation of the emscripten_notify_memory_growth hostcall. (#461) * Feat: Allow invocation of the emscripten_notify_memory_growth hostcall. Signed-off-by: Rachel Green --- src/wasm.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wasm.cc b/src/wasm.cc index e8a7ce436..a1b4c1836 100644 --- a/src/wasm.cc +++ b/src/wasm.cc @@ -378,7 +378,9 @@ ContextBase *WasmBase::getRootContext(const std::shared_ptr &plugin, void WasmBase::startVm(ContextBase *root_context) { // wasi_snapshot_preview1.clock_time_get wasm_vm_->setRestrictedCallback( - true, {// logging (Proxy-Wasm) + true, {// emscripten + "env.emscripten_notify_memory_growth", + // logging (Proxy-Wasm) "env.proxy_log", // logging (stdout/stderr) "wasi_unstable.fd_write", "wasi_snapshot_preview1.fd_write", From 44be7b18175b362f81bc821e6e23882518d7295a Mon Sep 17 00:00:00 2001 From: rachgreen33 Date: Fri, 21 Nov 2025 14:03:50 -0500 Subject: [PATCH 286/287] Chore: Remove the initEngine methods, and update Warm test. (#459) * Remove the init*engine methods from runtimes, and update warm() test. Signed-off-by: Rachel Green --- include/proxy-wasm/v8.h | 1 - include/proxy-wasm/wamr.h | 1 - include/proxy-wasm/wasmtime.h | 1 - src/v8/v8.cc | 2 -- src/wamr/wamr.cc | 2 -- src/wasmedge/wasmedge.cc | 7 ++++--- src/wasmtime/wasmtime.cc | 2 -- test/wasm_vm_test.cc | 35 ++++++++++------------------------- 8 files changed, 14 insertions(+), 37 deletions(-) diff --git a/include/proxy-wasm/v8.h b/include/proxy-wasm/v8.h index 5531f52cb..73c91b956 100644 --- a/include/proxy-wasm/v8.h +++ b/include/proxy-wasm/v8.h @@ -21,7 +21,6 @@ namespace proxy_wasm { -bool initV8Engine(); std::unique_ptr createV8Vm(); } // namespace proxy_wasm diff --git a/include/proxy-wasm/wamr.h b/include/proxy-wasm/wamr.h index 32a05e94a..98ff72e31 100644 --- a/include/proxy-wasm/wamr.h +++ b/include/proxy-wasm/wamr.h @@ -21,7 +21,6 @@ namespace proxy_wasm { -bool initWamrEngine(); std::unique_ptr createWamrVm(); } // namespace proxy_wasm diff --git a/include/proxy-wasm/wasmtime.h b/include/proxy-wasm/wasmtime.h index 11c4ae7a3..e3fe4b48c 100644 --- a/include/proxy-wasm/wasmtime.h +++ b/include/proxy-wasm/wasmtime.h @@ -18,7 +18,6 @@ namespace proxy_wasm { -bool initWasmtimeEngine(); std::unique_ptr createWasmtimeVm(); } // namespace proxy_wasm diff --git a/src/v8/v8.cc b/src/v8/v8.cc index 932a60043..f5a73b130 100644 --- a/src/v8/v8.cc +++ b/src/v8/v8.cc @@ -759,8 +759,6 @@ std::string V8::getFailMessage(std::string_view function_name, wasm::own createV8Vm() { return std::make_unique(); } } // namespace proxy_wasm diff --git a/src/wamr/wamr.cc b/src/wamr/wamr.cc index 88dc9f007..8eef73590 100644 --- a/src/wamr/wamr.cc +++ b/src/wamr/wamr.cc @@ -713,8 +713,6 @@ void Wamr::warm() { initStore(); } } // namespace wamr -bool initWamrEngine() { return wamr::engine() != nullptr; } - std::unique_ptr createWamrVm() { return std::make_unique(); } } // namespace proxy_wasm diff --git a/src/wasmedge/wasmedge.cc b/src/wasmedge/wasmedge.cc index 263ed1883..30fe78f5e 100644 --- a/src/wasmedge/wasmedge.cc +++ b/src/wasmedge/wasmedge.cc @@ -225,9 +225,6 @@ using HostModuleDataPtr = std::unique_ptr; class WasmEdge : public WasmVm { public: WasmEdge() { - loader_ = WasmEdge_LoaderCreate(nullptr); - validator_ = WasmEdge_ValidatorCreate(nullptr); - executor_ = WasmEdge_ExecutorCreate(nullptr, nullptr); store_ = nullptr; ast_module_ = nullptr; module_ = nullptr; @@ -305,6 +302,7 @@ class WasmEdge : public WasmVm { bool WasmEdge::load(std::string_view bytecode, std::string_view /*precompiled*/, const std::unordered_map & /*function_names*/) { + initStore(); WasmEdge_ASTModuleContext *mod = nullptr; WasmEdge_Result res = WasmEdge_LoaderParseFromBuffer( loader_.get(), &mod, reinterpret_cast(bytecode.data()), bytecode.size()); @@ -324,6 +322,9 @@ void WasmEdge::initStore() { if (store_ != nullptr) { return; } + loader_ = WasmEdge_LoaderCreate(nullptr); + validator_ = WasmEdge_ValidatorCreate(nullptr); + executor_ = WasmEdge_ExecutorCreate(nullptr, nullptr); store_ = WasmEdge_StoreCreate(); } diff --git a/src/wasmtime/wasmtime.cc b/src/wasmtime/wasmtime.cc index ac0361623..a72a0361d 100644 --- a/src/wasmtime/wasmtime.cc +++ b/src/wasmtime/wasmtime.cc @@ -710,8 +710,6 @@ void Wasmtime::warm() { initStore(); } } // namespace wasmtime -bool initWasmtimeEngine() { return wasmtime::engine() != nullptr; } - std::unique_ptr createWasmtimeVm() { return std::make_unique(); } } // namespace proxy_wasm diff --git a/test/wasm_vm_test.cc b/test/wasm_vm_test.cc index bb2bab193..346fe2a07 100644 --- a/test/wasm_vm_test.cc +++ b/test/wasm_vm_test.cc @@ -31,37 +31,17 @@ INSTANTIATE_TEST_SUITE_P(WasmEngines, TestVm, testing::ValuesIn(getWasmEngines() }); TEST_P(TestVm, Init) { - std::chrono::time_point time2; - auto time1 = std::chrono::steady_clock::now(); - if (engine_ == "v8") { -#if defined(PROXY_WASM_HOST_ENGINE_V8) - EXPECT_TRUE(proxy_wasm::initV8Engine()); - time2 = std::chrono::steady_clock::now(); - EXPECT_TRUE(proxy_wasm::initV8Engine()); -#endif - } else if (engine_ == "wamr") { -#if defined(PROXY_WASM_HOST_ENGINE_WAMR) - EXPECT_TRUE(proxy_wasm::initWamrEngine()); - time2 = std::chrono::steady_clock::now(); - EXPECT_TRUE(proxy_wasm::initWamrEngine()); -#endif - } else if (engine_ == "wasmtime") { -#if defined(PROXY_WASM_HOST_ENGINE_WASMTIME) - EXPECT_TRUE(proxy_wasm::initWasmtimeEngine()); - time2 = std::chrono::steady_clock::now(); - EXPECT_TRUE(proxy_wasm::initWasmtimeEngine()); -#endif - } else { - return; - } + vm_->warm(); + auto time2 = std::chrono::steady_clock::now(); + vm_->warm(); auto time3 = std::chrono::steady_clock::now(); auto cold = std::chrono::duration_cast(time2 - time1).count(); auto warm = std::chrono::duration_cast(time3 - time2).count(); - std::cout << "\"cold\" engine time: " << cold << "ns" << std::endl; - std::cout << "\"warm\" engine time: " << warm << "ns" << std::endl; + std::cout << "[" << engine_ << "] \"cold\" engine time: " << cold << "ns" << std::endl; + std::cout << "[" << engine_ << "] \"warm\" engine time: " << warm << "ns" << std::endl; // Default warm time in nanoseconds. int warm_time_ns_limit = 10000; @@ -75,6 +55,11 @@ TEST_P(TestVm, Init) { EXPECT_LE(warm, warm_time_ns_limit); // Verify that getting a "warm" engine takes at least 50x less time than getting a "cold" one. + // We skip NullVM because warm() is a noop. + if (engine_ == "null") { + std::cout << "Skipping warm() performance assertions for NullVM." << std::endl; + return; + } EXPECT_LE(warm * 50, cold); } From c8868da77499d414f3dcd07e4fbe584dc9a1c30d Mon Sep 17 00:00:00 2001 From: rachgreen33 Date: Mon, 24 Nov 2025 11:13:10 -0500 Subject: [PATCH 287/287] feat: pass FailState value to WasmVmIntegration::error() (#450) * pass FailState value to WasmVmIntegration::error() Signed-off-by: Rachel Green --- include/proxy-wasm/wasm_vm.h | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/include/proxy-wasm/wasm_vm.h b/include/proxy-wasm/wasm_vm.h index c14624ac0..9a2f0a6a0 100644 --- a/include/proxy-wasm/wasm_vm.h +++ b/include/proxy-wasm/wasm_vm.h @@ -143,12 +143,25 @@ enum class AbiVersion { ProxyWasm_0_1_0, ProxyWasm_0_2_0, ProxyWasm_0_2_1, Unkno class NullPlugin; +enum class FailState : int { + Ok = 0, + UnableToCreateVm = 1, + UnableToCloneVm = 2, + MissingFunction = 3, + UnableToInitializeCode = 4, + StartFailed = 5, + ConfigureFailed = 6, + RuntimeError = 7, +}; + // Integrator specific WasmVm operations. struct WasmVmIntegration { virtual ~WasmVmIntegration() {} virtual WasmVmIntegration *clone() = 0; virtual proxy_wasm::LogLevel getLogLevel() = 0; virtual void error(std::string_view message) = 0; + // Allow integrations to handle specific FailStates differently. + virtual void error(FailState fail_state, std::string_view message) { error(message); } virtual void trace(std::string_view message) = 0; // Get a NullVm implementation of a function. // @param function_name is the name of the function with the implementation specific prefix. @@ -165,17 +178,6 @@ struct WasmVmIntegration { void *ptr_to_function_return) = 0; }; -enum class FailState : int { - Ok = 0, - UnableToCreateVm = 1, - UnableToCloneVm = 2, - MissingFunction = 3, - UnableToInitializeCode = 4, - StartFailed = 5, - ConfigureFailed = 6, - RuntimeError = 7, -}; - // Wasm VM instance. Provides the low level WASM interface. class WasmVm { public: @@ -308,14 +310,11 @@ class WasmVm { */ virtual bool usesWasmByteOrder() = 0; - /** - * Warm the VM such as engine and runtime. - */ - virtual void warm() = 0; + virtual void warm() {} bool isFailed() { return failed_ != FailState::Ok; } void fail(FailState fail_state, std::string_view message) { - integration()->error(message); + integration()->error(fail_state, message); failed_ = fail_state; for (auto &callback : fail_callbacks_) { callback(fail_state);